* {
    box-sizing: border-box;
}

body {
    background: #f5f7f7;
}

.checkout-page {
    padding: 38px 20px 70px;
}

.checkout-shell {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.checkout-form-area {
    min-width: 0;
}

.checkout-secure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    background: #edf8f5;
    color: #176052;
    border: 1px solid #d0ebe4;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
}

.checkout-heading {
    margin-bottom: 22px;
}

.checkout-heading > span {
    display: inline-block;
    margin-bottom: 7px;
    color: #176052;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 1.1px;
}

.checkout-heading h1 {
    margin: 0 0 7px;
    color: #18201f;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 780;
    letter-spacing: -0.7px;
}

.checkout-heading p {
    margin: 0;
    color: #65706e;
    font-size: 14px;
    line-height: 1.55;
}

.checkout-card {
    margin-bottom: 16px;
    padding: 22px;
    background: #fff;
    border: 1px solid #e1e7e5;
    border-radius: 15px;
    box-shadow: 0 5px 18px rgba(15, 50, 43, 0.035);
}

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

.checkout-step-number {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #e8f5f1;
    color: #176052;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}

.checkout-card-title h2 {
    margin: 1px 0 3px;
    color: #202826;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 720;
}

.checkout-card-title p {
    margin: 0;
    color: #75807e;
    font-size: 12px;
    line-height: 1.45;
}

.checkout-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 14px;
}

.checkout-field-full {
    grid-column: 1 / -1;
}

.checkout-field {
    min-width: 0;
}

.checkout-field label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 7px;
    color: #343d3b;
    font-size: 12px;
    font-weight: 650;
}

.checkout-field label small {
    color: #8a9492;
    font-size: 10px;
    font-weight: 500;
}

