/* styles.css */
.subscribe-paper-nav .login-user {
  display: none !important;
}

.logo-img {
  width: 138px;
}

body, #footer, .container {
  background: #F1F3F5;
}

body, input, button, textarea, select {
  font-weight: 400;
  letter-spacing: -0.05px;
  font-style: normal;
  color: var(--text-black);
  word-break: break-all;
}

input::placeholder, select::placeholder {
  font-weight: 400;
}

.font-primary {
  font-weight: 400;
}

.font-secondary {
  font-weight: 500;
}

.font-tertiary {
  font-weight: 700;
}

.container {
  max-width: 690px;
  margin: 0 auto;
  padding: 48px 16px 0 16px;
  /* nav바 높이 + footer 마진탑 + footer 높이 + container 패딩탑 */
  min-height: calc(100vh - 322px);
}

.header {
  text-align: center;
}

.header .title {
  font-size: 24px;
  text-align: center;
}

.sub-title {
  font-size: 18px;
  color: var(--text-grey-80);
  text-align: center;
  margin-top: 4px;
  margin-bottom: 36px;
}

.sub-title .highlight {
  color: var(--text-blue);
}

div[id$="-step"] {
  display: none;
  position: relative;
}

div[id$="-type"] {
  display: none;
}

div[id$="-gift"] {
  display: none;
}

div[id$="-agreement"] {
  display: none;
}

div[id$="-step"].active {
  display: block;
}

div[id$="-type"].active {
  display: block;
}

div[id$="-gift"].active {
  display: block;
}

div[id$="-agreement"].active {
  display: block;
}

div[id$="-card-section"],
div[id$="-account-section"] {
  display: none;
}

div[id$="-card-section"].active,
div[id$="-account-section"].active {
  display: block;
}


.progress-container.active {
  display: block;
}

.progress-container {
  display: none;
}

.progress-container {
  width: 80%;
  margin: 16px auto 36px auto;
  position: relative;
}

.progress-line {
  position: relative;
  width: 101%;
  height: 2px;
  background: var(--bg-grey-40);
  margin: 7px 0;
  z-index: 1;
}

.progress-filled {
  position: absolute;
  height: 100%;
  background: var(--bg-blue);
  width: 0%;
  /* transition: width 0.3s ease-in-out; */
}

.tabs {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.tab {
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-grey-80);
}

.tab:first-child {
  position: relative;
  left: -33px;
}
.tab:last-child {
  position: relative;
  right: -27px;
}

.tab::before {
  position: absolute;
  top: -13px;
  display: block;
  content: '';
  width: 10px;
  height: 10px;
  background: var(--bg-grey-40);
  border-radius: 50%;
}

.tab.active:before {
  background: var(--bg-blue);
}

.tab.current {
  color: var(--text-blue);
  font-weight: 700;
}

.welcome {
  border-radius: 12px;
  background: var(--bg-light-blue);
  padding: 16px 32px;
  color: var(--text-blue);
  text-align: center;
  margin-bottom: 48px;
}

.welcome.last {
  margin-bottom: 36px;
}

.section-title {
  color: var(--text-grey-80);
  font-size: 16px;
  margin-bottom: 12px;
}

.sub-title {
  margin-bottom: 24px;
}

.sub-info {
  margin-bottom: 36px;
}

.section {
  border-radius: 12px;
  background: var(--bg-white-surface-10);
  padding: 32px;
  margin-bottom: 36px;
}

/* 배달 주소 박스 커스텀 */
.sub-info .address-box {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}

input[id="detail-address"] {
  margin-top: 8px;
}

.basic-label-left.address {
  align-items: baseline;
}



.agreement label {
  display: flex;
  align-items: center;
}

.open-agreement-modal {
  cursor: pointer;
}

.gift-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.gift-header .section-title {
  margin-bottom: 0;
}

.sub-gift {
  border: 2px solid #FFC107;
  padding: 20px;
  margin-bottom: 20px;
}

.gift-sub-title {
  font-size: 12px;
  color: var(--text-grey-60);
}

.remove-gift {
  width: 20px;
  height: 20px;
  border: none;
  margin-left: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M10 2.5C14.1421 2.5 17.5 5.85786 17.5 10C17.5 14.1421 14.1421 17.5 10 17.5C5.85786 17.5 2.5 14.1421 2.5 10C2.5 5.85786 5.85786 2.5 10 2.5ZM12.5927 6.36684L10.0002 8.96017L7.40728 6.36684L6.70017 7.07394L9.2935 9.66684L6.70017 12.2594L7.40728 12.9665L10.0002 10.3735L12.5927 12.9665L13.2998 12.2594L10.7068 9.66684L13.2998 7.07394L12.5927 6.36684Z' fill='%23999999'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.selected-gift {
  background: var(--high-grey-10);
  color: var(--text-grey-80);
  padding: 12px;
  font-size: 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  min-height: 20px;
  font-weight: 500;
}


.sub-payment-method {
  padding: 32px;
  margin-bottom: 32px;
}

.sub-payment-info, .sub-gift-info {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.gift-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 18px;
  margin-top: 24px;
}

.image-checkbox img {
  width: 100%;
  border: 1px solid var(--border-grey-20);
}

.gift-semi-title {
  font-size: 12px;
  color: var(--text-blue);
  margin-bottom: 2px;
}

