﻿/*=================================================
LOGIN HELP MODAL
==================================================*/

.login-modal {
    border: none;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
}

    .login-modal .modal-body {
        padding: 0;
    }

.login-help-wrapper {
    display: flex;
    min-height: 620px;
}

/*=========================
LEFT
==========================*/

.login-help-left {
    width: 42%;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 40px;
}

.login-help-image {
    width: 100%;
    max-width: 360px;
    margin-bottom: 35px;
}

.login-help-btn span {
    transform: translateY(2px);
    line-height: 0 !important;
    vertical-align: -webkit-baseline-middle !important;
}


.login-help-btn {
    width: 100%;
    max-width: 320px;
    height: 56px;
    border-radius: 40px;
    background: #150A51;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .25s;
}

    .login-help-btn:hover {
        background: #FFD501;
        color: #fff;
        text-decoration: none;
    }

/*=========================
RIGHT
==========================*/

.login-help-right {
    width: 58%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-help-title {
    color: #150A51;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.login-help-subtitle {
    color: #24195D;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 35px;
}

.login-help-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

    .login-help-list li {
        position: relative;
        color: #150A51;
        font-size: 17px;
        line-height: 1.6;
        padding-top: 5px;
    }

        .login-help-list li:before {
            content: "\f00c";
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            position: absolute;
            left: 0;
            top: 2px;
            color: #FFD501;
            font-size: 20px;
        }

.login-help-footer {
    margin-top: 10px;
}

    .login-help-footer h4 {
        color: #24195D;
        font-size: 24px;
        font-weight: 800;
        margin-bottom: 12px;
    }

    .login-help-footer p {
        font-size: 16px;
        line-height: 1.8;
        color: #150A51;
    }

    .login-help-footer strong {
        color: #24195D;
    }

/*=========================
CLOSE BUTTON
==========================*/

.modal-close {
    position: absolute;
    right: 22px;
    top: 22px;
    z-index: 100;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: #FFD501;
    border: 2px solid #FFD501;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: .25s;
}

    .modal-close:hover {
        background: #FFD501;
        color: #150A51;
    }

    .modal-close i {
        font-size: 18px;
    }

/*=========================
MODAL SIZE
==========================*/

.modal-xl {
    max-width: 1100px;
}

/*=========================
TABLET
==========================*/

@media (max-width:991px) {

    .login-help-wrapper {
        flex-direction: column;
    }

    .login-help-left,
    .login-help-right {
        width: 100%;
    }

    .login-help-left {
        padding: 40px 25px;
    }

    .login-help-right {
        padding: 40px 30px;
    }

    .login-help-title {
        font-size: 38px;
    }

    .login-help-subtitle {
        font-size: 20px;
    }
}

/*=========================
MOBILE
==========================*/

@media (max-width: 576px) {

    /* =============================================
       LOGIN HELP MODAL - IPHONE
       ============================================= */

    .modal-dialog {
        width: calc(100% - 40px);
        max-width: 350px;
        margin: 18px auto;
    }

    .login-modal {
        width: 100%;
        border-radius: 20px;
    }

    .login-help-wrapper {
        flex-direction: column;
        min-height: auto;
    }

    .login-help-left {
        width: 100%;
        padding: 24px 18px 20px;
    }

    .login-help-image {
        width: 100%;
        max-width: 170px;
        margin-bottom: 16px;
    }

    .login-help-btn {
        width: 100%;
        max-width: 280px;
        height: 48px;
        font-size: 14px;
    }

    .login-help-right {
        width: 100%;
        padding: 22px 20px 26px;
    }

    .login-help-title {
        margin-bottom: 12px;
        font-size: 27px;
        line-height: 1.1;
        text-align: center;
    }

    .login-help-subtitle {
        margin-bottom: 20px;
        font-size: 16px;
        line-height: 1.3;
        text-align: center;
    }

    .login-help-list {
        margin-bottom: 22px;
    }

        .login-help-list li {
            padding-left: 30px;
            padding-top: 3px;
            font-size: 14px;
            line-height: 1.45;
        }

            .login-help-list li:before {
                font-size: 16px;
            }

    .login-help-footer {
        margin-top: 4px;
        text-align: center;
    }

        .login-help-footer h4 {
            margin-bottom: 8px;
            font-size: 18px;
        }

        .login-help-footer p {
            font-size: 14px;
            line-height: 1.5;
        }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
    }

        .modal-close i {
            font-size: 14px;
        }
}


