#cookie-banner[hidden] {
  display: none !important;
}

#cookie-banner {
  position: fixed;
  z-index: 10000;
  right: auto;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 20px 24px;
  transform: translateX(-50%);
  color: #d0c4ad;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(210, 172, 103, .1), transparent 48%),
    linear-gradient(120deg, #30332d, #282b27 72%);
  border: 1px solid rgba(210, 172, 103, .32);
  border-top: 2px solid #c8a566;
  border-radius: 2px;
  box-shadow: 0 18px 56px rgba(0, 0, 0, .48);
  font-family: "DM Sans", Inter, Arial, sans-serif;
  animation: bbl-cookie-enter .32s ease-out both;
}

#cookie-banner *,
#cookie-banner *::before,
#cookie-banner *::after {
  box-sizing: border-box;
}

#cookie-banner.hide {
  animation: bbl-cookie-exit .24s ease-in forwards;
}

.bbl-cookie-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

.bbl-cookie-icon {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #d2ac67;
  background: rgba(210, 172, 103, .08);
  border: 1px solid rgba(210, 172, 103, .3);
}

.bbl-cookie-icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

.bbl-cookie-copy {
  min-width: 0;
}

.bbl-cookie-eyebrow {
  display: block;
  margin: 0 0 6px;
  color: #d2ac67;
  font: 700 9px/1.4 "DM Mono", monospace;
  letter-spacing: .15em;
}

#cookie-banner .bbl-cookie-copy h2 {
  margin: 0;
  color: #f0e6d0;
  font: 600 19px/1.25 "Playfair Display", Georgia, serif;
}

#cookie-banner .bbl-cookie-copy p {
  max-width: 590px;
  margin: 7px 0 0;
  color: #c7bdab;
  font: 400 12px/1.6 "DM Sans", Inter, Arial, sans-serif;
}

#cookie-banner .bbl-cookie-copy a {
  color: #e0c283;
  text-decoration: underline;
  text-decoration-color: rgba(224, 194, 131, .55);
  text-underline-offset: 3px;
}

#cookie-banner .bbl-cookie-copy a:hover {
  color: #f0d69f;
}

.bbl-cookie-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

#cookie-banner .cookie-btn-reject,
#cookie-banner .cookie-btn-accept {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 2px;
  font: 700 11px/1 "DM Sans", Inter, Arial, sans-serif;
  letter-spacing: .025em;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

#cookie-banner .cookie-btn-reject {
  color: #d0c4ad;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(210, 172, 103, .26);
}

#cookie-banner .cookie-btn-reject:hover {
  color: #f0e6d0;
  background: rgba(255, 255, 255, .06);
  border-color: rgba(210, 172, 103, .55);
}

#cookie-banner .cookie-btn-accept {
  color: #252720;
  background: #c8a566;
  border: 1px solid #d8b878;
}

#cookie-banner .cookie-btn-accept:hover {
  background: #e0c283;
  border-color: #e0c283;
}

#cookie-banner button:focus-visible {
  outline: 2px solid #f0e6d0;
  outline-offset: 3px;
}

@keyframes bbl-cookie-enter {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes bbl-cookie-exit {
  to { opacity: 0; transform: translate(-50%, 12px); }
}

@media (max-width: 720px) {
  #cookie-banner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }

  .bbl-cookie-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 460px) {
  #cookie-banner {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100vw - 20px);
    gap: 13px;
    padding: 15px;
  }

  .bbl-cookie-main { gap: 11px; }
  .bbl-cookie-icon { flex-basis: 36px; width: 36px; height: 36px; }
  .bbl-cookie-icon svg { width: 22px; height: 22px; }
  #cookie-banner .bbl-cookie-copy h2 { font-size: 17px; }
  .bbl-cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
  #cookie-banner .cookie-btn-reject,
  #cookie-banner .cookie-btn-accept { width: 100%; padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  #cookie-banner,
  #cookie-banner.hide {
    animation: none;
  }
}
