/* GROOVE Cookie Consent Banner Styles */
:root {
  --cookie-bg: oklch(19% .009 35);
  --cookie-card-bg: oklch(23% .012 35);
  --cookie-paper: oklch(98% .012 77);
  --cookie-panel: oklch(94% .025 60);
  --cookie-ink: oklch(98% .012 77);
  --cookie-muted: oklch(80% .015 60);
  --cookie-accent: oklch(68.8% .185 20);
  --cookie-accent-hover: oklch(63% .19 20);
  --cookie-accent-ink: oklch(17.6% .006 20);
  --cookie-gold: oklch(92.4% .101 95);
  --cookie-border: oklch(35% .015 35);
  --cookie-focus: oklch(92.4% .101 95);
  --cookie-radius: 18px;
  --cookie-btn-radius: 100px;
}

/* Floating re-open trigger badge */
.groove-cookie-badge {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--cookie-bg);
  color: var(--cookie-paper);
  border: 1px solid var(--cookie-border);
  border-radius: var(--cookie-btn-radius);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease;
}
.groove-cookie-badge:hover,
.groove-cookie-badge:focus-visible {
  transform: translateY(-2px) scale(1.02);
  background: oklch(25% .012 35);
  border-color: var(--cookie-accent);
  outline: none;
}
.groove-cookie-badge svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Banner Backdrop */
.groove-cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 8, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}
.groove-cookie-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Banner Card */
.groove-cookie-modal {
  width: min(100%, 720px);
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  background: var(--cookie-bg);
  color: var(--cookie-paper);
  border: 1px solid var(--cookie-border);
  border-radius: var(--cookie-radius);
  padding: clamp(1.25rem, 3.5vw, 2rem);
  box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  font-family: 'Outfit', sans-serif;
  overscroll-behavior: contain;
}
.groove-cookie-overlay.is-visible .groove-cookie-modal {
  transform: translateY(0) scale(1);
}

/* Header */
.groove-cookie-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.85rem;
}
.groove-cookie-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cookie-accent);
  color: var(--cookie-accent-ink);
  flex-shrink: 0;
}
.groove-cookie-title {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  color: #ffffff;
}

/* Description Text */
.groove-cookie-desc {
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--cookie-muted);
  margin: 0 0 1.25rem;
}
.groove-cookie-desc a {
  color: var(--cookie-paper);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.15s ease;
}
.groove-cookie-desc a:hover {
  color: var(--cookie-accent);
}

/* Category Details Container (collapsible) */
.groove-cookie-details {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.25rem;
  padding: 12px;
  background: var(--cookie-card-bg);
  border-radius: 12px;
  border: 1px solid var(--cookie-border);
}
.groove-cookie-details.is-open {
  display: flex;
}

.groove-cookie-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}
.groove-cookie-category-info {
  flex: 1;
}
.groove-cookie-cat-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.groove-cookie-cat-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--cookie-border);
  color: var(--cookie-paper);
}
.groove-cookie-cat-desc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--cookie-muted);
  margin: 0;
}

/* Toggle Switch */
.groove-cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}
.groove-cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.groove-cookie-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--cookie-border);
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 24px;
}
.groove-cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
}
.groove-cookie-switch input:checked + .groove-cookie-slider {
  background-color: var(--cookie-accent);
}
.groove-cookie-switch input:checked + .groove-cookie-slider:before {
  transform: translateX(20px);
}
.groove-cookie-switch input:disabled + .groove-cookie-slider {
  cursor: not-allowed;
  opacity: 0.8;
}

/* Actions Row */
.groove-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.groove-cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: var(--cookie-btn-radius);
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}
.groove-cookie-btn-primary {
  background: var(--cookie-accent);
  color: var(--cookie-accent-ink);
  border-color: var(--cookie-accent);
  flex: 1 1 180px;
}
.groove-cookie-btn-primary:hover {
  background: var(--cookie-accent-hover);
  transform: translateY(-1px);
}
.groove-cookie-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cookie-paper);
  border-color: var(--cookie-border);
  flex: 1 1 160px;
}
.groove-cookie-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
.groove-cookie-btn-outline {
  background: transparent;
  color: var(--cookie-muted);
  border-color: transparent;
  padding-inline: 0.75rem;
}
.groove-cookie-btn-outline:hover {
  color: #fff;
  text-decoration: underline;
}

/* Footer Links inside Modal */
.groove-cookie-footer-links {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: var(--cookie-muted);
}
.groove-cookie-footer-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.groove-cookie-footer-links a:hover {
  color: #fff;
}

/* Footer Trigger Button Style (used in page footers) */
.cookie-trigger-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.cookie-trigger-link:hover {
  color: var(--color-ink, #000);
}

@media (max-width: 600px) {
  .groove-cookie-badge {
    bottom: 12px;
    left: 12px;
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  .groove-cookie-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .groove-cookie-btn {
    width: 100%;
  }
}
