/**
 * Barra de cookies (discreta, abajo). Aceptar y Rechazar tienen el mismo peso visual.
 * Usa las variables de tema de la web (claro/oscuro).
 */
.lpf-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9000;
  padding: 10px var(--lpf-gutter, 20px) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--lpf-header-bg, #fafaf8);
  color: var(--lpf-header-text, #181818);
  border-top: 1px solid var(--lpf-header-border, #d9d9d3);
  font-family: var(--lpf-font-ui, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .06);
  transform: translateY(100%);
  transition: transform .3s ease;
}
.lpf-consent.is-open { transform: translateY(0); }
.lpf-consent { box-sizing: border-box; max-height: 100vh; max-height: 100dvh; overflow-y: auto; }
.lpf-consent-open { scroll-padding-bottom: var(--lpf-consent-h, 0px); }
.lpf-consent-open .main-feed { scroll-padding-bottom: calc(var(--lpf-consent-h, 0px) + 32px); } /* en horizontal sobresale por abajo */
.lpf-consent-open .floating-date-btn { bottom: calc(var(--lpf-consent-h, 0px) + 12px); }
/* Con una viñeta abierta a pantalla completa, ni barra ni enlace encima */
body:has(.lightbox.active) .lpf-consent, body:has(.lightbox.active) .lpf-consent-link,
body:has(#post-modal) .lpf-consent-link { display: none; }

.lpf-consent__row {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px 20px;
  flex-wrap: wrap;
}
.lpf-consent__text { flex: 1 1 320px; margin: 0; color: var(--lpf-header-muted, #595954); }
.lpf-consent__text strong { color: var(--lpf-header-text, #181818); font-weight: 600; }
.lpf-consent__more {
  background: none; border: 0; padding: 12px 6px; margin: -12px 0 -12px 4px;
  color: inherit; font: inherit; text-decoration: underline; cursor: pointer;
}
.lpf-consent__details {
  flex-basis: 100%; margin: 0; font-size: 12px; color: var(--lpf-header-muted, #595954);
}
.lpf-consent__details[hidden] { display: none; }

.lpf-consent__actions { display: flex; gap: 8px; flex: 0 0 auto; }
.lpf-consent__btn {
  min-height: 36px; min-width: 96px; padding: 0 18px;
  border: 1px solid var(--lpf-header-text, #181818);
  border-radius: 999px;
  background: transparent; color: var(--lpf-header-text, #181818);
  font: inherit; font-weight: 600; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lpf-consent__btn:active { opacity: .7; }
.lpf-consent__btn:focus-visible { outline: 2px solid var(--lpf-header-text, #181818); outline-offset: 2px; }

@media (max-width: 600px) {
  .lpf-consent__actions { flex: 1 1 100%; }
  .lpf-consent__btn { flex: 1; }
}

/* Enlace permanente para cambiar la elección (escritorio / iPad) */
.lpf-consent-link {
  position: fixed; left: 2px; bottom: -2px; z-index: 8000;
  padding: 14px 10px;
  background: none; border: 0;
  color: var(--lpf-header-muted, #595954);
  font: 12px/1 var(--lpf-font-ui, 'Inter', sans-serif);
  text-decoration: underline; cursor: pointer;
}
.lpf-consent-open .lpf-consent-link { display: none; }
.lpf-consent-link:hover { color: var(--lpf-header-text, #181818); }
