﻿.checkout-container {
    width: min(1260px,94vw);
    margin: 26px auto 70px
}

.checkout-heading {
    margin-bottom: 20px
}

    .checkout-heading > span, .checkout-summary > span {
        color: #987066;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: .16em
    }

    .checkout-heading h1 {
        margin: 5px 0 2px;
        font: 700 38px 'Manrope',sans-serif
    }

    .checkout-heading p {
        margin: 0;
        color: var(--cs-muted)
    }

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 340px;
    gap: 22px
}

.checkout-form-card {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--cs-line);
    border-radius: 20px
}

    .checkout-form-card > section + section {
        margin-top: 28px;
        padding-top: 25px;
        border-top: 1px solid #f0e8e5
    }

.checkout-section-title {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px
}

    .checkout-section-title > b {
        width: 30px;
        height: 30px;
        display: grid;
        place-items: center;
        flex: none;
        border-radius: 10px;
        background: #f5e7e3;
        color: #8d645a
    }

    .checkout-section-title h2 {
        margin: 0;
        font: 700 18px 'Manrope',sans-serif
    }

    .checkout-section-title p {
        margin: 3px 0 0;
        color: var(--cs-muted);
        font-size: 12px
    }

.checkout-fields {
    display: grid;
    gap: 14px
}

    .checkout-fields.two-columns {
        grid-template-columns: 1fr 1fr
    }

    .checkout-fields .wide {
        grid-column: 1/-1
    }

    .checkout-fields label {
        display: block;
        margin-bottom: 5px;
        color: #625a58;
        font-size: 12px;
        font-weight: 700
    }

    .checkout-fields input, .checkout-fields select, .checkout-fields textarea {
        width: 100%;
        border: 1px solid var(--cs-line);
        border-radius: 12px;
        background: #fff;
        color: var(--cs-ink);
        font: inherit;
        outline: 0
    }

    .checkout-fields input, .checkout-fields select {
        height: 48px;
        padding: 0 12px
    }

    .checkout-fields textarea {
        padding: 12px;
        resize: vertical
    }

        .checkout-fields input:focus, .checkout-fields select:focus, .checkout-fields textarea:focus {
            border-color: var(--cs-terracotta);
            box-shadow: 0 0 0 4px rgba(211,171,158,.18)
        }

    .checkout-fields span, .checkout-validation {
        color: #a64242;
        font-size: 11px
    }

        .checkout-validation:empty {
            display: none
        }

.checkout-quote {
    margin-top: 14px;
    padding: 10px 14px;
    border: 1px solid #cdb9b2;
    border-radius: 11px;
    background: #fff;
    color: #775e58;
    font-weight: 700
}

.checkout-submit {
    width: 100%;
    height: 50px;
    margin-top: 26px;
    border: 0;
    border-radius: 12px;
    background: var(--cs-ink);
    color: #fff;
    font-weight: 700
}

    .checkout-submit:disabled {
        background: #aaa2a1
    }

.checkout-next-note {
    display: block;
    margin-top: 8px;
    color: var(--cs-muted);
    text-align: center
}

.checkout-summary {
    position: sticky;
    top: 88px;
    align-self: start;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--cs-line);
    border-radius: 19px
}

    .checkout-summary h2 {
        margin: 5px 0 17px;
        font: 700 23px 'Manrope',sans-serif
    }

.checkout-summary-items {
    display: grid;
    gap: 9px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0e8e5
}

    .checkout-summary-items div, .checkout-summary dl div {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        color: var(--cs-muted);
        font-size: 11px
    }

    .checkout-summary-items strong {
        color: var(--cs-ink);
        white-space: nowrap
    }

.checkout-summary dl {
    margin: 13px 0
}

    .checkout-summary dl div {
        padding: 7px 0
    }

.checkout-summary dd {
    margin: 0;
    color: var(--cs-ink)
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 15px;
    border-top: 1px solid #f0e8e5
}

    .checkout-total strong {
        font: 700 23px 'Manrope',sans-serif
    }

.checkout-delivery-message {
    padding: 10px;
    border-radius: 11px;
    background: #f8efec;
    color: #765f5a;
    font-size: 11px
}

    .checkout-delivery-message.success {
        background: #eaf3ed;
        color: #47705d
    }

@media(max-width:900px) {
    .checkout-layout {
        grid-template-columns: 1fr
    }

    .checkout-summary {
        position: static
    }
}

@media(max-width:640px) {
    .checkout-container {
        width: calc(100% - 24px)
    }

    .checkout-form-card {
        padding: 17px
    }

    .checkout-fields.two-columns {
        grid-template-columns: 1fr
    }

    .checkout-fields .wide {
        grid-column: auto
    }

    .checkout-heading h1 {
        font-size: 31px
    }
}

.checkout-back-button {
    width: 100%;
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 11px;
    padding: 10px 15px;
    border: 1px solid #d8c6c0;
    border-radius: 12px;
    background: #fff;
    color: #815f57;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

    .checkout-back-button:hover {
        border-color: #bd958a;
        background: #f8eeeb;
        color: #684943;
        transform: translateY(-1px);
        box-shadow: 0 7px 18px rgba(95, 69, 63, 0.08);
    }

    .checkout-back-button:focus-visible {
        outline: 3px solid rgba(211, 171, 158, 0.35);
        outline-offset: 2px;
    }

    .checkout-back-button span {
        font-size: 15px;
        line-height: 1;
    }