.managed-privacy-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.75rem;
  color: inherit;
  font: inherit;
}

.managed-privacy-links a,
.cookie-preferences-link {
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.cookie-preferences-link {
  appearance: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.consent-footer {
  padding: 1rem;
  border-top: 1px solid #d9dce3;
  background: #f7f8fa;
  color: #30343b;
  text-align: center;
  font: 14px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cookie-consent-banner {
  position: fixed;
  z-index: 100000;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: 40vh;
  overflow-y: auto;
  border-top: 1px solid #cfd3dc;
  background: #ffffff;
  color: #20242b;
  box-shadow: 0 -8px 28px rgba(32, 36, 43, 0.16);
  font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.cookie-consent-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
}

.cookie-consent-summary,
.cookie-consent-customize {
  margin: 0;
}

.cookie-consent-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.cookie-consent-copy h2 {
  margin: 0 0 4px;
  color: #181b20;
  font: 700 18px/1.3 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.cookie-consent-copy p {
  max-width: 760px;
  margin: 0;
  color: #555b65;
  font: inherit;
}

.cookie-consent-copy a {
  color: #075f69;
  font-weight: 650;
  text-underline-offset: 0.15em;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 15px;
  font: 700 14px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  cursor: pointer;
}

.cookie-button:focus-visible,
.cookie-preferences-link:focus-visible {
  outline: 3px solid #f1a23a;
  outline-offset: 3px;
}

.cookie-button-primary {
  border-color: #075f69;
  background: #075f69;
  color: #ffffff;
}

.cookie-button-neutral {
  border-color: #3e444d;
  background: #ffffff;
  color: #252930;
}

.cookie-button-secondary {
  border-color: #c7cbd3;
  background: #f4f5f7;
  color: #343941;
}

.cookie-button:hover {
  filter: brightness(0.96);
}

.cookie-consent-customize {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr) auto;
  align-items: center;
  gap: 24px;
}

.cookie-consent-options {
  display: grid;
  gap: 8px;
}

.cookie-consent-options label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  margin: 0;
  cursor: pointer;
}

.cookie-consent-options span,
.cookie-consent-options strong,
.cookie-consent-options small {
  display: block;
}

.cookie-consent-options strong {
  color: #252930;
  font-size: 14px;
}

.cookie-consent-options small {
  color: #626873;
  font-size: 12px;
}

.cookie-consent-options input {
  width: 20px;
  height: 20px;
  accent-color: #075f69;
}

@media (max-width: 820px) {
  .cookie-consent-summary,
  .cookie-consent-customize {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cookie-consent-actions {
    justify-content: stretch;
  }

  .cookie-button {
    flex: 1 1 150px;
  }
}

@media (max-width: 520px) {
  .cookie-consent-inner {
    width: min(100% - 24px, 1180px);
    padding: 14px 0;
  }

  .cookie-consent-copy h2 {
    font-size: 16px;
  }

  .cookie-consent-copy p {
    font-size: 13px;
  }

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

  .cookie-button-primary {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent-banner,
  .cookie-consent-banner * {
    scroll-behavior: auto !important;
  }
}
