.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  background: rgba(255, 248, 241, 0.97);
  border: 1px solid #d8c4b4;
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(43, 30, 20, 0.18);
  padding: 0.85rem 0.95rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__text {
  margin: 0;
  color: #3b312a;
  font-size: 0.9rem;
  line-height: 1.45;
}

.cookie-banner__btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.54rem 0.9rem;
  background: var(--accent, #b75f3a);
  color: #fff;
  font-weight: 800;
  font-size: 0.86rem;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-banner__btn:hover {
  filter: brightness(0.97);
}

.cookie-banner__btn:focus-visible {
  outline: 2px solid var(--accent, #b75f3a);
  outline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  align-items: center;
}

.cookie-banner__btn--secondary {
  border-color: rgba(183, 95, 58, 0.3);
  background: transparent;
  color: #6d3723;
}

.cookie-banner__link {
  color: #6d3723;
  font-size: 0.87rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.cookie-banner__link:hover {
  color: var(--accent, #b75f3a);
}

.cookie-banner__link:focus-visible {
  outline: 2px solid var(--accent, #b75f3a);
  outline-offset: 2px;
  border-radius: 4px;
}

:root[data-theme="dark"] .cookie-banner {
  background: rgba(35, 30, 26, 0.97);
  border-color: #5d4f45;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

:root[data-theme="dark"] .cookie-banner__text {
  color: #e3d5c9;
}

:root[data-theme="dark"] .cookie-banner__btn--secondary {
  color: #f0d8c8;
  border-color: rgba(240, 216, 200, 0.24);
}

:root[data-theme="dark"] .cookie-banner__link {
  color: #f0d8c8;
}

@media (max-width: 700px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
    padding: 0.75rem 0.75rem;
  }

  .cookie-banner__actions {
    justify-content: stretch;
  }

  .cookie-banner__btn {
    width: 100%;
  }

  .cookie-banner__link {
    width: 100%;
    text-align: center;
  }
}
