/* Roosty cookie consent - matches the site's dark, premium house style.
   Scoped under .rc- so it never collides with Framer's classes. */
.rc-root {
  --rc-bg: rgba(16, 16, 17, 0.86);
  --rc-border: rgba(255, 255, 255, 0.12);
  --rc-border-soft: rgba(255, 255, 255, 0.08);
  --rc-cream: #fff3f0;
  --rc-text: rgba(255, 255, 255, 0.72);
  --rc-dim: rgba(255, 255, 255, 0.46);
  --rc-pink: #d39794;
  --rc-emerald: rgb(74, 222, 128);
  --rc-radius: 18px;
  --rc-font: "Inter", "Inter Placeholder", -apple-system, BlinkMacSystemFont, sans-serif;
  font-family: var(--rc-font);
}
.rc-root * { box-sizing: border-box; }
.rc-root [hidden] { display: none !important; }

/* ---------- banner (first layer) ---------- */
.rc-banner {
  position: fixed; z-index: 2147483000;
  left: 20px; bottom: 20px; width: 400px; max-width: calc(100vw - 40px);
  background: var(--rc-bg);
  backdrop-filter: saturate(150%) blur(20px);
  -webkit-backdrop-filter: saturate(150%) blur(20px);
  border: 1px solid var(--rc-border);
  border-radius: var(--rc-radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 22px 22px 18px;
  color: var(--rc-text);
  transform: translateY(12px); opacity: 0;
  transition: transform .34s cubic-bezier(.34,1.4,.5,1), opacity .28s ease;
}
.rc-root.rc-show .rc-banner { transform: translateY(0); opacity: 1; }
.rc-banner h2 { margin: 0 0 8px; color: var(--rc-cream); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 9px; }
.rc-banner h2 img { height: 20px; width: auto; }
.rc-banner p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.6; }
.rc-banner p a { color: var(--rc-pink); text-decoration: none; border-bottom: 1px solid rgba(211,151,148,.4); }
.rc-banner p a:hover { color: var(--rc-cream); border-color: var(--rc-cream); }

.rc-actions { display: flex; flex-direction: column; gap: 8px; }
.rc-row { display: flex; gap: 8px; }
.rc-row > * { flex: 1; }

.rc-btn {
  appearance: none; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 13.5px;
  padding: 11px 16px; border-radius: 99px; border: 1px solid var(--rc-border);
  color: var(--rc-cream); background: rgba(255,255,255,.05);
  transition: background .16s ease, border-color .16s ease, transform .1s ease, opacity .16s ease;
  min-height: 44px; white-space: nowrap;
}
.rc-btn:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.22); }
.rc-btn:active { transform: scale(.98); }
.rc-btn--primary { color: rgb(20,20,20); background: var(--rc-cream); border-color: transparent; }
.rc-btn--primary:hover { opacity: .92; background: var(--rc-cream); }
.rc-btn--ghost { background: none; border-color: transparent; color: var(--rc-dim); }
.rc-btn--ghost:hover { color: var(--rc-cream); background: rgba(255,255,255,.05); }

/* ---------- preferences dialog ---------- */
.rc-overlay {
  position: fixed; inset: 0; z-index: 2147483001;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; transition: opacity .24s ease;
}
.rc-root.rc-panel-show .rc-overlay { opacity: 1; }
.rc-panel {
  width: 520px; max-width: 100%; max-height: min(86dvh, 720px); overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(14,14,15,0.96);
  backdrop-filter: saturate(150%) blur(20px); -webkit-backdrop-filter: saturate(150%) blur(20px);
  border: 1px solid var(--rc-border); border-radius: var(--rc-radius);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  transform: translateY(14px) scale(.98); transition: transform .3s cubic-bezier(.34,1.4,.5,1);
}
.rc-root.rc-panel-show .rc-panel { transform: none; }
.rc-panel-head { padding: 24px 24px 8px; }
.rc-panel-head h2 { margin: 0 0 8px; color: var(--rc-cream); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.rc-panel-head p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--rc-text); }
.rc-panel-head p a { color: var(--rc-pink); text-decoration: none; border-bottom: 1px solid rgba(211,151,148,.4); }

.rc-cats { padding: 12px 24px 4px; }
.rc-cat { padding: 18px 0; border-top: 1px solid var(--rc-border-soft); display: flex; gap: 16px; align-items: flex-start; }
.rc-cat:first-child { border-top: none; }
.rc-cat-txt { flex: 1; min-width: 0; }
.rc-cat-txt h3 { margin: 0 0 5px; color: var(--rc-cream); font-size: 15px; font-weight: 600; }
.rc-cat-txt p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--rc-dim); }

/* toggle */
.rc-toggle { position: relative; flex: none; width: 46px; height: 27px; }
.rc-toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rc-track {
  position: absolute; inset: 0; border-radius: 99px; background: rgba(255,255,255,.1);
  border: 1px solid var(--rc-border); transition: background .2s ease, border-color .2s ease;
}
.rc-track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 99px;
  background: var(--rc-cream); transition: transform .22s cubic-bezier(.34,1.5,.5,1);
}
.rc-toggle input:checked + .rc-track { background: rgba(74,222,128,.32); border-color: rgba(74,222,128,.55); }
.rc-toggle input:checked + .rc-track::after { transform: translateX(19px); }
.rc-toggle input:focus-visible + .rc-track { outline: 2px solid var(--rc-pink); outline-offset: 2px; }
.rc-toggle.rc-locked input { cursor: not-allowed; }
.rc-toggle.rc-locked .rc-track { background: rgba(74,222,128,.22); border-color: rgba(74,222,128,.4); }
.rc-toggle.rc-locked .rc-track::after { transform: translateX(19px); background: rgba(255,255,255,.55); }
.rc-badge { font-size: 11px; font-weight: 600; color: var(--rc-emerald); letter-spacing: .02em; align-self: center; flex: none; }

.rc-panel-foot { padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 8px; position: sticky; bottom: 0; background: linear-gradient(rgba(14,14,15,0), rgba(14,14,15,0.96) 30%); }
.rc-panel-foot .rc-row { gap: 8px; }

.rc-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid var(--rc-border-soft); color: var(--rc-dim);
  transition: color .16s, background .16s;
}
.rc-close:hover { color: var(--rc-cream); background: rgba(255,255,255,.1); }
.rc-close svg { width: 15px; height: 15px; }

.rc-root a:focus-visible, .rc-root button:focus-visible {
  outline: 2px solid var(--rc-pink); outline-offset: 2px; border-radius: 8px;
}

/* ---------- mobile: bottom sheet ---------- */
@media (max-width: 560px) {
  .rc-banner {
    left: 10px; right: 10px; bottom: 10px; width: auto; max-width: none;
    padding: 20px 18px calc(16px + env(safe-area-inset-bottom));
    max-height: 82dvh; overflow-y: auto;
  }
  .rc-row { flex-direction: column; }
  .rc-overlay { padding: 0; align-items: flex-end; }
  .rc-panel {
    width: 100%; max-width: none; max-height: 92dvh;
    border-bottom-left-radius: 0; border-bottom-right-radius: 0;
    transform: translateY(100%);
  }
  .rc-root.rc-panel-show .rc-panel { transform: none; }
  .rc-panel-foot { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .rc-root *, .rc-banner, .rc-panel, .rc-overlay { transition: opacity .01s !important; transform: none !important; }
}
