/* ─── Checkout page — COS-inspired minimal design ─── */

/* ─── Container ─── */
.checkout-page {
    max-width: max(1280px, min(84vw, 3840px));
    margin: 0 auto;
    padding: 0 16px;
    padding-top: 60px;
}

/* ─── Header ─── */
.checkout-header {
    text-align: center;
    padding: 12px 0 24px;
    border-bottom: 1px solid #eee;
}
.checkout-header__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 0.98;
    text-transform: none;
    color: var(--cab-text, #222);
}
.checkout-header__title svg {
    width: 16px;
    height: 16px;
    stroke: #222;
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
}
.checkout-header__step {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #222;
    margin-top: 20px;
}

/* ─── 2-column layout (desktop) ─── */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
    padding-top: 4px;
}

/* ─── Form (left column) ─── */
.checkout-form {
    padding-top: 16px;
}
.checkout-form__section-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #222;
    margin-bottom: 20px;
}
.checkout-form__row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.checkout-form__group {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.checkout-form__group--postal {
    flex: 0 0 140px;
}
.checkout-form__label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 6px;
}
.checkout-input {
    height: 44px;
    padding: 0 12px;
    border: 1px solid #ddd;
    font-size: 0.85rem;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    color: #222;
    background: #fff;
    transition: border-color 0.15s;
}
.checkout-input:focus {
    border-color: #222;
}
.checkout-input--error {
    border-color: #c00;
}
.checkout-input--error:focus {
    border-color: #c00;
}
.checkout-input::placeholder {
    color: #bbb;
}
.checkout-form__hint {
    font-size: 0.7rem;
    color: #999;
    margin-top: 4px;
    font-style: italic;
}
.checkout-form__field-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.85rem;
    color: #333;
    margin-top: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}
.checkout-form__hint-inline {
    color: #999;
    font-style: italic;
    font-size: 0.8rem;
}
.checkout-input--textarea {
    resize: vertical;
    min-height: 80px;
    padding: 10px 12px;
    font-family: inherit;
    line-height: 1.4;
}
.checkout-form__disclaimer {
    font-size: 0.72rem;
    color: #999;
    line-height: 1.45;
    margin-top: 18px;
    margin-bottom: 4px;
}

/* Shared UI form primitives
   Cabinet reuses this layer without depending on checkout-* naming. */
.ui-form-header {
    text-align: center;
    padding: 12px 0 24px;
    border-bottom: 1px solid #eee;
}
.ui-form-header__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #222;
}
.ui-form-header__title svg {
    width: 16px;
    height: 16px;
    stroke: #222;
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
}
.ui-form-header__step {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #222;
    margin-top: 20px;
}
.ui-form {
    padding-top: 16px;
}
.ui-form__section-title {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #222;
    margin-bottom: 20px;
}
.ui-form__row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.ui-form__group {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.ui-form__group--postal {
    flex: 0 0 140px;
}
.ui-form__label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 6px;
}
.ui-input {
    height: 44px;
    padding: 0 12px;
    border: 1px solid #ddd;
    font-size: 0.85rem;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    color: #222;
    background: #fff;
    transition: border-color 0.15s;
}
.ui-input:focus {
    border-color: #222;
}
.ui-input--error {
    border-color: #c00;
}
.ui-input--error:focus {
    border-color: #c00;
}
.ui-input::placeholder {
    color: #bbb;
}
.ui-form__hint {
    font-size: 0.7rem;
    color: #999;
    margin-top: 4px;
    font-style: italic;
}
.ui-form__field-label {
    font-size: 0.85rem;
    color: #333;
    margin-top: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}
