.kia-cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 10600;
    pointer-events: none;
    visibility: hidden;
    font-family: inherit;
    --kia-keyboard-inset: 0px;
}

.kia-cart-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
    top: 0;
    bottom: auto;
    height: var(--kia-layout-h, 100%);
    max-height: var(--kia-layout-h, 100%);
}

.kia-cart-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.kia-cart-drawer.is-open .kia-cart-drawer__backdrop {
    opacity: 1;
}

.kia-cart-drawer {
    --kia-drawer-foot-h: 76px;
    --kia-thumb-pad: 12px;
}

.kia-cart-drawer__sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0 auto;
    max-width: 480px;
    height: min(94vh, 820px);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -24px 64px rgba(15, 23, 42, 0.22);
    display: flex;
    flex-direction: column;
    transform: translateY(105%);
    transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
}

.kia-cart-drawer.is-open .kia-cart-drawer__sheet {
    transform: translateY(0);
    height: min(calc(var(--kia-layout-h, 100vh) * 0.94), 820px);
    max-height: min(calc(var(--kia-layout-h, 100vh) * 0.94), 820px);
}

.kia-cart-drawer__sheet.is-dragging {
    transition: none !important;
}

.kia-cart-drawer__handle {
    position: relative;
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #cbd5e1;
    margin: 8px auto 0;
    flex-shrink: 0;
    cursor: grab;
    touch-action: none;
}

.kia-cart-drawer__handle::before {
    content: '';
    position: absolute;
    left: -80px;
    right: -80px;
    top: -18px;
    bottom: -18px;
}

.kia-cart-drawer__head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px 8px;
    flex-shrink: 0;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.kia-cart-drawer__head .kia-icon-btn {
    touch-action: manipulation;
    cursor: pointer;
}

.kia-cart-drawer__head:active,
.kia-cart-drawer__handle:active {
    cursor: grabbing;
}

.kia-cart-drawer__head-text {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.kia-cart-drawer__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.kia-cart-drawer__subtitle {
    margin: 4px 0 0;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.kia-icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 14px;
    background: #fff;
    color: #475569;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    flex-shrink: 0;
}

.kia-step-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0 16px 10px;
    flex-shrink: 0;
}

.kia-step-dots span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    transition: width 0.2s, background 0.2s;
}

.kia-step-dots span.is-active {
    width: 22px;
    background: linear-gradient(90deg, #84cc16, #65a30d);
}

.kia-step-dots span.is-done {
    background: #bbf7d0;
}

.kia-cart-drawer__body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
}