.gift-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.detail-group, .gift-group {
  width: 100%;
  margin-top: 24px;
}

.payment-agreement {
  border: 2px solid blue;
  padding: 20px;
  margin-bottom: 20px;
}

.sub-apply-check {
  margin-bottom: 36px;
}

.sub-gift-check {
  margin-bottom: 36px;
}

.sub-payment-check {
  margin-bottom: 56px;
}

.agreement {
  margin-bottom: 48px;
}

.sub-duration {
  margin-bottom: 24px;
}

.btn-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.back-btn {
  font-size: 14px;
  color: var(--text-grey-80);
  border: none;
  position: relative;
  padding-left: 22px;
  display: block;
  font-weight: 500;
}

.back-btn::before {
  content: ''; /* 반드시 content 속성이 필요 */
  position: absolute;
  top: 50%;
  left: 0; /* 버튼 내부에서 이미지 위치 */
  transform: translateY(-50%); /* 수직 중앙 정렬 */
  width: 20px; /* SVG 크기 */
  height: 20px;
  background-image: url('//image.chosun.com/cds/icon/prev-arrow-grey.svg');
  background-size: contain; /* SVG 크기 조정 */
  background-repeat: no-repeat; /* 이미지 반복 제거 */
}

.back-btn {
  margin-top: 24px;
}

.back-btn-mobile {
  display: none;
}

.payment-list-btns, .duration-list-btns  {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.list-type-btn {
  font-size: 16px;
  position: relative;
  padding-right: 22px;
  border-radius: 4px;
  border: 1px solid var(--border-grey-20);
  padding: 16px;
  background: var(--bg-white-surface-30);
  cursor: pointer;
  font-weight: 700;
}

.list-type-btn::after {
  content: ''; /* 반드시 content 속성이 필요 */
  position: absolute;
  top: 50%;
  right: 16px; /* 버튼 내부에서 이미지 위치 */
  transform: translateY(-50%); /* 수직 중앙 정렬 */
  width: 20px; /* SVG 크기 */
  height: 20px;
  background-image: url('//image.chosun.com/cds/icon/next-grey60.svg'); /* SVG URL */
  background-size: contain; /* SVG 크기 조정 */
  background-repeat: no-repeat; /* 이미지 반복 제거 */
}

#personal-card-section, #personal-account-section,
#corporation-card-section, #corporation-account-section {
  padding-top: 16px;
}

#kakao-type p {
  text-align: center;
}

#next-btn-step-3, #next-btn-step-2 {
  /* display: none; */
}

.cash-receipt-section {
  display: none; /* 기본적으로 숨기기 */
}

.cash-receipt-section.active {
  display: block; /* 활성화 시 보이기 */
}


#account-cash-receipt-section {
  margin-top: -20px;
}

.review-item + .review-item {
  margin-top: 16px;
}

.review-item {
  display: flex;
  align-items: center;
}

.review-item dt {
  min-width: 136px;
  font-size: 14px;
  color: var(--text-grey-80);
}

dt.hidden {
  display: none;
}

.review-item dd {
  font-size: 16px;
  width: 100%;
  font-weight: 500;
}

.edit-btn-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.edit-btn-title .title {
  font-size: 18px;
}

.edit-btn-box {
  display: flex;
}

.btn-box.hidden {
  display: none;
}

#cancel-btn.hidden,
#complete-btn.hidden
{
  display: none;
}

/* 공통 버튼 */

.btn-large {
  width: 100%;
  height: 52px;
  padding: 14px 0;
  text-align: center;
  background: var(--bg-blue);
  color: var(--text-white-static);
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  border: none;
}

.btn-large:disabled {
  color: var(--text-grey-60);
  background: var(--bg-grey-40);
  pointer-events: none;
}

.btn-extra-small {
  border-radius: 100px;
  border: 1px solid var(--border-grey-40);
  padding: 0px 12px;
  height: 26px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-white-surface-30);
  color: var(--text-grey-80);
}

.btn-large.sub {
  background: var(--bg-white-surface-30);
  border: 1px solid var(--border-grey-40);
  color: var(--text-grey-80);
  margin-right: 20px;
}

.btn-large.sub.temp {
  margin-right: 0;
}

/* 커스텀 드롭다운 */
.dropdown-selection {
  position: relative;
  width: 100%;
  padding: 16px;
  border-radius: 5px;
  cursor: pointer;
  background: var(--bg-white-surface-30);
  transition: border-radius 0.2s ease, border-color 0.2s ease;
  border: 1px solid rgba(18, 108, 205, 0.40);
  box-shadow: 0px 6px 12px 0px rgba(18, 108, 205, 0.10);
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
}

.dropdown-selection:focus {
  outline: none;
}

.dropdown-selection .selected-item {
  color: var(--text-blue);
  font-size: 16px;
}

/* Dropdown icon */
.dropdown-selection #dropdown-icon {
  width: 24px;
  height: 24px;
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  background-image: url('//image.chosun.com/cds/icon/down-blue.svg'); /* SVG URL */
  background-size: contain; /* SVG 크기 조정 */
  background-repeat: no-repeat; /* 이미지 반복 제거 */
}

.dropdown-selection.active #dropdown-icon {
  transform: translateY(-50%) rotate(180deg); /* 화살표를 위로 회전 */
}

