/* 결제 체크아웃 모달 */

/*
 * NicePay 기본 #nice_layer z-index=9999 가 .header-fixed-top(9999) 와 충돌.
 * 결제 중 헤더를 숨기고 레이어를 최상단 fixed 로 올린다.
 */
body.nicepay-paying .header-fixed-top,
body.nicepay-paying .header-mobile-panel {
    visibility: hidden !important;
    pointer-events: none !important;
}

#nice_layer {
    position: fixed !important;
    z-index: 2147483647 !important;
}

#bg_layer {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2147483646 !important;
}

/* 동적으로 열린 상품모달(?)(z-index:10000)보다 확실히 위 — PG iframe 보조 */
#checkoutModal.modal.checkout-modal-overlay {
    z-index: 2147483646 !important;
    position: fixed !important;
}

.checkout-modal-overlay {
    align-items: center;
    justify-content: center;
    z-index: 2147483620 !important;
    padding: 24px 16px;
}

.checkout-modal-shell {
    position: relative;
    width: 100%;
    max-width: 580px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px 20px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
}

.checkout-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    color: #8899a6;
    z-index: 2;
}

.checkout-modal-close:hover {
    color: #334155;
}

.checkout-panel {
    display: none;
}

.checkout-panel.active {
    display: block;
}

#checkoutPanelPreview.checkout-panel.active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    --checkout-wizard-min-h: 520px;
}

.checkout-title {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
}

.checkout-lead {
    margin: 0 0 16px;
    font-size: 0.92rem;
    color: #64748b;
}

.checkout-muted {
    font-size: 0.82rem;
    color: #64748b;
    margin: 8px 0 14px;
    line-height: 1.45;
}

.checkout-muted a {
    color: var(--brand-primary);
    font-weight: 600;
}

/* 장바구니 모달(CartModalService)과 같은 박스 레이아웃 — 체크박스·수량·삭제 없음 */
#checkoutPanelPreview .checkout-line-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 10px;
    background: #f6f8fb;
}

.checkout-cart-item-group {
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 0;
}

.checkout-cart-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.checkout-cart-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.checkout-cart-thumb-h {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #eee;
}

.checkout-cart-thumb-placeholder {
    background: #f1f3f5;
}

.checkout-cart-thumb-r {
    width: 32px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #eee;
    margin-left: 16px;
}

.checkout-cart-head-titlewrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.checkout-cart-prod-title {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-cart-prod-id {
    font-size: 12px;
    color: #777;
}

.checkout-cart-group-rows {
    margin-top: 8px;
}

.checkout-cart-preview-row {
    position: relative;
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px dashed #eee;
    font-size: 0.88rem;
}

.checkout-cart-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.checkout-cart-sku-tip {
    font-size: 12px;
    color: #666;
}

.checkout-cart-unit {
    font-size: 13px;
    color: #222;
}

.checkout-cart-cny-mini {
    font-size: 12px;
    color: #64748b;
}

.checkout-cart-line-total {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    text-align: right;
    min-width: 92px;
}

.checkout-cart-line-cny {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

@media (max-width: 654px) {
    #checkoutModal .checkout-cart-preview-row {
        grid-template-columns: 52px 1fr;
        grid-template-areas:
            'thumb meta meta'
            'thumb total total';
        row-gap: 6px;
    }

    #checkoutModal .checkout-cart-preview-row .checkout-cart-thumb-r,
    #checkoutModal .checkout-cart-preview-row .checkout-cart-thumb-placeholder.checkout-cart-thumb-r {
        grid-area: thumb;
    }

    #checkoutModal .checkout-cart-preview-row .checkout-cart-meta {
        grid-area: meta;
    }

    #checkoutModal .checkout-cart-preview-row .checkout-cart-line-total {
        grid-area: total;
        text-align: left;
        min-width: 0;
    }
}

.checkout-totals {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.92rem;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
}

.checkout-sum-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    line-height: 1.25;
    font-weight: 700;
    text-align: right;
}

.checkout-sum-cny {
    font-size: 0.82em;
    font-weight: 500;
    color: #64748b;
}

.checkout-row.total .checkout-sum-cell {
    font-weight: 800;
}

