.fx-cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10000;
  color: var(--fx-text);
}

.fx-cookie-shell {
  border-top: 1px solid var(--fx-line);
  background:
    radial-gradient(circle at 72% 0%, rgba(4, 157, 217, 0.12), transparent 35%),
    rgba(2, 8, 12, 0.96);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

:root[data-theme="light"] .fx-cookie-shell {
  background:
    radial-gradient(circle at 72% 0%, rgba(4, 157, 217, 0.16), transparent 34%),
    rgba(244, 247, 248, 0.97);
  box-shadow: 0 -18px 54px rgba(1, 40, 64, 0.12);
}

.fx-cookie-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  width: min(92rem, calc(100vw - 3rem));
  margin: 0 auto;
  padding: 1rem 0;
}

.fx-cookie-copy strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--fx-text);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.fx-cookie-copy p {
  margin: 0;
  color: var(--fx-muted);
  font-size: 0.84rem;
  line-height: 1.58;
}

.fx-cookie-copy a,
.fx-cookie-link {
  color: var(--fx-cyan);
  font-weight: 900;
  text-decoration: none;
}

.fx-cookie-copy a:hover,
.fx-cookie-link:hover {
  color: var(--fx-text);
}

.fx-cookie-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.8rem;
  width: min(92rem, calc(100vw - 3rem));
  margin: 0 auto;
  padding: 0 0 1rem;
}

.fx-cookie-options[hidden] {
  display: none;
}

.fx-cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid var(--fx-line);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.78rem 0.9rem;
  cursor: pointer;
}

:root[data-theme="light"] .fx-cookie-option {
  background: rgba(255, 255, 255, 0.64);
}

.fx-cookie-option input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.18rem;
  accent-color: var(--fx-cyan);
}

.fx-cookie-option strong {
  display: block;
  color: var(--fx-text);
  font-size: 0.82rem;
  line-height: 1.25;
}

.fx-cookie-option small {
  display: block;
  margin-top: 0.2rem;
  color: var(--fx-muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.fx-cookie-option--locked {
  cursor: default;
  opacity: 0.82;
}

.fx-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
}

.fx-cookie-link {
  border: 0;
  background: transparent;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 0.55rem 0.15rem;
  text-transform: uppercase;
  cursor: pointer;
}

.fx-cookie-action {
  min-height: 2.72rem;
  border: 1px solid var(--fx-line);
  padding: 0.78rem 1.25rem;
  color: var(--fx-text);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.1;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
  cursor: pointer;
}

.fx-cookie-action:hover,
.fx-cookie-preferences:hover {
  transform: translateY(-1px);
}

.fx-cookie-action--primary {
  border-color: var(--fx-cyan);
  background: var(--fx-cyan);
  color: var(--fx-deep);
}

.fx-cookie-action--outline {
  border-color: rgba(4, 157, 217, 0.42);
  background: rgba(4, 157, 217, 0.08);
}

.fx-cookie-action--ghost {
  background: transparent;
}

.fx-cookie-preferences {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border: 1px solid rgba(4, 157, 217, 0.38);
  border-radius: 999px;
  background: rgba(2, 8, 12, 0.9);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  cursor: pointer;
}

:root[data-theme="light"] .fx-cookie-preferences {
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 34px rgba(1, 40, 64, 0.14);
}

.fx-cookie-preferences:hover {
  border-color: rgba(4, 157, 217, 0.58);
  box-shadow: 0 16px 38px rgba(4, 157, 217, 0.16);
}

.fx-cookie-preferences span:not(.fx-cookie-eagle),
.fx-cookie-preferences .fx-cookie-eagle::after {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.fx-cookie-eagle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.65rem;
  height: 2.65rem;
}

.fx-cookie-main > .fx-cookie-eagle {
  border: 1px solid rgba(4, 157, 217, 0.22);
  background: rgba(4, 157, 217, 0.06);
}

.fx-cookie-eagle__img {
  width: 1.8rem;
  height: 1.8rem;
  object-fit: contain;
}

.fx-cookie-eagle__img--white {
  display: none;
}

:root[data-theme="dark"] .fx-cookie-eagle__img--dark {
  display: none;
}

:root[data-theme="dark"] .fx-cookie-eagle__img--white {
  display: block;
}

@media (max-width: 640px) {
  .fx-cookie-main,
  .fx-cookie-options {
    width: calc(100vw - 2rem);
  }

  .fx-cookie-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.85rem 0;
  }

  .fx-cookie-main > .fx-cookie-eagle,
  .fx-cookie-link {
    display: none;
  }

  .fx-cookie-copy strong {
    margin-bottom: 0.25rem;
    font-size: 0.78rem;
  }

  .fx-cookie-copy p {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .fx-cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .fx-cookie-preferences {
    display: none;
  }

  .fx-cookie-action,
  .fx-cookie-options .fx-cookie-action {
    width: 100%;
  }

  .fx-cookie-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .fx-cookie-actions {
    grid-template-columns: 1fr 1fr;
  }
}