.kia-cart-step {
    flex: 1;
    min-height: 0;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.kia-cart-step:not([hidden]) {
    display: flex;
}

.kia-step-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.kia-cart-drawer.is-open .kia-step-scroll,
.kia-cart-drawer.is-open .kia-step-scroll--form {
    scroll-padding-bottom: 16px;
}

/* کیبورد روی فوتر و جمع سبد — نه بالای کیبورد */
.kia-cart-drawer--keyboard-over .kia-cart-drawer__foot,
.kia-cart-drawer--keyboard-over .kia-thumb-zone--cart {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.kia-step-spacer {
    display: none;
}

.kia-thumb-zone {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 4px 0 calc(var(--kia-thumb-pad) + 4px);
    margin-top: auto;
}

.kia-thumb-zone--cart {
    margin-top: 0;
    padding-top: 10px;
    border-top: 1px solid #eef2f7;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, #f8fafc 40%);
}

.kia-cart-drawer--compact .kia-cart-drawer__sheet,
.kia-cart-drawer.is-open .kia-cart-drawer__sheet {
    height: min(calc(var(--kia-layout-h, 100vh) * 0.94), 820px);
    max-height: min(calc(var(--kia-layout-h, 100vh) * 0.94), 820px);
}

@media (max-width: 767px) {
    .kia-cart-drawer.is-open .kia-cart-drawer__sheet,
    .kia-cart-drawer.is-open.kia-cart-drawer--compact .kia-cart-drawer__sheet {
        height: min(calc(var(--kia-layout-h, 100vh) * 0.94), 820px);
        max-height: min(calc(var(--kia-layout-h, 100vh) * 0.94), 820px);
        border-radius: 20px 20px 0 0;
    }

    .kia-cart-drawer__subtitle {
        display: none;
    }

    .kia-cart-drawer:not(.kia-cart-drawer--compact) .kia-thumb-zone--cart {
        max-height: none;
    }

    .kia-cart-drawer--compact .kia-thumb-zone {
        gap: 14px;
        padding-bottom: 12px;
    }

    .kia-cart-step[data-step="auth"] .kia-thumb-zone {
        padding-top: 16px;
        padding-bottom: 28px;
        margin-bottom: 4px;
    }

    .kia-cart-drawer--compact .kia-cart-step[data-step="auth"] .kia-digit-row--phone,
    .kia-cart-drawer--compact .kia-cart-step[data-step="auth"] .kia-digit-row--otp {
        margin-bottom: 4px;
    }

    .kia-cart-drawer--compact:has(.kia-cart-step[data-step="auth"]:not([hidden])) .kia-cart-drawer__body {
        padding-bottom: 8px;
    }

    .kia-cart-drawer--compact:has(.kia-cart-step[data-step="auth"]:not([hidden])) .kia-cart-drawer__foot {
        padding-top: 14px;
        box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.06);
    }

    .kia-cart-step[data-step="address"] .kia-thumb-zone,
    .kia-cart-step[data-step="delivery"] .kia-thumb-zone {
        max-height: calc(92vh - 160px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .kia-cart-drawer__head {
        padding: 8px 14px 4px;
    }

    .kia-step-dots {
        padding-bottom: 6px;
    }

    .kia-step-lead {
        font-size: 0.95rem;
        font-weight: 600;
        color: #334155;
        text-align: center;
        margin-bottom: 2px;
    }

    .kia-digit-row--phone {
        width: 100%;
        justify-content: space-between;
        gap: 3px;
    }

    .kia-digit-row--phone .kia-digit {
        flex: 1 1 0;
        min-width: 0;
        max-width: 34px;
        height: 52px;
        font-size: 1.05rem;
        border-radius: 10px;
    }

    .kia-digit-row--otp {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }

    .kia-digit-row--otp .kia-digit {
        width: 48px;
        height: 56px;
        font-size: 1.35rem;
    }

    .kia-primary-btn,
    .kia-cancel-btn {
        min-height: 56px;
        font-size: 1.05rem;
        border-radius: 18px;
    }

    .kia-cart-drawer__foot {
        padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.08);
    }

    .kia-input {
        min-height: 52px;
        font-size: 16px;
    }

    .kia-cart-drawer .kia-float-input,
    .kia-cart-drawer .kia-location-picker__search {
        font-size: 16px;
    }

    .kia-delivery-card {
        min-height: 56px;
        padding: 16px;
    }
}

.kia-step-lead {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
}

.kia-cart-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kia-cart-list li.kia-cart-line {
    display: grid;
    grid-template-columns: 36px 52px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.kia-cart-remove {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 12px;
    background: #fef2f2;
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
    transition: background 0.15s, transform 0.12s;
}

.kia-cart-remove:active {
    transform: scale(0.94);
    background: #fee2e2;
}

.kia-cart-remove:disabled {
    opacity: 0.45;
    cursor: wait;
}

.kia-cart-thumb-ph {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #f1f5f9;
}

.kia-cart-list img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 12px;
    background: #f1f5f9;
}

.kia-item-meta strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 4px;
}

.kia-item-meta span {
    font-size: 0.75rem;
    color: #94a3b8;
}

.kia-item-price {
    font-size: 0.82rem;
    font-weight: 800;
    color: #15803d;
    white-space: nowrap;
}

.kia-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #94a3b8;
    padding: 32px 0;
}

