/* Bokko consent banner — design token-alapú, dark/light-aware */
:root {
  --bokko-consent-bg: #2C3A3B;
  --bokko-consent-fg: #F4F1EC;
  --bokko-consent-accent: #7EC8C8;
  --bokko-consent-btn-outline-border: rgba(244, 241, 236, 0.35);
  --bokko-consent-border-radius: 12px;
  --bokko-consent-shadow: 0 -2px 16px rgba(0, 0, 0, 0.18);
  --bokko-consent-link-color: #7EC8C8;
  --bokko-consent-close-hover: rgba(244, 241, 236, 0.12);
}

[data-theme="light"] {
  --bokko-consent-bg: #2C3A3B;
  --bokko-consent-fg: #F4F1EC;
  --bokko-consent-accent: #7EC8C8;
}

[data-theme="dark"] {
  --bokko-consent-bg: #141414;
  --bokko-consent-fg: #F4F1EC;
  --bokko-consent-accent: #7EC8C8;
  --bokko-consent-btn-outline-border: rgba(244, 241, 236, 0.28);
  --bokko-consent-shadow: 0 -2px 20px rgba(0, 0, 0, 0.38);
}

#bokko-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bokko-consent-bg);
  color: var(--bokko-consent-fg);
  box-shadow: var(--bokko-consent-shadow);
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Document-flow fallback (a11y gate fail esetén body-first) */
#bokko-consent-banner.bokko-consent--flow {
  position: static;
  box-shadow: none;
  border-bottom: 1px solid var(--bokko-consent-btn-outline-border);
}

.bokko-consent__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.bokko-consent__text {
  flex: 1;
  min-width: 200px;
}

.bokko-consent__text p {
  margin: 0 0 0.25rem 0;
  font-size: 0.875rem;
  opacity: 0.92;
}

.bokko-consent__text a {
  color: var(--bokko-consent-link-color);
  text-decoration: underline;
  font-size: 0.8125rem;
}

.bokko-consent__text a:hover {
  opacity: 0.8;
}

.bokko-consent__actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.bokko-consent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--bokko-consent-border-radius);
  cursor: pointer;
  transition: opacity 0.15s ease;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.25;
}

.bokko-consent__btn:hover {
  opacity: 0.85;
}

.bokko-consent__btn--accept {
  background: var(--bokko-consent-accent);
  color: #1a2a2b;
  border: 2px solid var(--bokko-consent-accent);
}

.bokko-consent__btn--reject {
  background: transparent;
  color: var(--bokko-consent-fg);
  border: 2px solid var(--bokko-consent-btn-outline-border);
}

.bokko-consent__btn--reject:hover {
  border-color: var(--bokko-consent-fg);
  opacity: 1;
}

.bokko-consent__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: var(--bokko-consent-fg);
  cursor: pointer;
  border-radius: 6px;
  opacity: 0.7;
  flex-shrink: 0;
  font-size: 1.125rem;
  line-height: 1;
  font-family: inherit;
}

.bokko-consent__close:hover {
  opacity: 1;
  background: var(--bokko-consent-close-hover);
}

/* Preferences mode (state display) */
.bokko-consent__status {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 0.125rem;
}

/* Responsive: <600px stacked layout */
@media (max-width: 600px) {
  .bokko-consent__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
    padding: 1rem;
  }

  .bokko-consent__actions {
    justify-content: stretch;
  }

  .bokko-consent__btn {
    flex: 1;
    min-width: 0;
  }
}
