/* ==========================================================================
   D2C GAME — OFFER CHECKOUT
   ========================================================================== */


*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    background: #f7f8fb;
}


body {
    margin: 0;

    background: #f7f8fb;

    color: #07101c;

    font-family:
        Inter,
        "Helvetica Neue",
        Arial,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;
}


button,
input {
    font: inherit;
}


/* ==========================================================================
   FRAME
   ========================================================================== */

.checkout {
    width:
        min(
            1240px,
            calc(100% - 64px)
        );

    margin:
        28px auto
        70px;
}


/* ==========================================================================
   HEADER
   ========================================================================== */

.checkout-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    margin-bottom: 28px;
}


.checkout-brand {
    display: flex;

    flex-direction: column;

    color: #07101c;

    text-decoration: none;
}


.checkout-brand strong {
    font-size: 25px;

    line-height: .92;

    font-weight: 900;

    letter-spacing: -.045em;
}


.checkout-brand strong span {
    color: #6d2cff;
}


.checkout-brand small {
    margin-top: 5px;

    font-size: 10px;
}


.checkout-help {
    margin-left: auto;

    color: #667085;

    font-size: 13px;

    text-decoration: none;
}


.checkout-help strong {
    color: #6d2cff;

    text-decoration: underline;
}


.checkout-secure-mobile {
    display: none;
}


/* ==========================================================================
   HEADING
   ========================================================================== */

.checkout-heading {
    margin-bottom: 20px;
}


.checkout-heading h1 {
    margin: 0;

    color: #07090d;

    font-size: 48px;

    line-height: .96;

    font-weight: 900;

    letter-spacing: -.052em;
}


.checkout-heading p {
    margin: 8px 0 0;

    color: #667085;

    font-size: 20px;

    line-height: 1.25;
}


/* ==========================================================================
   GRID
   ========================================================================== */

.checkout-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.18fr)
        minmax(390px, .95fr);

    gap: 24px;

    align-items: start;
}


/* ==========================================================================
   PAYMENT CARD
   ========================================================================== */

.checkout-payment {
    padding: 22px;

    border:
        1px solid #e1e5ec;

    border-radius: 9px;

    background: #ffffff;
}


.checkout-payment__heading {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 18px;
}


.checkout-payment__heading h2 {
    margin: 0;

    color: #07090d;

    font-size: 27px;

    line-height: 1;

    font-weight: 900;

    letter-spacing: -.035em;
}


.checkout-payment__heading p {
    display: flex;

    gap: 9px;

    align-items: flex-start;

    max-width: 210px;

    margin: 0;

    color: #667085;

    font-size: 11px;

    line-height: 1.35;
}


.checkout-payment__heading svg {
    width: 21px;
    height: 21px;

    min-width: 21px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;
}


/* ==========================================================================
   CUSTOMER
   ========================================================================== */

.checkout-customer {
    display: grid;

    gap: 13px;

    margin-bottom: 16px;
}


.checkout-customer label {
    display: grid;

    gap: 7px;
}


.checkout-customer label > span,
.checkout-method__label,
.checkout-billing > span {
    color: #111827;

    font-size: 13px;

    line-height: 1;

    font-weight: 750;
}


.checkout-customer input {
    width: 100%;

    height: 44px;

    padding:
        0 13px;

    border:
        1px solid #d9dee7;

    border-radius: 6px;

    outline: none;

    color: #667085;

    background: #ffffff;
}


.checkout-customer input:focus {
    border-color: #6d2cff;

    box-shadow:
        0 0 0 1px #6d2cff;
}


/* ==========================================================================
   PAYMENT METHOD
   ========================================================================== */

.checkout-method {
    display: grid;

    gap: 9px;

    margin-top: 15px;
}


.checkout-method__tabs {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;
}


.checkout-method__tab {
    display: flex;

    align-items: center;

    min-height: 48px;

    gap: 11px;

    padding:
        0 15px;

    border:
        1px solid #d9dee7;

    border-radius: 7px;

    background: #ffffff;

    color: #202938;

    cursor: pointer;

    text-align: left;
}


