/* =========================================
   CHECKOUT HEADER
========================================= */

.checkout-header {

    padding: 70px 0 45px;

    background: var(--cream);

    border-bottom: 1px solid var(--border);

}

.checkout-container {

    width: min(1250px, 90%);

    margin: auto;

}

.checkout-header .section-eyebrow {

    color: var(--gold);

}

.checkout-header h1 {

    margin-top: 12px;

    font-family: var(--serif);

    font-size: clamp(48px, 5vw, 70px);

    font-weight: 400;

    line-height: .95;

}


/* =========================================
   CHECKOUT STEPS
========================================= */

.checkout-steps {

    display: flex;

    gap: 35px;

    margin-top: 35px;

}

.checkout-steps span {

    position: relative;

    padding-bottom: 8px;

    font-size: 8px;

    font-weight: 500;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    color: #999;

}

.checkout-steps span.active {

    color: var(--black);

}

.checkout-steps span.active::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: 0;

    width: 100%;

    height: 1px;

    background: var(--black);

}


/* =========================================
   SECTION
========================================= */

.checkout-section {

    padding: 70px 0 110px;

    background: var(--cream);

}


/* =========================================
   LAYOUT
========================================= */

.checkout-layout {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        390px;

    gap: 65px;

    align-items: start;

}


/* =========================================
   CHECKOUT CARD
========================================= */

.checkout-card {

    padding: 35px 0;

    border-top: 1px solid var(--border);

}

.checkout-card:last-of-type {

    border-bottom: 1px solid var(--border);

}


/* =========================================
   HEADING
========================================= */

.checkout-card-heading {

    margin-bottom: 30px;

}

.checkout-card-heading > div {

    display: flex;

    align-items: center;

    gap: 15px;

}

.checkout-card-heading span {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 27px;

    height: 27px;

    border-radius: 50%;

    background: var(--black);

    color: var(--white);

    font-size: 7px;

    letter-spacing: 1px;

}

.checkout-card-heading h2 {

    font-family: var(--serif);

    font-size: 30px;

    font-weight: 400;

}


/* =========================================
   FORM GRID
========================================= */

.checkout-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 22px 15px;

}

.checkout-field {

    display: flex;

    flex-direction: column;

    gap: 8px;

}

.checkout-field.full {

    grid-column: 1 / -1;

}

.checkout-field label {

    font-size: 8px;

    font-weight: 500;

    letter-spacing: 1.2px;

    text-transform: uppercase;

}

.checkout-field input,
.checkout-field select,
.checkout-field textarea {

    width: 100%;

    padding: 14px 13px;

    border: 1px solid #d7d1c8;

    outline: none;

    border-radius: 0;

    background: #f4f0ea;

    font-family: var(--sans);

    font-size: 10px;

    color: var(--black);

    transition: border .25s ease;

}

.checkout-field textarea {

    resize: vertical;

    min-height: 90px;

}

.checkout-field input:focus,
.checkout-field select:focus,
.checkout-field textarea:focus {

    border-color: var(--black);

}


/* =========================================
   CHECKBOX
========================================= */

.checkbox-row,
.terms-row {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-top: 23px;

    cursor: pointer;

}

.checkbox-row input,
.terms-row input {

    width: 14px;

    height: 14px;

    margin-top: 1px;

    accent-color: var(--black);

}

.checkbox-row span,
.terms-row span {

    font-size: 9px;

    line-height: 1.6;

    color: var(--muted);

}

.terms-row {

    margin: 25px 0;

}

.terms-row a {

    color: var(--black);

    text-decoration: underline;

}


/* =========================================
   DELIVERY OPTIONS
========================================= */

.delivery-option {

    position: relative;

    display: grid;

    grid-template-columns: 18px 1fr auto;

    gap: 13px;

    align-items: center;

    padding: 20px;

    margin-bottom: 10px;

    border: 1px solid var(--border);

    background: #f4f0ea;

    cursor: pointer;

}

.delivery-option.active {

    border-color: var(--black);

}

.delivery-option input {

    position: absolute;

    opacity: 0;

}

.delivery-radio,
.payment-radio {

    width: 15px;

    height: 15px;

    display: block;

    border: 1px solid #999;

    border-radius: 50%;

}

.delivery-option input:checked + .delivery-radio,
.payment-option input:checked + .payment-radio {

    border: 4px solid var(--black);

}

.delivery-option strong,
.payment-option strong {

    display: block;

    margin-bottom: 6px;

    font-size: 10px;

    font-weight: 500;

}

.delivery-option p,
.payment-option p {

    font-size: 8px;

    line-height: 1.6;

    color: var(--muted);

}

.delivery-option b {

    font-size: 9px;

    font-weight: 500;

}


/* =========================================
   PAYMENT
========================================= */

.payment-option {

    position: relative;

    display: grid;

    grid-template-columns: 18px 1fr auto;

    gap: 13px;

    align-items: center;

    padding: 20px;

    margin-bottom: 10px;

    border: 1px solid var(--border);

    background: #f4f0ea;

    cursor: pointer;

}

.payment-option.active {

    border-color: var(--black);

}

.payment-option input {

    position: absolute;

    opacity: 0;

}

.payment-badge {

    padding: 5px 7px;

    background: #e6dfd2;

    color: #70572f;

    font-size: 6px;

    letter-spacing: 1px;

}

.payment-note {

    display: flex;

    gap: 10px;

    margin-top: 22px;

    padding: 17px;

    background: #efebe4;

}

.payment-note span {

    font-family: var(--serif);

    font-size: 22px;

    color: var(--gold);

}

.payment-note p {

    font-size: 8px;

    line-height: 1.7;

    color: var(--muted);

}


/* =========================================
   SUMMARY
========================================= */