.ui-form__hint-inline {
    color: #999;
    font-style: italic;
    font-size: 0.8rem;
}
.ui-input--textarea {
    resize: vertical;
    min-height: 80px;
    padding: 10px 12px;
    font-family: inherit;
    line-height: 1.4;
}
.ui-form__disclaimer {
    font-size: 0.72rem;
    color: #999;
    line-height: 1.45;
    margin-top: 18px;
    margin-bottom: 4px;
}
.ui-phone-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    height: 44px;
    background: #fff;
    transition: border-color 0.15s;
    overflow: hidden;
}
.ui-phone-wrap:focus-within {
    border-color: #222;
}
.ui-phone-wrap--error {
    border-color: #c00;
}
.ui-phone-wrap--error:focus-within {
    border-color: #c00;
}
.ui-phone-wrap > select.ui-phone-wrap__code {
    display: none;
}
.ui-phone-wrap__native {
    display: none;
}
.ui-phone-wrap__code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: none;
    border-right: 1px solid #eee;
    border-radius: 0;
    background-color: #faf8f4;
    color: #444;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    height: 100%;
    min-width: 112px;
    padding: 0 28px 0 12px;
    flex-shrink: 0;
}
.ui-phone-wrap__code:focus {
    outline: none;
}
.ui-phone-wrap__code-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ui-phone-wrap__code-caret {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #777;
    border-bottom: 1.5px solid #777;
    transform: rotate(45deg) translateY(-1px);
    flex-shrink: 0;
}
.ui-phone-wrap .ui-input--phone {
    border: none;
    height: 100%;
    padding-left: 12px;
    padding-right: 12px;
}
.ui-phone-wrap .ui-input--phone:focus {
    border: none;
}

/* Phone input with country code selector */
.checkout-phone-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    height: 44px;
    background: #fff;
    transition: border-color 0.15s;
    overflow: hidden;
}
.checkout-phone-wrap:focus-within {
    border-color: #222;
}
.checkout-phone-wrap--error {
    border-color: #c00;
}
.checkout-phone-wrap--error:focus-within {
    border-color: #c00;
}
.checkout-phone-wrap > select.checkout-phone-wrap__code {
    display: none;
}
.checkout-phone-wrap__native {
    display: none;
}
.checkout-phone-wrap__code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: none;
    border-right: 1px solid #eee;
    border-radius: 0;
    background-color: #faf8f4;
    color: #444;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    height: 100%;
    min-width: 112px;
    padding: 0 28px 0 12px;
    flex-shrink: 0;
}
.checkout-phone-wrap__code:focus {
    outline: none;
}
.checkout-phone-wrap__code-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.checkout-phone-wrap__code-caret {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #777;
    border-bottom: 1.5px solid #777;
    transform: rotate(45deg) translateY(-1px);
    flex-shrink: 0;
}
.checkout-phone-wrap .checkout-input--phone {
    border: none;
    height: 100%;
    padding-left: 12px;
    padding-right: 12px;
}
.checkout-phone-wrap .checkout-input--phone:focus {
    border: none;
}

.checkout-country-picker[hidden] {
    display: none !important;
}
.checkout-country-picker {
    position: fixed;
    inset: 0;
    z-index: 1200;
}
.checkout-country-picker__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 18, 14, 0.42);
}
.checkout-country-picker__sheet {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, calc(100vw - 24px));
    max-height: min(78vh, 640px);
    background: #fffdf9;
    border: 1px solid #d8d1c7;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
}
.checkout-country-picker__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
}
.checkout-country-picker__title {
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #222;
}
.checkout-country-picker__close {
    border: none;
    background: none;
    padding: 0;
    color: #777;
    font: inherit;
    cursor: pointer;
}
.checkout-country-picker__search {
    padding: 0 16px 12px;
    border-bottom: 1px solid #ece5da;
}
.checkout-country-picker__input {
    width: 100%;
    height: 42px;
    border: 1px solid #d9d2c8;
    background: #fff;
    padding: 0 12px;
    font: inherit;
    font-size: 0.9rem;
    color: #222;
}
.checkout-country-picker__input:focus {
    outline: none;
    border-color: #222;
}
.checkout-country-picker__list {
    padding: 8px;
    overflow-y: auto;
}
.checkout-country-picker__option {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: #222;
}
.checkout-country-picker__option:hover,
.checkout-country-picker__option:focus {
    background: #f7f2ea;
    outline: none;
}
.checkout-country-picker__option--active {
    background: #f2ebe1;
    border-color: #ddd1bd;
}
.checkout-country-picker__option-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.checkout-country-picker__option-title {
    font-size: 0.9rem;
}
.checkout-country-picker__option-meta {
    font-size: 0.78rem;
    color: #7a746a;
}
.checkout-country-picker__option-check {
    flex-shrink: 0;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a746a;
}
.checkout-country-picker__empty {
    padding: 18px 12px 22px;
    font-size: 0.82rem;
    color: #777;
    text-align: center;
}