.checkout-method__tab:only-child {
    grid-column: 1 / -1;

    max-width: 50%;
}


.checkout-method__tab.is-active {
    border-color: #6d2cff;

    box-shadow:
        0 0 0 1px
        rgba(109, 44, 255, .12);
}


.checkout-method__tab > svg {
    width: 28px;
    height: 28px;

    fill: none;

    stroke: #344054;

    stroke-width: 1.7;
}


.checkout-method__tab strong {
    font-size: 13px;

    font-weight: 650;
}


.checkout-radio {
    display: grid;

    place-items: center;

    width: 20px;
    height: 20px;

    flex: 0 0 20px;

    border:
        1.5px solid #aeb7c6;

    border-radius: 50%;
}


.checkout-method__tab.is-active
.checkout-radio {
    border-color: #6d2cff;
}


.checkout-radio i {
    display: none;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #6d2cff;
}


.checkout-method__tab.is-active
.checkout-radio i {
    display: block;
}


/* ==========================================================================
   STRIPE
   ========================================================================== */

.checkout-card-panel {
    margin-top: 14px;
}


.checkout-stripe-element {
    min-height: 48px;
}


.checkout-loading {
    display: flex;

    align-items: center;

    min-height: 48px;

    padding:
        0 13px;

    border:
        1px solid #e1e5ea;

    border-radius: 6px;

    color: #667085;

    font-size: 13px;
}


.checkout-billing {
    display: grid;

    gap: 9px;

    margin-top: 15px;
}


/* ==========================================================================
   BANK TRANSFER
   ========================================================================== */

.checkout-bank-panel {
    margin-top: 15px;

    padding: 18px;

    border:
        1px solid #ded5f7;

    border-radius: 8px;

    background: #fbf9ff;
}


.checkout-bank-panel[hidden] {
    display: none !important;
}


.checkout-bank-intro strong {
    color: #07090d;

    font-size: 17px;
}


.checkout-bank-intro p {
    max-width: 600px;

    margin:
        7px 0
        0;

    color: #667085;

    font-size: 12px;

    line-height: 1.45;
}


.checkout-bank-details {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 1px;

    margin-top: 16px;

    overflow: hidden;

    border:
        1px solid #e3dafa;

    border-radius: 7px;

    background: #e3dafa;
}


.checkout-bank-details > div {
    display: grid;

    gap: 5px;

    min-height: 66px;

    padding:
        12px 14px;

    background: #ffffff;
}


.checkout-bank-details span {
    color: #667085;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .04em;

    text-transform: uppercase;
}


.checkout-bank-details strong {
    color: #101828;

    font-size: 13px;

    line-height: 1.25;

    overflow-wrap: anywhere;
}


.checkout-bank-reference {
    grid-column: 1 / -1;

    background:
        #f2ebff !important;
}


.checkout-bank-reference strong {
    color: #6d2cff;

    font-size: 17px;

    letter-spacing: .03em;
}


.checkout-bank-reference small {
    color: #667085;

    font-size: 10px;
}


/* ==========================================================================
   ERRORS
   ========================================================================== */

.checkout-error {
    margin-top: 14px;

    padding:
        11px 13px;

    border:
        1px solid #f5b7b1;

    border-radius: 6px;

    background: #fff5f4;

    color: #b42318;

    font-size: 12px;

    line-height: 1.4;
}


.checkout-error[hidden] {
    display: none !important;
}


/* ==========================================================================
   TERMS
   ========================================================================== */

.checkout-terms {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin-top: 17px;

    color: #667085;

    font-size: 11px;

    line-height: 1.4;
}


.checkout-terms input {
    width: 18px;
    height: 18px;

    flex: 0 0 18px;

    margin: 0;

    accent-color: #6d2cff;
}


.checkout-terms a,
.checkout-policy-text {
    color: #6d2cff;

    font-weight: 600;

    text-decoration: underline;
}


/* ==========================================================================
   TOTAL + SUBMIT
   ========================================================================== */

