/* Cookie consent: in page flow, above the header */

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

.cookie-consent,
.cookie-consent * {
  box-sizing: border-box;
}

.cookie-consent {
  background: #f5f4f1;
  color: #111317;
  border-top: 4px solid #c45a3d;
  border-bottom: 1px solid rgb(17 19 23 / 15%);
}

.cookie-consent__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.5rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: .75rem 1rem;
  line-height: 1.5;
}

.cookie-consent__text {
  flex: 1 1 32rem;
}

.cookie-consent__text h2 {
  margin: 0 0 .15rem;
  color: #111317;
  font-family: Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.cookie-consent__text h2:focus-visible {
  outline: 3px solid #111317;
  outline-offset: 4px;
}

.cookie-consent__text p {
  margin: 0;
  font-size: .875rem;
}

.cookie-consent__text a {
  color: #111317;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cookie-consent__text a:hover {
  color: #8a3f2a;
  text-decoration-thickness: 2px;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  flex: 0 1 auto;
}

.cookie-consent__actions button {
  min-width: 6.5rem;
  min-height: 44px;
  margin: 0;
  padding: .4rem 1rem;
  border: 2px solid #111317;
  border-radius: 12px;
  background: #111317;
  color: #f5f4f1;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}

.cookie-consent__actions button:hover {
  background: #8a3f2a;
  border-color: #8a3f2a;
}

.cookie-consent__text a:focus-visible,
.cookie-consent__actions button:focus-visible {
  outline: 3px solid #111317;
  outline-offset: 4px;
}

@media (max-width: 575.98px) {
  .cookie-consent__actions {
    width: 100%;
  }

  .cookie-consent__actions button {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent__actions button {
    transition: none;
  }
}