* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/portal/home/resources/assets/cookies_background.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

a {
    color: #00B5E5;
}

.cookie-icon {
    width: 15px;
    height: 15px;
    fill: #2C537F;
    transform: unset !important;
    position: unset !important;
}

.cookie-title {
    color: #2C537F !important;
}

.cookie-slider-container {
    display: block;
}

.container-cookies {
    width: 70%;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    height: 100vh;
    padding: 20px;
}

.text-box {
    max-width: 100%;
    max-height: 25%;
    margin-bottom: 2rem;
}

.text-box-2 {
    display: flex;
    max-width: 100%;
    overflow-y: auto;
    padding: 0 30px;
    gap: 30px;
    flex-direction: column;
}

.text-box-3 {
    display: flex;
    width: 100%;
    max-height: 10%;
    justify-content: flex-end;
}

.box {
    max-width: 50%;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-color: grey transparent;
    padding: 0 2% 0 2%;
    margin: 0 0 0 5%;
}

.content {
    width: 70%;
    display: flex;
    align-items: center;
    height: 90vh !important;
    padding: 20px;
}

.preferences {
    display: flex;
    align-items: center;
    margin: 5%;
    max-height: 10vh;
    justify-content: flex-end;
}

.spacing-box {
    width: 40%;
}


h2 {
    font-size: 24px;
    color: #2C537F;
}

.slider::before {
    background-color: #FFFFFF !important;
}

.slider {
    background-color: #ABA8A8 !important;
}

.slider-disabled {
    background-color: #ABA8A84D !important;
}

.switch-container input:checked+span {
    background-color: #00B5E5 !important;
}

#span-escen::before {
    left: 18px;
}

#span-escen {
    background-color: #00B5E54D !important;
}

.cookie-title-container p {
    color: #333;
}

.cookie-title-main-desc p {
    color: #676767;
    font-weight: bold;
}

p:not(.cookie-title-container p, .cookie-title-main-desc p, .switch-language p, .item p) {
    font-size: 16px;
    color: #676767
}


.text-box::before,
.text-box::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 20px;
    pointer-events: none;
}


.text-box::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
}

.card-cookie {
    display: flex;
    width: 100%;
    gap: 10px;
    flex-direction: column;
    background-color: #FFFFFF;
    padding: 5% 5% 0 5%;
    border-radius: 20px;
}

.transform {
    transform: rotate(180deg);
}

.expand{
    transition: 0.5s;
}

.expand img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 35px;
    padding: 1%;
    transition: 0.5s;
    cursor: pointer;
}

.chip-container {
    flex-shrink: 0;
    width: 11rem;
}

.cookie-title-container {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--bg-chip);
    border-radius: 25px;
    padding: 15px;
    font-weight: bold;
    width: min-content;
}

.cookie-title-desc {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cookie-details.oculto {
    height: 0;
    opacity: 0;
    pointer-events: none;
    padding: 0.5rem 1rem;
}

.cookie-details {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }
  
  .cookie-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
  }
  
  .cookie-row p {
    margin: 0;
    color: #676767;
    line-height: 1.4;
    list-style-type: disc;
    position: relative;
    padding-left: 1rem;
  }
  
  .cookie-row p::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #444;
    font-size: 1.2rem;
    line-height: 1;
  }

.text {
    margin-top: 15px !important;
}

.scroll-container{
    display: none !important;
}

.btn-secondary:disabled,
.btn-secondary[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

@media (min-height: 800px) {
    .text-box-3 {
        padding-top: 1rem;
    }

    .text-box {
        padding: 0 30px;
    }
}

@media (max-width: 1024px) {
    .container-cookies {
        width: 80%;
    }

    .box {
        max-width: 100%;
        max-height: 70vh;
        padding: 0 5%;
        margin: 0;
        overflow-y: unset;
    }

    .text-box {
        height: 12vh;
        padding: 0 30px;
    }

    .text-box-2 {
        height: 50vh;
        overflow-y: auto;
    }

    .text-box-3 {
        height: 10%;
    }

    .spacing-box {
        display: none;
    }

    .preferences {
        margin-top: 8%;
    }
}

@media (max-width: 480px) and (min-height: 700px) {
    .container-cookies {
        width: 90%;
    }

    .box {
        max-width: 100%;
        margin-bottom: 1rem;
        height: 100%;
    }

    .text-box {
        padding: 0;
        height: 10vh;
        margin: 0;
    }

    .text-box-2 {
        padding: 0;
        height: 55vh;
    }

    .text-box-3 {
        justify-content: center;
    }

    .spacing-box {
        display: none;
    }

    .subtitle-privacy {
        font-size: 16px;
    }

    .preferences {
        margin-top: 10%;
        justify-content: center;
    }

    .cookie-title-desc {
        flex-wrap: wrap;
    }

    .cookie-title-container,
    .cookie-slider-container {
        flex: 0 0 auto;
    }

    .cookie-title-main-desc {
        order: 1;
        flex-basis: 100%;
    }

    .cookie-title-main-desc p {
        font-size: small;
    }

}

@media (max-width: 480px) {
    .box {
        margin-top: 0;
        max-width: 100%;
        margin: 0;
        gap: 60px;
    }

    .text-box {
        padding: 0;
        margin-bottom: 0.5rem;
    }

    .text-box-2 {
        width: 100%;
        height: 55vh;
        margin: 0;
        padding: 0;
    }

    .cookie-title-desc {
        flex-wrap: wrap;
    }

    .cookie-title-container,
    .cookie-slider-container {
        flex: 0 0 auto;
    }

    .cookie-title-main-desc {
        order: 1;
        flex-basis: 100%;
    }

    .cookie-title-main-desc p {
        font-size: small;
    }
}

@media(max-height: 700px) and (min-width: 600px){
    .box{
        margin-bottom: 3rem;
    }
        .text-box-2 {
        height: 35vh;
    }
}

.cookies-accept-popup {
  top: -8vh !important;
}

@media (max-width: 480px){
    body{
        background-position: 50%;
    }
}