.checkout-submit-row {
    display: grid;

    grid-template-columns:
        190px
        minmax(0, 1fr);

    gap: 16px;

    align-items: stretch;

    margin-top: 18px;
}


.checkout-total {
    padding:
        12px
        16px;

    background: #fafafa;
}


.checkout-total small {
    display: block;

    margin-bottom: 4px;

    color: #667085;

    font-size: 13px;
}


.checkout-total strong {
    display: inline;

    color: #07090d;

    font-size: 31px;

    line-height: 1;

    font-weight: 900;

    letter-spacing: -.05em;
}


.checkout-total span {
    margin-left: 4px;

    color: #667085;

    font-size: 15px;
}


.checkout-submit {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 28px;

    min-height: 58px;

    padding:
        0 20px;

    border: 0;

    border-radius: 7px;

    background:
        linear-gradient(
            90deg,
            #ffc329,
            #ffd052
        );

    color: #080b10;

    font-size: 15px;

    line-height: 1;

    font-weight: 900;

    cursor: pointer;
}


.checkout-submit strong {
    font-size: 25px;

    font-weight: 500;
}


.checkout-submit:disabled {
    cursor: not-allowed;

    opacity: .52;
}


.checkout-submit.is-loading {
    opacity: .72;
}


/* ==========================================================================
   SECURE
   ========================================================================== */

.checkout-payment-secure {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    margin:
        10px 0
        0;

    color: #667085;

    font-size: 10px;
}


.checkout-payment-secure svg {
    width: 14px;
    height: 14px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;
}


/* ==========================================================================
   SUMMARY
   ========================================================================== */

.checkout-summary {
    display: grid;

    gap: 14px;
}


.checkout-summary__hero {
    position: relative;

    min-height: 180px;

    padding: 28px;

    overflow: hidden;

    border-radius:
        8px
        8px
        0
        0;

    color: #ffffff;

    background:

        linear-gradient(
            90deg,
            rgba(4,8,14,.98) 0%,
            rgba(4,8,14,.90) 42%,
            rgba(4,8,14,.16) 75%,
            rgba(4,8,14,.04) 100%
        ),

        url(
            "/assets/images/offer/roman-private-coaching.jpg"
        )
        center / cover
        no-repeat;
}


.checkout-summary__hero > div {
    position: relative;

    z-index: 2;
}


.checkout-summary__hero h2 {
    margin: 0;

    font-size: 28px;

    line-height: 1;

    font-weight: 900;

    letter-spacing: -.035em;
}


.checkout-summary__hero p {
    margin:
        4px 0
        18px;

    font-size: 18px;
}


.checkout-summary__hero
> div
> strong {
    display: block;

    font-size: 36px;

    line-height: 1;

    font-weight: 900;
}


.checkout-summary__hero
strong small {
    font-size: 17px;
}


/* ==========================================================================
   SUMMARY GOAL
   ========================================================================== */

.checkout-summary__goal {
    display: grid;

    grid-template-columns:
        64px
        minmax(0, 1fr);

    align-items: center;

    padding: 15px;

    background:
        linear-gradient(
            90deg,
            #f4efff,
            #f0eaff
        );
}


.checkout-summary__goal
> span {
    display: grid;

    place-items: center;

    width: 54px;
    height: 54px;

    border-radius: 50%;

    background: #ebe2ff;

    color: #6d2cff;
}


.checkout-summary__goal svg {
    width: 31px;
    height: 31px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;
}


.checkout-summary__goal div {
    display: grid;

    gap: 5px;
}


.checkout-summary__goal small {
    color: #6d2cff;

    font-size: 10px;

    font-weight: 850;

    letter-spacing: .06em;
}


.checkout-summary__goal strong {
    font-size: 18px;
}


/* ==========================================================================
   SUMMARY INCLUDES
   ========================================================================== */

.checkout-summary__includes {
    display: grid;

    padding:
        4px
        10px;
}