.checkout-field input,
.checkout-field textarea {
    width: 100%;
    padding: 11px 12px;
    background: #fbfcfc;
    color: #202725;
    border: 1px solid #dce3e1;
    border-radius: 9px;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.checkout-field textarea {
    min-height: 82px;
    resize: vertical;
    line-height: 1.5;
}

.checkout-field input:focus,
.checkout-field textarea:focus {
    background: #fff;
    border-color: #25806f;
    box-shadow: 0 0 0 3px rgba(37, 128, 111, 0.1);
}

.checkout-field input::placeholder,
.checkout-field textarea::placeholder {
    color: #a0a9a7;
}

.checkout-phone {
    display: flex;
    align-items: center;
    background: #fbfcfc;
    border: 1px solid #dce3e1;
    border-radius: 9px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-phone:focus-within {
    background: #fff;
    border-color: #25806f;
    box-shadow: 0 0 0 3px rgba(37, 128, 111, 0.1);
}

.checkout-phone > span {
    padding: 0 11px;
    color: #4f5a57;
    border-right: 1px solid #dce3e1;
    font-size: 12px;
    font-weight: 650;
}

.checkout-phone input {
    flex: 1;
    min-width: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.checkout-phone input:focus {
    box-shadow: none;
}

.checkout-quantity-row {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    background: #f4f7f6;
    border: 1px solid #e0e6e4;
    border-radius: 11px;
}

.checkout-qty-button {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    color: #1f5f54;
    border: 1px solid #d9e2df;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.checkout-qty-button:hover {
    background: #eaf5f1;
    border-color: #b8d8cf;
}

.checkout-qty-value {
    min-width: 40px;
    color: #202826;
    text-align: center;
    font-size: 15px;
    font-weight: 750;
}

.checkout-error {
    display: none;
    margin: 4px 0 13px;
    padding: 10px 12px;
    background: #fff1f2;
    color: #b42332;
    border: 1px solid #fecdd3;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.45;
}

.checkout-error:not(:empty) {
    display: block;
}

.checkout-pay-button {
    width: 100%;
    padding: 13px 18px;
    background: #155f52;
    color: #fff;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 720;
    box-shadow: 0 7px 16px rgba(21, 95, 82, 0.16);
    transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.checkout-pay-button:hover {
    background: #104f45;
    box-shadow: 0 9px 20px rgba(21, 95, 82, 0.2);
}

.checkout-pay-button:active {
    transform: translateY(1px);
}

.checkout-pay-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.checkout-payment-note {
    margin: 10px 0 0;
    color: #77817f;
    text-align: center;
    font-size: 11px;
}

.checkout-summary {
    position: sticky;
    top: 92px;
}

.checkout-summary-card,
.checkout-support {
    background: #fff;
    border: 1px solid #e1e7e5;
    border-radius: 15px;
    box-shadow: 0 5px 18px rgba(15, 50, 43, 0.035);
}

.checkout-summary-card {
    padding: 21px;
}

.checkout-summary-card h2 {
    margin: 0 0 17px;
    color: #202826;
    font-size: 17px;
}

.checkout-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 17px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e7ecea;
}

.checkout-product-image {
    flex: 0 0 72px;
    width: 72px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f6f5;
    border-radius: 10px;
    overflow: hidden;
}

.checkout-product-image-file {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.checkout-product-info {
    min-width: 0;
}

.checkout-product-info strong,
.checkout-product-info span {
    display: block;
}

.checkout-product-info strong {
    color: #202826;
    font-size: 14px;
    line-height: 1.35;
}

.checkout-product-info span {
    margin-top: 4px;
    color: #74807d;
    font-size: 11px;
}

.checkout-summary-line,
.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.checkout-summary-line {
    padding: 8px 0;
    color: #65706e;
    font-size: 13px;
}

.checkout-summary-line strong {
    color: #2b3432;
}

.checkout-summary-total {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #dfe6e3;
    color: #1d2624;
    font-size: 16px;
    font-weight: 750;
}

.checkout-summary-benefits {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding: 14px;
    background: #f3f8f6;
    color: #47605a;
    border-radius: 10px;
    font-size: 11px;
}

.checkout-support {
    margin-top: 14px;
    padding: 16px;
    color: #66716e;
    font-size: 12px;
    line-height: 1.5;
}

.checkout-support strong {
    display: block;
    margin-bottom: 4px;
    color: #293330;
}

.checkout-support a {
    color: #176052;
    font-weight: 650;
    text-decoration: none;
}

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

    .checkout-summary {
        position: static;
    }
}

@media (max-width: 600px) {
    .checkout-page {
        padding: 24px 14px 50px;
    }

    .checkout-heading h1 {
        font-size: 25px;
    }

    .checkout-card {
        padding: 18px;
        border-radius: 13px;
    }

    .checkout-field-grid {
        grid-template-columns: 1fr;
    }

    .checkout-field-full {
        grid-column: auto;
    }

    .checkout-summary-card {
        padding: 18px;
    }

    .checkout-secure {
        font-size: 10px;
    }
}


/*
==========================================================================
ORDER SUCCESS PAGE
==========================================================================
*/

.order-success-page {
    min-height: calc(100vh - 70px);

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding: 48px 20px 70px;

    background:
        linear-gradient(
            180deg,
            #f3f8f6 0%,
            #f8faf9 100%
        );
}


.order-success-shell {
    width: 100%;
    max-width: 620px;

    padding: 38px 34px 30px;

    background: #ffffff;

    border: 1px solid #dfe8e5;
    border-radius: 18px;

    text-align: center;

    box-shadow:
        0 18px 42px rgba(15, 50, 43, 0.08),
        0 4px 10px rgba(15, 50, 43, 0.03);
}


.order-success-icon {
    width: 68px;
    height: 68px;

    margin: 0 auto 16px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #e2f7ef;
    color: #13745e;

    border: 7px solid #f0fbf7;
    border-radius: 50%;

    font-size: 28px;
    font-weight: 800;
}


.order-success-label {
    display: inline-flex;
    align-items: center;

    padding: 5px 10px;

    background: #ecfdf5;
    color: #087052;

    border: 1px solid #ccefe1;
    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.9px;
}


.order-success-shell h1 {
    margin: 15px 0 9px;

    color: #192321;

    font-size: 29px;
    line-height: 1.25;

    font-weight: 780;

    letter-spacing: -0.6px;
}


.order-success-message {
    max-width: 470px;

    margin: 0 auto 22px;

    color: #65716e;

    font-size: 14px;
    line-height: 1.6;
}


.order-success-number {
    margin-bottom: 24px;
    padding: 14px 16px;

    background: #f5f8f7;

    border: 1px solid #e0e7e5;
    border-radius: 11px;
}


.order-success-number span,
.order-success-number strong {
    display: block;
}


.order-success-number span {
    margin-bottom: 5px;

    color: #7a8582;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.7px;
    text-transform: uppercase;
}


.order-success-number strong {
    color: #20302c;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;

    font-size: 14px;
    letter-spacing: 0.4px;

    overflow-wrap: anywhere;
}


.order-success-steps {
    position: relative;

    display: grid;
    gap: 12px;

    text-align: left;
}


.order-success-steps > div {
    display: flex;
    align-items: flex-start;

    gap: 13px;

    padding: 14px;

    background: #fbfcfc;

    border: 1px solid #e7ecea;
    border-radius: 11px;
}


.order-success-step-icon {
    flex: 0 0 31px;

    width: 31px;
    height: 31px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #e6f4f0;
    color: #176052;

    border-radius: 50%;

    font-size: 12px;
    font-weight: 800;
}


.order-success-steps strong {
    display: block;

    margin: 1px 0 3px;

    color: #27312f;

    font-size: 13px;
}


.order-success-steps p {
    margin: 0;

    color: #71807c;

    font-size: 12px;
    line-height: 1.5;
}


.order-success-actions {
    margin-top: 24px;
}


.order-success-actions .home-primary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    min-width: 190px;

    padding: 11px 18px;

    background: #155f52;
    color: #ffffff;

    border-radius: 9px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}


.order-success-actions .home-primary-button:hover {
    background: #104f45;
}


.order-success-support {
    margin-top:20px;


    color: #77827f;

    font-size: 11px;
}

/* =========================================================
   COMPACT ORDER SUCCESS PAGE
   ========================================================= */

.order-success-page {
    padding: 28px 16px 40px;
}

.order-success-shell {
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 34px 28px 30px;
}


/* Success icon */

.order-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 38px;
}


/* Payment successful badge */

.order-success-label {
    margin-bottom: 16px;
}


/* Heading */

.order-success-shell h1 {
    margin: 0;

    font-size: 38px;
    line-height: 1.12;
}


/* Intro */

.order-success-message {
    max-width: 430px;

    margin:
        14px
        auto
        22px;

    font-size: 17px;
    line-height: 1.55;
}


/* Order number */

.order-success-number {
    margin: 0 auto 24px;
    padding: 14px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    text-align: left;
}

.order-success-number span {
    margin: 0;
}

.order-success-number strong {
    font-size: 18px;
    white-space: nowrap;
}


/* =========================================================
   COMPACT STEPS
   ========================================================= */

.order-success-steps {
    margin: 0;
    display: block;
}

.order-success-steps > div {
    position: relative;

    display: flex;
    align-items: flex-start;
    gap: 14px;

    padding: 12px 0;

    border: 0;
    border-radius: 0;
    background: transparent;
}


/* Divider between steps */

.order-success-steps > div:not(:last-child) {
    border-bottom: 1px solid var(--tw-border);
}


/* Step number */

.order-success-step-icon {
    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;

    font-size: 15px;
}


/* Step text */

.order-success-steps strong {
    display: block;

    margin: 1px 0 3px;

    font-size: 16px;
    line-height: 1.3;
}

.order-success-steps p {
    margin: 0;

    font-size: 14px;
    line-height: 1.45;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.order-success-actions {
    margin-top: 22px;
}

.order-success-actions .home-primary-button {
    min-height: 52px;
}


/* Support */

.order-success-support {
    margin-top: 20px;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .order-success-page {
        padding:
            16px
            14px
            28px;
    }

    .order-success-shell {
        padding:
            24px
            20px
            22px;

        border-radius: 24px;
    }


    .order-success-icon {
        width: 58px;
        height: 58px;

        margin-bottom: 12px;

        font-size: 31px;
    }


    .order-success-label {
        margin-bottom: 12px;

        font-size: 12px;
    }


    .order-success-shell h1 {
        font-size: 30px;
        line-height: 1.12;
    }


    .order-success-message {
        margin:
            10px
            auto
            17px;

        font-size: 15px;
        line-height: 1.45;
    }


    .order-success-number {
        margin-bottom: 16px;

        padding:
            12px
            14px;
    }

    .order-success-number span {
        font-size: 12px;
    }

    .order-success-number strong {
        font-size: 17px;
    }


    .order-success-steps > div {
        gap: 12px;

        padding:
            10px
            2px;
    }


    .order-success-step-icon {
        flex-basis: 34px;

        width: 34px;
        height: 34px;

        font-size: 14px;
    }


    .order-success-steps strong {
        font-size: 15px;
    }

    .order-success-steps p {
        font-size: 13px;
        line-height: 1.4;
    }


    .order-success-actions {
        margin-top: 17px;
    }

    .order-success-actions .home-primary-button {
        min-height: 48px;
    }


    .order-success-support {
        margin-top: 16px;

        font-size: 13px;
    }

}