/* ==========================================================================
   Cookie consent card (bottom-left, non-blocking)
   ========================================================================== */
.fcs-consent {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 9000;
  width: min(420px, calc(100vw - 2rem));
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 200ms var(--fcs-ease), transform 200ms var(--fcs-ease);
}
.fcs-consent.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fcs-consent { transition: none; } }

.fcs-consent__card {
  padding: 1.1rem 1.25rem 1.15rem;
  background: var(--fcs-surface);
  color: var(--fcs-text);
  border: 1px solid var(--fcs-border);
  border-radius: var(--fcs-radius-lg);
  box-shadow: var(--fcs-shadow-lg);
  font-size: var(--fcs-text-sm);
}
.fcs-consent__head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.fcs-consent__icon {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--fcs-accent-soft); color: var(--fcs-accent-text);
}
.fcs-consent__title { font-size: var(--fcs-text-base); margin: 0; }
.fcs-consent__text { margin: 0 0 0.9rem; color: var(--fcs-text-2); line-height: 1.55; }
.fcs-consent__text a { text-decoration: underline; text-underline-offset: 0.15em; }

.fcs-consent__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fcs-consent__actions .fcs-btn--ghost { margin-right: auto; padding-inline: 0.35rem; }
@media (max-width: 420px) {
  .fcs-consent__actions .fcs-btn { flex: 1 1 100%; }
  .fcs-consent__actions .fcs-btn--ghost { order: 3; }
}

/* Options panel with switches */
.fcs-consent__options {
  display: flex; flex-direction: column; gap: 0.5rem;
  margin: 0 0 0.9rem;
  padding: 0.75rem;
  border: 1px solid var(--fcs-border);
  border-radius: var(--fcs-radius);
  background: var(--fcs-surface-2);
}
.fcs-consent__option {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.75rem;
  cursor: pointer; position: relative;
}
.fcs-consent__option-text { display: flex; flex-direction: column; gap: 0.1rem; }
.fcs-consent__option-text strong { font-size: var(--fcs-text-sm); }
.fcs-consent__option-text span { font-size: var(--fcs-text-xs); color: var(--fcs-text-3); line-height: 1.45; }
.fcs-consent__option input {
  position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; min-height: 0;
}
.fcs-switch {
  width: 40px; height: 24px; flex: none;
  border-radius: var(--fcs-radius-pill);
  background: var(--fcs-border-strong);
  position: relative;
  transition: background var(--fcs-dur) var(--fcs-ease);
}
.fcs-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  transition: transform var(--fcs-dur) var(--fcs-ease);
}
.fcs-consent__option input:checked + .fcs-switch { background: var(--fcs-accent); }
.fcs-consent__option input:checked + .fcs-switch::after { transform: translateX(16px); }
.fcs-consent__option input:disabled + .fcs-switch { opacity: 0.55; cursor: not-allowed; }
.fcs-consent__option input:focus-visible + .fcs-switch { outline: 2px solid var(--fcs-accent); outline-offset: 2px; }

/* Footer "Cookie settings" button styled like the legal links */
.fcs-consent-open {
  background: none; border: 0; padding: 0; margin: 0;
  color: #cbd5e1; font: inherit; font-size: var(--fcs-text-xs); cursor: pointer;
}
.fcs-consent-open:hover { color: #fff; text-decoration: underline; }
