/* ── 최종 제출 로딩 오버레이 — 가입 뷰는 ka.fe.css 를 로드하지 않으므로 여기서 정의.
   #page_loading 은 loadingAni 가 동적 생성하는 요소(고유 id)라 기존 레이아웃엔 영향 없음.
   fixed 전체 덮개로 업로드 중 피드백 + 하단 폼 클릭 차단(중복 제출 방지). ── */
#page_loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 150;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Pretendard', 'Apple SD Gothic Neo', sans-serif !important;
    font-size: 1rem;
    color: var(--text-default) !important;
    background: var(--surface-white) !important;
    -webkit-font-smoothing: antialiased !important;
}

input {
    outline: none;
    -webkit-appearance: none;
    font-family: inherit;
    font-size: inherit;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
}

select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input::placeholder {
    color: var(--text-secondary);
}

button {
    font-family: inherit;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: inherit;
}

button:focus,
button:-webkit-autofill,
button:-webkit-autofill:hover,
button:-webkit-autofill:focus,
button:-webkit-autofill:active {
    outline: none !important;
}

p {
    margin: 0;
}

img {
    display: block;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
    -webkit-transition: background-color 9999s ease-out;
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
}

a:hover {
    text-decoration: none !important;
}

button:focus-visible {
    outline: none;
}

/* ── PC Layout ── */
#layout {
    display: flex;
    min-height: 100svh;
}

#left-panel {
    width: 27.5rem;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100svh;
    display: none;
    overflow: hidden;
    background: #1a1a1a;
}

#left-panel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

#left-tagline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    height: 16rem;
    padding: 7.25rem 2.5rem 5rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
    display: flex;
    align-items: flex-end;
}

#left-tagline p {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: -0.012rem;
    line-height: 2rem;
    margin: 0;
}

#right-content {
    flex: 1;
    display: flex;
    justify-content: center;
    width: 100%;
}

#pc-footer {
    display: none;
    border-top: 1px solid var(--divider-gray-light);
    padding: 1rem 1.25rem;
    background: var(--surface-white);
}

#pc-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#pc-footer .copy {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: -0.006rem;
    line-height: 1.125rem;
}

#pc-footer .links {
    display: flex;
    align-items: center;
    gap: 0;
}

#pc-footer .flink {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: -0.006rem;
}

#pc-footer .fsep {
    margin: 0 0.5rem;
    font-size: 0.75rem;
    color: var(--text-gray2);
}

@media (min-width: 64rem) {
    #left-panel {
        display: block;
    }

    #pc-footer {
        display: block;
    }

    #email-dropdown {
        position: fixed;
    }

    .overlay {
        left: 27.5rem;
    }

    .footer {
        display: none !important;
    }
}

/* ── App ── */
#app {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    width: 100%;
    max-width: 35rem;
    background: var(--surface-white);
}

/* ── Header ── */
body .header {
    display: flex;
    align-items: center;
    height: 3.5rem !important;
    padding: 0 1.25rem;
    background: var(--surface-white);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: none;
    line-height: normal;
}

.header__back {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.25rem;
    flex-shrink: 0;
}

.header__title {
    flex: 1;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.008rem;
}

