/* Cookie consent banner (inc/cookie_consent.php). Tokens only, so it follows
   every skin. A bottom card, not a full-screen wall: the page stays usable
   and readable behind it, which is what the guidance asks for. */
.rr-cc {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 9000;
  padding: 0 16px 16px;
  pointer-events: none;
}
.rr-cc[hidden] { display: none; }
.rr-cc-in {
  pointer-events: auto;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 20px;
  background: var(--c-surface, #fff);
  color: var(--c-text, #222);
  border: 1px solid var(--c-border, #e5e5e5);
  border-radius: var(--radius-md, 14px);
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
  font-size: .9375rem;
  line-height: 1.6;
}
.rr-cc-title { margin: 0 0 6px; font-weight: 700; font-size: 1rem; }
.rr-cc-text { margin: 0; color: var(--c-text-muted, #555); }
.rr-cc-text a { color: var(--c-primary, #cc1e77); text-decoration: underline; }
.rr-cc-opts { margin: 14px 0 0; display: grid; gap: 8px; font-size: .875rem; }
.rr-cc-opts[hidden] { display: none; }
.rr-cc-opt { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.rr-cc-opt input { margin-top: 5px; accent-color: var(--c-primary, #cc1e77); }
.rr-cc-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.rr-cc-btn {
  appearance: none;
  border: 1px solid var(--c-border, #ddd);
  background: var(--c-surface, #fff);
  color: var(--c-text, #222);
  border-radius: 999px;
  padding: 9px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.rr-cc-btn:hover { border-color: var(--c-primary, #cc1e77); }
.rr-cc-btn:focus-visible { outline: 2px solid var(--c-primary, #cc1e77); outline-offset: 2px; }
/* Accept and "necessary only" are drawn with equal weight on purpose:
   a reject that is visibly weaker than accept is the pattern regulators call
   a dark pattern, and the choice must be as easy in both directions. */
.rr-cc-btn--accept, .rr-cc-btn--reject, .rr-cc-btn--save {
  background: var(--c-primary, #cc1e77);
  color: #fff;
  border-color: var(--c-primary, #cc1e77);
}
.rr-cc-btn--reject { background: var(--c-text, #222); border-color: var(--c-text, #222); }
.rr-cc-btn--ghost { font-weight: 600; }
.rr-cc-btn[hidden] { display: none; }
@media (max-width: 640px) {
  .rr-cc { padding: 0 8px 8px; }
  .rr-cc-in { padding: 14px 16px; font-size: .875rem; }
  .rr-cc-btn { flex: 1 1 auto; text-align: center; }
}