.kia-empty i {
    font-size: 2rem;
    opacity: 0.5;
}

.kia-summary-card {
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    flex-shrink: 0;
}

.kia-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #64748b;
    padding: 4px 0;
}

.kia-summary-row--main {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
    font-size: 0.95rem;
    color: #0f172a;
}

.kia-summary-row--main strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: #15803d;
}

.kia-shipping-goal {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.kia-shipping-goal__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #475569;
    margin-bottom: 8px;
}

.kia-shipping-goal__head i {
    color: #65a30d;
    margin-left: 4px;
}

.kia-shipping-goal__head span:last-child {
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.kia-shipping-goal__track {
    height: 8px;
    border-radius: 999px;
    background: #ecfdf5;
    overflow: hidden;
    border: 1px solid #dcfce7;
}

.kia-shipping-goal__fill {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #a3e635, #65a30d);
    transition: width 0.4s ease;
}

.kia-shipping-goal__hint {
    margin: 8px 0 0;
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.45;
}

.kia-shipping-goal--compact {
    margin-top: 10px;
    padding-top: 0;
    border: none;
}

.kia-shipping-goal--compact p {
    margin: 0;
    font-size: 0.78rem;
    color: #65a30d;
}

.kia-field-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kia-field-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
}

.kia-input {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 1rem;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.kia-input:focus {
    outline: none;
    border-color: #84cc16;
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.2);
}

.kia-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.kia-digit-row {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: nowrap;
}

.kia-digit-row--phone {
    gap: 4px;
}

.kia-digit-row--phone .kia-digit {
    width: 28px;
    height: 44px;
    font-size: 1rem;
}

@media (min-width: 380px) {
    .kia-digit-row--phone .kia-digit {
        width: 30px;
        height: 46px;
    }
}

.kia-digit-row--otp .kia-digit {
    width: 44px;
    height: 52px;
    font-size: 1.25rem;
}

.kia-digit {
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    padding: 0;
    font-weight: 700;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    -moz-appearance: textfield;
}

.kia-digit::-webkit-outer-spin-button,
.kia-digit::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.kia-digit:focus {
    outline: none;
    border-color: #84cc16;
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.18);
}

.kia-digit.is-fixed {
    background: #f8fafc;
    color: #94a3b8;
    border-style: dashed;
    pointer-events: none;
}

.kia-digit.is-filled {
    border-color: #bbf7d0;
    background: #f7fee7;
}

.kia-link-btn {
    align-self: center;
    margin-top: 4px;
    border: none;
    background: none;
    color: #65a30d;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
}

.kia-link-btn:disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

