.cookie-consent,
.cookie-settings-button {
  box-sizing: border-box;
  font-family: "museo-sans", sans-serif;
}

.cookie-consent[hidden],
.cookie-settings-button[hidden] {
  display: none !important;
}

.cookie-consent {
  background: #fff;
  border: 1px solid rgba(78, 52, 46, 0.28);
  border-top: 4px solid #fbc12d;
  bottom: 16px;
  box-shadow: 0 18px 48px rgba(78, 52, 46, 0.2);
  color: #33211d;
  left: 16px;
  margin: 0 auto;
  max-width: 820px;
  opacity: 0;
  padding: 20px;
  position: fixed;
  right: 16px;
  transform: translateY(18px);
  transition:
    opacity 180ms ease,
    transform 220ms ease;
  z-index: 2147483640;
}

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

.cookie-consent__content {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.cookie-consent__copy h2 {
  color: #4e342e;
  font-family: "museo-sans-display", "museo-sans", sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 6px;
}

.cookie-consent__copy p {
  color: #33211d;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

.cookie-consent__copy a {
  color: #4e342e;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__actions {
  display: flex;
  gap: 10px;
}

.cookie-consent__button {
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  min-height: 44px;
  padding: 11px 16px;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.cookie-consent__button--primary {
  background: #4e342e;
  border: 2px solid #4e342e;
  color: #fff;
}

.cookie-consent__button--primary:hover {
  background: #33211d;
  border-color: #33211d;
}

.cookie-consent__button--secondary {
  background: #fff;
  border: 2px solid #4e342e;
  color: #4e342e;
}

.cookie-consent__button--secondary:hover {
  background: #f8f3ed;
}

.cookie-consent__button:focus-visible,
.cookie-consent__copy a:focus-visible {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #4e342e;
  outline: none;
}

.cookie-settings-button {
  appearance: none;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline;
  font: inherit;
  margin: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-settings-button:hover {
  color: #4e342e;
  opacity: 0.8;
}

.cookie-settings-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.cookie-settings-separator {
  white-space: pre;
}

@media (max-width: 700px) {
  .cookie-consent {
    bottom: 8px;
    left: 8px;
    padding: 18px;
    right: 8px;
  }

  .cookie-consent__content {
    gap: 18px;
    grid-template-columns: 1fr;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-consent__button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .cookie-consent__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent,
  .cookie-consent__button,
  .cookie-settings-button {
    transition: none;
  }
}
