/* ─── Obliko · Aviso de privacidad ───
 * Selectores neutros (ob-*) para compatibilidad con bloqueadores cosméticos.
 * Paleta heredada de obliko.css (--lino, --carbon, --copper, --stone, --border).
 */

#ob-notice {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--lino, #FAF8F4);
  color: var(--carbon, #1A1917);
  border: .5px solid var(--border, rgba(26,25,23,.15));
  border-radius: 8px;
  padding: 28px 32px;
  box-shadow: 0 12px 40px rgba(26,25,23,.18), 0 2px 8px rgba(26,25,23,.06);
  font-family: var(--ff-sans, system-ui, sans-serif);
  z-index: 10000;
  display: none;
  animation: obSlide .4s ease-out;
}
#ob-notice.is-open { display: block; }
@keyframes obSlide {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

#ob-notice h2 {
  font-family: var(--ff-serif, Georgia, serif);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 12px;
  letter-spacing: -.01em;
}
#ob-notice p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--carbon, #1A1917);
  margin: 0 0 20px;
}
#ob-notice a {
  color: var(--copper-text, #8C5316);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ob-notice-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ob-btn {
  font-family: var(--ff-mono, monospace);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 4px;
  border: .5px solid var(--carbon, #1A1917);
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
  flex: 1 1 auto;
  min-width: 130px;
}
.ob-btn:hover { transform: translateY(-1px); }

.ob-btn-deny,
.ob-btn-cfg,
.ob-btn-cancel {
  background: transparent;
  color: var(--carbon, #1A1917);
}
.ob-btn-deny:hover,
.ob-btn-cfg:hover,
.ob-btn-cancel:hover {
  background: var(--sand, #EDE9DF);
}
.ob-btn-ok,
.ob-btn-save {
  background: var(--carbon, #1A1917);
  color: var(--lino, #FAF8F4);
}
.ob-btn-ok:hover,
.ob-btn-save:hover {
  background: var(--copper, #B5752A);
  border-color: var(--copper, #B5752A);
}

/* Panel de configuración granular */
#ob-prefs {
  position: fixed;
  inset: 0;
  background: rgba(26,25,23,.5);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#ob-prefs.is-open { display: flex; }

.ob-prefs-card {
  background: var(--lino, #FAF8F4);
  color: var(--carbon, #1A1917);
  border-radius: 10px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  font-family: var(--ff-sans, system-ui, sans-serif);
}
.ob-prefs-card h2 {
  font-family: var(--ff-serif, Georgia, serif);
  font-size: 26px;
  font-weight: 400;
  margin: 0 0 8px;
}
.ob-prefs-card > p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--stone, #7A7168);
  margin: 0 0 24px;
}

.ob-section {
  border-top: .5px solid var(--border, rgba(26,25,23,.15));
  padding: 18px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}
.ob-section h3 {
  font-family: var(--ff-mono, monospace);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--copper, #B5752A);
  margin: 0 0 6px;
}
.ob-section p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--carbon, #1A1917);
  margin: 0;
}

/* Toggle switch */
.ob-switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
  flex-shrink: 0;
}
.ob-switch input { opacity: 0; width: 0; height: 0; }
.ob-switch-knob {
  position: absolute;
  inset: 0;
  background: var(--sand, #EDE9DF);
  border-radius: 24px;
  cursor: pointer;
  transition: background .2s;
}
.ob-switch-knob::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(26,25,23,.2);
}
.ob-switch input:checked + .ob-switch-knob { background: var(--carbon, #1A1917); }
.ob-switch input:checked + .ob-switch-knob::before { transform: translateX(20px); }
.ob-switch input:disabled + .ob-switch-knob {
  background: var(--carbon, #1A1917);
  opacity: .5;
  cursor: not-allowed;
}

.ob-prefs-actions {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Trigger del footer */
.ob-prefs-link {
  font-family: var(--ff-mono, monospace);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: transparent;
  border: none;
  color: rgba(250,248,244,.7);
  cursor: pointer;
  padding: 0;
}
.ob-prefs-link:hover { color: var(--copper, #B5752A); }

@media (max-width: 540px) {
  #ob-notice { left: 12px; right: 12px; bottom: 12px; padding: 22px 20px; }
  #ob-notice h2 { font-size: 19px; }
  .ob-notice-actions .ob-btn { min-width: 100%; }
  .ob-prefs-card { padding: 24px 20px; }
}