.kia-otp-timer {
    margin: 6px 0 0;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

.kia-delivery-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kia-delivery-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e8eef5;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    text-align: right;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.kia-delivery-card.is-selected {
    border-color: #84cc16;
    background: linear-gradient(135deg, #f7fee7 0%, #ecfccb 100%);
    box-shadow: 0 4px 14px rgba(101, 163, 13, 0.15);
}

.kia-delivery-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    flex-shrink: 0;
}

.kia-delivery-card.is-selected .kia-delivery-card__icon {
    background: #fff;
    color: #65a30d;
}

.kia-delivery-card__text strong {
    display: block;
    font-size: 0.92rem;
    color: #0f172a;
}

.kia-delivery-card__text small {
    font-size: 0.75rem;
    color: #64748b;
}

.kia-delivery-note {
    margin: 0;
    font-size: 0.78rem;
    color: #64748b;
    text-align: center;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 12px;
}

.kia-cart-drawer__foot {
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid #eef2f7;
    flex-shrink: 0;
}

.kia-foot-actions {
    display: flex;
    direction: ltr;
    align-items: stretch;
    gap: 10px;
}

.kia-cancel-btn {
    flex: 0 0 34%;
    min-height: 52px;
    border: 1.5px solid #fecaca;
    border-radius: 16px;
    background: #fef2f2;
    color: #dc2626;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.12s, background 0.12s;
}

.kia-cancel-btn:active {
    transform: scale(0.98);
    background: #fee2e2;
}

.kia-foot-actions .kia-primary-btn {
    flex: 1;
    width: auto;
}

.kia-primary-btn {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 16px 20px;
    font-size: 1rem;
    font-weight: 800;
    color: #1a2e05;
    background: linear-gradient(180deg, #bef264 0%, #84cc16 55%, #65a30d 100%);
    box-shadow: 0 8px 24px rgba(101, 163, 13, 0.35);
    cursor: pointer;
    transition: transform 0.12s, opacity 0.12s;
}

.kia-primary-btn:active {
    transform: scale(0.98);
}

.kia-primary-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.kia-cart-drawer__error {
    color: #dc2626;
    font-size: 0.8rem;
    margin: 0 0 10px;
    text-align: center;
    line-height: 1.4;
}

html.kia-cart-drawer-open,
body.kia-cart-drawer-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.kia-cart-drawer.is-open {
    overscroll-behavior: contain;
}

@media (min-width: 768px) {
    .kia-cart-drawer__sheet {
        left: 50%;
        right: auto;
        width: min(440px, 94vw);
        transform: translate(-50%, 105%);
        border-radius: 24px;
        bottom: 20px;
    }

    .kia-cart-drawer.is-open .kia-cart-drawer__sheet {
        transform: translate(-50%, 0);
    }

    .kia-cart-drawer__handle {
        display: none;
    }
}

.mobile-nav-item--fab {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 100%;
    z-index: 2;
}

.mobile-nav-fab {
    position: relative;
    top: -18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: linear-gradient(180deg, #9ad84e 0%, #7db82e 100%);
    box-shadow: 0 8px 24px rgba(125, 184, 46, 0.45);
    color: #1a2e05;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
}

.mobile-nav-fab .mobile-nav-badge {
    top: -2px;
    right: -2px;
}

.mobile-nav-fab-label {
    position: absolute;
    bottom: 6px;
    font-size: 10px;
    font-weight: 600;
    color: #7db82e;
    pointer-events: none;
}

@media (min-width: 768px) {
    .mobile-nav-item--fab {
        display: none;
    }
}

/* ——— Modern floating fields & checkout steps ——— */
.kia-step-scroll--form {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 2px 0 12px;
}

.kia-step-lead--title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
}

.kia-callout {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid rgba(132, 204, 22, 0.25);
    font-size: 0.82rem;
    line-height: 1.65;
    color: #334155;
}

.kia-callout i {
    color: #65a30d;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.kia-callout strong {
    color: #166534;
    font-weight: 700;
}

.kia-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.kia-choice-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.12s;
    text-align: center;
}

.kia-choice-card:active {
    transform: scale(0.98);
}

.kia-choice-card.is-selected {
    border-color: #84cc16;
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.18);
    background: linear-gradient(180deg, #fff 0%, #f7fee7 100%);
}

.kia-choice-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.kia-choice-card.is-selected .kia-choice-card__icon {
    background: #84cc16;
    color: #fff;
}

.kia-choice-card__icon--legal {
    background: #eff6ff;
    color: #2563eb;
}

.kia-choice-card.is-selected .kia-choice-card__icon--legal {
    background: #2563eb;
    color: #fff;
}

.kia-choice-card__body strong {
    display: block;
    font-size: 0.95rem;
    color: #0f172a;
}

.kia-choice-card__body small {
    display: block;
    margin-top: 2px;
    font-size: 0.72rem;
    color: #64748b;
}

.kia-legal-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
}

.kia-float-field {
    position: relative;
    width: 100%;
}

.kia-float-input {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px 16px 10px;
    font-size: 1rem;
    color: #0f172a;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.kia-float-input:focus {
    outline: none;
    border-color: #84cc16;
    box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.15);
}

.kia-float-label {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.92rem;
    font-weight: 600;
    color: #94a3b8;
    pointer-events: none;
    transition: top 0.16s, font-size 0.16s, transform 0.16s, color 0.16s;
}

