.consent-root {
  position: relative;
  z-index: 100;
}

.consent-banner {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  width: min(920px, calc(100% - 36px));
  margin-inline: auto;
  padding: 22px;
  color: #101712;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(6, 75, 53, 0.18);
  border-radius: 22px;
  box-shadow: 0 26px 80px rgba(3, 47, 35, 0.28);
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  backdrop-filter: blur(16px);
}

.consent-banner[hidden],
.consent-preferences[hidden],
.consent-settings-button[hidden] {
  display: none;
}

.consent-copy h2,
.consent-modal h2 {
  margin: 0;
  color: #032f23;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.consent-copy p,
.consent-modal > p {
  margin: 7px 0 0;
  color: #526159;
  font-size: 13px;
  line-height: 1.55;
}

.consent-links {
  display: flex;
  margin-top: 9px;
  gap: 14px;
  flex-wrap: wrap;
}

.consent-links a,
.consent-text-button {
  color: #0b7a4f;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.consent-button,
.consent-text-button,
.consent-settings-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.consent-button {
  min-height: 44px;
  padding: 10px 15px;
  color: #032f23;
  background: #edf4ef;
  border: 1px solid #d7e4da;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 850;
}

.consent-button.primary,
.consent-button[data-consent-action="necessary"] {
  background: #ffdc39;
  border-color: #ffdc39;
}

.consent-button:hover,
.consent-button:focus-visible {
  transform: translateY(-1px);
}

.consent-button:focus-visible,
.consent-text-button:focus-visible,
.consent-settings-button:focus-visible,
.consent-toggle input:focus-visible {
  outline: 3px solid #1769aa;
  outline-offset: 3px;
}

.consent-text-button {
  padding: 4px;
  background: transparent;
}

.consent-preferences {
  position: fixed;
  z-index: 110;
  inset: 0;
  display: grid;
  padding: 22px;
  background: rgba(3, 47, 35, 0.72);
  place-items: center;
}

.consent-modal {
  width: min(560px, 100%);
  max-height: min(720px, calc(100vh - 44px));
  overflow: auto;
  padding: 26px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 28px 90px rgba(3, 47, 35, 0.32);
}

.consent-options {
  display: grid;
  margin: 22px 0;
  border-top: 1px solid #dfe8df;
}

.consent-option {
  display: grid;
  padding: 17px 0;
  border-bottom: 1px solid #dfe8df;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.consent-option strong {
  display: block;
  color: #032f23;
  font-size: 14px;
}

.consent-option span {
  display: block;
  margin-top: 4px;
  color: #526159;
  font-size: 12px;
  line-height: 1.45;
}

.consent-toggle input {
  width: 22px;
  height: 22px;
  accent-color: #0b7a4f;
}

.consent-settings-button {
  position: fixed;
  z-index: 45;
  bottom: 104px;
  left: 16px;
  min-height: 38px;
  padding: 8px 12px;
  color: #ffffff;
  background: rgba(3, 47, 35, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(3, 47, 35, 0.22);
  font-size: 12px;
  font-weight: 820;
}

@media (max-width: 760px) {
  .consent-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
    padding: 18px;
    grid-template-columns: 1fr;
  }

  .consent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .consent-button {
    width: 100%;
  }

  .consent-settings-button {
    bottom: 82px;
  }
}

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