/* K9 · Complianz. Se conserva el control de visibilidad del plugin. */
body .cmplz-cookiebanner {
    --k9-cookie-lime: #c9f23a;
    --cmplz_banner_background_color: #101211;
    --cmplz_banner_text_color: #e6e8e1;
    --cmplz_banner_border_color: #363a32;
    --cmplz_categories-background-color: #1b1e19;
    --cmplz_categories-border-color: #363a32;
    --cmplz_category_header_active_background_color: #1b1e19;
    --cmplz_category_header_active_text_color: #e6e8e1;
    --cmplz_category_header_background_color: #1b1e19;
    --cmplz_category_header_text_color: #e6e8e1;
    --cmplz_link_color: #c9f23a;
    --cmplz_checkbox_active_color: #c9f23a;
    --cmplz_checkbox_inactive_color: #68705f;
    --cmplz_checkbox_disabled_color: #68705f;
    background: #101211 !important;
    color: #e6e8e1 !important;
    border: 1px solid #363a32 !important;
    border-top: 3px solid #c9f23a !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 55px rgba(0,0,0,.38) !important;
    padding: 18px !important;
    box-sizing: border-box;
    max-width: calc(100vw - 32px) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}
body .cmplz-cookiebanner .cmplz-title {
    font-family: inherit !important;
    color: #f1efe7 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-transform: uppercase;
    letter-spacing: .035em;
}
body .cmplz-cookiebanner .cmplz-message,
body .cmplz-cookiebanner .cmplz-description {
    font-family: inherit !important;
    color: #d2d6cb !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}
body .cmplz-cookiebanner .cmplz-divider { border-color: #363a32 !important; }
body .cmplz-cookiebanner .cmplz-buttons { gap: 9px !important; flex-wrap: wrap; }
body .cmplz-cookiebanner .cmplz-btn {
    font-family: inherit !important;
    background: #1b1e19 !important;
    color: #f1efe7 !important;
    border: 1px solid #768064 !important;
    border-radius: 7px !important;
    padding: 10px 9px !important;
    min-height: 44px;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    box-shadow: none !important;
    text-decoration: none !important;
}
body .cmplz-cookiebanner .cmplz-btn.cmplz-accept,
body .cmplz-cookiebanner .cmplz-btn.cmplz-deny {
    background: #c9f23a !important;
    color: #101211 !important;
    border-color: #c9f23a !important;
}
body .cmplz-cookiebanner .cmplz-btn:hover { filter: brightness(1.08); }
body .cmplz-cookiebanner .cmplz-category {
    background: #1b1e19 !important;
    color: #e6e8e1 !important;
    border: 1px solid #363a32 !important;
    border-radius: 7px !important;
}
body .cmplz-cookiebanner .cmplz-category-header {
    background: #1b1e19 !important;
    color: #e6e8e1 !important;
}
body .cmplz-cookiebanner .cmplz-category-title { font-weight: 700 !important; }
body .cmplz-cookiebanner .cmplz-always-active { color: #c9f23a !important; }
body .cmplz-cookiebanner .cmplz-category-toggle,
body .cmplz-cookiebanner .cmplz-close { color: #e6e8e1 !important; }
body .cmplz-cookiebanner .cmplz-category-toggle svg { fill: currentColor !important; }
body .cmplz-cookiebanner .cmplz-links a,
body .cmplz-cookiebanner .cmplz-message a {
    color: #c9f23a !important;
    font-family: inherit !important;
    font-size: 12px !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    line-height: 1.6 !important;
}
body .cmplz-cookiebanner :is(button, a, .cmplz-close):focus-visible {
    outline: 2px solid #f1efe7 !important;
    outline-offset: 3px !important;
}
body .cmplz-cookiebanner input:focus-visible + label {
    outline: 2px solid #f1efe7 !important;
    outline-offset: 3px !important;
}
/* El plugin añade anchos mínimos y una columna móvil: se acota el
   recuadro y se corrige la fila sin alterar botones ocultos ni estados. */
body .cmplz-cookiebanner {
    --cmplz_banner_width: 440px;
    --cmplz_text_color: #e6e8e1;
    --cmplz_hyperlink_color: #c9f23a;
    --cmplz_slider_active_color: #c9f23a;
    width: 440px !important;
    min-width: 0 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-gap: 10px;
}
body .cmplz-cookiebanner .cmplz-body,
body .cmplz-cookiebanner .cmplz-message,
body .cmplz-cookiebanner .cmplz-categories,
body .cmplz-cookiebanner .cmplz-buttons {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
}
body .cmplz-cookiebanner .cmplz-header {
    grid-template-columns: auto minmax(0, 1fr) 24px;
    gap: 10px;
}
body .cmplz-cookiebanner .cmplz-title { text-align: center; }
body .cmplz-cookiebanner .cmplz-divider { margin-left: 0; margin-right: 0; }
body .cmplz-cookiebanner .cmplz-buttons {
    flex-direction: row !important;
    flex-wrap: wrap !important;
}
body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
    flex: 1 1 0 !important;
    margin: 0 !important;
}
/* V2.9.34 — escritorio centrado, más horizontal y lejos de los CTA flotantes.
   Se mantiene el control de apertura/cierre y preferencias de Complianz. */
@media (min-width: 769px) {
    body .cmplz-cookiebanner {
        --cmplz_banner_width: 640px;
        width: 640px !important;
        max-width: calc(100vw - 160px) !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        bottom: 20px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        transform: none !important;
        padding: 16px 20px !important;
        max-height: calc(100vh - 40px);
        max-height: calc(100dvh - 40px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    body .cmplz-cookiebanner .cmplz-buttons {
        flex-wrap: nowrap !important;
    }
}
@media (max-width: 768px) {
    body .cmplz-cookiebanner {
        width: calc(100% - 24px) !important;
        max-width: 440px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 12px !important;
        top: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        transform: none !important;
        padding: 16px !important;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
        flex: 1 1 calc(50% - 5px) !important;
    }
    body .cmplz-cookiebanner .cmplz-buttons .cmplz-view-preferences,
    body .cmplz-cookiebanner .cmplz-buttons .cmplz-save-preferences {
        flex: 1 1 100% !important;
    }
}
