#cookies-pop-up {
    overflow-y: auto;
    height: auto;
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 14;
    box-sizing: border-box;
}
#cookies-pop-up #cookies-accept,
#cookies-pop-up #cookies-conf {
    background-color: rgba(27, 4, 63, 0.6);
    border-radius: 11px;
    color: white;
    box-sizing: border-box;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
        font-family: "Maax";
    font-size: 15px;
    font-weight: 400;
    line-height: 25px;
    letter-spacing: -0.02em;
    text-align: left;
    padding: 35px ;

}
#cookies-pop-up #cookies-accept{
    padding: 25px ;
    
}

#cookies-pop-up p {
    margin-block-start: 24px;
    margin-block-end: 24px;
}

#cookies-pop-up a:any-link {
    color: var(--exte-color);
    cursor: var(--cursor-pointer);
    text-decoration: underline;
}

#cookies-pop-up .heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#cookies-pop-up .title {
        font-family: "Maax";
    font-size: 21px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: -0.02em;
    text-align: left;
    position: relative;
}
#cookies-pop-up .title:before {
    content: "🍪";
    display: block;
    position: absolute;
    right: calc(100% + 15px);
    font-size: 33px;
}

#cookies-pop-up.hide {
    opacity: 0.5;
    bottom: -100vh;
    transform: translateX(-50%) scale(0.95);
    overflow: hidden;
    transition: all 0.3s, bottom 1s 0.2s, right 3s, opacity 2s,
    background-color 2s;
}

#cookies-pop-up .buttons-list {
    display: flex;
    justify-content: flex-end;
    max-width: 100%;
    gap: 24px;
    margin: 0 auto;
}

#cookies-pop-up button {
    max-width: 45%;
    width: 124px;
    height: auto;
    min-height: 40px;
    box-sizing: border-box;
    padding: 5px 0;
    border: 2px solid var(--exte-color, black);
    background: var(--exte-color, black);
    color: white;
        font-family: "Maax";
    font-size: 15px;
    font-weight: 400;
    line-height: 25px;
    letter-spacing: -0.02em;
    text-align: center;
    border-radius: 24px;
    cursor: pointer;
}
#cookies-pop-up button.save-config-button {
    width: 258px;
}
#cookies-pop-up button.save-config-button:not(.hide) ~ button {
    display: none;
}

#cookies-pop-up input,
#cookies-pop-up label {
    cursor: pointer;
}

#cookies-pop-up #cookies-conf {
    display: none;
}

#cookies-pop-up.config #cookies-conf {
    display: flex;
    flex-wrap: wrap;
}

#cookies-pop-up #cookies-accept {
    display: block;
}

#cookies-pop-up.config #cookies-accept {
    display: none;
}

#cookies-pop-up.config .sticky-bottom {
    position: sticky;
    bottom: 0;
}

#cookies-pop-up.config .hide {
    display: none;
}

#cookies-conf .subfield-container {
    display: flex;
    justify-content: start;
    justify-content: flex-start;
    gap: 10px;
}

#cookies-conf .categoria-container {
    width: 33%;
    box-sizing: border-box;
}
#cookies-conf
.categoria-container
+ .categoria-container:not(:last-child):not(.buttons) {
    border-left: 1px solid white;
    padding: 0 3%;
}
.categoria-container.buttons {
    margin-top: 25px;
}

#cookies-conf .categoria-title {
    text-transform: uppercase;
        font-family: "Maax";
    font-size: 19px;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: -0.02em;
    text-align: left;
    margin-top: 14px;
    margin-bottom: 14px;
}

#cookies-conf > :last-child.categoria-container {
    width: 100%;
    padding: 0;
}

#cookies-pop-up .categoria-container .subfield-container {
    padding: 5px 0;
    padding-right: 5px;
}

#cookies-pop-up .save-config {
    padding: 15px 15px;
    display: block;
    text-align: center;
    transform: translateY(50px);
}

#cookies-pop-up input {
    height: 1.3em;
    width: 1.3em;
    margin: 0;
}

#cookies-pop-up [type="checkbox"] {
    width: 1.13rem;
    height: 1.13rem;
    color: dodgerblue;
    vertical-align: sub;
    -webkit-appearance: none;
    background: none;
    border: 0;
    outline: 0;
    flex-grow: 0;
    border-radius: 4px;
    background-color: #ffffff;
    transition: background 300ms;
    cursor: var(--cursor-pointer, pointer);
}

/* Pseudo element for check styling */

#cookies-pop-up [type="checkbox"]::before {
    content: "";
    color: transparent;
    display: block;
    width: inherit;
    height: inherit;
    border-radius: inherit;
    border: 0;
    background-color: transparent;
    background-size: contain;
    box-shadow: inset 0 0 0 1px #ccd3d8;
}

/* Checked */

#cookies-pop-up [type="checkbox"]:checked {
    background-color: currentcolor;
}

#cookies-pop-up [type="checkbox"]:checked::before {
    box-shadow: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E %3Cpath d='M15.88 8.29L10 14.17l-1.88-1.88a.996.996 0 1 0-1.41 1.41l2.59 2.59c.39.39 1.02.39 1.41 0L17.3 9.7a.996.996 0 0 0 0-1.41c-.39-.39-1.03-.39-1.42 0z' fill='%23fff'/%3E %3C/svg%3E");
}

/* Disabled */

#cookies-pop-up [type="checkbox"]:disabled {
    background-color: #ccd3d8;
    opacity: 0.84;
    cursor: not-allowed;
}

@media (max-width: 1300px) {
    #cookies-pop-up {
        bottom: 0px;
        max-height: 90vh;
    }
    #cookies-pop-up {
        padding-bottom: calc(16px + 2vw);
    }
    
    #cookies-pop-up .heading{
        flex-wrap: wrap;
        gap:15px;
    }
    #cookies-pop-up .heading > div{
        width: 100%;
    }
    #cookies-conf .categoria-container{
        width: 100%;
        padding-bottom: 15px;
    }
    #cookies-conf .categoria-container + .categoria-container:not(:last-child):not(.buttons) {
        padding:unset;
        padding-bottom: 15px;
        border-left: unset;
        border-top: 1px solid white;
    }
}
