/* ============================================================
   Tremenda Cookies — estilos
   Usa las variables de marca del theme (--tinta, --naranja, etc.)
   con un valor de respaldo por si algún día se usa sin ese theme.
   ============================================================ */




.tcc-banner:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tcc-banner {
  position: fixed;
  left: 16px;
  bottom: calc(var(--player-height, 68px) + 12px);
  z-index: 998;
  width: 400px;
  max-width: calc(100vw - 32px);
  background: var(--crema, #fff8f0);
  border: 2.5px solid var(--tinta, #241628);
  border-radius: var(--radius-md, 12px);
  box-shadow: 4px 4px 0 rgba(36,22,40,0.15);
  padding: 14px 16px;
  font-family: var(--font-body, sans-serif);
}

.tcc-banner__text {
  font-size: 12.5px;
  color: var(--tinta, #241628);
  line-height: 1.45;
}

.tcc-banner__text strong {
  font-size: 18px;
}

.tcc-banner__text a { color: var(--naranja-deep, #b34e00); text-decoration: underline; }

.tcc-banner__actions {
  display: flex;
  align-self: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

/* Botones más compactos que antes — menos padding, texto más pequeño */
.tcc-btn {
  font-family: var(--font-display, sans-serif);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  border: 2px solid var(--tinta, #241628);
  cursor: pointer;
  white-space: nowrap;
}
.tcc-btn--primary { background: var(--naranja, #ff6a00); color: var(--blanco, #fff); }
.tcc-btn--outline { background: var(--crema, #fff8f0); color: var(--tinta, #241628); }
.tcc-btn--outline:hover { background: var(--blanco, #fff); }

/* ---------- Panel de personalización ----------
   Sin backdrop y sin bloquear el scroll — es una tarjeta flotante más,
   no un modal. Se cierra con la X, con Escape, o clicando fuera de ella
   (gestionado por JS, ver cookie-consent.js). */
.tcc-panel:not([hidden]) { display: block; }
.tcc-panel {
  position: fixed;
  left: 16px;
  bottom: calc(var(--player-height, 68px) + 12px);
  z-index: 1000;
  width: 340px;
  max-width: calc(100vw - 32px);
}



.tcc-panel__box {
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--crema, #fff8f0);
  border: 3px solid var(--tinta, #241628);
  border-radius: var(--radius-lg, 18px);
  box-shadow: 8px 8px 0 var(--morado, #6a2b85);
  padding: 28px;
  font-family: var(--font-body, sans-serif);
}
.tcc-panel__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--tinta, #241628);
  color: var(--blanco, #fff);
  border: none;
  font-size: 15px;
  cursor: pointer;
}
.tcc-panel__close:hover { background: var(--naranja, #ff6a00); }

.tcc-panel__title {
  font-family: var(--font-hero, sans-serif);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--tinta, #241628);
}
.tcc-panel__desc {
  font-size: 13px;
  color: var(--tinta-suave, #6b6070);
  margin: 0 0 20px;
}

.tcc-category {
  border-top: 1.5px solid rgba(36,22,40,0.12);
  padding: 14px 0;
}
.tcc-category:first-of-type { border-top: none; }
.tcc-category__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tcc-category__name {
  font-family: var(--font-display, sans-serif);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--tinta, #241628);
}
.tcc-category__desc {
  font-size: 12.5px;
  color: var(--tinta-suave, #6b6070);
  margin: 6px 0 0;
  line-height: 1.5;
}

/* Interruptor (toggle) — reutiliza el naranja de marca como color "activado" */
.tcc-toggle {
  position: relative;
  display: inline-block;
  width: 42px; height: 24px;
  flex-shrink: 0;
}
.tcc-toggle input {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.tcc-toggle__slider {
  position: absolute; inset: 0;
  background: rgba(36,22,40,0.25);
  border-radius: 999px;
  transition: background .15s ease;
}
.tcc-toggle__slider::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: var(--blanco, #fff);
  border-radius: 50%;
  transition: transform .15s ease;
}
.tcc-toggle input:checked + .tcc-toggle__slider { background: var(--naranja, #ff6a00); }
.tcc-toggle input:checked + .tcc-toggle__slider::before { transform: translateX(18px); }

/* Categoría "Necesarias" — bloqueada, siempre activa, visualmente distinta */
.tcc-toggle--locked {
  width: 42px; height: 24px;
  border-radius: 999px;
  background: var(--naranja, #ff6a00);
  position: relative;
  flex-shrink: 0;
}
.tcc-toggle--locked::before {
  content: '';
  position: absolute;
  top: 3px; right: 3px;
  width: 18px; height: 18px;
  background: var(--blanco, #fff);
  border-radius: 50%;
}

.tcc-panel__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* ---------- Enlace flotante para reabrir el panel ---------- */
.tcc-reopen-link {
  position: fixed;
  left: 16px; bottom: calc(var(--player-height, 68px) + 12px); /* por encima del mini-player; a la izquierda para no chocar con el botón flotante de Anúnciate (derecha) */
  z-index: 90;
  background: var(--crema, #fff8f0);
  border: 2px solid var(--tinta, #241628);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-display, sans-serif);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--tinta, #241628);
  cursor: pointer;
}
/* Cuando se usa como enlace de texto normal dentro de un menú/footer real
   (vía el shortcode [gestionar_cookies]), no debe verse como flotante. */
.tcc-reopen-link--inline {
  position: static;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .tcc-banner { flex-direction: column; align-items: stretch; padding: 16px; }
  .tcc-banner__actions { flex-direction: column;width:100%;}
  .tcc-btn { width: 100%; text-align: center;padding: 4px 12px;}
  .tcc-reopen-link { left: 10px; bottom: calc(var(--player-height, 68px) + 8px); font-size: 10.5px; padding: 5px 12px; }
  .tcc-banner, .tcc-panel { left: 10px; }
}
