/* =========================================================
   CHECK OUT PAGE
   ========================================================= */

.checkout-page {
    padding: 32px 0 72px;
    background: #faf9f7;
}


/* =========================================================
   MESSAGE
   ========================================================= */

.checkout-message {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 18px;
    padding: 13px 15px;

    border-radius: 10px;

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

.checkout-message--error {
    border: 1px solid #efc9c5;

    color: #8f4138;
    background: #fff6f5;
}


/* =========================================================
   SUCCESS
   ========================================================= */

.checkout-success {
    max-width: 620px;

    margin: 0 auto;
    padding: 46px 30px;

    border: 1px solid #ebe7e2;
    border-radius: 16px;

    background: #ffffff;

    box-shadow: 0 8px 28px rgba(45, 49, 53, 0.06);

    text-align: center;
}

.checkout-success__icon {
    width: 64px;
    height: 64px;

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

    margin: 0 auto 16px;

    border-radius: 50%;

    color: #f58220;
    background: #fff3e8;

    font-size: 24px;
}

.checkout-success h2 {
    margin: 0 0 8px;

    color: #2d3135;

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

.checkout-success p {
    margin: 0 auto 14px;

    color: #6f757b;

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

.checkout-success strong {
    display: inline-block;

    margin-bottom: 20px;
    padding: 7px 12px;

    border-radius: 8px;

    color: #df6e0d;
    background: #fff3e8;

    font-size: 11px;
    font-weight: 750;
}

.checkout-success__button {
    width: fit-content;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin: 0 auto;
    padding: 10px 15px;

    border-radius: 9px;

    color: #ffffff;
    background: #f58220;

    font-size: 10px;
    font-weight: 700;
    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.checkout-success__button:hover {
    color: #ffffff;
    background: #df6e0d;

    transform: translateY(-1px);
}


/* =========================================================
   LAYOUT
   ========================================================= */

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

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


/* =========================================================
   INTRO
   ========================================================= */

.checkout-intro {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 16px;
    padding: 16px 18px;

    border: 1px solid #ebe7e2;
    border-radius: 14px;

    background: #ffffff;

    box-shadow: 0 8px 28px rgba(45, 49, 53, 0.04);
}

.checkout-intro__icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;

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

    border-radius: 10px;

    color: #f58220;
    background: #fff3e8;

    font-size: 15px;
}

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

.checkout-intro__content > span {
    display: block;

    margin-bottom: 3px;

    color: #f58220;

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.checkout-intro__content h2 {
    margin: 0 0 3px;

    color: #2d3135;

    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.checkout-intro__content p {
    margin: 0;

    color: #6f757b;

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


/* =========================================================
   CARD
   ========================================================= */

.checkout-card {
    overflow: hidden;

    border: 1px solid #ebe7e2;
    border-radius: 14px;

    background: #ffffff;

    box-shadow: 0 8px 28px rgba(45, 49, 53, 0.05);
}

.checkout-card__header {
    display: flex;
    align-items: center;
    gap: 11px;

    padding: 16px 18px;

    border-bottom: 1px solid #ebe7e2;
}

.checkout-card__icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;

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

    border-radius: 9px;

    color: #f58220;
    background: #fff3e8;

    font-size: 13px;
}

.checkout-card__header small {
    display: block;

    margin-bottom: 2px;

    color: #9a9da0;

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.04em;

    text-transform: uppercase;
}

.checkout-card__header h3 {
    margin: 0;

    color: #2d3135;

    font-size: 14px;
    font-weight: 750;
}

.checkout-card__intro {
    margin: 0;
    padding: 14px 18px 0;

    color: #74797d;

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


/* =========================================================
   GUEST FORM
   ========================================================= */

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

    padding: 18px;
}

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

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

.checkout-field label {
    display: block;

    margin-bottom: 6px;

    color: #4e5459;

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

.checkout-field input {
    width: 100%;
    height: 42px;

    padding: 0 12px;

    border: 1px solid #dedbd7;
    border-radius: 8px;

    outline: none;

    color: #2d3135;
    background: #ffffff;

    font-size: 11px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.checkout-field input:focus {
    border-color: #f58220;

    background: #fffdfb;

    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.10);
}


/* =========================================================
   LOGGED-IN INSTALLER
   ========================================================= */

.checkout-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;

    padding: 18px;
}

.checkout-account-grid > div {
    padding: 12px 13px;

    border: 1px solid #ebe7e2;
    border-radius: 9px;

    background: #fdfcfb;
}

.checkout-account-grid__wide {
    grid-column: 1 / -1;
}

.checkout-account-grid span {
    display: block;

    margin-bottom: 3px;

    color: #969a9e;

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.04em;

    text-transform: uppercase;
}

.checkout-account-grid strong {
    display: block;

    overflow-wrap: anywhere;

    color: #2d3135;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
}


/* =========================================================
   ORDER SUMMARY
   ========================================================= */

.checkout-summary {
    position: sticky;
    top: 18px;

    padding: 18px;

    border: 1px solid #ebe7e2;
    border-radius: 14px;

    background: #ffffff;

    box-shadow: 0 8px 28px rgba(45, 49, 53, 0.05);
}

.checkout-summary__eyebrow {
    display: block;

    margin-bottom: 4px;

    color: #f58220;

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.06em;

    text-transform: uppercase;
}

.checkout-summary h3 {
    margin: 0 0 15px;

    color: #2d3135;

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

.checkout-summary__row,
.checkout-summary__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.checkout-summary__row {
    padding: 7px 0;

    color: #74797d;

    font-size: 10px;
}

.checkout-summary__row strong {
    color: #2d3135;

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

.checkout-summary__total {
    margin-top: 7px;
    padding-top: 13px;

    border-top: 1px solid #ebe7e2;

    color: #2d3135;

    font-size: 11px;
    font-weight: 750;
}

.checkout-summary__total strong {
    color: #f58220;

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


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

.checkout-submit {
    width: 100%;
    min-height: 50px;

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

    margin-top: 16px;
    padding: 9px 13px;

    border: 0;
    border-radius: 9px;

    color: #ffffff;
    background: #f58220;

    font-family: inherit;
    text-align: left;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.checkout-submit:hover {
    color: #ffffff;
    background: #df6e0d;

    transform: translateY(-1px);

    box-shadow: 0 7px 18px rgba(245, 130, 32, 0.18);
}

.checkout-submit span {
    display: flex;
    flex-direction: column;

    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
}

.checkout-submit small {
    margin-bottom: 2px;

    opacity: 0.78;

    font-size: 8px;
    font-weight: 650;

    text-transform: uppercase;
}

.checkout-submit > i {
    flex: 0 0 auto;

    font-size: 11px;
}

.checkout-back {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-top: 9px;
    padding: 9px 11px;

    border: 1px solid #e5ded7;
    border-radius: 8px;

    color: #666c71;
    background: #ffffff;

    font-size: 9px;
    font-weight: 700;
    text-decoration: none;

    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        background 0.2s ease;
}

.checkout-back:hover {
    border-color: #f58220;

    color: #df6e0d;
    background: #fff8f2;
}

.checkout-summary__note {
    display: flex;
    align-items: flex-start;
    gap: 7px;

    margin-top: 14px;
    padding-top: 13px;

    border-top: 1px solid #ebe7e2;

    color: #8a8e92;

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

.checkout-summary__note i {
    flex: 0 0 auto;

    margin-top: 2px;

    color: #f58220;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {

    .checkout-page {
        padding-top: 24px;
    }

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

    .checkout-summary {
        position: static;
    }

}


@media (max-width: 575.98px) {

    .checkout-page {
        padding: 16px 0 46px;
    }

    .checkout-intro {
        align-items: flex-start;
        padding: 14px;
    }

    .checkout-intro__icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;

        font-size: 13px;
    }

    .checkout-intro__content h2 {
        font-size: 16px;
    }

    .checkout-card,
    .checkout-summary {
        border-radius: 12px;
    }

    .checkout-card__header {
        padding: 14px;
    }

    .checkout-card__intro {
        padding: 12px 14px 0;
    }

    .checkout-form-grid,
    .checkout-account-grid {
        grid-template-columns: 1fr;
        gap: 11px;

        padding: 14px;
    }

    .checkout-field--wide,
    .checkout-account-grid__wide {
        grid-column: auto;
    }

    .checkout-field input {
        height: 44px;

        font-size: 12px;
    }

    .checkout-summary {
        padding: 15px;
    }

    .checkout-submit {
        min-height: 50px;
    }

}


.checkout-success__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
@media (max-width: 575.98px) {
    .checkout-success__actions {
        flex-direction: column;
        gap: 10px;
    }

    .checkout-success__actions .checkout-success__button {
        width: 100%;
        justify-content: center;
    }
}