:root {
  --cookie-font-sans: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  --cookie-brand: #fd9d1a;
  --cookie-brand-dark: #e88d0f;
  --cookie-glass-bg: rgba(0, 0, 0, 0.75);
  --cookie-glass-border: rgba(255, 255, 255, 0.12);
  --cookie-glass-blur: 24px;
  --cookie-text-primary: #ffffff;
  --cookie-text-secondary: rgba(255, 255, 255, 0.85);
}

.cookie-settings-fab {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 9999;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(255, 255, 255, 0.1); /* The "surround" */
}

.cookie-settings-fab svg {
  width: 1.6rem;
  height: 1.6rem;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fabPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.cookie-settings-fab:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 0 5px rgba(255, 255, 255, 0.15);
  color: var(--cookie-brand);
  animation: fabPulse 1.5s infinite ease-in-out;
}


.cookie-settings-fab.fab-hidden {
  opacity: 0 !important;
  pointer-events: none;
  transform: scale(0.8) translateY(12px);
}

.cookie-banner {
  will-change: transform, opacity;
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(var(--cookie-glass-blur));
  -webkit-backdrop-filter: blur(var(--cookie-glass-blur));
  border: 1px solid var(--cookie-glass-border);
  border-radius: 1.5rem;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 48rem;
  width: calc(100% - 2.5rem);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  pointer-events: auto;
  z-index: 10000;
  visibility: hidden;
  opacity: 0;
}

.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  visibility: visible;
  opacity: 1;
}


@media (min-width: 1024px) {
  .cookie-banner {
    max-width: 48rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(150%) scale(0.98);
  }
  
  .cookie-banner.visible {
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.cookie-banner p {
  color: var(--cookie-text-secondary);
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
  font-family: var(--cookie-font-sans);
  font-weight: 400;
}

.cookie-banner p a {
  color: rgba(253, 157, 26, 0.8);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}


.cookie-banner p a:hover {
  border-bottom-color: var(--cookie-brand);
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-banner button {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--cookie-font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  min-width: 80px;
}

#accept-cookies {
  background: var(--cookie-brand);
  color: #1d1b19;
}

#accept-cookies:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(253, 157, 26, 0.3);
}

#reject-cookies {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

#reject-cookies:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem 1.25rem;
    bottom: 1.25rem;
    border-radius: 1rem;
  }

  .cookie-actions {
    width: 100%;
    justify-content: center;
  }

  .cookie-banner button {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .cookie-settings-fab {
    bottom: 0.75rem;
    left: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
  }
  
  .cookie-settings-fab svg {
    width: 1.4rem;
    height: 1.4rem;
  }
}

/* Dark Mode Override for Main Site Pages (Non-Holding) */
.cookie-settings-fab.cookie-dark-mode {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.25),
    0 0 0 3px rgba(0, 0, 0, 0.1);
}

.cookie-settings-fab.cookie-dark-mode:hover {
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
}

.cookie-banner.cookie-dark-mode {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.1);
}




