/* Cookie consent banner — premium minimal, matches theme tokens where available */

#op-cookie-banner {
  position: fixed;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  max-width: 640px;
  margin: 0 auto;
  z-index: 9999;
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 2px;
  font-family: var(--font-sans, -apple-system, system-ui, sans-serif);
  animation: op-cc-rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes op-cc-rise {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

#op-cookie-banner[hidden] { display: none; }

.op-cc__inner {
  padding: 1.75rem 1.75rem 1.5rem;
}

.op-cc__title {
  font-family: var(--font-editorial, Georgia, serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin: 0 0 0.6rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.op-cc__desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #555;
  margin: 0 0 1.25rem;
}

.op-cc__desc a {
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.op-cc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.op-cc__btn {
  appearance: none;
  border: 1px solid #1a1a1a;
  background: transparent;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.op-cc__btn--ghost:hover {
  background: #f3f3f3;
}

.op-cc__btn--solid {
  background: #1a1a1a;
  color: #fff;
}

.op-cc__btn--solid:hover {
  background: #000;
}

.op-cc__categories[hidden] { display: none; }

.op-cc__categories {
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.op-cc__cat {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.3rem 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.op-cc__cat:last-of-type {
  border-bottom: none;
}

.op-cc__cat input[type="checkbox"] {
  grid-row: 1 / span 2;
  margin-top: 0.15rem;
  width: 16px;
  height: 16px;
  accent-color: #1a1a1a;
}

.op-cc__cat-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: #1a1a1a;
}

.op-cc__cat-desc {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.5;
}

.op-cc__actions--customize {
  margin-top: 1rem;
}

@media (max-width: 520px) {
  #op-cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }
  .op-cc__inner { padding: 1.25rem; }
  .op-cc__title { font-size: 1.1rem; }
  .op-cc__actions { justify-content: stretch; }
  .op-cc__btn { flex: 1 1 auto; }
}