/* Menu */
.dropdown-selection .dropdown-menu {
  position: absolute;
  top: calc(100% - 1px); /* 메뉴와 드롭다운을 연결 */
  width: 100%;
  left: -1px;
  right: 0;
  border-radius: 0 0 4px 4px; /* 메뉴 아래쪽 둥근 모서리 */
  transform: scaleY(0);
  transform-origin: top;
  /* transition: transform 0.4s ease, opacity 0.4s ease; */
  opacity: 0;
  z-index: 2;
  border: 1px solid rgba(18, 108, 205, 0.40);
  border-top: none;
  box-shadow: 0px 6px 12px 0px rgba(18, 108, 205, 0.10);
  box-sizing: content-box;
}

.agreement-modal-inner, .mb24_tit_post, .payment-select-modal-content {
  box-sizing: content-box;
}

.dropdown-spacer {
  width: 100%;
  height: 0; /* 초기 높이 0 */
  transition: height 0.4s ease; /* 트랜지션 효과 */
}

.dropdown-separator {
  margin: 0 16px;
  border-top: 1px solid var(--border-grey-20);
}

/* Items */
.dropdown-selection .item {
  padding: 16px 28px 16px 28px;
  font-size: 16px;
  cursor: pointer;
  background: var(--bg-white-surface-30);
}

.dropdown-selection .item:last-child {
  border-radius: 0 0 4px 4px;
}

/* Hover Effect */
.dropdown-selection .item:hover {
  /* background-color: #f0f0f0; */
}

/* Active/Selected Item */
.dropdown-selection .item.active {
  /* background-color: #e0e7ff;
  color: #126CCD; */
}

/* Show menu */
.dropdown-selection.active {
  border-bottom-left-radius: 0; /* 아래쪽 둥근 모서리 제거 */
  border-bottom-right-radius: 0; /* 아래쪽 둥근 모서리 제거 */
}

.dropdown-selection.active .dropdown-menu {
  transform: scaleY(1);
  opacity: 1;
}

/* 공통 라벨 인풋 세트 */
.basic-label-left {
  display: flex;
  align-items: center;
  position: relative;
}

.basic-label-left.hidden {
  display: none;
}

.basic-label-left + .basic-label-left,
.basic-checkbox + .basic-checkbox {
  margin-top: 16px;
}

.basic-checkbox + .basic-label-left {
  margin-top: 16px;
}


.basic-label-left label {
  min-width: 158px;
  font-size: 16px;
  pointer-events: none;
  font-weight: 500;
}

.basic-label-left input[type='text'], .basic-label-left input[type='tel'] {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--border-grey-40);
  padding: 12px;
  font-size: 16px;
  font-weight: 700;
  background: var(--bg-white-surface-30);
  line-height: 22px;
}

.basic-label-left input[type='text']:focus,
.basic-label-left input[type='tel']:focus
{
  outline: none;
}

.basic-label-left input[type='text']:-webkit-autofill,
.basic-label-left input[type='tel']:-webkit-autofill
{
  background-color: transparent !important;
  box-shadow: 0 0 0px 1000px white inset !important;
}

.basic-label-left.error input[type='text'],
.basic-label-left.error input[type='tel']
{
  border-color: var(--border-red);
}

.basic-label-left.error:after {
  content: '';
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 24px; /* SVG 크기 */
  height: 24px;
  background-image: url('//image.chosun.com/cds/icon/error.svg'); /* SVG URL */
  background-size: contain; /* SVG 크기 조정 */
}

.basic-label-left.success input[type='text'] {
  border-color: var(--border-blue);
}

.basic-label-left.success:after {
  content: '';
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 24px; /* SVG 크기 */
  height: 24px;
  background-image: url('//image.chosun.com/cds/icon/success-check.svg'); /* SVG URL */
  background-size: contain; /* SVG 크기 조정 */
}

.basic-label-left input[type='text'].auto-fill {
  background: var(--bg-grey-10);
  border: 1px solid var(--border-grey-20);
}

.basic-label-left input[type='text'].verified {
  border-color: var(--border-blue);
}

.basic-label-left input::placeholder {
  color: var(--text-grey-60);
}

/* 공통 인풋 헬프 텍스트 */
.input-help-text {
  position: relative;
  left: 158px;
  display: inline-block;
  margin-top: 4px;
  font-size: 14px;
}

.input-help-text.success {
  color: var(--text-blue);
}

.input-help-text.error {
  color: var(--text-red);
}

.input-help-text + .basic-label-left {
  margin-top: 16px;
}

/* 인풋이 히든되면서 헬프텍스트가 상단에 떠 있을 때가 있음 이럴경우 헬프 텍스트 제거 */
.basic-label-left.hidden.error + .input-help-text {
  display: none;
}

/* basic label left + 아이콘 */
.basic-label-left .icon {
  position: absolute;
  right: 12px; /* 아이콘 위치 조정 */
  width: 24px;
  height: 24px;
  background-repeat: no-repeat; /* 반복 방지 */
}

input[id="date"] {
  cursor: pointer;
}

#date-icon {
  cursor: pointer;
}

.agreement-modal-close path,
.payment-select-modal-close path,
#date-icon path
{
  fill: var(--bg-black)
}

.input-icon {
  display: flex;
  position: relative;
  align-items: center;
  width: 100%;
}

