.cookie-preferences-footer {
  display: flex;
  justify-content: center;
  padding: 0.75rem 1rem 1.25rem;
  background: #f7f8f4;
  border-top: 1px solid #dfe5dd;
}

.cookie-preferences-footer button,
.cookie-consent-link {
  border: 0;
  padding: 0;
  color: #1f5f41;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-consent-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100000;
  max-height: 40vh;
  overflow: auto;
  border-top: 1px solid #cbd8cd;
  background: #ffffff;
  box-shadow: 0 -8px 28px rgb(26 61 43 / 16%);
}

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

.cookie-consent-content {
  width: min(100% - 2rem, 960px);
  margin: 0 auto;
  padding: 1rem 0 1.1rem;
}

.cookie-consent-content h2 {
  margin: 0 0 0.4rem;
  color: #1a3d2b;
  font-size: 1rem;
}

.cookie-consent-content p {
  max-width: 72rem;
  margin: 0;
  color: #39473f;
  font-size: 0.88rem;
  line-height: 1.55;
}

.cookie-consent-content a {
  color: #1f5f41;
  font-weight: 700;
}

.cookie-consent-actions,
.cookie-consent-options {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

.cookie-consent-actions button,
.cookie-consent-save {
  min-height: 2.35rem;
  border-radius: 0.35rem;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.cookie-consent-primary {
  border: 1px solid #1f5f41;
  color: #ffffff;
  background: #1f5f41;
}

.cookie-consent-secondary {
  border: 1px solid #607166;
  color: #26342b;
  background: #ffffff;
}

.cookie-consent-options {
  align-items: center;
  border-top: 1px solid #e3e9e3;
  padding-top: 0.75rem;
}

.cookie-consent-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #39473f;
  font-size: 0.82rem;
}

.cookie-consent-save {
  border: 1px solid #1f5f41;
  color: #1f5f41;
  background: #edf8f0;
}

@media (max-width: 640px) {
  .cookie-consent-content {
    width: min(100% - 1.25rem, 960px);
    padding: 0.8rem 0 0.9rem;
  }

  .cookie-consent-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-consent-actions button {
    width: 100%;
  }

  .cookie-consent-options {
    align-items: flex-start;
    flex-direction: column;
  }
}
