/* Compact consent card: dark slate, teal accent, matching Mind & Perf. */
.consent-banner[hidden],
.cookie-preferences-link[hidden] {
  display: none !important;
}

.consent-banner {
  --consent-teal: #55d0c0;
  --consent-ink: #20313b;
  position: fixed;
  z-index: 10000;
  inset: auto 1.25rem 1.25rem;
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
  padding: 1.35rem 1.5rem;
  overflow: hidden;
  color: #f5fbfb;
  background:
    radial-gradient(ellipse at 0% 0%, rgb(85 208 192 / 17%), transparent 46%),
    linear-gradient(125deg, #233640 0%, #304c54 100%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-top: 3px solid var(--consent-teal);
  border-radius: 1rem;
  box-shadow: 0 18px 56px rgb(16 31 39 / 36%);
  font: 400 0.95rem/1.55 Arial, sans-serif;
  animation: consent-card-in 260ms ease-out both;
}

.consent-banner * { box-sizing: border-box; }

.consent-banner__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
}

.consent-banner__copy {
  position: relative;
  min-height: 3.5rem;
  padding-left: 4.35rem;
}

.consent-banner__copy::before {
  content: "";
  position: absolute;
  top: 0.1rem;
  left: 0;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgb(85 208 192 / 45%);
  border-radius: 50%;
  background: rgb(85 208 192 / 12%);
}

.consent-banner__copy::after {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: 0.95rem;
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid var(--consent-teal);
  border-radius: 50%;
  box-shadow: 0.7rem -0.45rem 0 -0.42rem var(--consent-teal),
    0.72rem 0.35rem 0 -0.42rem var(--consent-teal),
    -0.15rem 0.55rem 0 -0.42rem var(--consent-teal);
}

.consent-banner__eyebrow {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--consent-teal);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.consent-banner__title {
  margin: 0 0 0.25rem;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
}

.consent-banner__text {
  max-width: 650px;
  margin: 0;
  color: rgb(245 251 251 / 83%);
  font-size: 0.9rem;
}

.consent-banner__text a,
.consent-banner__link {
  color: var(--consent-teal);
  text-decoration: underline;
  text-decoration-color: rgb(85 208 192 / 60%);
  text-underline-offset: 0.18em;
}

.consent-banner__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.consent-banner button {
  min-height: 2.75rem;
  padding: 0.62rem 0.9rem;
  border: 1px solid rgb(245 251 251 / 44%);
  border-radius: 0.55rem;
  color: #f5fbfb;
  background: rgb(255 255 255 / 5%);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.consent-banner button:hover {
  border-color: var(--consent-teal);
  background: rgb(255 255 255 / 12%);
  transform: translateY(-1px);
}

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

.consent-banner button.consent-banner__primary {
  border-color: var(--consent-teal);
  color: var(--consent-ink);
  background: var(--consent-teal);
}

.consent-banner button.consent-banner__primary:hover {
  border-color: #8be5d9;
  background: #8be5d9;
}

.consent-banner__settings {
  margin-top: 1.1rem;
  padding: 1rem 0 0 4.35rem;
  border-top: 1px solid rgb(255 255 255 / 17%);
}

.consent-banner__settings[hidden],
.consent-banner__actions[hidden] { display: none !important; }

.consent-banner__choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.consent-banner__choice input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.18rem;
  accent-color: var(--consent-teal);
}

.consent-banner__choice label { font-weight: 700; }
.consent-banner__settings p { margin: 0 0 0.8rem; color: rgb(245 251 251 / 78%); }
.cookie-preferences-link { cursor: pointer; }

@keyframes consent-card-in {
  from { opacity: 0; transform: translateY(0.75rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .consent-banner {
    inset-inline: 0.7rem;
    bottom: 0.7rem;
    width: auto;
    max-height: min(82vh, 580px);
    overflow-y: auto;
    padding: 1.05rem;
    border-radius: 0.85rem;
  }

  .consent-banner__layout { grid-template-columns: 1fr; gap: 1rem; }
  .consent-banner__copy { min-height: 2.8rem; padding-left: 3.5rem; }
  .consent-banner__copy::before { width: 2.7rem; height: 2.7rem; }
  .consent-banner__copy::after { top: 0.78rem; left: 0.72rem; }
  .consent-banner__title { font-size: 1rem; }
  .consent-banner__text { font-size: 0.85rem; }
  .consent-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .consent-banner__actions button { min-height: 2.65rem; padding-inline: 0.5rem; }
  .consent-banner__actions button:last-child { grid-column: 1 / -1; }
  .consent-banner__settings { padding-left: 0; }
}

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