:root {
  --consent-ink: #12214b;
  --consent-muted: #617298;
  --consent-line: rgba(26, 79, 196, 0.12);
  --consent-surface: rgba(255, 255, 255, 0.98);
  --consent-soft: rgba(243, 248, 255, 0.98);
  --consent-accent: #1b5be6;
  --consent-accent-strong: #124fd8;
  --consent-shadow: 0 26px 80px rgba(15, 40, 109, 0.16);
}

.consent-banner,
.consent-modal-panel,
.legal-note-card {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.consent-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  display: grid;
  gap: 18px;
  width: min(540px, calc(100vw - 24px));
  padding: 20px 22px;
  border: 1px solid var(--consent-line);
  border-radius: 24px;
  background: var(--consent-surface);
  box-shadow: var(--consent-shadow);
}

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

.consent-banner-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 23, 41, 0.06);
  color: var(--consent-ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.consent-banner-close:hover,
.consent-banner-close:focus-visible {
  background: rgba(16, 23, 41, 0.12);
}

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

.consent-copy strong,
.consent-modal-head h2 {
  color: var(--consent-ink);
  font-size: 1.18rem;
  font-weight: 800;
}

.consent-copy p,
.consent-option p,
.consent-legal-note p {
  margin: 0;
  color: var(--consent-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.consent-button {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--consent-line);
  border-radius: 999px;
  cursor: pointer;
}

.consent-button-secondary {
  background: #ffffff;
  color: var(--consent-ink);
}

.consent-button-primary {
  background: linear-gradient(180deg, #2d6fff 0%, #1656dd 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(20, 80, 216, 0.22);
}

.consent-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
}

.consent-modal[aria-hidden="false"] {
  display: block;
}

.consent-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 23, 53, 0.48);
  backdrop-filter: blur(10px);
}

.consent-modal-panel {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100vw - 24px));
  margin: min(8vh, 72px) auto 0;
  padding: 24px;
  border-radius: 28px;
  background: var(--consent-surface);
  box-shadow: var(--consent-shadow);
}

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

.consent-eyebrow {
  margin: 0 0 8px;
  color: var(--consent-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.consent-icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 23, 41, 0.06);
  color: var(--consent-ink);
  font-size: 1.4rem;
  cursor: pointer;
}

.consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid var(--consent-line);
  border-radius: 20px;
  background: var(--consent-soft);
}

.consent-option strong {
  display: block;
  margin-bottom: 4px;
  color: var(--consent-ink);
  font-size: 1rem;
}

.consent-lock {
  color: var(--consent-accent);
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.consent-toggle-row {
  cursor: pointer;
}

.consent-switch {
  display: inline-flex;
  align-items: center;
}

.consent-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.consent-switch-ui {
  position: relative;
  width: 56px;
  height: 32px;
  border-radius: 999px;
  background: rgba(22, 33, 62, 0.14);
  transition: background-color 180ms ease;
}

.consent-switch-ui::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 12px rgba(16, 23, 41, 0.16);
  transition: transform 180ms ease;
}

.consent-switch input:checked + .consent-switch-ui {
  background: var(--consent-accent);
}

.consent-switch input:checked + .consent-switch-ui::after {
  transform: translateX(24px);
}

.consent-legal-note {
  margin-top: 16px;
}

.consent-legal-note a {
  color: var(--consent-accent);
  font-weight: 700;
}

.consent-actions-modal {
  margin-top: 18px;
  justify-content: flex-end;
}

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

@media (max-width: 720px) {
  .consent-banner {
    right: 12px;
    bottom: 12px;
    padding: 18px;
    border-radius: 20px;
  }

  .consent-actions,
  .consent-actions-modal {
    flex-direction: column;
  }

  .consent-button {
    width: 100%;
    justify-content: center;
  }

  .consent-modal-panel {
    margin-top: 18px;
    padding: 18px;
    border-radius: 24px;
  }

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