@import '../../style/variables.scss';

.site-modal{
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s;
    &::before{
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        background: #000;
        opacity: 0;
        transition: all 0s;
        z-index: -1;
    }
    &.show{
        top: 0;
        bottom: 0;
        opacity: 1;
        visibility: visible;
        transition: all 0.6s;
        &::before{
            opacity: 0.3;
            transition: all 0.6s;
        }
    }
    &.delete{
        
        .modal-boday{ 
            @media only screen and (min-width: 1441px) {
                max-width: 890px;
            }
            .modal-title{
                font-weight: 400;
                color: $primary;
                font-family: 'Canto';
                text-transform: none;
            }
            i{
                color: $red;
                
            }
            .ns-icon{
                width: 50px;     
                height: 50px;
                margin-left: auto;
                margin-right: auto;
                @media only screen and (min-width: 768px) {
                    width: 70px;     
                    height: 70px;
                }
                @media only screen and (min-width: 1441px) {
                    width: 90px;     
                    height: 90px;
                }
                &::before{
                    mask-size: contain;
                    background-color: $red;
                }
            }
            .modal-btn-group{
                
                .modal-btn{
                    width: 100%;
                    font-family: 'Avenir Next';
                    font-weight: 500;
                    @media only screen and (min-width: 1441px) {
                        font-size: 16px;
                        height: 54px;
                    }
                }
            }
        }
    }
    &.successfully-modal{
        .modal-boday{
            img{
                max-width: 40px;
                margin: auto;
                @media only screen and (min-width: 640px) {
                    max-width: 60px;
                }
                @media only screen and (min-width: 768px) {
                    max-width: 80px;
                }
                @media only screen and (min-width: 1024px) {
                    max-width: 100px;
                }
                @media only screen and (min-width: 1200px) {
                    max-width: 130px;
                }
            }
            h2{
                margin-bottom: 20px;
            }
            p{
                max-width: 508px;
                margin: 0 auto;
            }
            .modal-btn-group{
                margin-top: 24px;
                @media only screen and (min-width: 640px) {
                    margin-top: 46px;
                }
            }
        }
    }
    &.cookies-modal{
        &.show{
            top: auto;
        }
        .modal-boday{
            gap: 10px;
            padding: 20px;
            @media only screen and (min-width: 768px) {
                max-width: 1320px;
                text-align: start;
                padding: 30px;
            }
            @media only screen and (min-width: 640px) {
                gap: 20px;
                padding: 30px 50px;
            }
            h2{
                margin: 0 0 16px;
                @media only screen and (min-width: 640px) {
                    font-size: 26px;
                    line-height: 1.2;
                }
            }
            p{
                font-size: 16px;
                @media only screen and (min-width: 1024px) {
                    font-size: 18px;
                }
            }
            .modal-btn-group{
                margin-top: 16px;
                @media only screen and (min-width: 768px) {
                    margin: 0;
                }
            }
        }
    }
    &.bank-details-modal{
        .modal-boday{
            h2{
                margin-top: 0;
            }
            .custom-select{
                text-align: start;
            }
            .input-group {
                label{
                    text-align: start;
                }
            }
            .modal-btn-group{
                margin: 0;
                .modal-btn{
                    @media only screen and (min-width: 1200px) {
                        padding-left: 40px;
                        padding-right: 40px;
                    }
                    @media only screen and (min-width: 1441px) {
                        padding-left: 60px;
                        padding-right: 60px;
                    }
                }
            }
        }
    }
    &.conditions-modal{
        .modal-boday{
            position: relative;
            @media only screen and (min-width: 768px) {
                padding: 40px;
                padding-bottom: 10px;
                max-width: 700px;
            }
            @media only screen and (min-width: 1441px) {
                max-width: 1000px;
            }
            .icon-cross{
                position: absolute;
                right: 10px;
                top: 10px;
                font-size: 20px;
                cursor: pointer;
                @media only screen and (min-width: 640px) {
                    right: 20px;
                    top: 20px;
                    font-size: 30px;
                }
            }
            h2{
                margin: 0 0 16px;
                @media only screen and (min-width: 640px) {
                    margin: 0 0 20px;
                }
                @media only screen and (min-width: 1441px) {
                    margin: 0 0 30px;
                }
            }
            .conditions-content-wrapper{
                height: 320px;
                p{
                    &:last-child{
                        margin-bottom: 0;
                    }
                }
            }
        }
      
    }
    &.filter-modal{
        .modal-boday{
            position: relative;
            @media only screen and (min-width: 1200px){
                max-width: 580px;
            }
            @media only screen and (min-width: 1441px){
                max-width: 890px;
            }
            h2{
                margin-top: 0;
                margin-bottom: 10px;
                @media only screen and (min-width: 640px){
                    margin-bottom: 20px;
                }
                @media only screen and (min-width: 1440px){
                    margin-bottom: 40px;
                }
            }
            .ns-icon{
                position: absolute;
                top: 10px;
                right: 10px;
                width: 20px;
                height: 20px;
                cursor: pointer;
                transition: 0.3s ease-in-out;
                @media only screen and (min-width: 768px){
                    width: 22px;
                    height: 22px;
                    top: 20px;
                    right: 20px;
                }
                @media only screen and (min-width: 1200px){
                    width: 24px;
                    height: 24px;
                }
                &::before{
                    background-color: $primary;
                    transition: 0.3s ease-in-out;
                }
                &:hover{
                    &::before{
                        background-color: $black25;
                    }
                }
            }
        }
    
    }
    .modal-boday{
        width: 100%;
        max-width: 450px;
        margin: auto;
        background: $white;
        padding: 20px 16px;
        text-align: center;
        @media only screen and (min-width: 640px) {
            padding: 30px;
        }
        @media only screen and (min-width: 768px) {
            padding: 40px;
        }
        @media only screen and (min-width: 1200px){
            max-width: 560px;
        }
        @media only screen and (min-width: 1441px) {
            max-width: 790px;
            padding: 60px;
        }
        .error-msg{
            text-align: start;
        }
        i{
            font-size: 40px;
            color: $primary;
            @media only screen and (min-width: 640px) {
                font-size: 60px;
            }
            @media only screen and (min-width: 1441px) {
                font-size: 100px;
            }
        }
        h2{
            font-size: 22px;
            line-height: 1.2;
            color: $primary;
            margin-top: 20px;
            margin-bottom: 0;
            font-family: 'Canto';
            font-weight: 400;
            text-transform: capitalize;
            @media only screen and (min-width: 1200px){
                font-size: 30px;
            }
            @media only screen and (min-width: 1441px) {
                font-size: 36px;
                line-height: 40px;
                margin-top: 40px;
            }
            @media only screen and (min-width: 1600px) {
                font-size: 50px;
                line-height: 55px;
            }
        }
        .modal-btn-group{
            gap: 10px;
            margin-top: 20px;
            @media only screen and (min-width: 640px) {
                gap: 20px;
                margin-top: 24px;
            }
            @media only screen and (min-width: 1441px) {
                margin-top: 40px;
            }
            .border-btn{
                border-color: $mainBorder;
                &:hover{
                    border-color: $primary;
                }
            }
            .modal-btn{
                cursor: pointer;
                @media only screen and (min-width: 1200px) {
                    padding-left: 40px;
                    padding-right: 40px;
                }
                @media only screen and (min-width: 1441px) {
                    padding-left: 60px;
                    padding-right: 60px;
                }
            }
        }
        .conditions-content-wrapper{
            padding: 20px;
            background-color: $LightCream;
            border-radius: 12px;
            text-align: start;
            height: 250px;
            overflow-y: auto;
            scrollbar-color: $primary #e6d8c5;
            scrollbar-width: thin;
            &::-webkit-scrollbar {
                width: 8px;
                height: 8px;
            }
            &::-webkit-scrollbar-thumb {
                background-color: $primary;
            }
            &::-webkit-scrollbar-track {
                background-color: #e6d8c5;
            }
            p{
                max-width: 100%;
            }
        }
    }
    .react-datepicker-wrapper {
        .react-datepicker__input-container {
            .date-btn{
                border-color: #C1C1C1;
            }
        }
    }
    .react-select-menu {
        .css-t3ipsp-control{
            background-color: transparent;
        }
        .css-13cymwt-control{
            background-color: transparent;
            border-color: #C1C1C1;
            font-family: 'Avenir Next';
            font-size: 14px;
            font-weight: 400;
            color: $grey5E;
            @media only screen and (min-width: 640px) {
                font-size: 16px;
            }
            &:hover{
                border-color: #C1C1C1;
            }
        }
        .css-t3ipsp-control{
            &:focus-within{
                border-color: #C1C1C1;
                &:hover{
                    border-color: tr;
                }
            }
        }
        .css-t3ipsp-control:hover , .css-t3ipsp-control:focus{
            border-color: #C1C1C1;
            background-color: transparent;
        }
        .css-t3ipsp-control:focus{
            border-color: #C1C1C1;
        }
    }
    .custom-radio{
        border-color: #C1C1C1;
        &::before{
            outline-color:#C1C1C1;
        }
    }
    .input-group{
        @media only screen and (min-width: 1440px) {
            margin-bottom: 40px;
        }
       
    }
    .filter-events-form {
        .filter-events-data{            
            .action-btn{
                width: 50%;
                font-family: 'Avenir Next';
                font-size: 14px;
                font-weight: 500;
                line-height: 1.5;
                letter-spacing: 0.01em;
                @media only screen and (min-width: 1200px) {
                    font-size: 16px;
                }

            }
            .border-btn{
                color: $primary;
                &:hover{
                    color: $white;
                }
            }
            .modal-btn-group{
                margin-top: 0;
            }
        }

    }
    &.guest-checkout{
        .modal-boday {
            h2{
                @media only screen and (min-width: 1441px){
                    margin-top: 20px;
                }
            }
        }
        .checkout-form{
            margin-top: 20px;
            @media only screen and (min-width: 1441px){
                margin-top: 40px;
            }
        }
        .ns-icon-cross{
            position: absolute;
            right: 20px;
            top: 20px;
            width: 22px;
            height: 22px;
            cursor: pointer;
            transition: 0.3s ease-in-out;
            @media only screen and (min-width: 1200px) {
                width: 26px;
                height: 26px;
            }
            @media only screen and (min-width: 1441px) {
                width: 30px;
                height: 30px;
                right: 30px;
                top: 30px;
            }
            &::before{
                background-color: $primary;
            }
            &:hover{
                &::before{
                    background-color: $black25;
                } 
            }
        }
    }
    
}
.cookie-box-wrapper{
    position: fixed;
    width: 100%;
    height: 100vh;
    left: 0;
    top: 0;
    right: 0;
    margin: auto;
    z-index: 99;
    background: rgb(0 0 0 / 30%);
    .CookieConsent{
        background-color: $primary !important;
        align-items: center !important;
        z-index: 999 !important;
        padding: 0 !important;
        @media only screen and (min-width: 640px) {
            padding: 0 30px !important;
        }
        @media only screen and (min-width: 1200px) {
            padding: 0 60px !important;
        }
        p{
            color: $white;
        }
        button{
            padding: 8px 12px !important;
            font-size: 14px !important;
            line-height: 16px;
            @media only screen and (min-width: 640px) {
                padding: 10px 16px !important;
                font-size: 16px !important;
                line-height: 18px;
            }
            @media only screen and (min-width: 1200px) {
                padding: 14px 20px !important;
                font-size: 18px !important;
                line-height: 18px;
            }
        }
        #rcc-decline-button{
            background: transparent !important;
            border: 1px solid $white !important;
            color: $white !important;
            margin-right: 0 !important;
            &:hover{
                color: $primary !important;
                background-color: $white !important;
                border: 1px solid $primary !important;
            }
        }
        #rcc-confirm-button{
            color: $primary !important;
            background-color: $white !important;
            border: 1px solid $white !important;
            &:hover{
                background-color: transparent !important;
                color: $white !important;
                border: 1px solid $white !important;
            }
        }
    }
}