/* Inherited reset from the 2025 page, scoped to its official cookie component. */
.cookie-box, .cookie-box * { margin: 0; padding: 0; box-sizing: border-box; }
.cookie-box p { line-height: 1.5; text-align: left; }
.cookie-box a { text-underline-offset: auto; }
/* --- CONTENEDOR COOKIE --- */
.cookie-box {
    position: fixed;
    background-color: #3F4444;
    border-radius: 24px;
    padding: 30px 40px; /* Ligero ajuste para que respire bien */
    color: #ffffff;
    max-width: min(500px, 90vw);
    max-height: min(700px, 60vh);
    overflow-y: auto;
    height: auto;
    bottom: 1rem;
    left: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 16px; /* Corregido de "size" a "font-size" */
    line-height: 1.4;
    font-weight: 400;
    
    /* Estado inicial oculto */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
    z-index: 300000;
}
.cookie-box > p{
    color:white;
    font-family: 'Inter', sans-serif;
}

/* Clase que aplicará JS para mostrar el banner suavemente */
.cookie-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- TIPOGRAFÍA Y ENLACES --- */
.cookie-box .cookie-title {
    font-size: 16px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
}

.cookie-box p {
    margin-top: 0;
    font-size: 16px;
    margin-bottom: 15px;
}

.cookie-box .cookie-small-text {
    font-size: 16px;
}

.cookie-box a {
    color: #e5554f;
    text-decoration: none;
    font-weight: 600;
}

.cookie-box a:hover {
    color: #e40e0e;
    text-decoration: underline;
}

/* --- BOTONES --- */
.cookie-box .buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.cookie-box button {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1 1 auto;
    text-transform: uppercase;
}

#save-button, #cancel-button {
    background-color: #e5554f;
    color: #ffffff;
    border: none;
}

#save-button:hover, #cancel-button:hover {
    background-color: #e40e0e;
}

#setting-button {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

#setting-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #e5554f;
    color: #e5554f;
}

/* --- SWITCHES (INTERRUPTORES) --- */
.cookies-checks {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
}

.custom-check {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.custom-check p {
    margin: 0;
    font-size: 12px;
    color:white;
    font-family: 'Inter', sans-serif;
}

/* El fondo oscuro del interruptor */
.custom-check > div {
    position: relative;
    width: 44px;
    height: 24px;
    background-color: #222222;
    border-radius: 24px;
    margin-right: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

/* Ocultar el checkbox real del HTML */
.custom-check input[type="checkbox"] {
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
    cursor: pointer;
    z-index: 2;
    margin: 0;
}

/* La bolita blanca del interruptor */
.custom-check input[type="checkbox"] + div {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
}

/* Cuando está MARCADO: Cambia color a rojo y mueve la bolita */
.custom-check > div:has(input[type="checkbox"]:checked) {
    background-color: #e5554f;
}
.custom-check input[type="checkbox"]:checked + div {
    transform: translateX(20px);
}

/* Cuando está BLOQUEADO (Cookies Esenciales) */
.custom-check > div:has(input[type="checkbox"]:disabled) {
    opacity: 0.6;
    cursor: not-allowed;
}
.custom-check input[type="checkbox"]:disabled {
    cursor: not-allowed;
}



/* Restore the 2025 browser button line height, before the site's global font shorthand. */
.cookie-box button { line-height: normal; }