/*=================================================
RECURRING ORDER MODAL
==================================================*/

#addModalOverlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
    margin: 0 !important;
    background: rgba(21, 10, 81, 0.45) !important;
    backdrop-filter: blur(3px);
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
}

    #addModalOverlay.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    #addModalOverlay > .modal {
        /*position: relative !important;
        inset: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        display: block !important;*/
        width: 900px !important;
        /* max-width: calc(100vw - 48px) !important;*/
        height: auto !important;
        min-height: 0 !important;
        max-height: calc(100vh - 48px) !important;
        /*margin: auto !important;
        padding: 0 !important;
        background: #fff !important;
        border: 0 !important;
        border-radius: 24px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        box-shadow: 0 24px 70px rgba(21, 10, 81, 0.28), 0 5px 18px rgba(21, 10, 81, 0.10) !important;
        transform: none !important;*/
    }

        #addModalOverlay > .modal > form {
            width: 100% !important;
            height: auto !important;
            max-height: calc(100vh - 48px) !important;
            margin: 0 !important;
            padding: 0 !important;
            display: flex !important;
            flex-direction: column !important;
            box-sizing: border-box !important;
        }

    #addModalOverlay .modal-body {
        position: relative !important;
        flex: 1 1 auto !important;
        width: 100% !important;
        min-height: 0 !important;
        padding: 48px 50px 34px !important;
        margin: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
    }

    #addModalOverlay .modal-close {
        position: absolute !important;
        top: 16px !important;
        right: 16px !important;
        z-index: 10 !important;
        width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f5f4fa !important;
        color: #150A51 !important;
        border: 0 !important;
        border-radius: 50% !important;
        opacity: 1 !important;
        cursor: pointer;
    }

        #addModalOverlay .modal-close:hover {
            background: #FFD501 !important;
            color: #150A51 !important;
        }

        #addModalOverlay .modal-close i {
            font-size: 15px !important;
        }

    #addModalOverlay .selected-config {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-sizing: border-box !important;
    }

    #addModalOverlay .selected-config-title {
        margin: 0 0 26px !important;
        color: #FFD501 !important;
        font-size: 32px !important;
        font-weight: 800 !important;
        line-height: 1.15 !important;
        text-align: left !important;
    }

    #addModalOverlay #configRows {
        width: 100% !important;
    }

    #addModalOverlay .config-row {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 20px !important;
        padding: 26px !important;
        margin: 0 !important;
        background: #fff !important;
        border: 1px solid #E7E5EE !important;
        border-radius: 18px !important;
        box-shadow: 0 6px 20px rgba(21, 10, 81, .06);
        box-sizing: border-box !important;
    }

    #addModalOverlay .subscription-product-name {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 0 18px !important;
        border-bottom: 1px solid #EEEEEE !important;
        color: #150A51 !important;
        font-size: 18px !important;
        font-weight: 800 !important;
        line-height: 1.4 !important;
        box-sizing: border-box !important;
    }

    #addModalOverlay .field {
        width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

        #addModalOverlay .field label {
            margin: 0 !important;
            color: #24195D !important;
            font-size: 13px !important;
            font-weight: 700 !important;
            line-height: 1.3 !important;
        }

        #addModalOverlay .field input,
        #addModalOverlay .field select {
            width: 100% !important;
            height: 50px !important;
            min-width: 0 !important;
            padding: 0 14px !important;
            background: #F8F8F8 !important;
            color: #333 !important;
            border: 1px solid #DCDCDC !important;
            border-radius: 11px !important;
            font-size: 14px !important;
            outline: none !important;
            box-sizing: border-box !important;
            transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
        }

            #addModalOverlay .field input:focus,
            #addModalOverlay .field select:focus {
                background: #fff !important;
                border-color: #FFD501 !important;
                box-shadow: 0 0 0 3px rgba(255, 213, 1, .18) !important;
            }

            #addModalOverlay .field input[readonly] {
                background: #F0F0F0 !important;
                color: #777 !important;
                cursor: not-allowed !important;
            }

    #addModalOverlay .modal-foot {
        width: 100% !important;
        flex: 0 0 auto !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 12px !important;
        padding: 18px 50px 22px !important;
        margin: 0 !important;
        background: #fff !important;
        border-top: 1px solid #EEEEEE !important;
        box-sizing: border-box !important;
    }

    #addModalOverlay .modal-foot-actions {
        width: auto !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 12px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #addModalOverlay .btn-secondary,
    #addModalOverlay .btn-primary-modal {
        width: auto !important;
        min-width: 190px !important;
        height: 50px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 24px !important;
        margin: 0 !important;
        border-radius: 999px !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
        cursor: pointer;
    }

    #addModalOverlay .btn-secondary {
        background: #fff !important;
        color: #150A51 !important;
        border: 1px solid #D9D6E4 !important;
    }

        #addModalOverlay .btn-secondary:hover {
            background: #150A51 !important;
            color: #fff !important;
            border-color: #150A51 !important;
        }

    #addModalOverlay .btn-primary-modal {
        background: #FFD501 !important;
        color: #150A51 !important;
        border: 1px solid #FFD501 !important;
    }

        #addModalOverlay .btn-primary-modal:hover:not(:disabled) {
            background: #150A51 !important;
            color: #fff !important;
            border-color: #150A51 !important;
        }

        #addModalOverlay .btn-primary-modal:disabled {
            background: #E8E8E8 !important;
            color: #999 !important;
            border-color: #E8E8E8 !important;
            opacity: 1 !important;
            cursor: not-allowed !important;
        }

