.modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.modal {
    display: none;
}

.modal-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .3);
    opacity: 0;
    transition: opacity .2s ease;
}

.modal.show .modal-backdrop {
    opacity: 1;
}

.modal-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: all .2s ease;
    transform: translateY(-50px);
}

.review-modal h2 {
    margin-bottom: 10px;
    border-bottom: solid 1px var(--border-light);
    padding-bottom: 10px;
}

.modal.show .modal-content {
    opacity: 1;
    transform: translateY(0);
}

.modal-content>* {
    pointer-events: auto;
}

.auth-modal,
.review-modal {
    position: relative;
    background-color: #fff;
    padding: 35px 25px 25px 25px;
    width: 480px;
    max-width: 95%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-large);

}

.review-modal {
    width: 500px;
}

.popup-tab-content {
    display: none;
}

.popup-tab-content.active-tab {
    display: block;
}

.auth-modal p.sub-title {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 10px;
}

.modal button.close {
    font-size: 0;
    background-image: url(../images/icons/close.svg);
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-color: white;
    width: 30px;
    height: 30px;
    border-radius: 100px;
    position: absolute;
    right: 10px;
    top: 10px;
    transition: .1s ease;
    z-index: 3;
}

.modal button.close:hover {
    box-shadow: 0px 2px 6px -3px rgba(0, 0, 0, 0.2);
}

.modal button.close:active {
    box-shadow: 0px 2px 6px -3px rgba(0, 0, 0, 0.2);
    background-color: var(--grey);
    transform: translate(0px, 1px);
}

@media (max-width:767px) {
    .modal-content {
        align-items: flex-start;
    }

    .modal.show .modal-content {
        opacity: 1;
        transform: translateY(10px);
    }

    .popup-tab-login h2,
    .popup-tab-sign-up h2 {
        font-size: 18px;
    }

    .auth-modal p.sub-title {
        font-size: 13px;
    }

    .auth a.custom-logo-link {
        max-width: 180px;
    }

    .auth-modal {
        overflow-y: scroll;
        padding: 30px 20px 30px 20px;
        max-height: calc(100dvh - 20px);
    }
}