/* working canvas area styling */
.modal-backdrop.in {
    display: none;
}

#overlay {
    /* basic overlay styles */
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050; /*To ovverride bootstrap popup, carousel and menu*/
    /* basic overlay styles - end */
    display: grid;
    align-items: center;
    justify-content: center
}

.modal-voucher {
    z-index: 3;
    width: 100%;
    max-width: 1111px;
    margin: 15px;
    display: block;
    position: relative;
}

/* working canvas area styling - end */

/* hide second tab body - by default */

#voucher-popup .bonus-tab-body {
    display: none;
}

#voucher-popup .bonus-tab-body.display-block {
    display: block;
}

/* helper classes */

#voucher-popup .heading-1,
#voucher-popup .heading-2,
#voucher-popup .heading-3 {
    text-transform: uppercase;
    text-align: center;
}

#voucher-popup .heading-1 {
    font-size: 1.625rem;

}

#voucher-popup .heading-2 {
    font-size: 1.375rem;
    color: var(--blue);
}

#voucher-popup .heading-3 {
    font-size: 1rem;
}

#voucher-popup p { /* browser default in case is reseted */
    margin-left: 1em;
    margin-right: 1em;
}

#voucher-popup .small-text {
    font-size: 0.875rem;
}

#voucher-popup .bold {
    font-weight: 700;
}

#voucher-popup .extra-bold {
    font-weight: 800;
}

#voucher-popup .secondary-color-bg {
    background-color: var(--secondary-color);
}

#voucher-popup .main-color-bg {
    background-color: var(--main-color);
}

/* helper classes */

#voucher-popup { /* main-wrapper */
    display: flex;
    min-height: 685px;
    align-items: stretch;
    font-family: 'Open Sans', sans-serif;
    /* colors vars  */
    --dark-text: #555555;
    --dark-bg: #13181a;
    --light-bg: #eff3f4;
    --light-text: #ffffff;
    --blue: #0f76b5;
    /* overwrite main and secondary color vars according to website colors */
    --main-color: #9bc64e;
    --secondary-color: #ffa800;
}

.voucher-popup-close {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--light-text);
    text-align: center;
    line-height: 30px;
    right: -10px;
    top: -10px;
    font-size: 1.2em;
    cursor: pointer;
    -webkit-box-shadow: 4px 3px 25px -5px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 4px 3px 25px -5px rgba(0, 0, 0, 0.75);
    box-shadow: 4px 3px 25px -5px rgba(0, 0, 0, 0.75);

    z-index: 99;
}

#voucher-popup .operator-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: var(--dark-bg) url('/wp-content/themes/ministrap/assets/images/voucher-popup-bg.jpg') no-repeat top center;
    background-size: contain;
    padding: 45px;
    color: var(--light-text);
    text-align: center;
}

#voucher-popup .operator-info .operator-link > img {
    max-width: 200px;
}

#voucher-popup .operator-info .operator-link {
    margin-top: 0px;
    align-content: center;
    justify-content: center;
    align-items: center;
    display: flex;
    text-decoration: none;
    font-size: 12px;
    width: 15rem;
    height: 15rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

#voucher-popup .operator-info .legal-wrapper {
    display: flex;
    align-items: center;
    color: rgb(138, 138, 138);
}

#voucher-popup .operator-info .legal-sign::before {
    display: block;
    content: '18+';
    padding: 0;
    line-height: 22px;
    width: 30px;
    height: 30px;
    border: 4px solid #752929;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--light-text);
    margin-right: 10px;
}

#voucher-popup .bonus-info {
    flex: 2;
    background: white;
    padding: 25px 30px;
    color: var(--dark-text);
    text-align: center;
}

#voucher-popup .bonus-tabs-navigation {
    display: flex;
    margin: 20px 0;
}

#voucher-popup .bonus-tabs-navigation .tab-link {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    border: 2px solid var(--main-color);
    padding: 8px 5px 13px;
    cursor: pointer;
}

#voucher-popup .bonus-tabs-navigation .tab-link::before {
    content: '';
    display: block;
    position: absolute;
    top: 5px;
    height: 30px;
    width: 30px;
    border: 2px solid var(--main-color);
    border-radius: 50%;
}

#voucher-popup .bonus-tabs-navigation .tab-link:nth-of-type(1)::before {
    left: 10px;
}

#voucher-popup .bonus-tabs-navigation .tab-link:nth-of-type(2)::before {
    right: 10px;
}

#voucher-popup .bonus-tabs-navigation .tab-link .arrow-down {
    display: none;
    position: absolute;
    top: -2px;
    right: calc(50% - 12px);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid white;
}

#voucher-popup .bonus-tabs-navigation .tab-link .amount {
    font-size: 2.625rem;
    line-height: 3.2rem;
}

#voucher-popup .bonus-tabs-navigation .tab-link .bonus-text-container {
    max-width: 220px;
    align-self: center;
    text-transform: uppercase;
}

