/* cookie-consent.css — styles for cookie-consent.js. Change the colours in :root to match any site. */
:root {
  --cc-bg: #111111;
  --cc-text: #f2f2f2;
  --cc-muted: #c9c9c9;
  --cc-accent: #117e39;          /* buttons, switches */
  --cc-accent-hover: #0a5c28;
  --cc-link: #9be27e;
  --cc-modal-bg: #ffffff;
  --cc-modal-text: #111111;
  --cc-modal-muted: #4a4a4a;
  --cc-line: #e5e5e5;
  --cc-radius: 14px;
  --cc-font: inherit;
  --cc-z: 2147483000;
}

/* ---------- bottom banner ---------- */
.cc-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: var(--cc-z);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto; padding: 18px 22px;
  background: var(--cc-bg); color: var(--cc-text); font-family: var(--cc-font); font-size: 15px; line-height: 1.55;
  border-radius: var(--cc-radius); box-shadow: 0 20px 50px -12px rgba(0,0,0,.55);
  transform: translateY(20px); opacity: 0; transition: transform .35s ease, opacity .35s ease;
}
.cc-banner.cc-in { transform: none; opacity: 1; }
.cc-text { flex: 1 1 420px; margin: 0; color: var(--cc-text); }
.cc-link { color: var(--cc-link); text-decoration: underline; text-underline-offset: 3px; }
.cc-modal .cc-link { color: var(--cc-accent); }

/* ---------- buttons: Accept and Reject look exactly the same (equal prominence) ---------- */
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-btn {
  min-height: 44px; min-width: 120px; padding: 10px 20px; border-radius: 999px; cursor: pointer;
  font: 600 15px/1.2 var(--cc-font); color: #fff; background: var(--cc-accent); border: 2px solid var(--cc-accent);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.cc-btn:hover { background: var(--cc-accent-hover); border-color: var(--cc-accent-hover); transform: translateY(-1px); }
.cc-btn-ghost { background: transparent; color: var(--cc-text); border-color: currentColor; }
.cc-btn-ghost:hover { background: rgba(255,255,255,.1); border-color: currentColor; }
.cc-modal .cc-btn-ghost { color: var(--cc-modal-text); }
.cc-modal .cc-btn-ghost:hover { background: rgba(0,0,0,.06); }
.cc-btn:focus-visible, .cc-close:focus-visible, .cc-link:focus-visible, .cc-switch input:focus-visible + .cc-slider {
  outline: 3px solid var(--cc-link); outline-offset: 3px;
}

/* ---------- settings window ---------- */
html.cc-lock { overflow: hidden; }
.cc-overlay {
  position: fixed; inset: 0; z-index: calc(var(--cc-z) + 1); display: grid; place-items: center; padding: 16px;
  background: rgba(0,0,0,.55); opacity: 0; transition: opacity .25s ease;
}
.cc-overlay.cc-in { opacity: 1; }
.cc-modal {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto;
  padding: 28px; border-radius: var(--cc-radius); background: var(--cc-modal-bg); color: var(--cc-modal-text);
  font-family: var(--cc-font); font-size: 15px; line-height: 1.55; box-shadow: 0 30px 70px -20px rgba(0,0,0,.6);
}
.cc-modal:focus { outline: none; }
.cc-title { margin: 0 0 6px; font-size: 22px; line-height: 1.25; color: var(--cc-modal-text); }
.cc-intro { margin: 0 0 18px; color: var(--cc-modal-muted); }
.cc-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: transparent; color: var(--cc-modal-text); font-size: 26px; line-height: 1; cursor: pointer;
}
.cc-close:hover { background: rgba(0,0,0,.06); }
.cc-rows { display: grid; margin-bottom: 22px; border-top: 1px solid var(--cc-line); }
.cc-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--cc-line); }
.cc-row-text { display: grid; gap: 2px; }
.cc-row-name { font-weight: 700; }
.cc-row-desc { font-size: 14px; color: var(--cc-modal-muted); }

/* toggle switch */
.cc-switch { position: relative; flex: none; width: 50px; height: 28px; }
.cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-slider { position: absolute; inset: 0; border-radius: 999px; background: #9a9a9a; transition: background .2s ease; }
.cc-slider::before { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s ease; }
.cc-switch input:checked + .cc-slider { background: var(--cc-accent); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(22px); }
.cc-switch input:disabled + .cc-slider { opacity: .6; }

/* ---------- phones ---------- */
@media (max-width: 640px) {
  .cc-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px; gap: 14px; font-size: 14px; }
  .cc-actions { width: 100%; }
  .cc-actions .cc-btn { flex: 1 1 100%; }
  .cc-modal { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-banner, .cc-overlay, .cc-btn, .cc-slider, .cc-slider::before { transition: none; }
}
