/* Cookie consent banner (inc/consent.php + consent.js). Brand Dark Space: violet on night. */
.cbe-consent {
  position: fixed;
  z-index: 10000;
  left: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  width: min(26rem, calc(100vw - 2rem));
  padding: 1.25rem 1.25rem 1.1rem;
  border: 1px solid rgba(167, 129, 255, .28);
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(139, 92, 246, .14), rgba(139, 92, 246, 0) 55%),
    #15101a;
  color: #f4f0f8;
  font: 400 .9375rem/1.55 var(--font-sans, system-ui, sans-serif);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(167, 129, 255, .08);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s cubic-bezier(.23, 1, .32, 1), transform .35s cubic-bezier(.23, 1, .32, 1);
}
.cbe-consent.is-open { opacity: 1; transform: none; }
.cbe-consent[hidden] { display: none; }
.cbe-consent__title {
  margin: 0 0 .4rem;
  font: 600 1.0625rem/1.3 var(--font-display, var(--font-sans, system-ui, sans-serif));
  color: #fff;
}
.cbe-consent__text { margin: 0; color: #d5cde0; }
.cbe-consent__text a { color: #cdbcff; text-decoration: underline; text-underline-offset: 3px; }
.cbe-consent__text a:hover { color: #fff; }
.cbe-consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin-top: 1rem;
}
/* Both choices share size and weight: refusing is as easy as accepting. */
.cbe-consent__btn {
  min-height: 44px;
  padding: .6rem 1rem;
  border: 1px solid rgba(205, 188, 255, .45);
  border-radius: 999px;
  background: #241c2d;
  color: #f4f0f8;
  font: 600 .9375rem/1.2 var(--font-sans, system-ui, sans-serif);
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.cbe-consent__btn--accept { background: #6730c9; border-color: #6730c9; color: #fff; }
.cbe-consent__btn:hover { background: #33284a; border-color: #cdbcff; }
.cbe-consent__btn--accept:hover { background: #7a45dc; border-color: #7a45dc; }
.cbe-consent__btn:focus-visible,
.cbe-consent__text a:focus-visible,
.cbe-consent-open:focus-visible { outline: 2px solid #cdbcff; outline-offset: 3px; }
.cbe-consent-open {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cbe-consent-open:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .cbe-consent { left: 1rem; right: 1rem; bottom: 1rem; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cbe-consent { transition: none; transform: none; }
}
