/* ─────────────────────────────────────────────────────────────
   Banner de consentimiento de cookies (.xp-cc).
   Los colores llegan como custom properties inline desde el Twig
   (--cc-bg, --cc-text, --cc-accept-*, --cc-reject-*, --cc-config-*).
   ───────────────────────────────────────────────────────────── */
.xp-cc {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1080; /* por encima del offcanvas de cesta (1070) */
    background: var(--cc-bg, #fff);
    color: var(--cc-text, #000);
    box-shadow: 0 -2px 18px rgba(0, 0, 0, .18);
    font-size: 14px;
    line-height: 1.5;
}
.xp-cc--bottom { bottom: 0; }
.xp-cc--top { top: 0; box-shadow: 0 2px 18px rgba(0, 0, 0, .18); }

.xp-cc__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
}

.xp-cc__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.xp-cc__text { flex: 1 1 320px; min-width: 260px; }
.xp-cc__text p { margin: 0 0 .25rem; }
.xp-cc__link {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
    white-space: nowrap;
}

.xp-cc__actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    align-items: center;
}

.xp-cc__btn {
    border: 1px solid transparent;
    border-radius: .375rem;
    padding: .6rem 1.25rem;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    transition: filter .15s, opacity .15s;
}
.xp-cc__btn:hover { filter: brightness(.93); }
.xp-cc__btn--accept  { background: var(--cc-accept-bg, #db0a0a); color: var(--cc-accept-text, #fff); }
.xp-cc__btn--reject  { background: var(--cc-reject-bg, #db0a0a); color: var(--cc-reject-text, #fff); }
.xp-cc__btn--config  {
    background: var(--cc-config-bg, #fff);
    color: var(--cc-config-text, #000);
    border-color: rgba(0, 0, 0, .2);
}

/* ── Panel de configuración por categoría ─────────────────────── */
.xp-cc__panel {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, .12);
    max-height: 45vh;
    overflow-y: auto;
}
.xp-cc__cat { padding: .5rem 0; border-bottom: 1px solid rgba(0, 0, 0, .07); }
.xp-cc__cat-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    cursor: pointer;
}
.xp-cc__cat-head input { width: 1.05rem; height: 1.05rem; }
.xp-cc__cat-label em { font-weight: 400; opacity: .7; font-size: .85em; }

.xp-cc__platforms { list-style: none; margin: .35rem 0 0; padding: 0 0 0 1.6rem; }
.xp-cc__platform { margin: .35rem 0; font-size: 13px; }
.xp-cc__platform-desc { display: block; opacity: .8; }
.xp-cc__cookies { list-style: none; margin: .25rem 0 0; padding: 0 0 0 .75rem; opacity: .8; font-size: 12px; }
.xp-cc__cookies code {
    background: rgba(0, 0, 0, .06);
    padding: .05rem .3rem;
    border-radius: .2rem;
}

.xp-cc__panel-actions { margin-top: .75rem; text-align: right; }

/* ── Placeholder de iframe de marketing bloqueado ─────────────── */
.xp-cc-iframe-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 180px;
    padding: 1.5rem;
    background: #f3f4f6;
    color: #555;
    border: 1px dashed #c9ccd1;
    border-radius: .5rem;
    font-size: 14px;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 600px) {
    .xp-cc__main { flex-direction: column; align-items: stretch; }
    .xp-cc__actions { justify-content: stretch; }
    .xp-cc__btn { flex: 1 1 auto; }
}
