/* Cookie Consent Banner - Minimal and Premium */
.bgbot-cookie-consent {
  --cookie-bg: var(--ds-color-surface-container-highest, #14141d);
  --cookie-text: var(--ds-color-on-surface, #f4f4f8);
  --cookie-muted: var(--ds-color-on-surface-variant, #a4a4b3);
  --cookie-border: var(--ds-color-outline-variant, rgba(255, 255, 255, 0.12));
  --cookie-btn-bg: var(--ds-color-primary, #6366f1);
  --cookie-btn-text: var(--ds-color-on-primary, #ffffff);
  
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--ds-bottom-nav-h, 5rem) + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  padding: 0 0.75rem 0.5rem;
  pointer-events: none;
  transform: translateY(calc(100% + 1rem));
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.ds-app-body.theme-light .bgbot-cookie-consent {
  --cookie-bg: var(--ds-color-surface-container-highest, #f4f4f8);
  --cookie-text: var(--ds-color-on-surface, #14141d);
  --cookie-muted: var(--ds-color-on-surface-variant, #5c5c6d);
  --cookie-border: var(--ds-color-outline-variant, rgba(20, 20, 29, 0.12));
  --cookie-btn-bg: var(--ds-color-primary, #4f46e5);
  --cookie-btn-text: var(--ds-color-on-primary, #ffffff);
}

.bgbot-cookie-consent--visible {
  pointer-events: auto;
  transform: translateY(0);
  opacity: 1;
}

.bgbot-cookie-consent.hidden,
.bgbot-cookie-consent[hidden] {
  display: block;
}

.bgbot-cookie-consent:not(.bgbot-cookie-consent--visible) {
  visibility: hidden;
}

.bgbot-cookie-consent--visible {
  visibility: visible;
}

.bgbot-cookie-consent__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: var(--ds-main-max, 28rem);
  margin: 0 auto;
  padding: 1rem;
  border-radius: var(--radius-md, 12px);
  background: var(--cookie-bg);
  color: var(--cookie-text);
  border: 1px solid var(--cookie-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.bgbot-cookie-consent__copy {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--cookie-muted);
}

.bgbot-cookie-consent__copy a {
  color: var(--cookie-text);
  text-decoration: underline;
  font-weight: 600;
}

.bgbot-cookie-consent__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.bgbot-cookie-consent__link {
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cookie-muted);
  text-decoration: none;
  cursor: pointer;
  padding: 0.45rem 0.65rem;
  transition: color 0.2s ease;
}

.bgbot-cookie-consent__link:hover {
  color: var(--cookie-text);
}

.bgbot-cookie-consent__accept {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: var(--cookie-btn-bg);
  color: var(--cookie-btn-text);
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s ease, filter 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.bgbot-cookie-consent__accept:hover {
  filter: brightness(1.15);
}

.bgbot-cookie-consent__accept:active {
  transform: scale(0.97);
}

@media (min-width: 900px) {
  .bgbot-cookie-consent {
    left: auto;
    right: 1.5rem;
    bottom: 1.5rem;
    padding: 0;
    width: 22rem;
  }
  
  .bgbot-cookie-consent__inner {
    margin: 0;
  }
}