.checkout-summary__includes
> div {
    display: grid;

    grid-template-columns:
        60px
        minmax(0, 1fr);

    align-items: center;

    min-height: 70px;

    border-bottom:
        1px solid #e5e7eb;
}


.checkout-summary__includes
> div:last-child {
    border-bottom: 0;
}


.checkout-summary__includes span {
    display: grid;

    place-items: center;

    width: 44px;
    height: 44px;

    border-radius: 50%;

    background: #f1eaff;

    color: #6d2cff;
}


.checkout-summary__includes svg {
    width: 23px;
    height: 23px;

    fill: none;

    stroke: currentColor;

    stroke-width: 2;
}


.checkout-summary__includes strong {
    font-size: 15px;
}


/* ==========================================================================
   SUMMARY NEXT
   ========================================================================== */

.checkout-summary__next {
    display: grid;

    grid-template-columns:
        82px
        minmax(0, 1fr);

    align-items: center;

    min-height: 105px;

    padding: 16px;

    background:
        linear-gradient(
            90deg,
            #f5f0ff,
            #f0eaff
        );
}


.checkout-summary__next
> span {
    display: grid;

    place-items: center;

    width: 66px;
    height: 66px;

    border-radius: 50%;

    background: #ebe2ff;

    color: #6d2cff;
}


.checkout-summary__next svg {
    width: 36px;
    height: 36px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;
}


.checkout-summary__next h3 {
    margin:
        0 0
        7px;

    font-size: 18px;
}


.checkout-summary__next p {
    margin: 0;

    color: #667085;

    font-size: 13px;

    line-height: 1.4;
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 760px) {

    html,
    body {
        background: #ffffff;
    }


    .checkout {
        width: 100%;

        margin: 0;

        padding:
            20px
            18px
            44px;
    }


    .checkout-header {
        align-items: center;

        margin-bottom: 22px;
    }


    .checkout-help {
        display: none;
    }


    .checkout-secure-mobile {
        display: flex;

        align-items: center;

        gap: 6px;

        margin-left: auto;

        color: #667085;

        font-size: 10px;
    }


    .checkout-secure-mobile svg {
        width: 13px;
        height: 13px;

        fill: none;

        stroke: currentColor;

        stroke-width: 1.8;
    }


    .checkout-heading h1 {
        font-size: 35px;
    }


    .checkout-heading p {
        font-size: 15px;
    }


    .checkout-grid {
        display: flex;

        flex-direction: column;

        gap: 11px;
    }


    /* Summary appears before payment */

    .checkout-summary {
        order: 1;
    }


    .checkout-payment {
        order: 2;
    }


    .checkout-summary__hero {
        min-height: 0;

        padding: 17px;

        color: #07090d;

        background: #fbfbfd;
    }


    .checkout-summary__hero h2 {
        font-size: 23px;
    }


    .checkout-summary__hero p {
        margin:
            2px 0
            0;

        color: #667085;

        font-size: 14px;
    }


    .checkout-summary__hero
    > div
    > strong {
        position: absolute;

        top: 0;
        right: 0;

        font-size: 26px;
    }


    .checkout-summary__hero
    strong small {
        display: block;

        margin-top: 3px;

        text-align: right;

        color: #667085;

        font-size: 11px;
    }


    .checkout-summary__includes {
        padding: 0;
    }


    .checkout-summary__next {
        display: none;
    }


    .checkout-payment {
        padding:
            17px
            14px;
    }


    .checkout-payment__heading h2 {
        font-size: 22px;
    }


    .checkout-payment__heading p {
        max-width: 140px;

        font-size: 8px;
    }


    .checkout-method__tabs {
        grid-template-columns: 1fr;
    }


    .checkout-method__tab:only-child {
        max-width: none;
    }


    .checkout-bank-details {
        grid-template-columns: 1fr;
    }


    .checkout-bank-reference {
        grid-column: auto;
    }


    .checkout-submit-row {
        display: block;
    }


    .checkout-total {
        display: none;
    }


    .checkout-submit {
        width: 100%;

        margin-top: 7px;
    }

}