.kia-float-input:focus + .kia-float-label,
.kia-float-input:not(:placeholder-shown) + .kia-float-label {
    top: 10px;
    transform: none;
    font-size: 0.72rem;
    color: #65a30d;
}

.kia-float-field--area .kia-float-textarea {
    min-height: 96px;
    resize: none;
    padding-top: 26px;
    line-height: 1.55;
}

.kia-float-field--area .kia-float-label {
    top: 14px;
    transform: none;
    font-size: 0.72rem;
}

.kia-float-field--area .kia-float-textarea:focus + .kia-float-label,
.kia-float-field--area .kia-float-textarea:not(:placeholder-shown) + .kia-float-label {
    color: #65a30d;
}

.kia-field-hint {
    margin: -6px 0 0;
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.5;
    text-align: center;
}

.kia-auth-scroll {
    padding-top: 8px;
}

.kia-auth-phone-input {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: left;
}

.kia-auth-phone-input.is-invalid,
.kia-auth-phone-input.is-invalid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
}

.kia-auth-phone-input.is-valid,
.kia-auth-phone-input.is-valid:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}

.kia-float-field:has(.kia-auth-phone-input.is-invalid) .kia-float-label {
    color: #dc2626;
}

.kia-float-field:has(.kia-auth-phone-input.is-valid) .kia-float-label {
    color: #16a34a;
}

.kia-auth-scroll .kia-field-block {
    margin-top: 4px;
}

.kia-coupon-step {
    padding-top: 8px;
}

.kia-coupon-step__desc {
    margin: 0 0 8px;
    font-size: 0.86rem;
    line-height: 1.7;
    color: #64748b;
    text-align: center;
}

.kia-coupon-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.kia-coupon-row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.kia-coupon-row__input {
    flex: 1;
    min-width: 0;
    min-height: 52px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 16px;
    letter-spacing: 0.04em;
    background: #f8fafc;
    box-sizing: border-box;
}

.kia-coupon-row__input:focus {
    outline: none;
    border-color: #84cc16;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.15);
}

.kia-coupon-row__apply {
    flex-shrink: 0;
    min-width: 88px;
    min-height: 52px;
    border: none;
    border-radius: 14px;
    padding: 0 18px;
    font-weight: 800;
    font-size: 16px;
    color: #1a2e05;
    background: linear-gradient(180deg, #bef264 0%, #84cc16 100%);
    box-shadow: 0 6px 16px rgba(101, 163, 13, 0.28);
    cursor: pointer;
}

.kia-coupon-row__apply:active {
    transform: scale(0.98);
}

.kia-coupon-step__hint {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.55;
    color: #94a3b8;
    text-align: right;
}

.kia-coupon-step .kia-cart-coupon__login {
    margin-bottom: 16px;
}

.kia-coupon-step .kia-cart-coupon__applied {
    margin-top: 0;
}

.kia-cart-skeleton {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0 12px;
}

.kia-cart-skeleton__row {
    height: 72px;
    border-radius: 16px;
    background: linear-gradient(
        90deg,
        #eef2f7 0%,
        #f8fafc 45%,
        #eef2f7 90%
    );
    background-size: 200% 100%;
    animation: kia-cart-shimmer 1.1s ease-in-out infinite;
}

.kia-cart-skeleton__row--short {
    width: 72%;
    height: 56px;
}

@keyframes kia-cart-shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.kia-cart-drawer--loading .kia-cart-list {
    display: none;
}

.kia-cart-coupon__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kia-cart-coupon__hint {
    margin: 0;
    order: 10;
    font-size: 12px;
    line-height: 1.55;
    color: #94a3b8;
    text-align: right;
}

.kia-cart-coupon__login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.kia-cart-coupon__login-text {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.65;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 12px 14px;
}

.kia-primary-btn--sm {
    min-height: 48px;
    font-size: 0.95rem;
}

.kia-cart-coupon__row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.kia-cart-coupon__input {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 16px;
    background: #f8fafc;
    box-sizing: border-box;
}

.kia-cart-coupon__input:focus {
    outline: none;
    border-color: #84cc16;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.15);
}

.kia-cart-coupon__apply {
    flex-shrink: 0;
    min-height: 48px;
    border: none;
    border-radius: 14px;
    padding: 0 18px;
    font-weight: 700;
    font-size: 16px;
    color: #1a2e05;
    background: linear-gradient(180deg, #bef264 0%, #84cc16 100%);
    cursor: pointer;
}

.kia-cart-coupon__applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f0fdf4;
    color: #166534;
    font-size: 0.85rem;
    font-weight: 600;
}

.kia-cart-coupon__applied i {
    color: #22c55e;
}

.kia-req {
    color: #ef4444;
}

.kia-opt {
    font-weight: 500;
    color: #94a3b8;
    font-size: 0.68rem;
}

.kia-float-trigger {
    position: relative;
    width: 100%;
    min-height: 56px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px 36px 10px 12px;
    background: #fff;
    text-align: right;
    cursor: pointer;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.kia-float-trigger:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.kia-float-trigger:not(:disabled):hover {
    border-color: #cbd5e1;
}

.kia-float-trigger.is-filled,
.kia-float-trigger:focus-visible {
    outline: none;
    border-color: #84cc16;
    box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.12);
}

.kia-float-trigger .kia-float-label {
    top: 10px;
    transform: none;
    font-size: 0.72rem;
}

.kia-float-trigger__value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kia-float-trigger__value.is-placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.kia-float-trigger i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.75rem;
}