/* ─── Delivery method radios ─── */
.checkout-delivery {
    margin-bottom: 20px;
}
.checkout-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    user-select: none;
}
.checkout-radio:first-of-type {
    border-top: 1px solid #f0f0f0;
}
.checkout-radio input[type="radio"] {
    display: none;
}
.checkout-radio__mark {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.15s;
}
.checkout-radio input[type="radio"]:checked + .checkout-radio__mark {
    border-color: #222;
}
.checkout-radio input[type="radio"]:checked + .checkout-radio__mark::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    background: #222;
    border-radius: 50%;
}
.checkout-radio__text {
    font-size: 0.82rem;
    font-weight: 500;
    color: #222;
}
.checkout-delivery__sub {
    margin-left: 30px;
    margin-top: -4px;
    margin-bottom: 8px;
}
.checkout-radio--sub {
    margin-bottom: 6px;
}
.checkout-radio--sub .checkout-radio__text {
    font-size: 0.78rem;
    font-weight: 400;
    color: #555;
}
.checkout-radio--sub .checkout-radio__mark {
    width: 14px;
    height: 14px;
}
.checkout-radio--sub input[type="radio"]:checked + .checkout-radio__mark::after {
    top: 2px;
    left: 2px;
    width: 6px;
    height: 6px;
}

/* ─── City autocomplete suggest ─── */
.checkout-city-block {
    margin-bottom: 20px;
}
.checkout-city-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.checkout-city-suggest__item {
    padding: 10px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}
.checkout-city-suggest__item:last-child {
    border-bottom: none;
}
.checkout-city-suggest__item:hover {
    background: #f5f5f5;
}

/* PVZ container inside form */
#co-pvz-container {
    margin-top: 12px;
}

/* Submit button */
.checkout-form__submit {
    margin-top: 24px;
    padding-bottom: 40px;
}
.ui-form__submit {
    margin-top: 24px;
    padding-bottom: 40px;
}
.checkout-submit-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: #222;
    color: #fff;
    border: none;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
    font-family: inherit;
}
.ui-submit-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: #222;
    color: #fff;
    border: none;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
    font-family: inherit;
}
.checkout-submit-btn:hover {
    background: #000;
}
.ui-submit-btn:hover {
    background: #000;
}

/* ─── Order summary (right column, desktop) ─── */
.checkout-summary {
    position: sticky;
    top: 70px;
    background: #fff;
    border: 1px solid #eee;
}
.checkout-summary__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #222;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #eee;
}
.checkout-summary__header-icon {
    font-size: 1rem;
    line-height: 1;
    color: #555;
}
.checkout-summary__body {
    padding: 0 16px;
}
.checkout-summary--collapsed .checkout-summary__body {
    display: none;
}
.checkout-summary--collapsed .checkout-summary__header {
    border-bottom: 1px solid #e0e0e0;
}

/* Summary items */
.checkout-summary-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}
.checkout-summary-item:last-child {
    border-bottom: none;
}
.checkout-summary-item__image {
    width: 64px;
    height: 64px;
    object-fit: cover;
    background: #f5f5f5;
    display: block;
    flex-shrink: 0;
}
.checkout-summary-item__info {
    flex: 1;
    min-width: 0;
}
.checkout-summary-item__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}
.checkout-summary-item__name {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #222;
    line-height: 1.3;
}
.checkout-summary-item__price {
    font-size: 0.78rem;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    flex-shrink: 0;
}
.checkout-summary-item__attrs {
    margin-top: 6px;
}
.checkout-summary-item__attr {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #777;
    line-height: 1.5;
}
.checkout-summary-item__attr span:last-child {
    font-weight: 500;
    color: #444;
}