@media (max-width: 991px) {
    #addModalOverlay {
        padding: 20px !important;
    }

        #addModalOverlay > .modal {
            width: 720px !important;
            max-width: calc(100vw - 40px) !important;
            max-height: calc(100vh - 40px) !important;
        }

            #addModalOverlay > .modal > form {
                max-height: calc(100vh - 40px) !important;
            }

        #addModalOverlay .modal-body {
            padding: 46px 30px 28px !important;
        }

        #addModalOverlay .selected-config-title {
            font-size: 28px !important;
        }

        #addModalOverlay .config-row {
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            gap: 18px !important;
            padding: 22px !important;
        }

        #addModalOverlay .modal-foot {
            padding: 18px 30px 22px !important;
        }
}

@media (max-width: 576px) {
    #addModalOverlay {
        align-items: flex-start !important;
        justify-content: center !important;
        padding: 12px !important;
    }

        #addModalOverlay > .modal {
            width: 100% !important;
            max-width: 100% !important;
            max-height: calc(100dvh - 24px) !important;
            margin: 0 auto !important;
            border-radius: 18px !important;
        }

            #addModalOverlay > .modal > form {
                max-height: calc(100dvh - 24px) !important;
            }

        #addModalOverlay .modal-body {
            padding: 54px 18px 22px !important;
        }

        #addModalOverlay .modal-close {
            top: 12px !important;
            right: 12px !important;
            width: 34px !important;
            height: 34px !important;
        }

        #addModalOverlay .selected-config-title {
            margin-bottom: 20px !important;
            font-size: 24px !important;
        }

        #addModalOverlay .config-row {
            display: flex !important;
            flex-direction: column !important;
            gap: 16px !important;
            padding: 18px !important;
        }

        #addModalOverlay .subscription-product-name {
            font-size: 16px !important;
            padding-bottom: 14px !important;
        }

        #addModalOverlay .field input,
        #addModalOverlay .field select {
            height: 48px !important;
            font-size: 16px !important;
        }

        #addModalOverlay .modal-foot {
            padding: 16px 18px 20px !important;
            flex-direction: column !important;
        }

        #addModalOverlay .modal-foot-actions {
            width: 100% !important;
            flex-direction: column-reverse !important;
            gap: 10px !important;
        }

        #addModalOverlay .btn-secondary,
        #addModalOverlay .btn-primary-modal {
            width: 100% !important;
            min-width: 0 !important;
            height: 50px !important;
        }
}