.header__lang {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: -0.007rem;
    border-bottom: 1.5px solid var(--border-selected);
    padding-bottom: 2px;
    line-height: 1;
    color: var(--text-default, #252525);
    font-size: 14px;
}

/* ── Step Indicator ── */
.step-indicator {
    display: flex;
    gap: 0.375rem;
    padding: 0 1.25rem;
    background: var(--surface-white);
}

.step-bar-wrap {
    flex: 1;
    height: 0.625rem;
    display: flex;
    align-items: center;
    padding: 0;
    background: none;
    border: none;
}

/* Bootstrap 의 button:not(:disabled){cursor:pointer}(0,1,1)를 이기려면 (0,2,0) 필요 — 인디케이터는 클릭 불가 */
.step-indicator .step-bar-wrap {
    cursor: default;
}

.step-bar-track {
    width: 100%;
    height: 0.1875rem;
    border-radius: 31.25rem;
    background: var(--surface-gray-light);
    position: relative;
    overflow: hidden;
}

.step-bar-fill {
    position: absolute;
    inset: 0;
    background: var(--status-primary);
    border-radius: 31.25rem;
    transform-origin: left center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Page title & subtitle ── */
.section-title {
    padding: 2rem 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.section-title h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-default);
    letter-spacing: -0.012rem;
    line-height: 2rem;
    margin: 0;
    white-space: pre-line;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.section-title p {
    font-size: 0.9375rem;
    color: var(--text-gray-dark);
    letter-spacing: -0.0075rem;
    line-height: 1.4375rem;
    margin: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-title {
    padding: 2rem 1.25rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-default);
    letter-spacing: -0.012rem;
    line-height: 2rem;
    margin: 0;
    white-space: pre-line;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-sub {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-gray-dark);
    letter-spacing: -0.0075rem;
    line-height: 1.4375rem;
    margin: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.page-sub.fade-out {
    opacity: 0;
    transform: translateY(0.25rem);
}

/* ── Fade ── */
.fade-out {
    opacity: 0 !important;
    transform: translateY(0.25rem) !important;
}

/* ── Field ── */
.field-wrap {
    border: 1px solid var(--border-gray);
    border-radius: 0.25rem;
    background: var(--surface-white);
    transition: border-color 0.1s;
}

.field-wrap:hover:not(.disabled) {
    border-color: var(--border-gray-dark1);
}

.field-wrap:focus-within:not(.disabled) {
    border-color: var(--border-selected);
}

.field-wrap.error,
.select-wrap.error {
    border-color: var(--border-error) !important;
}

.field-wrap.disabled {
    background: var(--surface-gray-lighter2);
    border-color: var(--border-gray) !important;
    cursor: default;
    pointer-events: none;
}

.field-wrap.addr-click {
    cursor: pointer;
    background: var(--surface-white);
}

.field-row {
    height: 3.25rem;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.5rem;
    overflow: hidden;
}

.field-row span {
    line-height: normal;
}

.icon-btn {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.enter-icon-wrap {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Field wrap input ── */
.field-row input {
    flex: 1;
    font-size: 1rem;
    color: var(--text-default);
    letter-spacing: -0.008rem;
    min-width: 0;
}

/* ── Labels & errors ── */
.sec-label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.007rem;
    line-height: 1.25rem;
    margin: 0 0 0.625rem;
}

.err-text {
    color: var(--text-error);
    margin: 10px 0 0;
}

/* ── Inner small button ── */
.inner-btn {
    display: flex;
    height: 2rem;
    padding: 0 0.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    border: 1px solid var(--border-gray-dark2);
    background: var(--surface-white);
    color: var(--text-default);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: -0.007rem;
    flex-shrink: 0;
    white-space: nowrap;
    cursor: pointer;
}

.inner-btn:hover {
    border-color: var(--border-gray-dark);
}

/* ── Main CTA button ── */
.btn-main {
    display: flex;
    height: 3.25rem;
    padding: 0 1rem;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    width: 100%;
    border-radius: 0.375rem;
    background: var(--surface-default);
    color: var(--text-white);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.008rem;
    line-height: 1.5rem;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-main:hover:not(:disabled):not(.disabled) {
    background: var(--surface-gray-darker);
}

.btn-main:disabled,
.btn-main.disabled {
    background: var(--surface-disabled);
    border: 1px solid var(--border-gray-dark2);
    cursor: default;
}

/* ── Select ── */
.select-wrap {
    position: relative;
    border: 1px solid var(--border-gray);
    border-radius: 0.25rem;
    background: var(--surface-white);
    transition: border-color 0.1s;
}

.select-wrap:hover {
    border-color: var(--border-gray-dark1);
}

.select-wrap select {
    width: 100%;
    height: 3.25rem;
    padding: 0 2.5rem 0 1rem;
    font-size: 1rem;
    color: var(--text-default);
    letter-spacing: -0.008rem;
    background: var(--surface-white);
}

.select-wrap select.placeholder {
    color: var(--text-secondary);
}

.select-wrap select.field-wrap {
    border: 1px solid var(--border-gray);
    border-radius: 0.25rem;
    outline: none;
}

.select-wrap select:focus {
    border-color: var(--border-selected);
}

.select-wrap select.placeholder {
    color: var(--text-secondary);
}

.select-chevron {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* ── Address rows ── */
.addr-clickable {
    cursor: pointer;
}

.field-wrap.disabled .inner-btn {
    pointer-events: auto;
}

.field-wrap.disabled.addr-click {
    pointer-events: auto;
    cursor: pointer;
}

.field-wrap.disabled .icon-btn,
.field-wrap.disabled .show-hide-btn {
    display: none !important;
}

/* ── Section reveal ── */
.section-reveal {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.38s ease-in-out;
}

.section-reveal.open {
    grid-template-rows: 1fr;
}

.section-reveal-inner {
    min-height: 0;
    overflow: hidden;
    overflow: clip;
}

/* ── Animations ── */
@keyframes titleFade {
    from {
        opacity: 0;
        transform: translateY(0.25rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(0.5rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.section-new {
    animation: slideUp 0.4s ease-out 0.3s both;
}

.section-fade {
    animation: fadeIn 0.32s ease-out 0.35s both;
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastSlideDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(1rem);
    }
}

.toast-enter {
    animation: toastSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.toast-leave {
    animation: toastSlideDown 0.3s ease-in forwards;
}

/* ── Sticky CTA (is-stuck state) ── */
.sticky-cta,
.inline-btn-wrap,
.btn-sticky,
.save-sticky {
    transition: padding-top 0.15s, padding-bottom 0.15s;
}

.sticky-cta.is-stuck,
.inline-btn-wrap.is-stuck,
.btn-sticky.is-stuck,
.save-sticky.is-stuck {
    padding-top: 0.625rem !important;
    padding-bottom: 0.625rem !important;
}

/* ── File card ── */
.file-list-wrap {
    display: flex;
    padding: 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    background: var(--surface-gray-lighter1);
    margin: 0 -1.25rem;
}

.file-card {
    display: flex;
    min-height: 8.75rem;
    align-items: flex-start;
    gap: 1rem;
    align-self: stretch;
    border-radius: 0.5rem;
    border: 1px solid var(--divider-gray-light);
    background: var(--surface-white);
    box-shadow: 0 2px 0.625rem 0 rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

@media (min-width: 48rem) {
    .file-card {
        min-height: 7.5rem;
    }
}

.file-thumb-wrap {
    display: flex;
    padding: 0.5rem 0 0.5rem 0.5rem;
    align-items: center;
    align-self: stretch;
}

.file-thumb {
    position: relative;
    width: 8.75rem;
    min-width: 8.75rem;
    align-self: stretch;
    border-radius: 0.25rem;
    border: 1px solid var(--surface-gray-lighter1);
    background: var(--surface-gray-lighter1);
    overflow: hidden;
}

.file-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.file-right {
    display: flex;
    padding: 1rem 1rem 0.75rem 0;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    flex: 1;
    align-self: stretch;
}

/* ── Chip system — 베이스(.chip) + 사이즈(.small/.medium2) + 상태(.default/.selected/.disabled) ── */
.chip-group {
    display: flex;
    align-items: center;
    gap: 0.5rem 0.375rem;
    flex-wrap: wrap;
    align-self: stretch;
    line-height: normal;
}

.chip {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 31.25rem;
    border: none;
    letter-spacing: -0.007rem;
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
}
.chip.small {
    /* height: 2.25rem;
    padding: 0 1rem; */

    min-height: 2.25rem;
    padding: 5px 1rem;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;

    background-color: orange;
}
.chip.medium2 {
    height: 2.5rem;
    padding: 0 1rem;
    gap: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 600;
}

.chip.default {
    background: var(--surface-gray-light);
    color: var(--text-gray-darker);
}
.chip.default:hover {
    background: var(--surface-gray);
}
.chip.selected {
    background: var(--surface-primary);
    color: var(--text-white);
}
.chip.disabled {
    background: var(--surface-gray-lighter2);
    color: var(--text-disabled);
    border: 1px solid var(--border-gray-light);
    cursor: default;
}

.file-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.file-action-btn {
    font-size: 0.8125rem;
    color: var(--text-default);
    letter-spacing: -0.0065rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ── Guide modal ── */
.doc-modal-content {
    padding: 0.5rem 1.25rem 1.5rem;
}

@media (min-width: 48rem) {
    .doc-modal-content {
        padding: 0.5rem 1.25rem 1.25rem;
    }
}

.guide-step {
    display: flex;
    gap: 0.5rem;
}

.guide-num-col {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.guide-num {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--surface-default);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-num span {
    color: var(--text-white);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25rem;
    letter-spacing: -0.0075rem;
}

.guide-line {
    position: absolute;
    top: 1.5rem;
    bottom: 0;
    width: 1px;
    background: var(--surface-default);
}

.guide-body {
    flex: 1;
    padding-bottom: 1.5rem;
}

.guide-body.last {
    padding-bottom: 0;
}

.guide-title {
    color: var(--text-default);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.625rem;
    letter-spacing: -0.009rem;
    margin: 0;
    white-space: pre-line;
}

.guide-sub {
    color: var(--text-gray-dark);
    margin: 0.125rem 0 0;
}

.guide-infobox {
    background: var(--surface-gray-lighter2);
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.guide-info-title {
    color: var(--text-default);
    margin: 0 0 0.125rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.guide-info-desc {
    color: var(--text-gray-dark);
    margin: 0;
}

.badge-req {
    display: inline-flex;
    height: 1.375rem;
    padding: 0 0.375rem;
    align-items: center;
    border-radius: 0.25rem;
    border: 1px solid #fbb89b;
    background: var(--surface-white);
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: -0.006rem;
    white-space: nowrap;
    animation: badge-req-blink 1.2s ease-in-out infinite;
}
.badge-opt {
    display: inline-flex;
    height: 1.375rem;
    padding: 0 0.375rem;
    align-items: center;
    border-radius: 0.25rem;
    border: 1px solid var(--border-gray);
    background: var(--surface-white);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: -0.006rem;
    white-space: nowrap;
}
@keyframes badge-req-blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* ── Modal chrome ── */
.modal-header {
    position: relative;
    display: flex;
    height: 3.5rem;
    padding: 0 1.25rem;
    align-items: center;
    border-bottom: none;
}

.mi-sheet .modal-header {
    border-bottom: none;
    padding: 0 20px;
    align-items: center;
}

.modal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.008rem;
    white-space: nowrap;
    color: var(--text-default);
}

.mi-sheet .modal-title {
    line-height: normal;
}

.modal-close {
    margin-left: auto;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
}

/* ── 안내 모달 shell (mi-*) — step2(해외개인)/step3(사업자) 가이드 모달 공용 ── */
.mi-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.mi-sheet {
    background: var(--surface-white);
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 1.25rem 1.25rem 0 0;
    max-height: 90vh;
    overflow-y: auto;
}

.mi-content {
    padding: 1.5rem 1.25rem;
}

/* .mi-footer {
    padding: 1.25rem;
} */

.mi-footer {
    padding: 0.625rem 1.25rem;
    padding-bottom: max(env(safe-area-inset-bottom, 0rem), 0.625rem);
}

@media (min-width: 48rem) {
    .mi-footer {
        padding: 1.25rem;
    }
}

@media (min-width: 48rem) {
    .mi-overlay {
        align-items: center;
    }

    .mi-sheet {
        max-width: 27.5rem;
        border-radius: 0.5rem;
    }
}

#modal-warning.modal {
    padding: 0 !important;
    text-align: left !important;
}

#modal-warning .modal-dialog {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    margin: 0;
}

#modal-warning .modal-content {
    border: none;
    border-radius: 20px 20px 0 0;
    background: #fff;
    box-shadow: 0 -2px 10px 0 rgba(0, 0, 0, 0.16);
}

#modal-warning .sheet-close {
    display: block !important;
    padding: 0 !important;
    height: 2.5rem !important;
}

#modal-warning .sheet-close button {
    position: absolute !important;
    top: 1rem !important;
    right: 1.25rem !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
    box-shadow: none !important;
    line-height: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* #modal-warning .sheet-title {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.0063rem !important;
    line-height: 1.75rem !important;
    white-space: pre-line !important;
    color: var(--text-default) !important;
    margin: 0 !important;
    text-align: left !important;
} */

#modal-warning .sheet-btns {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    padding: 0.625rem 1.25rem !important;
    margin: 0 !important;
}

@media (min-width: 48rem) {
    #modal-warning .modal-dialog {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin: auto !important;
        max-width: 27.5rem !important;
        top: 50% !important;
        translate: 0 -50% !important;
    }
    #modal-warning .modal-content {
        border-radius: 0.5rem !important;
        border: 1px solid var(--divider-gray-light) !important;
        box-shadow: 0 2px 0.625rem rgba(0, 0, 0, 0.08) !important;
        padding-bottom: 0 !important;
    }
}

#modal-warning .sheet-btns {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    padding: 0.625rem 1.25rem !important;
    margin: 0 !important;
}

@media (min-width: 48rem) {
    #modal-warning .sheet-btns {
        padding: 1.25rem !important;
    }
}

/* ── Checkbox (.ocheck) — Step1/Complete 공용. always 시 체크 아이콘 항상 표시 ── */
.ocheck {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    border: 1px solid var(--border-gray);
    background: var(--surface-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s, border-color 0.1s;
    cursor: pointer;
}
.ocheck.checked {
    background: var(--surface-primary);
    border-color: var(--border-primary);
}
.ocheck svg {
    display: none;
}
.ocheck.checked svg {
    display: block;
}
.ocheck.always svg {
    display: block;
}
.ocheck svg path {
    stroke: #fff;
}
.ocheck.always:not(.checked) svg path {
    stroke: var(--border-gray-dark2);
}

/* ── Radio dot (.radio) — Step1/Complete 공용 ── */
.radio {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--surface-white);
    border: 2px solid var(--border-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}
.radio.checked {
    border: 0.4062rem solid var(--border-primary);
}

/* ── Section utilities ── */
.label-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.625rem;
}

.label-row .sec-label {
    margin-bottom: 0;
}

/* ── Sheet chrome ── */
.sheet-close {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1.25rem 0;
}

.sheet-body {
    padding: 0 1.25rem 1.5rem;
}

.sheet-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.0063rem;
    line-height: 1.75rem;
    white-space: pre-line;
    margin-bottom: 0;
}

.mo-br {
    display: none;
}

.pc-br {
    display: block;
}

@media (max-width: 47.999rem) {
    .mo-br {
        display: block;
    }
    .pc-br {
        display: none;
    }
}

@media (max-width: 320px) {
    .mo-br,
    .pc-br {
        display: none;
    }
}

.sheet-sub {
    font-size: 0.9375rem;
    font-weight: 400;
    color: var(--text-default);
    margin-bottom: 0;
    margin-top: 0.5rem;
    line-height: 1.4375rem;
    letter-spacing: -0.0075rem;
}

/* ── Sheet buttons ── */
.sheet-btns {
    display: flex;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
}

@media (min-width: 48rem) {
    .sheet-btns {
        padding: 1.25rem;
    }
}

/* ── Sheet buttons — column stack variant ──
   .sheet-btns 의 기본 가로 flex(1:1) 분할을 끄고 두 버튼을 세로로 stretch.
   .sheet-btns 와 함께 사용. */
.sheet-btns-col {
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
}

/* ── 신규 디자인 시스템 버튼 ── */
.btn-solid-black-large {
    display: flex;
    height: 3.25rem;
    padding: 0 1rem;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    width: 100%;
    border-radius: 0.375rem;
    background: var(--surface-default);
    color: var(--text-white);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.008rem;
    line-height: 1.5rem;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}
.btn-solid-black-large:hover {
    color: var(--text-white);
    text-decoration: none;
}
.btn-solid-black-large:hover:not(:disabled):not(.disabled) {
    background: var(--surface-gray-darker);
    color: #fff;
}
.btn-solid-black-large:disabled,
.btn-solid-black-large.disabled {
    background: var(--surface-disabled);
    border: 1px solid var(--border-gray-dark2);
    cursor: default;
}

.btn-solid-cancel-large {
    flex: 1;
    height: 3.25rem;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border-radius: 0.375rem;
    background: var(--surface-gray-light);
    border: none;
    color: var(--text-gray-darker);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5rem;
    letter-spacing: -0.008rem;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
}
.btn-solid-cancel-large:hover {
    background: var(--surface-gray);
    color: var(--text-gray-darker);
    text-decoration: none;
}

.btn-outlined-secondary-large {
    display: flex;
    height: 3.25rem;
    padding: 0 1rem;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border-gray-dark2);
    background: var(--surface-white);
    color: var(--text-default);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.008rem;
    cursor: pointer;
    transition: border-color 0.15s;
    text-decoration: none;
}
.btn-outlined-secondary-large:hover {
    border-color: var(--border-gray-dark);
    color: var(--text-default);
    text-decoration: none;
}

.btn-outlined-secondary-medium2 {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    height: 2.5rem;
    padding: 0 1rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border-gray-dark2);
    background: var(--surface-white);
    color: var(--text-default);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.008rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color 0.15s;
    text-decoration: none;
}
.btn-outlined-secondary-medium2:hover {
    border-color: var(--border-gray-dark);
    color: var(--text-default);
    text-decoration: none;
}

.btn-solid-white-medium2 {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    height: 2.5rem;
    padding: 0 1rem;
    border-radius: 0.375rem;
    border: none;
    background: var(--surface-white);
    color: var(--text-default);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.008rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
    text-decoration: none;
}
.btn-solid-white-medium2:hover {
    background: var(--surface-gray-lighter1);
    color: var(--text-default);
    text-decoration: none;
}

.btn-solid-primary-medium2 {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    height: 2.5rem;
    padding: 0 1rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border-primary);
    background: var(--surface-primary);
    color: var(--text-white);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.008rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}
