/* =========================================================
   CHECKOUT INTRO
========================================================= */

.checkout-intro {
    padding: 70px 24px 65px;
    background: #f3f6f0;
}

.intro-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.intro-copy {
    max-width: 650px;
}

.intro-label {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 12px;
    letter-spacing: 0.16em;
    font-weight: 600;
}

.intro-copy h1 {
    margin: 0;
    font-size: clamp(50px, 7vw, 88px);
    line-height: 0.95;
    font-weight: 500;
}

.intro-copy h1 span {
    display: block;
    color: #6f8b6c;
}

.intro-copy p {
    max-width: 520px;
    margin: 25px 0 0;
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   INTRO ART
========================================================= */

.intro-art {
    position: relative;
    width: 210px;
    height: 210px;
    flex-shrink: 0;
}

.art-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #243b2a;
    color: white;
    font-size: 27px;
    font-weight: 600;
}

.art-ring {
    position: absolute;
    border: 1px solid #9cad99;
    border-radius: 50%;
}

.art-ring-one {
    inset: 15px;
}

.art-ring-two {
    inset: 42px;
}


/* =========================================================
   FLASH MESSAGES
========================================================= */

.flash-container {
    max-width: 1200px;
    margin: 25px auto 0;
    padding: 0 24px;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 14px 17px;
    background: #f3f6f0;
    border-left: 3px solid #243b2a;
    font-size: 14px;
}

.flash-message.error,
.flash-message.danger {
    border-left-color: #9b4d4d;
}

.flash-icon {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #243b2a;
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.flash-message.error .flash-icon,
.flash-message.danger .flash-icon {
    background: #9b4d4d;
}


/* =========================================================
   MAIN
========================================================= */

.checkout-main {
    padding: 75px 24px 110px;
}

.checkout-form {
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 75px;
    align-items: start;
}


/* =========================================================
   LEFT SIDE
========================================================= */

.checkout-left {
    min-width: 0;
}

.checkout-section {
    padding-bottom: 55px;
    margin-bottom: 55px;
    border-bottom: 1px solid #dfe3dc;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 35px;
}

.section-number {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #9cad99;
    border-radius: 50%;
    color: #243b2a;
    font-size: 12px;
    font-weight: 600;
}

.section-heading > div:last-child > span {
    display: block;
    margin-bottom: 7px;
    color: #687263;
    font-size: 11px;
    letter-spacing: 0.15em;
    font-weight: 600;
}

.section-heading h2 {
    margin: 0;
    font-size: 27px;
    line-height: 1.25;
    font-weight: 500;
}


/* =========================================================
   FORM GRID
========================================================= */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}


/* =========================================================
   FORM GROUP
========================================================= */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
}

.form-group label small {
    margin-left: 5px;
    color: #687263;
    font-size: 11px;
    font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #d1d8cc;
    border-radius: 0;
    background: white;
    color: #243b2a;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input,
.form-group select {
    height: 50px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #243b2a;
}


/* =========================================================
   DELIVERY OPTIONS
========================================================= */

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.delivery-option {
    position: relative;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border: 1px solid #d7ddd2;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.delivery-option:hover {
    border-color: #6f8b6c;
}

.delivery-option:has(input:checked) {
    border-color: #243b2a;
    background: #f3f6f0;
}

.delivery-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.delivery-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e4eadf;
    font-size: 21px;
}

.delivery-text strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.delivery-text span {
    display: block;
    color: #687263;
    font-size: 13px;
}

.delivery-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #bfc8bb;
    border-radius: 50%;
    color: transparent;
    font-size: 12px;
}

.delivery-option:has(input:checked) .delivery-check {
    border-color: #243b2a;
    background: #243b2a;
    color: white;
}


/* =========================================================
   DELIVERY DETAILS
========================================================= */

.delivery-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 25px;
}

.delivery-details.hidden {
    display: none;
}


/* =========================================================
   PICKUP
========================================================= */

.pickup-message {
    display: none;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f3f6f0;
}

.pickup-message.visible {
    display: flex;
}

.pickup-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e4eadf;
    font-size: 18px;
}

.pickup-message strong {
    display: block;
    margin-bottom: 6px;
}

.pickup-message p {
    margin: 0;
    color: #687263;
    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   NOTES
========================================================= */

.notes-group {
    margin-top: 5px;
}


/* =========================================================
   SECURITY
========================================================= */

.security-note {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f3f6f0;
}

.security-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #243b2a;
    color: white;
    font-size: 14px;
}

.security-note strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.security-note p {
    margin: 0;
    color: #687263;
    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   ORDER SUMMARY
========================================================= */

.order-summary {
    position: sticky;
    top: 30px;
    padding: 30px;
    background: #f3f6f0;
}

.summary-heading > span {
    display: block;
    margin-bottom: 8px;
    color: #687263;
    font-size: 11px;
    letter-spacing: 0.15em;
    font-weight: 600;
}

.summary-heading h2 {
    margin: 0 0 30px;
    font-size: 27px;
    font-weight: 500;
}


/* =========================================================
   SUMMARY ITEMS
========================================================= */

.summary-items {
    border-top: 1px solid #d7ddd2;
}

.summary-item {
    display: grid;
    grid-template-columns: 65px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 16px 0;
    border-bottom: 1px solid #d7ddd2;
}

.summary-image {
    width: 65px;
    height: 65px;
    overflow: hidden;
    background: #e4eadf;
}

.summary-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #243b2a;
    font-size: 16px;
    font-weight: 600;
}

.summary-product {
    min-width: 0;
}

.summary-product h3 {
    margin: 0 0 5px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
}

.summary-product span {
    color: #687263;
    font-size: 12px;
}

.summary-price {
    white-space: nowrap;
    font-size: 13px;
}


/* =========================================================
   SUMMARY TOTALS
========================================================= */

.summary-totals {
    margin-top: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    font-size: 14px;
}

.summary-row strong {
    white-space: nowrap;
}


/* =========================================================
   FINAL TOTAL
========================================================= */

.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 10px;
    padding: 20px 0;
    border-top: 1px solid #243b2a;
}

.summary-total span {
    font-size: 15px;
    font-weight: 600;
}

.summary-total strong {
    font-size: 22px;
}


/* =========================================================
   PLACE ORDER
========================================================= */

.place-order-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 17px 20px;
    border: 0;
    background: #243b2a;
    color: white;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.place-order-button:hover {
    background: #1d3022;
    transform: translateY(-1px);
}


/* =========================================================
   BACK TO CART
========================================================= */

.back-to-cart {
    display: block;
    margin-top: 20px;
    color: #243b2a;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.back-to-cart:hover {
    text-decoration: underline;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .order-summary {
        position: static;
        max-width: 600px;
    }

}


@media (max-width: 700px) {

    .checkout-intro {
        padding: 55px 18px;
    }

    .intro-container {
        align-items: flex-start;
    }

    .intro-art {
        display: none;
    }

    .checkout-main {
        padding: 55px 18px 80px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .section-heading h2 {
        font-size: 23px;
    }

}


@media (max-width: 500px) {

    .checkout-section {
        padding-bottom: 40px;
        margin-bottom: 40px;
    }

    .section-heading {
        gap: 12px;
    }

    .section-number {
        width: 36px;
        height: 36px;
    }

    .delivery-option {
        grid-template-columns: 42px minmax(0, 1fr) 25px;
        gap: 12px;
        padding: 14px;
    }

    .delivery-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .order-summary {
        padding: 22px;
    }

}