/* Totals */
.checkout-summary__totals {
    padding: 12px 16px;
    border-top: 1px solid #eee;
}
.checkout-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    font-size: 0.82rem;
}
.checkout-summary__row--label {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
}
.checkout-summary__row--promo span {
    color: #2a7d2a;
}
.checkout-summary__row--total {
    border-top: 1px solid #222;
    margin-top: 8px;
    padding-top: 14px;
    font-weight: 700;
    font-size: 0.85rem;
}
.checkout-summary__row--total .checkout-summary__label {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.95rem;
}
.checkout-summary__tax {
    font-size: 0.72rem;
    color: #777;
    font-style: italic;
    font-weight: 400;
}

.checkout-summary__delivery-note {
    margin-top: 10px;
    font-size: 0.72rem;
    color: #888;
    line-height: 1.4;
    font-style: italic;
}

/* Promo code (reuses cart-promo styles from cart.css) */
.checkout-summary__promo {
    padding: 12px 16px;
    border-top: 1px solid #eee;
}

/* ─── Mobile summary (collapsible, top of page) ─── */
.checkout-mobile-summary {
    display: none;
}
.checkout-mobile-summary__toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border: 1px solid #222;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
}
.checkout-mobile-summary__toggle-text {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #222;
    display: flex;
    align-items: center;
    gap: 8px;
}
.checkout-mobile-summary__toggle-icon {
    font-size: 1rem;
    line-height: 1;
}
.checkout-mobile-summary__toggle-total {
    font-size: 0.82rem;
    font-weight: 700;
    color: #222;
}
.checkout-mobile-summary__body {
    display: none;
    border: 1px solid #222;
    border-top: none;
    padding: 0 16px;
}
.checkout-mobile-summary--expanded .checkout-mobile-summary__body {
    display: block;
}