.checkout-summary {

    position: sticky;

    top: 25px;

}

.checkout-summary-inner {

    padding: 32px;

    background: #efebe4;

}

.checkout-summary h2 {

    margin-top: 9px;

    padding-bottom: 25px;

    border-bottom: 1px solid var(--border);

    font-family: var(--serif);

    font-size: 35px;

    font-weight: 400;

}


/* =========================================
   PRODUCTS
========================================= */

.checkout-products {

    padding: 20px 0;

    border-bottom: 1px solid var(--border);

}

.checkout-product {

    display: grid;

    grid-template-columns: 65px 1fr auto;

    gap: 12px;

    align-items: center;

    margin-bottom: 18px;

}

.checkout-product:last-child {

    margin-bottom: 0;

}

.checkout-product-image {

    position: relative;

    width: 65px;

    height: 75px;

    background: #ddd7ce;

}

.checkout-product-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}

.checkout-product-image span {

    position: absolute;

    top: -6px;

    right: -6px;

    width: 18px;

    height: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--black);

    color: var(--white);

    font-size: 7px;

}

.checkout-product-info strong {

    display: block;

    margin-bottom: 5px;

    font-family: var(--serif);

    font-size: 16px;

    font-weight: 500;

    line-height: 1.05;

}

.checkout-product-info small {

    font-size: 7px;

    color: var(--muted);

}

.checkout-product > b {

    font-size: 9px;

    font-weight: 500;

}


/* =========================================
   COUPON
========================================= */

.checkout-coupon {

    display: flex;

    margin: 20px 0;

    border-bottom: 1px solid var(--black);

}

.checkout-coupon input {

    flex: 1;

    height: 38px;

    border: 0;

    outline: 0;

    background: transparent;

    font-size: 9px;

}

.checkout-coupon button {

    font-size: 8px;

    font-weight: 500;

    letter-spacing: 1px;

    text-transform: uppercase;

}


/* =========================================
   TOTAL LINES
========================================= */

.checkout-total-lines {

    padding: 5px 0 20px;

}

.checkout-total-lines div {

    display: flex;

    justify-content: space-between;

    margin-bottom: 12px;

    font-size: 9px;

}

.checkout-total-lines span {

    color: var(--muted);

}

.checkout-total-lines strong {

    font-weight: 500;

}


/* =========================================
   TOTAL
========================================= */

.checkout-total {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 22px 0;

    border-top: 1px solid var(--black);

}

.checkout-total span {

    font-family: var(--serif);

    font-size: 23px;

}

.checkout-total strong {

    font-size: 16px;

    font-weight: 500;

}


/* =========================================
   PLACE ORDER
========================================= */

.place-order-button,
.mobile-place-order {

    width: 100%;

    height: 56px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 20px;

    background: var(--black);

    color: var(--white);

    font-size: 8px;

    font-weight: 500;

    letter-spacing: 2px;

    text-transform: uppercase;

    transition: background .3s ease;

}

.place-order-button:hover,
.mobile-place-order:hover {

    background: var(--gold);

}

.place-order-button b {

    font-size: 10px;

    font-weight: 500;

    letter-spacing: 0;

}


/* =========================================
   SECURITY
========================================= */

.checkout-security {

    display: flex;

    gap: 12px;

    margin-top: 20px;

}

.checkout-security div {

    font-family: var(--serif);

    font-size: 28px;

    color: var(--gold);

}

.checkout-security p {

    font-size: 8px;

    line-height: 1.7;

    color: var(--muted);

}


/* =========================================
   MOBILE PLACE ORDER
========================================= */

.mobile-place-order {

    display: none;

}


/* =========================================
   TRUST
========================================= */

.checkout-trust {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    padding: 70px max(5%, calc((100% - 1200px) / 2));

    background: #fff;

    border-top: 1px solid var(--border);

}

.checkout-trust > div {

    padding: 0 35px;

    text-align: center;

    border-right: 1px solid var(--border);

}

.checkout-trust > div:last-child {

    border-right: 0;

}

.checkout-trust span {

    display: block;

    margin-bottom: 12px;

    font-family: var(--serif);

    font-size: 30px;

    color: var(--gold);

}

.checkout-trust strong {

    display: block;

    margin-bottom: 8px;

    font-family: var(--serif);

    font-size: 22px;

    font-weight: 500;

}

.checkout-trust p {

    font-size: 9px;

    line-height: 1.7;

    color: var(--muted);

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 900px) {

    .checkout-layout {

        grid-template-columns: 1fr;

        gap: 45px;

    }

    .checkout-summary {

        position: static;

        order: -1;

    }

}


@media (max-width: 600px) {

    .checkout-header {

        padding: 50px 0 35px;

    }

    .checkout-header h1 {

        font-size: 48px;

    }

    .checkout-steps {

        gap: 18px;

        overflow-x: auto;

        white-space: nowrap;

    }

    .checkout-section {

        padding: 45px 0 70px;

    }

    .checkout-grid {

        grid-template-columns: 1fr;

    }

    .checkout-field.full {

        grid-column: auto;

    }

    .checkout-card {

        padding: 28px 0;

    }

    .checkout-card-heading h2 {

        font-size: 27px;

    }

    .checkout-summary {

        order: -1;

    }

    .checkout-summary-inner {

        padding: 25px;

    }

    .checkout-trust {

        grid-template-columns: 1fr;

        gap: 35px;

        padding: 60px 7%;

    }

    .checkout-trust > div {

        padding: 0 0 30px;

        border-right: 0;

        border-bottom: 1px solid var(--border);

    }

    .checkout-trust > div:last-child {

        border-bottom: 0;

        padding-bottom: 0;

    }

    .place-order-button {

        display: none;

    }

    .mobile-place-order {

        display: flex;

    }

}