#voucher-popup .bonus-tabs-navigation .tab-link.selected {
    background-color: var(--main-color);
    color: white;
}

/* check circle */
#voucher-popup .bonus-tabs-navigation .tab-link.selected::before {
    background-color: white;
    border-color: white;
}

/* check tick */
#voucher-popup .bonus-tabs-navigation .tab-link.selected::after {
    content: '';
    display: block;
    position: absolute;
    top: 13px;
    width: 6px;
    height: 12px;
    border: solid var(--main-color);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

#voucher-popup .bonus-tabs-navigation .tab-link.selected:nth-of-type(1)::after {
    left: 22px;
}

#voucher-popup .bonus-tabs-navigation .tab-link.selected:nth-of-type(2)::after {
    right: 22px;
}

#voucher-popup .bonus-tabs-navigation .tab-link.selected .arrow-down {
    display: block;
}

/* voucher popup tab body */

#voucher-popup .popup-cta-row {
    display: flex;
    flex-wrap: nowrap;
    justify-items: center;
    align-items: center;
    margin: 25px 0;
}

#voucher-popup .popup-cta-row .cta-row-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    background-color: var(--blue);
    color: #fff;
    border-radius: 50%;
    padding: 0;
    margin-right: 10px;
}

/*#voucher-popup .popup-cta-row .cta-row-number:before {*/
/*display: block;*/
/*content: '';*/
/*background-color: var(--blue);*/
/*border-radius: 50%;*/
/*width: 25px;*/
/*height: 25px;*/
/*position: absolute;*/
/*z-index: -1;*/
/*left: 0;*/

/*}*/

#voucher-popup .popup-cta-row .popup-cta {
    padding: 20px 5px;
    text-transform: uppercase;
    text-decoration: none;
    color: white;
    display: flex;
    flex: 0.9;
    justify-content: center;
    height: auto;
}

#voucher-popup .popup-cta-row .popup-highlight {
    border-color: red;
}

#voucher-popup .popup-cta-row .popup-cta.placeholder {
    background-color: white;
    color: var(--dark-text);
    border: 2px dashed var(--dark-text);
}

#voucher-popup .popup-cta-row .popup-cta-field,
#voucher-popup .popup-cta-row input.popup-cta {
    background-color: var(--light-bg);
    color: var(--dark-text);
    border: none;
    text-align: center;
    user-select: none;
}

#voucher-popup .popup-cta-row .popup-cta-desc {
    flex: 1;
    min-width: 290px;
    text-align: left;
    padding-left: 15px;
}

#voucher-popup .cta-btn-inner-txt::after {
    content: '';
    display: inline-block;
    margin-left: 5px;
    border: solid rgba(255, 255, 255, 0.7);
    border-width: 0 2px 2px 0;
    padding: 4px;
    vertical-align: 1px;
    transform: rotate(-45deg);
}

/* MEDIA */

@media (max-width: 992px) {
    #overlay {
        overflow: scroll;
    }

    .modal-voucher {
        width: calc(100% - 30px);
    }

    #voucher-popup .hidden-mobile {
        display: none !important;
    }

    #voucher-popup {
        flex-direction: column;
    }

    .voucher-popup-close {
        background: var(--dark-bg);
        color: #fff;
    }

    #voucher-popup .operator-info {
        flex: auto;
        min-height: 160px;
        background-size: cover;
        padding-bottom: 1rem;
    }

    #voucher-popup .bonus-info {
        flex: auto;
        padding: 0;
    }

    #voucher-popup .heading-1 {
        font-size: 1.2rem;
        padding-top: 1rem;
    }

    #voucher-popup .bonus-tabs-navigation {
        margin: 0 0 1em;
    }

    #voucher-popup .bonus-tabs-navigation .tab-link {
        background-color: var(--light-bg);
        border: none;
    }

    #voucher-popup .bonus-tabs-navigation .tab-link.selected::before,
    #voucher-popup .bonus-tabs-navigation .tab-link::before {
        display: none;
    }

    #voucher-popup .bonus-tabs-navigation .tab-link.selected .arrow-down {
        top: 0;
    }

    #voucher-popup .popup-cta-row {
        flex-wrap: wrap;
        margin: 10px;
        padding: 10px;
        background-color: var(--light-bg);
    }

    #voucher-popup .popup-cta-row input.popup-cta {
        background-color: white;
    }

    #voucher-popup .popup-cta-row .cta-row-number {
        order: 1;
    }

    #voucher-popup .popup-cta-row .popup-cta-desc {
        padding: 0;
        min-width: 0;
        order: 2;
    }

    #voucher-popup .popup-cta-row .popup-cta.popup-cta-field {
        color: var(--blue);
        font-weight: 700;
        box-shadow: 0px 0px 5px #0000003d;
    }

    #voucher-popup .popup-cta-row .popup-cta {
        flex: auto;
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
}