.btn-solid-primary-medium2:hover {
    background: linear-gradient(rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.06)), var(--surface-primary);
    color: var(--text-white);
    text-decoration: none;
}

/* sheet-btns 안에서 신규 버튼이 가로 분할 + sheet-btns-col 에서 세로 stretch 호환 */
.sheet-btns .btn-solid-black-large,
.sheet-btns .btn-solid-cancel-large {
    flex: 1;
    width: auto;
}
.sheet-btns-col .btn-solid-black-large,
.sheet-btns-col .btn-solid-cancel-large {
    flex: none;
    align-self: stretch;
}

/* ── Overlay / Bottom-sheet ── */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

@media (min-width: 48rem) {
    .overlay {
        align-items: center;
    }
}

.overlay > div {
    height: auto;
}

.bottom-sheet {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: var(--surface-white);
    border-radius: 1.25rem 1.25rem 0 0;
    box-shadow: 0 -2px 0.3125rem rgba(0, 0, 0, 0.16);
}

@media (min-width: 48rem) {
    .bottom-sheet {
        max-width: 27.5rem;
        border-radius: 0.5rem;
        border: 1px solid var(--divider-gray-light);
        box-shadow: 0 2px 0.625rem rgba(0, 0, 0, 0.08);
        padding-bottom: 0;
    }

    .sheet-body {
        padding-bottom: 1.25rem;
    }
}

