.creator-lms-checkout-form-wrapper * {
    margin: 0;
    padding: 0;
}

.creator-lms-page {
    .creator-lms {
        max-width: 100%;
        background-color: #F9FAFD;
        width: 100%;
    }

    .creator-lms-checkout-form-outer {
        position: relative;

        &::before {
            content: "";
            width: 48%;
            height: 100%;
            background-color: #fff;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 0;
        }
    }

    .creator-lms-checkout-form-wrapper {
        display: flex;
        flex-flow: row wrap;
        align-items: flex-start;
        position: relative;
        z-index: 1;

        .creator-lms-billing-contact {
            margin-bottom: 30px;
        }

        .creator-lms-checkout-title {
            color: var(--creator-lms-heading-color);
            font-size: 22px;
            font-weight: 600;
            line-height: 1.3;
            margin: 0 0 22px;
            letter-spacing: 0;
        }

        .customer-info-title-wrapper {
            position: relative;
            
            margin-bottom: 20px;

            .creator-lms-checkout-title {
                margin-bottom: 0;
            }
        }

        .creator-lms-customer-contact-wrapper {
            display: flex;
            flex-flow: row wrap;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            row-gap: 5px;
            margin: 0 0 20px;

            .customer-info-title {
                margin-bottom: 0;
            }
        }
        
    }

    // -------customer details-------
    .creator-lms-checkout-form-left {
        width: 60%;
        position: relative;
        background-color: #fff;
        padding: 30px 50px 30px 0;
        min-height: 100vh;

        .creator-lms-account-fields {
            margin-top: 20px;

            .create-account {
                display: flex;
                flex-flow: row wrap;
                gap: 10px;
            }
        }
    }

    &.admin-bar {
        .creator-lms-checkout-form-left {
            min-height: calc(100vh - 32px);
        }
    }

    // -------order review-------
    .creator-lms-checkout-form-right {
        width: 40%;
        padding: 30px 0 30px 30px;
        position: sticky;
        top: 0;
    }

    // -------input filed style-------
    .creator-lms-input-wrapper {
        position: relative;
        display: block;
    }

    .creator-lms-input-label {
        color: var(--creator-lms-body-text-color);
        font-size: 14px;
        font-weight: 400;
        line-height: 1.14;
        display: block;
        position: absolute;
        left: 13px;
        top: 15px;
        transition: all 0.3s ease;
        background: #ffffff;
        padding: 0 4px;
        z-index: 2;

        abbr.required {
            text-decoration: none;
            color: #FF6F6F;
            border: none;
        }
    }

    
    .creator-lms-input-text,
    .creator-lms-input-select  {
        color: var(--creator-lms-body-text-color);
        font-size: 14px;
        font-weight: 400;
        line-height: 1.25;
        border-radius: 8px;
        border: 1px solid #c8d2e980;
        margin: 0;
        box-shadow: none!important;
        outline: none !important;
        width: 100%;
        min-height: auto !important;
        padding: 13px 16px;
        background-color: #fff;
        transition: all 0.3s ease;
        height: auto;

        &:-webkit-autofill {
            -webkit-box-shadow: 0 0 0 30px white inset !important;
            box-shadow: 0 0 0 30px white inset !important;
            -webkit-text-fill-color: var(--creator-lms-body-text-color);
        }

        &:-moz-autofill {
            background-color: transparent !important;
            color: var(--creator-lms-body-text-color);
        }

        &:-ms-autofill {
            background-color: transparent !important;
            color: var(--creator-lms-body-text-color);
        }

        &:focus {
            border-color: var(--creator-lms-primary-color);
        }
    }

    .creator-lms-input-select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-color: #fff;
        background-image: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMTYgOSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjN0E4QjlBIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0uNzkzLjU0M2ExIDEgMCAwMTEuNDE0IDBMOCA2LjMzNiAxMy43OTMuNTQzYTEgMSAwIDExMS40MTQgMS40MTRMOS40MTQgNy43NWEyIDIgMCAwMS0yLjgyOCAwTC43OTMgMS45NTdhMSAxIDAgMDEwLTEuNDE0eiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PC9zdmc+);
        background-size: 13px 13px;
        background-position: 97% center;
        background-repeat: no-repeat;
    }

    .creator-lms-has-error {
        .creator-lms-input-label {
            color: #FF6F6F;
        }

        .creator-lms-input-text {
            border-color: #FF6F6F
        }
    }

    .creator-lms-folded {
        .creator-lms-input-label {
            top: -8px;
        }
    }

    &.creator-lms-checkout {
        .creator-lms-input-label {
            top: 50%;
            transform: translateY(-50%);
        }

        .creator-lms-input-text, 
        .creator-lms-input-select {
            padding: 26px 16px 8px;
        }

        .creator-lms-folded {
            .creator-lms-input-label {
                top: calc(50% - 10px);
                color: #7A8B9A!important;
                font-size: 12px;
            }
        }
    }

    .creator-lms-mobile-order-button {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background: #FFF;
        box-shadow: 0px 0px 14px 6px rgba(0, 0, 0, 0.05);
        padding: 13px 0;

        .creator-lms-mobile-order-button-container {
            max-width: 720px;
            padding: 0 15px;
            width: 100%;
            margin: 0 auto;

            @media (max-width: 767px) {
                max-width: 540px;
            }
        }

        .mobile-order-button-price {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-flow: row wrap;
            justify-content: space-between;
            margin-bottom: 14px;

            .review-toggle-title {
                color: var(--creator-lms-heading-color);
                font-size: 14px;
                font-weight: 600;
                line-height: 1;
            }

            .total-price {
                color: var(--creator-lms-heading-color);
                font-size: 16px;
                font-weight: 600;
                line-height: 1;
            }
        }

        #creator_lms_checkout_place_order {
            color: #FFF;
            font-size: 18px;
            font-weight: 700;
            line-height: 1;
            width: 100%;
            height: 55px;

            &:hover {
                color: var(--creator-lms-primary-color);
            }
        }

        
    }

}

