.cookie-consent {
  position: fixed;
  z-index: 9999;
  right: 1.5rem;
  bottom: 1.5rem;
  width: min(34rem, calc(100% - 3rem));
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.25rem;
  background: #046938;
  color: #fff;
  box-shadow: 0 1.25rem 4rem rgba(14, 35, 40, 0.28);
}

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

.cookie-consent__title {
  margin: 0 0 0.5rem;
  color: #fff;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1.15;
}

.cookie-consent__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.55;
}

.cookie-consent__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.cookie-consent__button {
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cookie-consent__button--primary {
  border-color: #fbb041;
  background: #fbb041;
  color: #173c29;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
  transform: translateY(-1px);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.cookie-settings-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.footer-legal-links {
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.padding-1-5.flex-footer {
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.footer-legal-links .footer-item,
.footer-legal-links .cookie-settings-button {
  display: inline-block;
  flex: 0 0 auto;
  margin: 0;
  color: #fff;
  white-space: nowrap;
  font-size: 0.75rem;
  line-height: 1.3;
}

.footer-credit {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  max-width: 32rem;
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: right;
}

.footer-credit .developer-credit {
  color: inherit;
  font-size: 0.6875rem;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-credit .developer-credit:hover,
.footer-credit .developer-credit:focus-visible {
  color: #fff;
}

.footer-legal-links .cookie-settings-button:hover,
.footer-legal-links .cookie-settings-button:focus-visible {
  color: #fff;
}

@media (max-width: 767px) {
  .padding-1-5.flex-footer {
    align-items: flex-start;
  }

  .footer-legal-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-legal-links .footer-item,
  .footer-legal-links .cookie-settings-button {
    white-space: normal;
  }

  .footer-credit {
    align-items: flex-start;
    text-align: left;
  }
}

.cookie-media-placeholder {
  display: grid;
  position: absolute;
  inset: 0;
  place-items: center;
  padding: 1.5rem;
  background: #046938;
  color: #fff;
  text-align: center;
}

.cookie-media-placeholder p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 479px) {
  .cookie-consent {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100% - 1.5rem);
    padding: 1.25rem;
  }

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

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