.input-icon input {
  padding-right: 44px; /* 아이콘 공간 확보 */
}

/* basic label left + 버튼 */

.input-btn {
  display: flex;
  position: relative;
  align-items: center;
  width: 100%;
}

.input-btn .icon {
  right: 105px;
}

.success-check {
  background-image: url('//image.chosun.com/cds/icon/success-check.svg'); /* SVG 파일 경로 */
}

.input-btn button {
  font-size: 14px;
  height: 48px;
  margin-left: 8px;
  border-radius: 4px;
  border: 1px solid var(--border-black);
  padding: 0 16px;
  white-space: nowrap;
  font-weight: 700;
}

/* basic checkbox */
.sub-checkbox-group input[type="checkbox"],
.basic-checkbox input[type="checkbox"] {
  margin: 0;
  margin-right: 4px;
  width: 20px;
  height: 20px;
  appearance: none;
  background-image: url('//image.chosun.com/cds/icon/box-uncheck.svg');
  cursor: pointer;
  -webkit-appearance: none;
  border: 0;
}

.sub-checkbox-group input[type="checkbox"]:checked,
.basic-checkbox input[type="checkbox"]:checked {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEHSURBVHgB7de9DkNQFMDxc9vOErvJS/A6XoDN3K423sFo8hRewmaW2Extzk00kqKHc3trOP/FR1x+8RUAJEnaTC2t9H3/CX+obdsPzwVOngC5CZCbALlZBzqOs2t7q0DP86Cua8iyjDzGGhBxZVnq6Z6sAOe4qqogTVPyWDIQdx5FEeyNg8NulI3wxp4OgvN5nlOGsXHYdWml67r3+fI4jhoWhiEEQQBKKWiaBkzj+r5/HAJiE4iCPHrmWEAqknNZ2cBvSO49ZwS4huy6jv1ALAFZn/xxHEOSJHp+GAb9IB3FYcY/+YuieL9yuLi1SO/BrRCJ4aU1jcPkr46bALkJkJsAJUn6cS848o8VfCCziwAAAABJRU5ErkJggg==");
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-position: center;
}

.basic-checkbox label {
  position: relative;
  font-size: 14px;
}

.basic-checkbox label.agree-all {
  width: fit-content;
  font-size: 16px;
}

.basic-checkbox label[for="agree-age"] {
  width: fit-content;
}

.basic-checkbox .icon {
  position: absolute;
  right: 0; /* 아이콘 위치 조정 */
  width: 20px;
  height: 20px;
  background-repeat: no-repeat; /* 반복 방지 */
}

.basic-checkbox.arrow {
  display: flex;
  position: relative;
}

.sub-checkbox-group {
  display: flex;
  margin-left: 26px;
  margin-top: 12px;
}

.sub-checkbox-group label {
  font-size: 14px;
  margin-right: 16px;
}

/* image checkbox */

.image-checkbox {
  position: relative;
}

label.image-checkbox-label {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
}

.image-checkbox input[type="checkbox"] {
  margin: 0;
  margin-right: 4px;
  width: 20px;
  height: 20px;
  appearance: none;
  background-image: url('//image.chosun.com/cds/icon/box-uncheck.svg');
  position: absolute;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
}

.image-checkbox input[type="checkbox"]:checked {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEHSURBVHgB7de9DkNQFMDxc9vOErvJS/A6XoDN3K423sFo8hRewmaW2Extzk00kqKHc3trOP/FR1x+8RUAJEnaTC2t9H3/CX+obdsPzwVOngC5CZCbALlZBzqOs2t7q0DP86Cua8iyjDzGGhBxZVnq6Z6sAOe4qqogTVPyWDIQdx5FEeyNg8NulI3wxp4OgvN5nlOGsXHYdWml67r3+fI4jhoWhiEEQQBKKWiaBkzj+r5/HAJiE4iCPHrmWEAqknNZ2cBvSO49ZwS4huy6jv1ALAFZn/xxHEOSJHp+GAb9IB3FYcY/+YuieL9yuLi1SO/BrRCJ4aU1jcPkr46bALkJkJsAJUn6cS848o8VfCCziwAAAABJRU5ErkJggg==");
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-position: center;
}

/* basic radio */
.basic-label-left-radio {
  display: flex;
  align-items: center;
}

.radio-label {
  min-width: 158px;
  cursor: default;
  font-weight: 500;
}

.basic-label-left-radio + .basic-label-left {
  margin-top: 16px;
}

.basic-radio {
  font-weight: 500;
  white-space: nowrap;
}

.basic-radio input[type="radio"] {
  margin: 0;
  margin-right: 4px;
  width: 20px;
  height: 20px;
  appearance: none;
  background-image: url('//image.chosun.com/cds/icon/radio-uncheck.svg');
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
}

.basic-radio input[type="radio"]:checked {
  background-image: url('//image.chosun.com/cds/icon/radio-check.svg');
}

.basic-radio input[type="radio"]:checked + span {
  font-weight: 700;
}

.basic-radio + .basic-radio {
  margin-left: 24px;
}

.radio-box {
  width: 100%;
  display: flex;
  align-items: center;
  height: 46px;
}

/* basic select */
.custom-select-wrapper {
  width: 100%;
  position: relative;
}