/* ── 우편번호 검색 (Daum Postcode embed) ── */
.postcode-sheet {
    width: 100%;
    max-width: 100%;
    background: var(--surface-white);
    border-radius: 1.25rem 1.25rem 0 0;
    box-shadow: 0 -2px 0.3125rem rgba(0, 0, 0, 0.16);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.postcode-sheet__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.25rem;
    padding: 0 0.5rem 0 1.25rem;
    flex-shrink: 0;
    border-bottom: 1px solid var(--divider-gray-light);
}
.postcode-sheet__title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.008rem;
}
.postcode-sheet__close {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.postcode-embed {
    width: 100%;
    height: 28rem;
}
@media (min-width: 48rem) {
    .postcode-sheet {
        max-width: 30rem;
        border-radius: 0.5rem;
        border: 1px solid var(--divider-gray-light);
    }
    .postcode-embed {
        height: 30rem;
    }
}

/* ── Footer ── */
.footer {
    border-top: 1px solid var(--divider-gray-light);
    padding: 0.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    margin-top: auto;
}

.footer__copy {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: -0.006rem;
    line-height: 1.125rem;
    text-align: center;
    margin-bottom: 0;
}

.footer__links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__link {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: -0.006rem;
    line-height: 1.125rem;
}

.footer__sep {
    width: 1px;
    height: 0.75rem;
    background: var(--surface-gray);
}

/* ── Toast ── */
#toast-wrap {
    position: fixed;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 50;
    padding: 0 1.25rem;
    pointer-events: none;
    transition: bottom 0.15s;
}
/* sticky CTA 가 바닥에 붙은 경우 그 높이만큼 토스트를 위로 올린다 */
html.has-sticky-cta #toast-wrap {
    bottom: calc(1.25rem + var(--sticky-cta-h, 0px));
}
/* PC 에서 토스트는 #app(우측 본문 영역) 기준으로 가운데 정렬 */
@media (min-width: 64rem) {
    #toast-wrap {
        left: var(--app-left, 27.5rem);
        width: var(--app-width, calc(100% - 27.5rem));
        right: auto;
    }
}

