/* First-party cookie preferences. Visual only; logic lives in cookie-consent.js. */
#fcs-consent-root {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: oklch(16% 0.03 240);
}

#fcs-consent-root.fcs-cc--open {
  display: flex;
}

.fcs-cc__overlay {
  position: absolute;
  inset: 0;
  background: oklch(16% 0.03 240 / 0.55);
  animation: fcs-cc-fade 0.22s ease;
}

.fcs-cc__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  max-height: min(720px, calc(100dvh - 1.5rem));
  overflow: hidden;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 24px 60px oklch(16% 0.03 240 / 0.28);
  animation: fcs-cc-in 0.24s ease;
}

.fcs-cc__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 1.75rem 1.75rem 0.5rem;
}

.fcs-cc__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: oklch(16% 0.03 240);
  line-height: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.fcs-cc__close:hover {
  background: oklch(96% 0.008 240);
}

.fcs-cc__logo {
  display: block;
  height: 3.25rem;
  width: auto;
  margin: 0.25rem auto 1rem;
}

.fcs-cc__title {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.fcs-cc__intro {
  margin: 0;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: oklch(32% 0.03 245);
}

.fcs-cc__intro a {
  color: oklch(38% 0.09 245);
  font-weight: 600;
}

.fcs-cc__cats {
  margin-top: 1.25rem;
  border-top: 1px solid oklch(90% 0.01 240);
}

.fcs-cc__cat {
  border-bottom: 1px solid oklch(90% 0.01 240);
  padding: 0.85rem 0;
}

.fcs-cc__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.fcs-cc__name {
  font-size: 0.9375rem;
  font-weight: 600;
}

.fcs-cc__detail {
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: oklch(32% 0.03 245);
}

.fcs-cc__detail p {
  margin: 0 0 0.55rem;
}

.fcs-cc__status {
  font-weight: 600;
  color: oklch(16% 0.03 240);
}

.fcs-cc__detail dl {
  margin: 0.35rem 0 0;
}

.fcs-cc__detail dt {
  margin-top: 0.45rem;
  font-weight: 600;
  color: oklch(16% 0.03 240);
}

.fcs-cc__detail dd {
  margin: 0.1rem 0 0;
}

.fcs-cc__switch {
  position: relative;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 1.625rem;
  border: 0;
  border-radius: 999px;
  background: #c5ced6;
  cursor: pointer;
}

.fcs-cc__switch::after {
  content: "";
  position: absolute;
  top: 0.1875rem;
  left: 0.1875rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px oklch(16% 0.03 240 / 0.25);
  transition: transform 0.18s ease;
}

.fcs-cc__switch[aria-checked="true"] {
  background: oklch(38% 0.09 245);
}

.fcs-cc__switch[aria-checked="true"]::after {
  transform: translateX(1.125rem);
}

.fcs-cc__switch:disabled {
  background: oklch(68% 0.14 232);
  cursor: not-allowed;
  opacity: 1;
}

.fcs-cc__more {
  display: block;
  width: 100%;
  margin: 0.85rem 0 0.25rem;
  padding: 0.65rem;
  border: 0;
  background: transparent;
  color: oklch(38% 0.09 245);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  cursor: pointer;
}

.fcs-cc__note {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: oklch(40% 0.02 245);
  text-align: center;
}

.fcs-cc__actions {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.85rem 1.75rem 1.25rem;
  background: #fff;
  border-top: 1px solid oklch(92% 0.01 240);
  border-radius: 0 0 0.75rem 0.75rem;
}

.fcs-cc__actions button {
  min-height: 3rem;
  padding: 0.65rem 0.4rem;
  border-radius: 0.5rem;
  border: 1px solid oklch(38% 0.09 245);
  background: #fff;
  color: oklch(38% 0.09 245);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  cursor: pointer;
}

.fcs-cc__actions button:hover {
  background: oklch(97% 0.01 240);
}

#fcs-cc-accept-all {
  background: oklch(38% 0.09 245);
  color: #fff;
}

#fcs-cc-accept-all:hover {
  background: oklch(32% 0.09 245);
}

.fcs-cc__close:focus-visible,
.fcs-cc__switch:focus-visible,
.fcs-cc__more:focus-visible,
.fcs-cc__actions button:focus-visible,
.fcs-cc__intro a:focus-visible {
  outline: 2px solid oklch(68% 0.14 232);
  outline-offset: 2px;
}

.fcs-cc__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

footer button[data-cookie-settings] {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

footer button[data-cookie-settings]:focus-visible {
  outline: 2px solid oklch(68% 0.14 232);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .fcs-cc__scroll {
    padding: 1.25rem 1.15rem 0.35rem;
  }

  .fcs-cc__actions {
    grid-template-columns: 1fr;
    padding: 0.75rem 1.15rem 1.1rem;
  }

  .fcs-cc__actions button {
    font-size: 0.8125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fcs-cc__overlay,
  .fcs-cc__dialog,
  .fcs-cc__switch::after {
    animation: none;
    transition: none;
  }
}

@keyframes fcs-cc-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fcs-cc-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