.custom-select-wrapper:after {
  content: '';
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 24px; /* SVG 크기 */
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%3Cg%20id%3D%22Icon%22%3E%3Cpath%20id%3D%22Stroke-1%22%20d%3D%22M17.142%208.2998L18.5561%209.71414L12.278%2015.9911L6%209.71414L7.41409%208.2998L12.2779%2013.1622L17.142%208.2998Z%22%20fill%3D%22%23222222%22/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain; /* SVG 크기 조정 */
  background-repeat: no-repeat; /* 이미지 반복 제거 */
  pointer-events: none; /* 화살표 눌러도 셀렉트 태그 작동하게 */
}

.basic-select {
  appearance: none; /* 브라우저 기본 화살표 제거 */
  background: var(--bg-white-surface-30);
  border: 1px solid var(--border-grey-40);
  border-radius: 4px;
  padding: 12px 44px 12px 12px; /* 오른쪽 공간 확보 */
  font-size: 16px;
  width: 100%;
  cursor: pointer;
  color: var(--text-grey-60);
  font-weight: 400;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  line-height: 22px;
}

.basic-select:valid {
  color: var(--text-black);
  font-weight: 700;
}

#next-grey60-icon {
  background-image: url('//image.chosun.com/cds/icon/next-grey60.svg'); /* SVG 파일 경로 */
}

.checkbox-help-text {
  margin-left: 24px;
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-grey-60);
}

/* separator */
.separator {
  margin: 16px 0;
  border-top: 1px solid var(--border-grey-20);
}

/* 모바일용 납부 방법 모달 */
.modal {
  position: fixed;
  z-index: 20;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-title {
  padding: 0 16px;
  color: var(--text-grey-80);
}

.modal-content {
  background: var(--bg-white);
  margin: 0 auto;
  width: 100%;
  border-radius: 20px 20px 0px 0px;
  position: fixed;
  bottom: 0;
  height: auto;
  padding-top: 54px;
}

.payment-options, .duration-options {
  padding: 16px;
}

.payment-options .list-type-btn, .duration-options .list-type-btn {
  margin-bottom: 16px;
}

.hidden {
  display: none;
}

.modal-close-btn, .tooltip-close {
  position: absolute;
  top: 20px;
  right: 16px;
  width: 24px;
  height: 24px;
  background-image: url('//image.chosun.com/cds/icon/modal-close.svg'); /* SVG URL */
  cursor: pointer;
  background-size: auto;
  background-repeat: no-repeat;
  background-position: center;
}


/* 툴팁 */
#noti-tooltip {
  width: 578px;
  position: absolute;
  right: 0;
  top: 35px;
  border-radius: 4px;
  background: var(--bg-white-surface-20);
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.20);
  padding: 36px 24px 24px 24px;
  z-index: 100;
}

#tooltip-title {
  text-align: left;
  font-size: 16px;
  margin-bottom: 12px;
}

.tooltip-close {
  top: 12px;
  right: 12px;
}

#tooltip-body li {
  font-size: 14px;
  list-style: disc;
  color: var(--text-grey-80);
  margin-left: 12px;
  margin-bottom: 6px;
}

#tooltip-body li::marker {
  font-size: 10px;
  color: var(--text-grey-60);
}

#tooltip-body li:last-child {
  margin-bottom: 0;
}

.open-noti-tooltip {
  border: 1px solid var(--border-grey-20);
  background: var(--bg-white-surface-30);
  color: var(--text-grey-80);
  padding: 3px 10px 3px 6px;
  font-size: 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.open-noti-tooltip svg {
  margin-right: 2px;
}

/* 토스트 */
.toast-message {
  position: fixed;
  width: 80%;
  bottom: -60px; /* 초기에는 화면 밖에 배치 */
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-red);
  color: var(--text-white-static);
  padding: 8px 12px 8px 16px;
  font-size: 16px;
  transition: transform 0.5s ease, bottom 0.5s ease;
  z-index: 9999;
}

.toast-message.error {
  background: var(--bg-red);
}

.toast-message.success {
  background: var(--bg-blue);
}

/* 토스트 메시지가 나타날 때 */
.toast-message.show {
  bottom: 32px; /* 화면 아래에서 위로 올라옴 */
}

.toast-text {
  display: flex;
  align-items: flex-start;
  width: 80%;
}

.toast-text:before {
  content: '';
  display: inline-block;
  min-width: 24px;
  height: 24px;
  background-image: url('//image.chosun.com/cds/icon/error-white.svg');
  background-size: contain; /* SVG 크기 조정 */
  background-repeat: no-repeat; /* 이미지 반복 제거 */
  cursor: pointer;
  margin-right: 4px;
}

.toast-close {
  position: absolute;
  border: none;
  top: 50%;
  transform: translateY(-50%); /* 수직 중앙 정렬 */
  right: 12px;
  width: 24px;
  height: 24px;
  background-image: url('//image.chosun.com/cds/icon/close-white.svg'); /* SVG URL */
  background-size: contain; /* SVG 크기 조정 */
  background-repeat: no-repeat; /* 이미지 반복 제거 */
  cursor: pointer;
}

