:root {
    --white: #fff;
    --black: #000;
    --green: #25b125;
    --dark-gray: #333;
    --medium-gray: #666;
    --light-gray: #EEE;
}

/**
 * @section consent banner styles
 * specific styles for popup and banner
 */
#cookieNoticeBanner {
    position: fixed;
    width: 100%;
    height: auto;
    max-height: 200px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 9999;
    transition: max-height 300ms ease;
    display: none;
}
#cookieNoticeBanner.hide {
    overflow: hidden;
    max-height: 0;
    transition: max-height 300ms ease;
}
#cookieNotice {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    padding: 20px 15px;
}
.cookieNoticeInfo {
    display: block;
    margin: 0;
    width: 100%;
}
.cookieNoticeButtons {
    display: flex;
    flex-direction: row-reverse;
    padding: 0 20px;
    text-align: right;
    width: 100%;
}


/* Consent Banner */
.showConsentBanner, .showCookieNoticeBanner, .showConsent, .showCookieNotice, #showConsentBanner, #showCookieNoticeBanner, #showConsent, #showCookieNotice {
    cursor: pointer;
}
#cookieNoticeBanner,
#cookieNoticePopup {
    display: none;
}
#cookieNoticeBanner.cookieNoticeBanner.show,
#cookieNoticePopup.cookieNoticePopup.show  {
    display: block;
}
.notice-wrapper {
    background: var(--white);
    position: fixed;
    top: 10%;
    left: 50%;
    z-index: 2147483646;
    width: 780px;
    margin-bottom: 20px;
    overflow-y: scroll;
    min-height: 400px;
    max-height: 90vh;
    height: auto;
    box-shadow: 0 0 3px 0 var(--light-gray);
    transform: translateX(-50%);
}
.notice-wrapper .close_popup {
    display: block;
    width: 25px;
    height: 25px;
    position: absolute;
    right: 25px;
    top: 15px;
    cursor: pointer;
}
.notice-wrapper .close_popup:after,
.notice-wrapper .close_popup:before {
    position: absolute;
    right: 11px;
    top: 2px;
    content: '';
    height: 21px;
    width: 2px;
    background-color: var(--medium-gray);;
}
.notice-wrapper .close_popup:before {
    transform: rotate(45deg);
}
.notice-wrapper .close_popup:after {
    transform: rotate(-45deg);
}
.notice-wrapper .section {
    display: flex;
    flex-direction: row;
    margin: 0;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;

}
.section.intro {
    padding: 15px;
    background: var(--light-gray);
    border-bottom: 1px solid var(--medium-gray);
}
.cookieNoticeInfo p,
.section.intro p {
    font-size: 0.8rem;
}
.section .button_container {
    padding: 0;
    width: 33.333%;
    max-width: 33.333%;
    flex: 0 0 33.333%;
}
.section .checkbox_option.show-for-small-only {
    display: none;
}
.checkbox_option .toggler {
    padding:10px 15px;
    cursor: pointer;
    background-color: var(--light-gray);
    transition: background-color 0.2s linear;
}
.checkbox_option .toggler p {
    margin: 0;
    padding: 0;
}
.checkbox_option .toggler i {
    display: none;
    float: right;
    line-height: 1.6;
}
.checkbox_option .toggler:hover,
.checkbox_option .toggler.ui-accordion-header-active,
.checkbox_option .toggler.ui-state-active {
    background-color: var(--white);
    transition: background-color 0.2s linear;
}
.checkbox_option .toggler:hover i,
.checkbox_option .toggler.ui-accordion-header-active i,
.checkbox_option .toggler.ui-state-active i {
    display: inline-block;
}
.section .detail_container {
    padding: 15px;
    width: calc(66.666% - 30px);
    max-width: calc(66.666% - 30px);
    flex: 0 0  calc(66.666% - 30px);
}
.detail_container .headline .name{
    font-size: 1.2rem;
    display: inline-block;
}
.detail_container .headline label{
    float: right;
}

