.toggleSwitch {
    width: 45px;
    height: 41px;
    cursor: pointer;
}

.toggleSwitch svg {
    fill: #3b3b3b;
}

.toggleSwitch.checked svg {
    fill: #359a4c;
}

.toggleSwitch.checked:hover svg {
    fill: #58c571;
}

.toggleSwitch.disabled svg {
    fill: #cecece;
}

.toggleSwitch.disabled {
    pointer-events: none;
}

body {
    background-color: burlywood;
}

.cookieWarningContainer {
    position: fixed;
    opacity: 1;
    height: 100vh;
    width: 100vw;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.5);
    display: none;
    z-index: 10000;
}

.cookieDialogContainer {
    width: 700px;
    height: 468px;
    background-color: #fff;
    border-radius: 8px;
}

.tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
    border-radius: 8px 8px 0px 0px;
    height: 64px;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: bold;
}

.tabs>* {
    width: 100%;
    color: #3b3b3b;
    height: 100%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: #d9d9d9 solid 10px;
}

.tabs .consent {
    border-top-left-radius: 8px;
}

.tabs .details {
    border-top-right-radius: 8px;
}

.tabs>*:hover:not(.active) {
    color: #359a4c;
}

.tabs>.active {
    color: #359a4c;
    background-color: #fff;
    border-bottom: #359a4c solid 10px;
}

.panel {
    display: none;
}

.panel.active {
    display: block;
}

.consent.title {
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.35;
    letter-spacing: normal;
    text-align: left;
    color: #3b3b3b;
    margin-left: 16px;
    padding-top: 20px;
}

.consent.description {
    margin: 20px 20px 20px 16px;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.33;
    letter-spacing: normal;
    text-align: left;
    color: #656565;
}

.consent.toggleContainer {
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    height: 132px;
    border-top: 1px solid #cecece;
    border-bottom: 1px solid #cecece;
}

.consent.statisticsToggleContainer,
.consent.marketingToggleContainer,
.consent.necessaryToggleContainer {
    display: grid;
    justify-content: center;
    padding: 23px 0;
}

.consent.statisticsToggleContainer {
    border-left: 1px solid #cecece;
    border-right: 1px solid #cecece;
}

.consent.statisticsToggleTitle,
.consent.marketingToggleTitle,
.consent.necessaryToggleTitle {
    margin: 0 0 25px -10px;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.33;
    letter-spacing: normal;
    text-align: left;
    color: #3b3b3b;
}

.consent.statisticsToggleTitle {
    margin-left: -7px;
}

.consent.marketingToggleTitle {
    margin-left: -11px;
}

.buttonsContainer {
    float: right;
    bottom: 20px;
}

.allowAllButton,
.allowSelectionButton {
    width: 250px;
    margin: 25px 10.3px 20px 0px;
    padding: 15px 0;
    border-radius: 10px;
    background-color: #359a4c;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.33;
    letter-spacing: normal;
    text-align: left;
    color: #fff;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

.allowAllButton {
    margin: 25px 20px 20px 0px;
}

.allowAllButton:hover,
.allowSelectionButton:hover {
    background-color: #58c571;
}

/** Details **/

.details.description {
    overflow-y: auto;
    height: 300px;
    margin-right: 3px;
    padding: 0 16px;
}

.details.description::-webkit-scrollbar {
    width: 5px;
}

.details.description::-webkit-scrollbar-thumb {
    background-color: #9b9b9b;
}

.Accordion {
    border-bottom: 1px solid #cecece;
}

.AccordionTitle {
    display: flex;
    padding: 18px 0;
}

.AccordionTitle > div:first-child {
    color: #359a4c;
    cursor: pointer;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: 0.4s;
    flex: 0 64px;
    flex-shrink: 1;
    white-space: nowrap;
    padding-top: 2px;
    padding-right: 10px;
}

.AccordionTitle > div:nth-child(2) {
    padding-top: 1px;
    flex: 0 18px;
}

.AccordionTitle svg {
    fill: #359a4c;
}

.AccordionTitle > div:nth-child(3) {
    flex: 1 0;
    text-align: right;
}

.AccordionTitle .toggleSwitch {
    display: inline-block;
}

.AccordionContent {
    height: 0;
    overflow: hidden;
}

.Accordion.opened .AccordionContent {
    height: auto;
    padding-bottom: 11px;
}

/*
.necessaryAccordion:hover,
.statisticsAccordion:hover,
.marketingAccordion:hover {
    color: #58c571;
}
*/

.details.necessaryPanel {
    padding: 0 18px;
    color: #656565;
    /* background-color: white; */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.CookiesSection {
    padding-right: 150px;
}

.CookieVendor,
.CookieDetailsTitle {
    font-family: 'OpenSans', Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.33;
    letter-spacing: normal;
    text-align: left;
    color: #3b3b3b;
}

.CookieVendor {
    padding-bottom: 9px;
}

.CookieDetails {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 30px;
}

.CookieDetails:last-child {
    padding-bottom: 0;
}

.CookieDetailsTitle,
.CookieDescription {
    flex: 0 100%;
}

.CookieDescription {
    padding: 10px 0;
}

.CookieExpiry{
    flex: 0 60%;
}

.CookieType {
    flex: 0 40%;
}

@media all and (max-width: 767px) {
    .cookieDialogContainer {
        width: 90vw;
        height: 90vh;
    }

    .consent.description {
        height: calc(90vh - 530px);
        padding-right: 5px;
        overflow-y: auto;
    }

    .consent.toggleContainer {
        display: block;
        align-items: center;
        height: auto;
        padding: 0 15px;
    }

    .consent.statisticsToggleContainer,
    .consent.marketingToggleContainer,
    .consent.necessaryToggleContainer {
        display: flex;
        padding: 0 0 17px 0;
        justify-content: space-between;
    }

    .consent.necessaryToggleContainer {
        padding-top: 13px;
    }

    .consent.marketingToggleContainer{
        padding-bottom: 13px;
    }

    .consent.statisticsToggleContainer {
        border-left: none;
        border-right: none;
    }

    .consent.statisticsToggleTitle,
    .consent.marketingToggleTitle,
    .consent.necessaryToggleTitle {
        margin: 0;
        line-height: 41px;
    }

    .details.description {
        height: calc(90vh - 258px);
    }

    .CookiesSection {
        padding-right: 10px;
    }

    .CookieExpiry{
        flex: 0 50%;
    }

    .CookieType {
        flex: 0 50%;
    }

    .buttonsContainer {
        float: none;
        text-align: center;
    }

    .allowAllButton, .allowSelectionButton {
        width: 250px;
        margin: 25px 0 10px 0;
    }
}