/* ============ Animoir — the cookie banner (consent.js builds the markup) ============
 *
 * Loaded on every page, the legal pages included, so it leans only on the few custom
 * properties both stylesheets define (--ink, --muted, --line, --berry) and carries a
 * fallback for each. Reject and Accept are deliberately the same size, weight and
 * colour: under the GDPR refusing must be no harder than accepting.
 */

.cc{
  position:fixed; z-index:80;
  left:.75rem; right:.75rem; bottom:.75rem;
  max-width:28.75rem; max-height:calc(100dvh - 1.5rem); overflow-y:auto;
  padding:1.125rem 1.25rem;
  background:var(--white,#fff); color:var(--ink,#2B2350);
  border:.0625rem solid var(--line,#F0E3CC); border-radius:1.25rem;
  box-shadow:0 1.5rem 3rem -1rem rgba(43,35,80,.28);
  font-size:.9375rem; line-height:1.45;
}
.cc:focus{ outline:none; }
.cc:focus-visible{ outline:.1875rem solid var(--berry,#F2545B); outline-offset:.125rem; }
.cc--bar{ padding:.875rem 1rem; }

.cc__srOnly{
  position:absolute; width:.0625rem; height:.0625rem; margin:-.0625rem;
  padding:0; border:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;
}
.cc__title{ margin:0 0 .375rem; font-size:1.0625rem; line-height:1.25; }
.cc__text{ margin:0; color:var(--muted,#6B6390); }
.cc__text a{ color:inherit; text-decoration:underline; }

.cc__options{ list-style:none; margin:.875rem 0 0; padding:0; display:grid; gap:.625rem; }
.cc__options label{ display:flex; gap:.625rem; align-items:flex-start; cursor:pointer; }
.cc__options input{ flex:none; width:1.125rem; height:1.125rem; margin:.1875rem 0 0; accent-color:var(--berry,#F2545B); }
.cc__options input:disabled{ cursor:default; }
.cc__options span{ color:var(--muted,#6B6390); }
.cc__options strong{ color:var(--ink,#2B2350); }

.cc__bar-actions{ display:flex; align-items:center; gap:.5rem; margin-top:.75rem; }
.cc__bar-actions .cc__btn{ flex:1 1 0; }
.cc__actions{ display:grid; grid-template-columns:1fr 1fr; gap:.5rem; margin-top:1rem; }
.cc__actions .cc__btn--solid{ grid-column:1 / -1; }

.cc__btn{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:2.75rem; padding:.5rem .875rem;
  font:inherit; font-weight:600; color:var(--ink,#2B2350);
  background:var(--white,#fff);
  border:.09375rem solid var(--ink,#2B2350); border-radius:62.4375rem;
  cursor:pointer;
}
.cc__btn:hover{ background:var(--berry-tint,#FFF7F7); }
.cc__btn--solid{ color:var(--white,#fff); background:var(--ink,#2B2350); }
.cc__btn--solid:hover{ background:var(--grape,#4B2FBF); }
.cc__link{
  flex:none; min-height:2.75rem; padding:0 .375rem;
  font:inherit; color:var(--muted,#6B6390); background:none; border:0;
  text-decoration:underline; cursor:pointer;
}
.cc__btn:focus-visible,.cc__link:focus-visible{ outline:.1875rem solid var(--berry,#F2545B); outline-offset:.125rem; }

/* The footer's "Cookie settings" sits in a column of links and has to look like one. */
.cc-settings{
  font:inherit; color:inherit; background:none; border:0; padding:0;
  text-align:left; cursor:pointer; text-decoration:none;
}
.cc-settings:hover{ text-decoration:underline; }

@media (max-width:39.9375rem){
  .cc{
    left:0; right:0; bottom:0; max-width:none;
    border-width:.0625rem 0 0; border-radius:1.25rem 1.25rem 0 0;
    padding-bottom:calc(.875rem + env(safe-area-inset-bottom));
  }
  .cc__bar-actions{ flex-wrap:wrap; }
  .cc__bar-actions .cc__btn{ flex:1 1 8rem; }
  /* once it wraps, "Settings" has the row to itself: centre it rather than leave it adrift */
  .cc__bar-actions .cc__link{ flex:1 0 100%; text-align:center; }
}

@media (prefers-reduced-motion:no-preference){
  .cc{ animation:cc-in .18s ease-out; }
  @keyframes cc-in{ from{ opacity:0; transform:translateY(.5rem); } to{ opacity:1; transform:none; } }
}