.checkout-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.checkout-row:last-child {
    margin-bottom: 0;
}

.checkout-row.total {
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px dashed #cbd5e1;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.checkout-address-one-line {
    margin: 4px 0 10px;
    font-size: 0.85rem;
    color: #475569;
    max-width: 100%;
    line-height: 1.35;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.checkout-address-one-line:empty {
    display: none;
}

.checkout-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
    background: #fff;
}

.checkout-shipping-method-block {
    margin-top: 4px;
}

.checkout-shipping-method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.checkout-shipping-method-opt {
    cursor: pointer;
    margin: 0;
}

.checkout-shipping-method-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkout-shipping-method-opt__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 132px;
    padding: 18px 14px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: #fff;
    text-align: center;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.checkout-shipping-icon {
    font-size: 2.25rem;
    line-height: 1;
    color: #64748b;
    transition: color 0.15s;
}

.checkout-shipping-method-opt__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.checkout-shipping-method-opt__title {
    font-weight: 800;
    font-size: 1rem;
    color: #0f172a;
}

.checkout-shipping-method-opt__desc {
    font-size: 0.8rem;
    color: #64748b;
}

.checkout-shipping-method-opt input:checked + .checkout-shipping-method-opt__inner {
    border-color: var(--brand-primary);
    background: var(--brand-primary-light);
    box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.15);
}

.checkout-shipping-method-opt input:checked + .checkout-shipping-method-opt__inner .checkout-shipping-icon {
    color: var(--brand-primary);
}

.checkout-shipping-method-opt input:focus-visible + .checkout-shipping-method-opt__inner {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

.checkout-address-block label {
    display: block;
    margin-bottom: 6px;
}

.checkout-btn-primary,
.checkout-btn-secondary {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.checkout-btn-primary {
    background: linear-gradient(180deg, var(--brand-primary-hover), var(--brand-primary));
    color: #fff;
}

.checkout-btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #cbd5e1;
    color: #64748b;
}

.checkout-btn-secondary {
    background: #fff;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    margin-top: 8px;
}

.checkout-btn-secondary:hover {
    background: var(--brand-primary-light);
}

.checkout-btn-text {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 0.88rem;
    text-decoration: underline;
}

.checkout-pay-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.checkout-pay-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.98rem;
    text-align: left;
    transition: border-color 0.15s, background 0.15s;
}

.checkout-pay-card .tag {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.checkout-pay-card:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.checkout-pay-card.nicepay .tag {
    color: #16a34a;
}

.checkout-pay-card.alipay .tag {
    color: #2563eb;
}

.checkout-pay-card.paypal .tag {
    color: #0070ba;
}

.checkout-paypal-panel {
    margin-top: 10px;
    padding: 14px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #f8fbff;
}

.checkout-paypal-lead {
    margin: 0 0 8px;
    font-size: 0.84rem;
    color: #334155;
}

.checkout-paypal-amount {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #dbeafe;
    background: #fff;
}

.checkout-paypal-amount__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 4px 0;
    font-size: 0.84rem;
    color: #475569;
}