/* 완료 페이지 */
.container.complete {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.link-btn-box {
  display: flex;
  width: 100%;
}

.link-btn-box a {
  height: unset;
}

.link-btn-box a:hover {
  text-decoration: none;
}

a.btn-large.sub {
  color: 707070;
}

a.btn-large {
  color: var(--text-white);
}

.container.complete .content {
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 16px;
  padding: 0 16px;
}

.content-tit {
  font-size: 24px;
}

.content-detail {
  text-align: center;
  margin-top: 24px;
}

.check-animation {
  width: 90px;
  height: 90px;
  background-image: url('https://image.chosun.com/arc/membership_subscribe/assets/animation-bg.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-bottom: 24px;
}

.container.complete {
  padding: 0;
  min-height: calc(100vh - 174px);
}

.container.complete + #footer {
  margin-top: 0;
}

@media screen and (max-width: 1279px) {
  #footer {
      display: block;
  }
}

/* 태블릿 대응 */
@media only screen and (max-width: 985px) and (min-width: 690px) {
}

/* 모바일 대응 */
@media only screen and (max-width: 689px) {
  .subscribe-paper-nav {
    height: 48px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
  }
  
  .subscribe-paper-nav a {
    height: 24px;
  }
  
  .logo-img {
    width: 118px;
  }

  .header .title {
    font-size: 18px;
    position: fixed;
    top: 48px;
    display: block;
    background: #F1F3F5;
    width: 100%;
    left: 0;
    padding-top: 18px;
    padding-bottom: 18px;
    z-index: 9;
  }

  .container {
    /* min-height: calc(100vh - 126px); */
    padding-top: 100px;
    padding-bottom: 112px;
  }

  .back-btn {
    display: none;
  }

  .back-btn-mobile {
    border: none;
    display: block;
    position: fixed;
    top: 68px;
    left: 16px;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='25' viewBox='0 0 24 25' fill='none'%3E%3Cmask id='path-1-inside-1_15818_71486' fill='white'%3E%3Cpath d='M13.0659 6.63184L7.99658 11.7002H20.0005V13.2998H7.86572L13.0659 18.5L11.9341 19.6318L4.86865 12.5654L11.9341 5.5L13.0659 6.63184Z'/%3E%3C/mask%3E%3Cpath d='M13.0659 6.63184L7.99658 11.7002H20.0005V13.2998H7.86572L13.0659 18.5L11.9341 19.6318L4.86865 12.5654L11.9341 5.5L13.0659 6.63184Z' fill='%23222222'/%3E%3Cpath d='M13.0659 6.63184L14.2679 7.83403L15.4702 6.63195L14.268 5.42975L13.0659 6.63184ZM7.99658 11.7002L6.79462 10.498L3.89186 13.4002H7.99658V11.7002ZM20.0005 11.7002H21.7005V10.0002H20.0005V11.7002ZM20.0005 13.2998V14.9998H21.7005V13.2998H20.0005ZM7.86572 13.2998V11.5998H3.76156L6.66364 14.5019L7.86572 13.2998ZM13.0659 18.5L14.268 19.7021L15.4701 18.5L14.268 17.2979L13.0659 18.5ZM11.9341 19.6318L10.7319 20.8338L11.934 22.0361L13.1362 20.8339L11.9341 19.6318ZM4.86865 12.5654L3.66657 11.3633L2.46457 12.5653L3.66649 13.7674L4.86865 12.5654ZM11.9341 5.5L13.1362 4.29792L11.9341 3.09584L10.732 4.29792L11.9341 5.5ZM13.0659 6.63184L11.864 5.42964L6.79462 10.498L7.99658 11.7002L9.19855 12.9024L14.2679 7.83403L13.0659 6.63184ZM7.99658 11.7002V13.4002H20.0005V11.7002V10.0002H7.99658V11.7002ZM20.0005 11.7002H18.3005V13.2998H20.0005H21.7005V11.7002H20.0005ZM20.0005 13.2998V11.5998H7.86572V13.2998V14.9998H20.0005V13.2998ZM7.86572 13.2998L6.66364 14.5019L11.8638 19.7021L13.0659 18.5L14.268 17.2979L9.0678 12.0977L7.86572 13.2998ZM13.0659 18.5L11.8638 17.2979L10.732 18.4298L11.9341 19.6318L13.1362 20.8339L14.268 19.7021L13.0659 18.5ZM11.9341 19.6318L13.1362 18.4298L6.07082 11.3634L4.86865 12.5654L3.66649 13.7674L10.7319 20.8338L11.9341 19.6318ZM4.86865 12.5654L6.07073 13.7675L13.1362 6.70208L11.9341 5.5L10.732 4.29792L3.66657 11.3633L4.86865 12.5654ZM11.9341 5.5L10.732 6.70208L11.8638 7.83392L13.0659 6.63184L14.268 5.42975L13.1362 4.29792L11.9341 5.5Z' fill='%23222222' mask='url(%23path-1-inside-1_15818_71486)'/%3E%3C/svg%3E");
    background-size: contain; /* SVG 크기 조정 */
    background-repeat: no-repeat; /* 이미지 반복 제거 */
    z-index: 9;
  }

  .progress-container {
    margin-top: 26px;
  }

  .welcome, .welcome.last {
    margin-top: 15px;
    margin-bottom: 24px;
    padding: 16px;
  }

  .section {
    margin-bottom: 40px;
    padding: 24px 16px;
  }

  .agreement, .sub-duration {
    margin-bottom: 0;
  }

  #account-cash-receipt-section {
    margin-bottom: 40px;
    margin-top: -24px;
  }

  /* 공통 라벨 인풋 세트 */
  .basic-label-left,
  .basic-label-left-radio,
  .review-item {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .review-item + .review-item {
    border-top: 1px solid var(--border-grey-20);
    padding-top: 12px;
    margin-top: 12px;
  }

  .basic-label-left label, .radio-label {
    margin-bottom: 6px;
  }


  .basic-label-left.error:after,
  .basic-label-left.success:after
  {
    top: 69%;
  }

  .btn-box .btn-large, .btn-large.submit {
    position: fixed;
    bottom: 0;
    left: 16px;
    width: calc(100% - 32px);
    margin-bottom: 16px;
    z-index: 10;
  }

  .review-item dt {
    margin-bottom: 2px;
  }

  .review-box {
    display: flex;
    flex-wrap: wrap;
  }

  .gift-items {
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
  }

  .image-checkbox {
    display: flex;
  }

  .image-checkbox + .image-checkbox {
    border-top: 1px solid var(--border-grey-20);
    padding-top: 16px;
  }

  #one-year-gift .gift-items img {
    width: 80px;
    height: 80px;
  }

  #three-month-gift .gift-items img {
    width: 80px;
    height: 106px;
  }

  .gift-info {
    margin-left: 12px;
  }

  .payment-list-btns, .duration-list-btns  {
    grid-template-columns: repeat(1, 1fr);
  }


  .container.complete {
    min-height: calc(100vh - 78px)
  }
  
  /* footer가 사라지면서 바틈에 픽스드된 버튼과 마지막 엘리먼트 사이 요소 간격은 컨테이너 자체의 패딩바틈으로 해결 */
  #sub-duration,
  .section.sub-payment-check
  {
    margin-bottom: unset;
  }

  #footer {
    display: none;
    margin-top: 56px;
    /* 한가지 문제가 있음, 다음버튼이 없는 스텝에서는 padding-bottom이 사실상 불필요함 */
    /* 그렇다고 다음 버튼이 없는 경우에만 따로 padding-bottom을 제거하고,*/
    /* min-height를 정석 값인 100vh-215로 돌려놓는 건 리소스가 너무 듬 */
    padding-bottom: 76px; 
    height: 112px;
    /* border: none; */
  }

  .footer-inner {
    padding-top: 24px;
    display: flex;
  }


  #noti-tooltip {
    width: inherit;
    right: 0;
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .edit-btn-box {
    position: fixed;
    bottom: 0;
    left: 16px;
    width: calc(100% - 32px);
    margin-bottom: 16px;
    z-index: 10;
  }

  .link-btn-box {
    width: 92%;
    margin-bottom: 16px;
  }

  .input-help-text {
    left: 0;
  }

  body.modal-open {
    position: fixed;
  }

  .fixed-btn-bg {
    background: #F1F3F5;
    display: block;
    position: fixed;
    height: 76px;
    bottom: 0;
    width: 100%;
  }

  .check-animation {
    width: 64px;
    height: 64px;
  }
}

