/** FD_e014 - Cookie formatage par défaut du titre et du texte */

.cookieTitle {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.cookieText {
    margin-bottom: 10px;
}


/** Cookie Bar design */

#cookieBar {
    background-color: rgba(20, 20, 20, 0.8);
    min-height: 26px;
    font-size: 14px;
    color: #FFF;
    line-height: 26px;
    padding: 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: none;
}

#cookieBar .close {
    float: right;
    cursor: pointer;
    font-size: 18px;
    line-height: 24px;
}

#cookieBar h3 {
    margin: 0;
    font-weight: bold;
}

#cookieBar span {
    position: relative;
    top: 7px;
}

#cookieBar a {
    color: #9cd22e;
}

#cookieBar a:hover {
    color: #9cd22e;
}

#closeCookieBar {
    float: right;
    cursor: pointer;
    height: 20px;
    width: 20px;
    margin: -10px 0 0 0;
    font-weight: bold;
}

#closeCookieBar:hover {
    color: #FFF;
}

#cookieBar a {
    font-size: 14px;
}

#cookieBar-BtnContainer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#cookieBar .cookieBtn {
    padding: 5px 30px;
    cursor: pointer;
    margin: 0px 10px 0px 0px;
    border-radius: 0.3em;
    display: block;
}

#cookieBar .cookieBtn:hover {
    text-decoration: none !important;
}

#cookieBar .cookieBtn.green {
    background-color: #84b222;
    color: #FFF;
}

#cookieBar .cookieBtn.green:hover {
    background-color: #749c1e;
}

#cookieBar .cookieBtn.darkblue {
    background-color: rgb(44, 62, 79);
    color: rgb(255, 255, 255);
}

#cookieBar .cookieBtn.darkblue:hover {
    background-color: rgb(40, 56, 71);
}


/** Modal box design */

#cookiePopup {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10000;
    left: 0px;
    top: 0px;
    align-items: center;
    justify-content: center;
}

#cookiePopup {
    color: #666;
}

#cookiePopup .cookiePopup_content {
    background-color: #f7f7f7;
    color: #666;
    padding: 30px;
    border-radius: 0.3em;
    box-sizing: border-box;
    /* transform: translate(-50%, -50%); */
    max-width: 990px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

#cookiePopup #cookiePopupCategories {
    padding-top: 30px;
}

#cookiePopup .cookiePopup_content .title {
    font-weight: 800;
    font-size: 16px;
    padding-right: 10px;
}

#cookiePopup .cookiePopup_content .cookieBtn {
    padding: 10px 30px;
    cursor: pointer;
    margin: 30px 10px 0 0px;
    border-radius: 0.3em;
    width: 120px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cookiePopup-BtnContainer {
    display: flex;
    justify-content: center;
}

#cookiePopup .cookiePopup_content .cookieBtn.green {
    background-color: #84b222;
    color: #FFF;
}

#cookiePopup .cookiePopup_content .cookieBtn.green:hover {
    background-color: #749c1e;
}

#cookiePopup .cookiePopup_content .close {
    float: right;
    cursor: pointer;
    font-size: 18px;
    line-height: 24px;
}


/* * Cookie switch button  */

.cookiePopupCategory {
    border-top: 1px solid #d9d9d9;
    padding-bottom: 10px;
}

#cookiePopup .cookiePopupCategory .cookiePopupCategoryRadio {
    display: flex;
    padding: 10px 0 10px 0;
    align-items: center;
}

.cookiePopupCategory .explanation {
    text-align: justify;
}

#cookiePopup .cookiePopup_content .btn-switch {
    margin-left: auto;
    font-size: 10px;
    position: relative;
    width: 60px;
    display: table;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#cookiePopup .cookiePopup_content .btn-switch__radio {
    display: none;
}

#cookiePopup .cookiePopup_content .btn-switch__label {
    display: inline-block;
    padding: .75em .5em .75em .75em;
    vertical-align: top;
    font-size: 1em;
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
    cursor: pointer;
    transition: color .2s ease-in-out;
}

#cookiePopup .cookiePopup_content .btn-switch__label+.btn-switch__label {
    padding-right: .75em;
    padding-left: 0;
}

#cookiePopup .cookiePopup_content .btn-switch__txt {
    position: relative;
    z-index: 99;
    display: inline-block;
    min-width: 1.5em;
    opacity: 1;
    pointer-events: none;
    transition: opacity .2s ease-in-out;
}

#cookiePopup .cookiePopup_content [data-category="functional"],
#cookiePopup .cookiePopup_content [data-category="audience"] {
    display: none !important;
}

#cookiePopup .cookiePopup_content .btn-switch__radio_no:checked~.btn-switch__label_yes .btn-switch__txt,
#cookiePopup .cookiePopup_content .btn-switch__radio_yes:checked~.btn-switch__label_no .btn-switch__txt {
    opacity: 0;
}

#cookiePopup .cookiePopup_content .btn-switch__label:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgb(44, 62, 79);
    border-radius: 15px;
    box-shadow: inset 0 .0715em .3572em rgba(43, 43, 43, .05);
    transition: background .2s ease-in-out;
}

#cookiePopup .cookiePopup_content .btn-switch__radio_yes:checked~.btn-switch__label:before {
    background: #84b222;
}

#cookiePopup .cookiePopup_content .btn-switch__label_no:after {
    content: "";
    position: absolute;
    z-index: 99;
    top: .5em;
    bottom: .5em;
    left: .5em;
    width: 2em;
    background: #fff;
    border-radius: 1em;
    pointer-events: none;
    box-shadow: 0 .1429em .2143em rgba(43, 43, 43, .2), 0 .3572em .3572em rgba(43, 43, 43, .1);
    transition: left .2s ease-in-out, background .2s ease-in-out;
}

#cookiePopup .cookiePopup_content .btn-switch__radio_yes:checked~.btn-switch__label_no:after {
    left: calc(100% - 2.5em);
    background: #FFF;
}

#cookiePopup .cookiePopup_content .btn-switch__radio_no:checked~.btn-switch__label_yes:before,
#cookiePopup .cookiePopup_content .btn-switch__radio_yes:checked~.btn-switch__label_no:before {
    z-index: 9;
}

#cookiePopup a,
#cookiePopup a:hover {
    color: #83b223;
}

.cookiePopupCategory-moreContent {
    display: none;
}

.cookiePopupCategory-moreContent-item {
    padding-top: 10px;
}

.cookiePopupCategory-moreContent-title {
    font-weight: bold;
}


/** Cookies Animations */

.animated {
    -webkit-animation-duration: 500ms;
    animation-duration: 500ms;
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fadeIn {
    -webkit-animation-name: fadeIn;
    animation-name: fadeIn;
}

@-webkit-keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.fadeOut {
    -webkit-animation-name: fadeOut;
    animation-name: fadeOut;
}

@-webkit-keyframes slideOutDown {
    from {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    to {
        visibility: hidden;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0);
    }
}

@keyframes slideOutDown {
    from {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    to {
        visibility: hidden;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0);
    }
}

.slideOutDown {
    -webkit-animation-name: slideOutDown;
    animation-name: slideOutDown;
}