:root{
    --accent-color: #080708;
    --accent-hover: #147f7b;
    --accent-background: #f6f1e4;
    --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, 220px);
    transition: 300ms;
}

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

.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: 12px;
    line-height: 18px;
}

.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 #CCC;
    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-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;
}
.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-bottom: 5px;
    margin-top: 5px;
}


@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 .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;
    }
}