/* Checkbox Switch styles */
.switch input[type="checkbox"] {
    display:none;
}
.switch input[type="checkbox"] + label {
    width: 50px;
    height: 25px;
    border-radius: 25px;
    border-width: 2px;
    border-style: solid;
    border-color: var(--medium-gray);
    background-color: var(--medium-gray);;
    display: inline-block;
    content: "";
    margin: 0 5px 0 0;
    transition: margin 0.2s linear, background-color 0.2s linear, border-color 0.2s linear;
    line-height: 2;
}
.switch input[type="checkbox"] + label:hover {
    cursor: pointer;
}
.switch input[type="checkbox"] + label:before {
    width: 21px;
    height: 21px;
    border-radius: 30px;
    background-color: var(--white);
    display: block;
    content: "";
    float: left;
    margin-right: 5px;
    transition: margin 0.2s linear, background-color 0.2s linear, border-color 0.2s linear;
}
.switch input[type="checkbox"]:checked + label {
    border-width: 2px;
    border-style: solid;
    border-color:  var(--green);
    background-color: var(--green);
}
.switch input[type="checkbox"].disabled:checked + label {
    opacity: 0.4;
}
.switch input[type="checkbox"].disabled + label:hover {
    cursor: default;
}
.switch input[type="checkbox"]:checked + label:before {
    margin: 0 0 0 25px;
    background-color: var(--white);
}

.section.buttons {
    padding: 15px;
    justify-content: flex-end;
    border-top: 1px solid var(--light-gray);
}

#cookieNoticeBanner .cookieNoticeButtons button,
#cookieNoticePopup .section.buttons button {
    margin-left: 2rem;
    font-size: 1rem;
}

.mod_ixcnb_cookie_notice .btn-primary-hover-secondary {
    display: block;
    font-weight: 600;
    padding: 10px;
    cursor: pointer;
    transition: all .3s;
}

.mod_ixcnb_cookie_notice .btn-primary-hover-secondary:hover {
    color: var(--black);
    background: transparent;
}

@media screen and (max-width: 767px) {

    #cookieNoticeBanner {
        max-height: 50vh;
        overflow-y: scroll;
    }
    .mod_ixcnb_cookie_notice h1,
    .mod_ixcnb_cookie_notice h2 {
        font-size: 1.5rem;
        margin: 0;
    }
    .mod_ixcnb_cookie_notice p {
        font-size: 1rem;
        line-height: 1.3;
    }
    .notice-wrapper {
        top: 0;
        bottom: 0;
        width: 100vw;
        height: auto;
        max-height: calc(100vh - calc(env(safe-area-inset-bottom) + env(safe-area-inset-top)));
        margin-bottom: 0;
        overflow-y: scroll;
    }
    .notice-wrapper .section {
        display: block;
    }
    .notice-wrapper .section .button_container.hide-for-small-only {
        display: none !important;
    }
    .section .detail_container {
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    .section .detail_container .cnb-details {
        padding: 10px 15px;
    }
    .section .checkbox_option.show-for-small-only {
        display: block !important;
    }
    .checkbox_option .toggler,
    .checkbox_option .toggler:hover {
        background-color: var(--light-gray);
    }
    .checkbox_option .toggler p {
        font-size: 1.2rem;
    }
    .checkbox_option .toggler i {
        display: inline-block;
        transform: rotate(90deg);
    }
    .checkbox_option .toggler.ui-accordion-header-active i,
    .checkbox_option .toggler.ui-state-active i {
        transform: rotate(-90deg);
    }
    .checkbox_option .toggler.ui-accordion-header-active,
    .checkbox_option .toggler.ui-state-active {
        background-color: var(--light-gray);
    }
    .section.buttons {
        padding: 30px 0 15px 0;
    }
    #cookieNoticeBanner .cookieNoticeButtons {
        display: block;
        padding: 15px 20px;
    }
    #cookieNoticeBanner .cookieNoticeButtons button {
        margin: 0 0 15px;
        width: 100%;
        box-sizing: border-box;
    }
    #cookieNoticePopup .section.buttons button {
        margin: 0 15px 15px;
        width: calc(100% - 30px);
        box-sizing: border-box;
    }
    #cn-selectAllCheckboxes {
        order: 1;
    }
    #cn-selectSpecific-Popup {
        order: 2;
    }

}