.checkout-paypal-amount__row strong {
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.checkout-paypal-amount__row--charge {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed #e2e8f0;
}

.checkout-paypal-amount__row--usd {
    font-size: 0.92rem;
    color: #0f172a;
}

.checkout-paypal-amount__row--usd strong {
    color: #0070ba;
    font-size: 1.05rem;
}

.checkout-paypal-label {
    display: block;
    margin: 6px 0 3px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
}

.checkout-paypal-field {
    /* PayPal hosted iframe(입력·테두리·포커스)이 잘리지 않도록 여유 높이 */
    min-height: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
    display: block;
    overflow: visible;
    position: relative;
}

.checkout-paypal-field > div {
    width: 100% !important;
    height: 100% !important;
    min-height: 46px !important;
}

.checkout-paypal-field iframe {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    border: 0 !important;
}

.checkout-paypal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.checkout-paypal-fields .checkout-paypal-label:first-child {
    margin-top: 0;
}

.checkout-paypal-card-btn {
    margin: 8px 0 4px;
    min-height: 45px;
}

.checkout-paypal-msg {
    min-height: 1.2em;
    margin: 10px 0;
    font-size: 0.85rem;
    color: #475569;
}

.checkout-paypal-msg.is-error {
    color: #b91c1c;
}

.checkout-paypal-fallback {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #cbd5e1;
}

.checkout-paypal-fallback-text {
    margin: 0 0 8px;
    font-size: 0.84rem;
    color: #64748b;
}

.checkout-order-meta {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.55;
}

.checkout-alert {
    padding: 10px 12px;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.checkout-cart-preview-row.is-blocked {
    pointer-events: none;
}

.checkout-cart-preview-row.is-blocked .checkout-line-blocked-overlay {
    pointer-events: auto;
}

.checkout-line-blocked-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(248, 250, 252, 0.82);
    border-radius: 10px;
    text-align: center;
}

.checkout-line-blocked-label {
    font-size: 0.95rem;
    font-weight: 800;
    color: #b91c1c;
}

.checkout-line-blocked-detail {
    margin: 0;
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.4;
    max-width: 100%;
}

.checkout-line-remove-btn {
    margin-top: 2px;
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    background: #dc2626;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.checkout-line-remove-btn:hover {
    background: #b91c1c;
}

.checkout-pay-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-pay-card.bank {
    border-color: #0d9488;
}

.checkout-bank-panel {
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.checkout-bank-account {
    margin-bottom: 12px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.checkout-bank-row {
    margin-bottom: 10px;
}

.checkout-bank-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.checkout-bank-inputgroup {
    display: flex;
    gap: 6px;
    align-items: center;
}

.checkout-bank-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.checkout-bank-mini {
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-size: 0.82rem;
    cursor: pointer;
}

.checkout-bank-hint {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: #64748b;
}

.checkout-bank-totals {
    margin: 12px 0;
    padding-top: 10px;
    border-top: 1px dashed #cbd5e1;
}

.checkout-bank-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 0.92rem;
}

.checkout-bank-total-row--grand strong {
    color: #0f172a;
    font-size: 1.05rem;
}

.checkout-bank-submit {
    width: 100%;
}

/* 3단계 주문서 작성 */
.checkout-wizard-stage {
    flex: 1;
    min-height: var(--checkout-wizard-min-h, 520px);
    max-height: calc(92vh - 118px);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.checkout-steps {
    display: flex;
    gap: 6px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    flex-shrink: 0;
}

.checkout-steps[hidden],
#checkoutModal [hidden] {
    display: none !important;
}

.checkout-preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex: 1;
    min-height: var(--checkout-wizard-min-h, 520px);
    text-align: center;
    padding: 24px 12px;
}

.checkout-preview-loading__text {
    margin: 0;
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.55;
    max-width: 300px;
}

.checkout-preview-loading__line {
    display: block;
}

.checkout-preview-loading__line--sub {
    margin-top: 6px;
    font-size: 0.86rem;
    color: #94a3b8;
}

.checkout-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: checkout-spin 0.75s linear infinite;
}

@keyframes checkout-spin {
    to {
        transform: rotate(360deg);
    }
}

.checkout-step-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: var(--checkout-wizard-min-h, 520px);
    max-height: 100%;
    min-width: 0;
}

.checkout-step-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding-right: 2px;
    -webkit-overflow-scrolling: touch;
}

.checkout-step-scroll--shipping {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 0 4px;
}

.checkout-lead--step {
    text-align: center;
    margin-bottom: 20px;
}

.checkout-step-footer {
    flex-shrink: 0;
    padding-top: 12px;
}

.checkout-step-footer .checkout-btn-primary,
.checkout-step-footer .checkout-btn-secondary {
    margin-top: 0;
}

#checkoutPanelPreview.is-preview-loading .checkout-wizard-stage {
    min-height: var(--checkout-wizard-min-h, 520px);
}

.checkout-step-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
    cursor: default;
    font: inherit;
    color: #94a3b8;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.checkout-step-tab:not(:disabled) {
    cursor: pointer;
}

.checkout-step-tab.active {
    border-color: var(--brand-primary);
    background: var(--brand-primary-light);
    color: #0f172a;
}

.checkout-step-tab.done {
    border-color: #cbd5e1;
    color: #475569;
}