/* Mobile total row (shown when collapsed) */
.checkout-mobile-summary__total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 16px;
    border: 1px solid #222;
    border-top: none;
    font-weight: 700;
    font-size: 0.85rem;
}
.checkout-mobile-summary--expanded .checkout-mobile-summary__total-row {
    display: none;
}
.checkout-mobile-summary__total-row--delivery {
    font-weight: 400;
    font-size: 0.78rem;
    border-bottom: none;
    padding-bottom: 0;
    color: #555;
}
.checkout-mobile-summary__total-label {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
}
.checkout-mobile-summary__total-label small {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #777;
    font-size: 0.72rem;
    font-style: italic;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════ */

@media (max-width: 899px) {
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Desktop summary hidden on mobile */
    .checkout-summary {
        display: none;
    }

    /* Mobile summary visible */
    .checkout-mobile-summary {
        display: block;
        margin-bottom: 16px;
    }

    /* Form adjustments */
    .checkout-form__row {
        flex-direction: column;
        gap: 0;
    }
    .ui-form__row {
        flex-direction: column;
        gap: 0;
    }
    .checkout-form__group {
        margin-bottom: 16px;
    }
    .ui-form__group {
        margin-bottom: 16px;
    }
    .checkout-form__row {
        margin-bottom: 0;
    }
    .ui-form__row {
        margin-bottom: 0;
    }
    .checkout-form__group--postal {
        flex: auto;
    }
    .ui-form__group--postal {
        flex: auto;
    }

    /* Smaller inputs on mobile */
    .checkout-input {
        height: 40px;
    }
    .ui-input {
        height: 40px;
    }
    .checkout-phone-wrap {
        height: 40px;
    }
    .ui-phone-wrap {
        height: 40px;
    }
    .checkout-phone-wrap__code {
        min-width: 96px;
        font-size: 0.78rem;
        padding-left: 10px;
        padding-right: 24px;
    }
    .ui-phone-wrap__code {
        min-width: 96px;
        font-size: 0.78rem;
        padding-left: 10px;
        padding-right: 24px;
    }
    .checkout-country-picker__sheet {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-height: 82vh;
        border-right: none;
        border-bottom: none;
        border-left: none;
        border-radius: 18px 18px 0 0;
    }
    .checkout-country-picker__header {
        padding-top: 14px;
    }
    .checkout-country-picker__input {
        height: 40px;
        font-size: 0.85rem;
    }
    .checkout-country-picker__option {
        padding: 11px 10px;
    }

    /* Summary items smaller */
    .checkout-summary-item__image {
        width: 56px;
        height: 56px;
    }

    /* Header step under title */
    .checkout-header {
        padding: 8px 0 16px;
    }
    .ui-form-header {
        padding: 8px 0 16px;
    }
    .checkout-header__step {
        margin-top: 16px;
    }
    .ui-form-header__step {
        margin-top: 16px;
    }

    .checkout-form__submit {
        padding-bottom: 20px;
    }
    .ui-form__submit {
        padding-bottom: 20px;
    }

    /* ─── Mobile font bump ─── */
    .checkout-header__title,
    .ui-form-header__title {
        font-size: 1.5rem;
    }
    .checkout-header__step,
    .ui-form-header__step {
        font-size: 0.9rem;
    }
    .checkout-form__section-title,
    .ui-form__section-title {
        font-size: 0.9rem;
    }
    .checkout-form__label,
    .ui-form__label {
        font-size: 0.82rem;
    }
    .checkout-input,
    .ui-input {
        font-size: 0.95rem;
    }
    .checkout-form__hint,
    .ui-form__hint {
        font-size: 0.82rem;
    }
    .checkout-form__field-label,
    .ui-form__field-label {
        font-size: 0.95rem;
    }
    .checkout-form__hint-inline,
    .ui-form__hint-inline {
        font-size: 0.9rem;
    }
    .checkout-form__disclaimer,
    .ui-form__disclaimer {
        font-size: 0.82rem;
    }
    .checkout-phone-wrap__code,
    .ui-phone-wrap__code {
        font-size: 0.9rem;
    }
    .checkout-radio__text {
        font-size: 0.95rem;
    }
    .checkout-radio--sub .checkout-radio__text {
        font-size: 0.88rem;
    }
    .checkout-submit-btn,
    .ui-submit-btn {
        font-size: 0.95rem;
    }
    .checkout-city-suggest__item {
        font-size: 0.95rem;
    }
    .checkout-summary__header {
        font-size: 0.9rem;
    }
    .checkout-country-picker__input {
        font-size: 0.95rem;
    }
}

@media (min-width: 900px) {
    .checkout-page {
        padding-top: 85px;
    }
    .checkout-mobile-summary {
        display: none !important;
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .checkout-layout {
        grid-template-columns: 1fr 300px;
        gap: 24px;
    }
}

/* ─── Payment section (step 2, inline below form) ─── */
.checkout-payment-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #222;
}
.checkout-payment {
    padding: 0;
}
.checkout-payment__info {
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}
.checkout-payment__methods {
    margin-bottom: 20px;
}
.checkout-payment__method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: border-color 0.15s;
}
.checkout-payment__method--active,
.checkout-payment__method:hover {
    border-color: #222;
}
.checkout-payment__method input[type="radio"] {
    accent-color: #222;
}
.checkout-payment__method-icon {
    display: flex;
    color: #555;
}
.checkout-payment__form {
    margin-bottom: 16px;
}
.checkout-payment__form .checkout-submit-btn {
    width: 100%;
}
.checkout-payment__text {
    font-size: 0.92rem;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.5;
}
.checkout-payment__alt {
    font-size: 0.78rem;
    color: #999;
    line-height: 1.45;
    margin-top: 12px;
}

/* Disabled form state after proceeding to payment */
.checkout-form input:disabled,
.checkout-form textarea:disabled {
    background: #fafafa;
    color: #666;
}