/* #toast-wrap 으로 감싼 ID specificity 로 Bootstrap .toast (흰 배경) override */
#toast-wrap .toast {
    max-width: 35rem;
    width: 100%;
    padding: 0.8125rem 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 31.25rem;
    background: rgba(106, 106, 106, 0.9);
    color: var(--text-white);
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25rem;
    letter-spacing: -0.0037rem;
    border: 0;
    box-shadow: none;
}

/* ── Email dropdown ── */
#email-dropdown {
    position: fixed;
    z-index: 200;
    background: var(--surface-white);
    border: 1px solid var(--border-gray);
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    display: none;
}

.email-option {
    width: 100%;
    text-align: left;
    padding: 0 1rem;
    height: 3rem;
    display: flex;
    align-items: center;
    font-size: 0.9375rem;
    color: var(--text-default);
    letter-spacing: -0.0075rem;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

.email-option:hover,
.email-option.active {
    background: var(--surface-gray-lighter1);
}

/* ── Misc ── */
.hidden {
    display: none !important;
}

/* ── 검색 가능한 국가 선택 (makeCountrySearch — step2 해외주소, complete 주소) ── */
.select-trigger {
    width: 100%;
    height: 3.25rem;
    padding: 0 2.5rem 0 1rem;
    border: none;
    background: var(--surface-white);
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    letter-spacing: -0.008rem;
    color: var(--text-default);
    cursor: pointer;
}
.select-trigger.placeholder {
    color: var(--text-secondary);
}
.country-dd {
    position: absolute;
    z-index: 200;
    display: none;
    flex-direction: column;
    background: var(--surface-white);
    border: 1px solid var(--border-gray);
    border-radius: 0.25rem;
    box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.1);
    max-height: 25rem;
    overflow: hidden;
}
.country-dd.open {
    display: flex;
}
.country-dd-search-wrap {
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-gray);
}
.country-dd-search {
    width: 100%;
    height: 3rem;
    padding: 0 1.25rem;
    border: none;
    font-family: inherit;
    font-size: 0.9375rem;
    letter-spacing: -0.0075rem;
    color: var(--text-default);
}
.country-dd-search::placeholder {
    color: var(--text-secondary);
}
.country-dd-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.375rem 0;
}
.country-dd-option {
    display: flex;
    align-items: center;
    width: 100%;
    height: 2.5rem;
    padding: 0 1.25rem;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.9375rem;
    letter-spacing: -0.0075rem;
    color: var(--text-default);
    text-align: left;
    cursor: pointer;
}
.country-dd-option:hover,
.country-dd-option.active {
    background: var(--surface-gray-lighter1);
}
.country-dd-empty {
    margin: 0;
    padding: 1.625rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}
