.consent-layer {
  color: #101820;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
  z-index: 10000;
}

.consent-banner {
  align-items: center;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(16, 24, 32, 0.16);
  border-radius: 18px;
  bottom: 18px;
  box-shadow: 0 20px 70px rgba(16, 24, 32, 0.22);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  left: 18px;
  margin: 0 auto;
  max-width: 1120px;
  padding: 22px 24px;
  position: fixed;
  right: 18px;
}

.consent-banner[hidden],
.consent-modal-backdrop[hidden] {
  display: none;
}

.consent-kicker {
  color: #0e5bd8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.consent-banner h2,
.consent-modal h2 {
  color: #101820;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.25;
  margin: 0;
}

.consent-banner p:not(.consent-kicker),
.consent-option p {
  color: #53606b;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 7px 0 0;
}

.consent-banner a {
  color: #0e5bd8;
  font-weight: 700;
}

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

.consent-button,
.consent-link-button,
.consent-settings-button,
.consent-close {
  appearance: none;
  cursor: pointer;
  font: inherit;
}

.consent-button {
  background: #fff;
  border: 1px solid rgba(16, 24, 32, 0.24);
  border-radius: 999px;
  color: #101820;
  font-size: 0.82rem;
  font-weight: 800;
  min-height: 42px;
  padding: 10px 16px;
}

.consent-button:hover,
.consent-button:focus-visible {
  border-color: #0e5bd8;
  outline: 3px solid rgba(14, 91, 216, 0.18);
}

.consent-primary {
  background: #0e5bd8;
  border-color: #0e5bd8;
  color: #fff;
}

.consent-link-button {
  background: transparent;
  border: 0;
  color: #0e5bd8;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 10px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-settings-button {
  background: #101820;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  bottom: 14px;
  box-shadow: 0 8px 30px rgba(16, 24, 32, 0.22);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  left: 14px;
  padding: 9px 13px;
  position: fixed;
}

.consent-modal-backdrop {
  align-items: center;
  background: rgba(16, 24, 32, 0.64);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
}

.consent-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.32);
  max-height: min(720px, calc(100vh - 36px));
  max-width: 640px;
  overflow: auto;
  padding: 24px;
  width: 100%;
}

.consent-modal-header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.consent-close {
  align-items: center;
  background: #f2f4f6;
  border: 0;
  border-radius: 50%;
  color: #101820;
  display: inline-flex;
  font-size: 1.4rem;
  height: 40px;
  justify-content: center;
  line-height: 1;
  width: 40px;
}

.consent-option {
  align-items: center;
  border-top: 1px solid #e3e7eb;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 18px 0;
}

.consent-option strong {
  display: block;
  font-size: 0.95rem;
}

.consent-option input[type="checkbox"] {
  accent-color: #0e5bd8;
  flex: 0 0 auto;
  height: 24px;
  width: 24px;
}

.consent-required span {
  color: #3f7e58;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.consent-modal-open {
  overflow: hidden;
}

.website-field {
  height: 1px !important;
  left: -10000px !important;
  overflow: hidden !important;
  position: absolute !important;
  top: auto !important;
  width: 1px !important;
}

@media (max-width: 820px) {
  .consent-banner {
    align-items: stretch;
    bottom: 10px;
    gap: 16px;
    grid-template-columns: 1fr;
    left: 10px;
    padding: 18px;
    right: 10px;
  }

  .consent-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .consent-actions,
  .consent-modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .consent-button,
  .consent-link-button {
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .consent-modal {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent-layer *,
  .consent-layer *::before,
  .consent-layer *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
