:root{
    --accent-color: #080708;
    --accent-hover: #173ca0;
    --accent-background: #cbcbdf;
    --accent-border: #5b5b5b;
    --accent-text-color: #080708;
    --accent-hover-button-text: #ffffff;
    --accent-title-color: var(--accent-color);
    --accent-sub-title-color: var(--accent-color);

}

.cookie-popup-container {
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "Montserrat", serif;
    display: none;
}

.cookie-popup-container *{
    font-family: "Montserrat", serif;
    color: var(--accent-text-color);
}
.cookie-popup-container .class-title {
    color: var(--accent-title-color);
}

.cookie-popup-container .fa-solid{
    font-family: "Font Awesome 6 Free" !important;
}

.cookie-popup-container .cookie-popup{
    max-width: min(600px, 90%);
    border: 1px solid var(--accent-border);
    border-radius: 12px;
    box-sizing: border-box;
    padding: 15px;
    box-shadow: 1px 2px 8px 0 rgba(0, 0, 0, 0.35);
    color: var(--accent-text-color);
    overflow: scroll;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    background-color: var(--accent-background);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    position: fixed;
    z-index: 999999 !important;
    left: 20px;
    bottom: 20px;
    height: min(70vh, 425px);
    transition: 300ms;
}

.cookie-popup-container .cookie-popup.expanded{
    /* height: min(70vh, 340px); */
    height: min(70vh, 550px);
}

.cookie-popup-container .cookie-popup::-webkit-scrollbar {
    display: none !important;
}