.kia-address-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 4px;
    padding: 4px;
    border-radius: 16px;
    background: #f1f5f9;
}

.kia-address-tab {
    min-height: 42px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #64748b;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
}

.kia-address-tab.is-active {
    background: #fff;
    color: #3f6212;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.kia-block-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.02em;
}

.kia-saved-address-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.kia-saved-address-card {
    width: 100%;
    text-align: right;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.kia-saved-address-card.is-selected {
    border-color: #84cc16;
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.15);
}

.kia-saved-address-card__head {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.kia-saved-address-card__body {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.5;
}

.kia-new-address-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
}

.kia-new-address-btn.is-active {
    border-color: #84cc16;
    background: #f7fee7;
    color: #3f6212;
}

.kia-saved-addresses.is-composing .kia-saved-address-list {
    display: none;
}

.kia-saved-addresses.is-composing .kia-new-address-btn {
    margin-bottom: 12px;
}

.kia-new-address-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kia-new-address-form[hidden] {
    display: none !important;
}

.kia-location-picker {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.kia-location-picker:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}

.kia-location-picker__sheet {
    max-height: 78%;
    background: #fff;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

.kia-location-picker:not([hidden]) .kia-location-picker__sheet {
    transform: translateY(0);
}

.kia-location-picker__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 8px;
    border-bottom: 1px solid #f1f5f9;
}

.kia-location-picker__title {
    flex: 1;
    margin: 0;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 800;
}

.kia-location-picker__spacer {
    width: 40px;
    flex-shrink: 0;
}

.kia-location-picker__search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 14px;
    padding: 0 14px;
    border-radius: 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.kia-location-picker__search-wrap i {
    color: #94a3b8;
    font-size: 0.85rem;
}

.kia-location-picker__search {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 0.95rem;
    outline: none;
}

.kia-location-picker__list {
    list-style: none;
    margin: 0;
    padding: 0 8px calc(12px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.kia-location-picker__item {
    width: 100%;
    text-align: right;
    padding: 14px 12px;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
}

.kia-location-picker__item:hover,
.kia-location-picker__item:focus-visible {
    background: #f0fdf4;
    outline: none;
}

.kia-location-picker__item.is-active {
    color: #65a30d;
}

.kia-cart-drawer--picker-open .kia-cart-drawer__foot {
    opacity: 0.35;
    pointer-events: none;
}