/* 삼성폰 글꼴 키울 시 넘어가는 이슈 예비 대응 */
@media only screen and (max-width: 360px) {
  .basic-radio + .basic-radio {
    margin-left : calc((100% - 232px) / 2);
  }
}


html {
  --text-black: #222;
  --text-white: #fff;
  --text-grey-80: #707070;
  --text-grey-60: #999;
  --text-grey-40: #d7d7d7;
  --text-red: #c81616;
  --text-blue: #126ccd;
  --bg-black: #222;
  --bg-white: #fff;
  --bg-grey-80: #707070;
  --bg-grey-40: #d7d7d7;
  --bg-grey-20: #eaeaea;
  --bg-grey-10: #f7f7f7;
  --bg-red: #c81616;
  --bg-blue: #126ccd;
  --border-black: #222;
  --border-grey-40: #d7d7d7;
  --border-grey-20: #eaeaea;
  --border-grey-10: #f7f7f7;
  --border-red: #c81616;
  --border-blue: #126ccd;
  
  /* 스테틱 컬러 */
  --text-white-static: #fff;

  /* 하이라이트 컬러, 서페이스 위에 올라간 컴포넌트가 묻힐 경우 강조 */
  --high-grey-10: #f7f7f7;

  /* 서페이스 화이트 */
  --bg-white-surface-10: #fff;
  --bg-white-surface-20: #fff;
  --bg-white-surface-30: #fff;

  /* 스페셜 컬러 */
  --bg-light-blue: rgba(27, 159, 255, 0.08);;
}