.cookie-popup-container .cookie-popup .cookie-popup-content-container{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.cookie-popup-container .cookie-popup.expanded .cookie-popup-content-container {
    height: auto;
}

.cookie-popup .cookie-panel{
    position: absolute;
    top: 15px;
    right: 15px
}

.cookie-popup .cookie-panel ul{
    list-style-type: none;
    display: flex;
    padding-left: 0 !important;
    margin: 0 !important;

}

.cookie-popup .cookie-panel ul li{
    width: 50%;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    font-size: 18px;
    color: var(--accent-color);

}

.cookie-popup-container .cookie-popup .cookie-popup-content-container .cookie-mid{
    height: 100%;
    padding: 15px 0 5px;
}

.cookie-popup-container .cookie-popup .cookie-popup-content-container .cookie-mid p{
    font-size: 12px;
    line-height: 18px;
    margin-top: 0px;
    margin-bottom: 10px;
    
}

.cookie-popup-container .cookie-popup p.max-perc {
    max-width: 300px;
}

.cookie-popup-container .cookie-popup .cookie-popup-content-container .cookie-mid b{
    font-size: 14px;
    line-height: 18px;
    color: var(--accent-title-color);
}

.cookie-popup-container .cookie-popup .cookie-popup-content-container .cookie-mid .cookie-consent,
.cookie-popup-container .cookie-popup .cookie-popup-content-container .cookie-mid .cookie-cookies-display{
    display: none;
}

.cookie-cookies-display .cookie-category,
.cookie-consent .cookie-category {
    margin-bottom: 15px;
}

.cookie-cookies-display .cookie-category .choose,
.cookie-consent .cookie-category .choose {
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 10%;
    border: 2px solid #7c8ce6;
    margin-right: 10px;
    cursor: pointer;
    background: transparent;
    position: relative;
}

.cookie-cookies-display .cookie-category .choose.active,
.cookie-consent .cookie-category .choose.active {
    border-color: var(--accent-hover);
    background-color: transparent;
}
.cookie-cookies-display .cookie-category .choose.active:before,
.cookie-consent .cookie-category .choose.active:before {
    content: "";
    margin-right: 10px;
    display: inline-block;
    vertical-align: text-top;
    width: 19px;
    height: 19px;
    border-radius: 10%;
    margin-top: -4px;
    margin-left: -2px;
    background: var(--accent-hover);
}

.cookie-cookies-display .cookie-category .choose.active:after,
.cookie-consent .cookie-category .choose.active:after,
.cookie-consent .cookie-category .choose.always-on:after,
.cookie-cookies-display .cookie-category .choose.always-on:after {
    content: "";
    position: absolute;
    left: 3px;
    top: 7px;
    background: white;
    width: 2px;
    height: 2px;
    box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
    transform: rotate(45deg);
}

.cookie-cookies-display .cookie-category .choose.active + .cookie-cat-name,
.cookie-consent .cookie-category .choose.active + .cookie-cat-name {
    color: var(--accent-sub-title-color);
}


.cookie-cookies-display .cookie-category .choose.always-on,
.cookie-consent .cookie-category .choose.always-on {
    border-color: var(--accent-color);
    background-color: var(--accent-hover);
    cursor: auto;
    opacity: 0.5;
    filter: grayscale(1);
}

.cookie-cookies-display .cookie-category .data .data-resume .cat-main,
.cookie-cookies-display .cookie-category .data .data-resume .cat-main>div,
.cookie-consent .cookie-category .data .data-resume .cat-main,
.cookie-consent .cookie-category .data .data-resume .cat-main>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-cookies-display .cookie-category .data .data-resume .cat-main,
.cookie-consent .cookie-category .data .data-resume .cat-main {
    margin-bottom: 10px;
}


.data-resume .cookie-cat-name{
    font-weight: bold;
    cursor: pointer;
    transition: 300ms;
    font-size: 12px;
    line-height: 18px;
}

.cookie-cookies-display .cookie-category .data .data-resume .cat-describe,
.cookie-consent .cookie-category .data .data-resume .cat-describe {
    font-size: 12px;
    line-height: 18px;
}

.cookie-decide ul{
    list-style-type: none;
    display: flex;
    justify-content: space-between;
    padding-left: 0 !important;
    margin: 0 !important;
}

.cookie-decide ul li{
    width: 50%;
    text-align: center;
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    padding: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 300ms;
    font-size: 12px;
    line-height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-decide ul li:hover{
    background-color: var(--accent-color);
    color: var(--accent-hover-button-text);
}

.cookie-decide ul li.allow{
    background-color: var(--accent-color);
    color: var(--accent-hover-button-text);
    transition: 300ms;
}

.cookie-decide ul li.customize {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid transparent;
    transition: 300ms;
    margin-top: 0 !important;
}
.cookie-decide ul li.customize i {
    color: var(--accent-color);
    transition: 300ms;
}
.cookie-decide ul li.customize:hover {
    background-color: transparent;
    color: var(--accent-color);
    transition: 300ms;
}
.cookie-decide ul li.customize:hover i {
    color: var(--accent-color);
    transition: 300ms;
    animation: spin-animation 0.5s infinite;
}

.cookie-decide ul li.allow-selection  {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    transition: 300ms;
}
.cookie-decide ul li.allow-selection:hover  {
    background-color: var(--accent-color);
    color: var(--accent-hover-button-text);
    border: 2px solid var(--accent-color);
    transition: 300ms;
}

.cookie-decide ul li.allow:hover{
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.cookie-decide ul li.allow-selection {
    display: none;
}

.cookie-popup-container a.policy-href {
    text-decoration: none;
    color: var(--accent-color) !important;
    font-size: 12px !important;
    line-height: 18px;
    font-weight: 600 !important;
    transition: 300ms;
}
.cookie-popup-container a.policy-href:hover {
    color: var(--accent-hover) !important;
}

.cookie-popup-container .cookie-decide ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
}
.cookie-popup-container .cookie-decide ul li {
    width: 100%;
    margin-top: 5px;
    margin-bottom: 5px;
}

.cookie-popup-container .tab-wrap {
    transition: 0.3s box-shadow ease;
    border-radius: 6px;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    list-style: none;
    background-color: #fff;
    margin: 40px 0;
}
.cookie-popup-container .tab {
    display: none;
}
.cookie-popup-container .tab + label {
    box-shadow: 0 -1px 0 #eee inset;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: #333;
    flex-grow: 3;
    text-align: center;
    background-color: #f2f2f2;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-align: center;
    transition: 0.3s background-color ease, 0.3s box-shadow ease;
    height: 50px;
    box-sizing: border-box;
    padding: 15px;
}
.cookie-popup-container .tab:checked + label {
    background-color: #fff;
    box-shadow: 0 -1px 0 #fff inset;
    cursor: default;
}
.cookie-popup-container.tab + label:hover {
    background-color: #f9f9f9;
    box-shadow: 0 1px 0 #f4f4f4 inset;
}
.cookie-popup-container .tab:checked + label:hover {
    box-shadow: 0 -1px 0 #fff inset;
    background-color: #fff;
}
.cookie-popup-container .tab:first-of-type:not(:last-of-type) + label {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.cookie-popup-container .tab__content {
    padding: 10px 25px;
    background-color: transparent;
    position: absolute;
    width: 100%;
    z-index: -1;
    opacity: 0;
    left: 0;
    transform: translateY(-3px);
    border-radius: 6px;
}
.cookie-popup-container .tab:checked:nth-of-type(1) ~ .tab__content:nth-of-type(1) {
    opacity: 1;
    transition: 0.5s opacity ease-in, 0.8s transform ease;
    position: relative;
    top: 0;
    z-index: 100;
    transform: translateY(0px);
    text-shadow: 0 0 0;
}
.cookie-popup-container .tab:checked:nth-of-type(2) ~ .tab__content:nth-of-type(2) {
    opacity: 1;
    transition: 0.5s opacity ease-in, 0.8s transform ease;
    position: relative;
    top: 0;
    z-index: 100;
    transform: translateY(0px);
    text-shadow: 0 0 0;
}

.cookie-popup-container .data-resume .sub-title {
    font-weight: bold;
    cursor: pointer;
    transition: 300ms;
    font-size: 12px;
    line-height: 18px;
    color: var(--accent-sub-title-color);
}

.cookie-popup-container .tab-wrap input[type=radio] ~ label::before,
.cookie-popup-container .tab-wrap input[type=radio] ~ label::after {
    opacity: 0;
}


.cookie-popup-container .cookie-popup.expanded .cookie-popup-content-container .cookie-mid .cookie-cookies-display {
    display: block;
    position: relative;
    top: 110px;
}

.cookie-popup-container .cookie-decide {
    top: 310px;
    position: absolute;
    width: 95%;
    padding-right: 20px;
}
.cookie-popup-container .expanded .cookie-decide {
    padding-right: 0;
}

.cookie-popup .cookie-panel ul li.consent-panel, 
.cookie-popup .cookie-panel ul li.details-panel {
    visibility: hidden;
}

.cookie-popup span.hidden {
    display: none;
}


@keyframes spin-animation {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(180deg);
    }
}


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

    .cookie-popup-container .cookie-popup{
        max-width: 100%;
        max-height: min(450px, 90vh);
        left: 10px;
        bottom: 10px;
        margin-right: 10px;
    }

    .cookie-popup-container .cookie-popup.expanded {
        max-height: min(540px, 90vh);
    }

    .cookie-popup-container .cookie-popup .cookie-popup-content-container .cookie-mid{
        padding-left: 8px;
        padding-right: 8px;
        padding-top: 8px;
    }

    .cookie-decide ul li{
        padding: 8px;
        font-size: 12px;
        margin: 3px;
    }

    .cookie-popup-container .cookie-popup{
        padding-left: 10px;
        padding-right: 10px;
    }

    .cookie-popup-container .cookie-popup .cookie-popup-content-container .cookie-mid p,
    .cookie-popup-container .cookie-popup .cookie-popup-content-container .cookie-mid b,
    .data-resume .cookie-cat-name,
    a.policy-href{
        font-size: 12px;
        line-height: 18px;
    }

    .cookie-cookies-display .cookie-category .data .data-describe ul li,
    .cookie-consent .cookie-category .data .data-describe ul li {
        font-size: 10px;
        line-height: 12px;
        padding: 8px;
    }
}