.cookie-consent {
  position: fixed;
  z-index: 60;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  display: flex;
  width: min(42rem, calc(100% - 2rem));
  margin-left: auto;
  padding: 0.875rem 1rem;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0.75rem 2.5rem rgba(16, 24, 40, 0.14);
  color: #344054;
  font-size: 0.875rem;
  line-height: 1.45;
}

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

.cookie-consent__text {
  margin: 0;
  flex: 1 1 auto;
}

.cookie-consent__link {
  color: #806535;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cookie-consent__link:hover {
  color: #66502a;
}

.cookie-consent__button {
  flex: 0 0 auto;
  min-height: 2.5rem;
  padding: 0.625rem 1rem;
  border: 0;
  border-radius: 0.625rem;
  background: #b59154;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cookie-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.625rem;
}

.cookie-consent__button--secondary {
  border: 1px solid #98a2b3;
  background: #ffffff;
  color: #344054;
}

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

.cookie-consent__button:hover {
  background: #806535;
}

.cookie-consent__button:focus-visible,
.cookie-consent__button--secondary:focus-visible,
.cookie-consent__link:focus-visible {
  outline: 0.1875rem solid rgba(181, 145, 84, 0.42);
  outline-offset: 0.1875rem;
}

body.cookie-consent-visible {
  padding-bottom: var(--cookie-consent-offset, 7rem) !important;
}

@media (max-width: 40rem) {
  .cookie-consent {
    width: auto;
    padding: 0.875rem;
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
  }

  .cookie-consent__button {
    width: 100%;
  }

  .cookie-consent__actions {
    width: 100%;
    flex-direction: column-reverse;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent {
    scroll-behavior: auto;
  }
}
