/* InflueAnswers cookie consent panel. Brand: black ground, white type,
   magenta-to-cyan accent line, Montserrat headings. No colour from Shifra. */
.ia-consent {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 2147483000;
  width: min(440px, calc(100vw - 48px));
  background: #0a0a0a;
  color: #f4f4f2;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius, 4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  font-family: var(--font, 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif);
  font-size: 14px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}
.ia-consent::before {
  content: "";
  display: block;
  height: 2px;
  background: var(--grad, linear-gradient(90deg, #f63395, #32ddfd));
}
.ia-consent.is-open { opacity: 1; transform: none; }
.ia-consent[hidden] { display: none; }

.ia-consent-panel { padding: 22px 24px 24px; }
.ia-consent-panel[hidden] { display: none; }

.ia-consent-title {
  margin: 0 0 10px;
  font-family: var(--display, 'Montserrat', 'Inter', sans-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
.ia-consent-text { margin: 0 0 18px; color: #c9c9c6; }
.ia-consent-text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.ia-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ia-consent-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--radius, 4px);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ia-consent-btn:hover { border-color: #fff; }
.ia-consent-btn--primary { background: #fff; color: #000; border-color: #fff; }
.ia-consent-btn--primary:hover { background: #e8e8e6; }
.ia-consent-btn:focus-visible, .ia-consent-link:focus-visible, .ia-consent-switch:focus-within {
  outline: 2px solid #32ddfd;
  outline-offset: 2px;
}
.ia-consent-link {
  appearance: none;
  background: none;
  border: 0;
  color: #c9c9c6;
  font: inherit;
  padding: 10px 4px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: auto;
}
.ia-consent-link:hover { color: #fff; }

.ia-consent-rows { display: flex; flex-direction: column; gap: 14px; margin: 0 0 18px; }
.ia-consent-row { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.ia-consent-rowlabel { display: block; font-weight: 600; color: #fff; margin-bottom: 2px; cursor: pointer; }
.ia-consent-rowtext p { margin: 0; color: #a9a9a6; font-size: 13px; }

.ia-consent-switch { position: relative; flex: 0 0 auto; width: 40px; height: 22px; margin-top: 2px; cursor: pointer; }
.ia-consent-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.ia-consent-slider {
  position: absolute; inset: 0;
  background: #333;
  border-radius: 22px;
  transition: background 0.2s ease;
}
.ia-consent-slider::before {
  content: "";
  position: absolute;
  width: 16px; height: 16px; left: 3px; top: 3px;
  background: #bbb;
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
}
.ia-consent-switch input:checked + .ia-consent-slider { background: var(--grad, linear-gradient(90deg, #f63395, #32ddfd)); }
.ia-consent-switch input:checked + .ia-consent-slider::before { transform: translateX(18px); background: #fff; }
.ia-consent-switch input:disabled + .ia-consent-slider { opacity: 0.55; cursor: not-allowed; }

@media (max-width: 600px) {
  .ia-consent { left: 0; right: 0; bottom: 0; width: 100%; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; }
  .ia-consent-panel { padding: 18px 20px 20px; }
  .ia-consent-btn { flex: 1 1 auto; text-align: center; }
  .ia-consent-link { margin-left: 0; width: 100%; text-align: left; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ia-consent, .ia-consent-slider, .ia-consent-slider::before, .ia-consent-btn { transition: none; }
}
