/* =============================================================================
   Ventiland Cookie Consent — basado en gdpr-cookie.js (Martijn Saly)
   CSS cargado a prioridad 100 (después del tema) para ganar empates de
   especificidad sin !important. Selectores directos porque la librería genera
   clases con barra: "gdprcookie-intro/" en lugar de "gdprcookie-intro".
   ============================================================================= */

.gdprcookie {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99999;
    max-width: 340px;
    width: calc(100% - 40px);
    background: #2d3748;
    color: #f7fafc;
    border-radius: 6px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.55;
    overflow: hidden;
}

/* h1 del banner — selector directo porque la clase padre tiene barra literal */
.gdprcookie h1 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
    border: none;
    padding: 0;
    background: none;
}

.gdprcookie p {
    margin: 0;
    color: #cbd5e0;
    font-size: 12px;
    line-height: 1.55;
}

.gdprcookie p a {
    color: #90cdf4;
    text-decoration: underline;
}

.gdprcookie p a:hover {
    color: #fff;
}

/* Bloque intro (título + texto) */
.gdprcookie > div:first-child {
    padding: 16px 20px 14px;
}

/* Panel de configuración expandible */
.gdprcookie > div:nth-child(2) {
    padding: 14px 20px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.15);
}

/* h2 dentro del panel de configuración */
.gdprcookie h2 {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-transform: none;
    letter-spacing: 0;
    border: none;
    padding: 0;
    background: none;
}

.gdprcookie ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gdprcookie ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border: none;
    margin: 0;
}

.gdprcookie ul li input[type="checkbox"] {
    width: 15px;
    height: 15px;
    min-width: 15px;
    cursor: pointer;
    margin: 0;
    accent-color: #68d391;
}

.gdprcookie ul li input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.gdprcookie ul li label {
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    margin: 0;
    line-height: 1.3;
}

.gdprcookie ul li input[type="checkbox"]:disabled + label {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Botones */
.gdprcookie .gdprcookie-buttons {
    display: flex;
    gap: 8px;
    padding: 12px 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gdprcookie .gdprcookie-buttons button {
    flex: 1;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
    line-height: 1.2;
    text-align: center;
    font-family: inherit;
    box-shadow: none;
}

/* Botón Aceptar */
.gdprcookie .gdprcookie-buttons button:first-child {
    background: #38a169;
    color: #fff;
    border: 1px solid #38a169;
}

.gdprcookie .gdprcookie-buttons button:first-child:hover {
    background: #2f855a;
    border-color: #2f855a;
}

/* Botón Configurar */
.gdprcookie .gdprcookie-buttons button:last-child {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.gdprcookie .gdprcookie-buttons button:last-child:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
}

.gdprcookie .gdprcookie-buttons button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Responsive — móvil */
@media (max-width: 480px) {
    .gdprcookie {
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        width: 100%;
        border-radius: 6px 6px 0 0;
    }
}