.checkout-step-tab:disabled {
    opacity: 0.55;
}

.checkout-step-num {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.checkout-step-label {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.checkout-step-panel {
    display: none;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.checkout-step-panel.active {
    display: flex;
}

.checkout-step-actions {
    display: flex;
    gap: 8px;
    margin-top: 0;
}

.checkout-step-actions .checkout-btn-primary,
.checkout-step-actions .checkout-btn-secondary {
    flex: 1;
    margin-top: 0;
}

.checkout-lead--tight {
    margin-bottom: 8px;
}

.checkout-recipient-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.checkout-form-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}

.checkout-form-grid--2 {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 480px) {
    .checkout-form-grid--2 {
        grid-template-columns: 1fr;
    }
}

.checkout-form-group {
    margin-bottom: 10px;
}

.checkout-form-group .auth-field-label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

.checkout-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.92rem;
    background: #fff;
    box-sizing: border-box;
}

.checkout-input:focus {
    outline: 2px solid var(--brand-primary);
    outline-offset: 1px;
    border-color: var(--brand-primary);
}

.checkout-required {
    color: #dc2626;
    font-weight: 700;
}

.checkout-hint {
    margin: 4px 0 0;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
}

.checkout-inline-actions {
    display: flex;
    gap: 6px;
    align-items: stretch;
}

.checkout-inline-actions .checkout-input {
    flex: 1;
    min-width: 0;
}

.checkout-btn-mini {
    flex-shrink: 0;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.checkout-btn-mini--primary {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

.checkout-btn-outline-sm {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    color: #334155;
}

.checkout-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.checkout-radio-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    background: #fff;
    margin: 0;
}

.checkout-radio-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkout-radio-item.selected,
.checkout-radio-item:has(input:checked) {
    border-color: var(--brand-primary);
    background: var(--brand-primary-light);
}

.checkout-verify-status {
    margin-top: 6px;
    font-size: 0.82rem;
    line-height: 1.4;
}

.checkout-verify-status .verify-status {
    padding: 6px 10px;
    border-radius: 6px;
}

.checkout-verify-status .verify-status.success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.checkout-verify-status .verify-status.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.checkout-verify-status .verify-status.pending {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* 주소록·통관 안내 모달 */
.checkout-address-book-modal,
.checkout-customs-guide-modal {
    z-index: 2147483647 !important;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.checkout-address-book-inner,
.checkout-customs-guide-inner {
    width: 100%;
    max-width: 560px;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.22);
}

.checkout-address-book-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.checkout-address-book-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.checkout-address-book-body,
.checkout-customs-guide-body {
    padding: 14px 16px 18px;
}

.checkout-address-book-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 8px;
    background: #f8fafc;
}

.checkout-address-book-item.is-default {
    border-color: var(--brand-primary);
    background: var(--brand-primary-light);
}

.checkout-address-book-item strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.checkout-address-book-item p {
    margin: 0 0 2px;
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.4;
}

.checkout-address-book-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--brand-primary);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    vertical-align: middle;
}

.checkout-guide-box {
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.checkout-guide-box--warn {
    background: #fff3e0;
}

.checkout-guide-box--info {
    background: #e3f2fd;
}

.checkout-guide-box-title {
    margin: 0 0 6px;
    font-weight: 700;
    color: #e65100;
}

.checkout-guide-box-text {
    margin: 0;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.55;
}

.checkout-guide-steps {
    margin: 0 0 14px;
    padding-left: 1.2rem;
    font-size: 0.88rem;
    line-height: 1.7;
    color: #334155;
}

.checkout-guide-link-wrap {
    text-align: center;
    margin: 16px 0;
}

.checkout-guide-ext-link {
    display: inline-block;
    width: auto;
    padding: 12px 24px;
    text-decoration: none;
}

@media (max-width: 480px) {
    #checkoutPanelPreview.active {
        --checkout-wizard-min-h: 480px;
    }

    .checkout-wizard-stage {
        max-height: calc(92vh - 108px);
    }

    .checkout-shipping-icon {
        font-size: 2rem;
    }

    .checkout-shipping-method-opt__inner {
        min-height: 118px;
        padding: 14px 10px;
    }
}
