/* Raccoon Audio – Cookie banner (Holiday v1)
   - Flat, cartoony, Christmas palette (red / green / white)
   - Larger + obvious on desktop, slightly smaller on mobile
*/

/* Root: bottom-left, chunky but not insane */
.ra-cookie-root,
#ra-cookie-root {
  position: fixed;
  left: 20px;
  bottom: 20px;
  right: auto;
  z-index: 9999;
  max-width: min(520px, calc(100vw - 40px));
  font-family: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Fade-out when hiding */
.ra-cookie-root.ra-cookie-hidden,
#ra-cookie-root.ra-cookie-hidden {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.26s ease-out, transform 0.26s ease-out;
}

/* Main panel – flat green box with bold red border */
.ra-cookie-banner {
  background: #07110b; /* deep evergreen */
  border-radius: 22px;
  padding: 18px 20px 16px;
  color: #fdfbff;
  border: 3px solid #ff5c5c; /* Christmas red */
  box-shadow:
    0 10px 0 rgba(0, 0, 0, 0.75),
    0 26px 50px rgba(0, 0, 0, 0.95);
}

/* Inner content wrapper */
.ra-cookie-main,
.ra-cookie-details {
  margin-top: 8px;
}

/* Layout */
.ra-cookie-main {
  margin-bottom: 10px;
}

/* Heading – bold and festive */
.ra-cookie-heading {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffefc2; /* warm off-white */
}

/* Copy – bigger and bright for readability */
.ra-cookie-copy {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #f8f7ff;
}

/* Buttons row */
.ra-cookie-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

/* Base button style – chunky pills */
.ra-cookie-btn {
  flex: 1 1 auto;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 13px;
  line-height: 1;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;

  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.6),
    0 18px 32px rgba(0, 0, 0, 0.9);

  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
}

/* Primary (Accept all) – loud green "just click me" */
.ra-cookie-btn-primary {
  background: linear-gradient(145deg, #3cb54a, #7fdc7c);
  color: #051108;
}

.ra-cookie-btn-primary:hover,
.ra-cookie-btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 7px 0 rgba(0, 0, 0, 0.75),
    0 26px 46px rgba(0, 0, 0, 0.98);
  filter: brightness(1.06);
  color: #ffffff;
}

/* Secondary (Essential only) – white with green border */
.ra-cookie-btn-secondary {
  background: #fefefe;
  color: #18442a;
  border: 2px solid #3cb54a;
}

.ra-cookie-btn-secondary:hover,
.ra-cookie-btn-secondary:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.7),
    0 22px 38px rgba(0, 0, 0, 0.96);
  filter: brightness(1.03);
}

/* Link row (Cookie settings + Privacy) */
.ra-cookie-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0 12px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #e6f8eb;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  cursor: pointer;
}

.ra-cookie-link:hover {
  color: #ffffff;
}

.ra-cookie-privacy {
  font-size: 12px;
  color: rgba(233, 248, 240, 0.9);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.ra-cookie-privacy:hover {
  color: #ffffff;
}

/* Details panel */
.ra-cookie-details {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.ra-cookie-section-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: #c0ffcc;
}

.ra-cookie-row {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.ra-cookie-row-title {
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 2px;
}

.ra-cookie-row-body {
  flex: 1 1 auto;
  font-size: 13px;
  color: rgba(245, 244, 255, 0.96);
}

.ra-cookie-row-analytics {
  align-items: center;
}

.ra-cookie-row-analytics .ra-cookie-row-body {
  margin-left: 6px;
}

.ra-cookie-row-text {
  font-size: 13px;
  color: rgba(235, 234, 255, 0.98);
}

/* Toggle switch – red/green */
.ra-cookie-toggle-wrap {
  flex: 0 0 auto;
}

.ra-cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.ra-cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ra-cookie-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #2b1515; /* "off" = dark red/brown */
  transition: 0.18s;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.ra-cookie-switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background: #ff5c5c;
  border-radius: 50%;
  transition: 0.18s;
  box-shadow: 0 0 6px rgba(255, 92, 92, 0.7);
}

/* On state = green */
.ra-cookie-switch input:checked + .ra-cookie-switch-slider {
  background: #123620;
  box-shadow:
    inset 0 0 0 2px rgba(132, 243, 164, 0.95),
    0 0 10px rgba(132, 243, 164, 0.6);
}

.ra-cookie-switch input:checked + .ra-cookie-switch-slider:before {
  transform: translateX(18px);
  background: #84f3a4;
  box-shadow: 0 0 6px rgba(132, 243, 164, 0.7);
}

/* Details actions */
.ra-cookie-details-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

/* Mobile tweaks – slightly smaller so it doesn’t smother the hero */
@media (max-width: 640px) {
  .ra-cookie-root,
  #ra-cookie-root {
    left: 14px;
    right: 14px;
    bottom: 10px;
    max-width: none;
  }

  .ra-cookie-banner {
    padding: 12px 12px 10px;
    border-radius: 18px;
  }

  .ra-cookie-main,
  .ra-cookie-details {
    margin-top: 6px;
  }

  .ra-cookie-heading {
    font-size: 14px;
  }

  .ra-cookie-copy {
    font-size: 13px;
    line-height: 1.6;
  }

  .ra-cookie-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .ra-cookie-btn {
    width: 100%;
    padding: 9px 12px;
    font-size: 12px;
  }
}