/* 다크모드 대응 */
@media (prefers-color-scheme: dark) {
  body, .container {
    background: #222;
  }

  nav.simple a svg path {
    fill: #fff;
  }

  .basic-label-left.error:after {
    background-image: url('//image.chosun.com/cds/icon/error-dark.svg'); /* SVG URL */
  }
  
  .basic-label-left.success:after {
    background-image: url('//image.chosun.com/cds/icon/success-check-dark.svg'); /* SVG URL */
  }

  .success-check {
  background-image: url('//image.chosun.com/cds/icon/success-check-dark.svg'); /* SVG 파일 경로 */
  }

  .sub-checkbox-group input[type="checkbox"],
  .basic-checkbox input[type="checkbox"] {
    background-image: url('//image.chosun.com/cds/icon/box-uncheck-dark.svg');
  }

  .sub-checkbox-group input[type="checkbox"]:checked,
  .basic-checkbox input[type="checkbox"]:checked {
    background-image: url('//image.chosun.com/cds/icon/box-check-dark.svg');
  }

  .basic-radio input[type="radio"] {
    background-image: url('//image.chosun.com/cds/icon/radio-uncheck-dark.svg');
  }
  
  .basic-radio input[type="radio"]:checked {
    background-image: url('//image.chosun.com/cds/icon/radio-check-dark.svg');
  }

  .header .title {
    background: #222;
  }

  #footer {
    background: #222;
  }

  .custom-select-wrapper:after {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M17.142%208.2998L18.5561%209.71414L12.278%2015.9911L6%209.71414L7.41409%208.2998L12.2779%2013.1622L17.142%208.2998Z%22%20fill%3D%22white%22/%3E%3C/svg%3E");
  }

  .back-btn-mobile {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='25' viewBox='0 0 24 25' fill='none'%3E%3Cmask id='path-1-inside-1_12538_61799' fill='white'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M13.0642 6.63137L11.9329 5.5L4.86719 12.5657L11.9329 19.6314L13.0642 18.5L7.86426 13.3H19.9986V11.7H7.9956L13.0642 6.63137Z'/%3E%3C/mask%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M13.0642 6.63137L11.9329 5.5L4.86719 12.5657L11.9329 19.6314L13.0642 18.5L7.86426 13.3H19.9986V11.7H7.9956L13.0642 6.63137Z' fill='white'/%3E%3Cpath d='M11.9329 5.5L13.135 4.29792L11.9329 3.09584L10.7308 4.29792L11.9329 5.5ZM13.0642 6.63137L14.2663 7.83345L15.4684 6.63137L14.2663 5.42929L13.0642 6.63137ZM4.86719 12.5657L3.66511 11.3636L2.46302 12.5657L3.66511 13.7678L4.86719 12.5657ZM11.9329 19.6314L10.7308 20.8335L11.9329 22.0355L13.135 20.8335L11.9329 19.6314ZM13.0642 18.5L14.2663 19.7021L15.4684 18.5L14.2663 17.2979L13.0642 18.5ZM7.86426 13.3V11.6H3.76009L6.66217 14.5021L7.86426 13.3ZM19.9986 13.3V15H21.6986V13.3H19.9986ZM19.9986 11.7H21.6986V10H19.9986V11.7ZM7.9956 11.7L6.79352 10.4979L3.89144 13.4H7.9956V11.7ZM10.7308 6.70208L11.8622 7.83345L14.2663 5.42929L13.135 4.29792L10.7308 6.70208ZM6.06927 13.7678L13.135 6.70208L10.7308 4.29792L3.66511 11.3636L6.06927 13.7678ZM13.135 18.4293L6.06927 11.3636L3.66511 13.7678L10.7308 20.8335L13.135 18.4293ZM11.8622 17.2979L10.7308 18.4293L13.135 20.8335L14.2663 19.7021L11.8622 17.2979ZM6.66217 14.5021L11.8622 19.7021L14.2663 17.2979L9.06634 12.0979L6.66217 14.5021ZM19.9986 11.6H7.86426V15H19.9986V11.6ZM18.2986 11.7V13.3H21.6986V11.7H18.2986ZM7.9956 13.4H19.9986V10H7.9956V13.4ZM11.8622 5.42929L6.79352 10.4979L9.19768 12.9021L14.2663 7.83345L11.8622 5.42929Z' fill='white' mask='url(%23path-1-inside-1_12538_61799)'/%3E%3C/svg%3E");
  }

  html {
    /* 1:1 단순대응 */
    --text-black: #fff;
    --text-white: #222;
    --text-grey-80: #d7d7d7;
    --text-grey-60: #999;
    --text-grey-40: #707070;
    --text-red: #f04348;
    --text-blue: #1b9fff;
    --bg-black: #fff;
    --bg-white: #222;
    --bg-grey-80: #d7d7d7;
    --bg-grey-40: #707070;
    --bg-grey-20: #434343;
    --bg-grey-10: #2d2d2d;
    --bg-red: #f04348;
    --bg-blue: #1b9fff;
    --border-black: #fff;
    --border-grey-40: #707070;
    --border-grey-20: #434343;
    --border-grey-10: #2d2d2d;
    --border-red: #f04348;
    --border-blue: #1b9fff;

    /* 스페셜 컬러 */
    --bg-light-blue: rgba(27, 159, 255, 0.08);

    /* 하이라이트 컬러, 서페이스 위에 올라간 컴포넌트가 묻힐 경우 강조 */
    --high-grey-10: #3e3e3e;

    /* 서페이스 다크 */
    --bg-white-surface-10: #282828;
    --bg-white-surface-20: #2d2d2d;
    --bg-white-surface-30: #363636;
  }

  .dropdown-selection,
  .dropdown-selection .dropdown-menu {
    box-shadow: unset;
  }

  .dropdown-selection #dropdown-icon {
    background-image: url('//image.chosun.com/cds/icon/down-blue-dark.svg')
  }

  .back-btn::before {
    background-image: url('//image.chosun.com/cds/icon/prev-arrow-grey-dark.svg');
  }

  .fixed-btn-bg {
    background: #222;
  }
}