.creator-lms-checkout {
    background: #F4F5F7;

    .creator-lms {
        background-color: transparent;
    }

    .creator-lms-container {
        max-width: 1140px;

        @media (max-width: 1199px) {
            max-width: 960px;
        }

        @media (max-width: 991px) {
            max-width: 720px;
        }

        @media (max-width: 767px) {
            max-width: 540px;
        }
    }
}


@media screen and (max-width: 1399px) {
    .creator-lms-page .creator-lms-checkout-form-left {
        padding: 30px 30px 30px 0;
    }
}

@media screen and (max-width: 1199px) {
    .creator-lms-page .creator-lms-checkout-form-left {
        width: 55%;
    }
    .creator-lms-page .creator-lms-checkout-form-right {
        width: 45%;
    }
    
    .creator-lms-page .creator-lms-checkout-form-wrapper .customer-info-title-wrapper {
        margin-bottom: 10px;
    }

    .creator-lms-page .creator-lms-checkout-form-wrapper .creator-lms-checkout-title {
        font-size: 20px;
        margin: 0 0 10px;
    }

    .creator-lms-page .creator-lms-checkout-form-wrapper .creator-lms-customer-contact-wrapper {
        margin: 0 0 10px;
    }

}

@media screen and (max-width: 991px) {
    .creator-lms-page .creator-lms-checkout-form-outer::before {
        width: 100%
    }

    .creator-lms-page .creator-lms-checkout-form-wrapper .creator-lms-checkout-title {
        margin-bottom: 12px;
    }

    .creator-lms-page .creator-lms-checkout-form-wrapper {
        flex-flow: column-reverse;
        gap: 24px;
    }

    .creator-lms-page .creator-lms-checkout-form-left {
        background: transparent;
        padding: 0;
        width: 100%;
        border: none;
        padding-bottom: 130px!important;
    }
    .creator-lms-page .creator-lms-checkout-form-right {
        position: relative;
        padding: 35px 0 0;
        width: 100%;
        top: inherit;
    }

    .creator-lms-page .creator-lms-checkout-form-wrapper .creator-lms-billing-contact {
        margin-bottom: 22px;
    }

    .creator-lms-page .creator-lms-mobile-order-button {
        display: block;
    }

}

@import "checkout-error";
@import "login-signup";
@import "checkout-customer-details";
@import "checkout-order-review";
@import "checkout-payment";
@import "checkout-payment-mollie";
// @import "checkout-order-review-toggle";
@import "no-cart-data";