/* ─── Step 1 accordion (collapsed delivery & contacts) ─── */
.checkout-step1-accordion {
    margin-bottom: 24px;
}
.checkout-step1-accordion__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}
.checkout-step1-accordion__title {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #222;
}
.checkout-step1-accordion__toggle {
    font-size: 0.78rem;
    color: #888;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.checkout-step1-accordion__header:hover .checkout-step1-accordion__toggle {
    color: #222;
}

/* ─── Order confirmation ─── */
.checkout-order-confirm {
    margin-bottom: 24px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}
.checkout-order-confirm__header {
    font-size: 0.92rem;
    margin-bottom: 14px;
    line-height: 1.5;
}
.checkout-order-confirm__row {
    margin-bottom: 8px;
    line-height: 1.5;
}
.checkout-order-confirm__label {
    display: block;
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 2px;
}
.checkout-order-confirm__value {
    display: block;
    font-size: 0.88rem;
    color: #222;
}

/* ─── Price breakdown ─── */
.checkout-price-breakdown {
    margin-bottom: 24px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}
.checkout-price-breakdown__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 0;
    font-size: 0.88rem;
    color: #444;
    line-height: 1.5;
}
.checkout-price-breakdown__row--discount {
    color: #2a7d2a;
}
.checkout-price-breakdown__row--total {
    font-weight: 600;
    color: #222;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid #eee;
}

/* ─── Discount promo block ─── */
.checkout-discount-promo {
    background: #f7f6f2;
    border: 1px solid #e5e3db;
    padding: 18px 20px;
    margin-bottom: 28px;
}
.checkout-discount-promo__text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 8px;
    color: #222;
}
.checkout-discount-promo__note {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 10px;
    line-height: 1.4;
}
.checkout-discount-promo__highlight {
    font-size: 0.95rem;
    color: #222;
    line-height: 1.5;
}

/* ─── Account email section ─── */

.checkout-email-account {
    margin-top: 14px;
}
.checkout-email-account__readonly {
    background: #f5f5f5;
    color: #888;
    cursor: pointer;
}
.checkout-email-account__details {
    margin-top: 8px;
}
.checkout-email-account__hint {
    font-size: 0.78rem;
    color: #999;
    margin-top: 4px;
    line-height: 1.5;
}
.checkout-email-account__link {
    color: #888;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.checkout-email-account__link:hover {
    color: #222;
}
.checkout-email-account__checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 0.82rem;
    color: #555;
}
.checkout-email-account__checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.checkout-email-alt-field {
    margin-top: 8px;
}

/* ─── Payment choice (Step 1) ─── */
.checkout-pay-choice {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.checkout-pay-choice__option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.checkout-pay-choice__option input { display: none; }
.checkout-pay-choice__option--active {
    border-color: #222;
    background: #fafafa;
}
.checkout-pay-choice__icon {
    flex-shrink: 0;
    color: #555;
}
.checkout-pay-choice__option--active .checkout-pay-choice__icon { color: #222; }
.checkout-pay-choice__text {
    font-size: 0.85rem;
    color: #333;
}

/* ─── Order success page ─── */
.checkout-success {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}
.checkout-success__icon {
    margin-bottom: 20px;
}
.checkout-success__title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #222;
    margin-bottom: 12px;
}
.checkout-success__order {
    font-size: 1rem;
    color: #333;
    margin-bottom: 16px;
}
.checkout-success__message {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}
.checkout-success__track {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}
.checkout-success__track a {
    color: #222;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.checkout-success__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.checkout-success__btn {
    padding: 12px 24px;
    border: 1.5px solid #222;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #222;
    text-decoration: none;
    transition: background 0.2s;
}
.checkout-success__btn:hover {
    background: #f5f5f5;
}
.checkout-success__btn--primary {
    background: #222;
    color: #fff;
}
.checkout-success__btn--primary:hover {
    background: #444;
}
@media (max-width: 768px) {
    .checkout-pay-choice {
        flex-direction: column;
    }
    .checkout-success {
        padding: 40px 16px;
    }
    .checkout-success__title {
        font-size: 1.5rem;
    }
    .checkout-success__actions {
        flex-direction: column;
    }
    .checkout-success__btn {
        width: 100%;
        text-align: center;
    }
}
