/* ###### BEGIN assets/css/consent.css ###### */

#consentRoot {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
}

#consentRoot * {
  box-sizing: border-box;
}

#consentRoot.is-visible {
  pointer-events: none;
}

#consentRoot .consent-bar,
#consentRoot .consent-modal {
  pointer-events: auto;
}

/* ###### BEGIN Compact Bar ###### */
#consentRoot .consent-bar {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(820px, calc(100% - 24px));
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(0, 224, 255, 0.20);
  background:
    radial-gradient(circle at 92% 20%, rgba(0, 224, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)),
    rgba(5, 14, 25, 0.97);
  box-shadow:
    0 24px 80px rgba(0,0,0,0.48),
    inset 0 1px 0 rgba(255,255,255,0.055);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #eef7ff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  grid-template-areas:
    "main visual"
    "actions actions";
  gap: 16px 20px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  translate: 0 24px;
  transition:
    opacity .24s ease,
    visibility .24s ease,
    translate .24s ease;
}

#consentRoot.is-visible .consent-bar {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

#consentRoot .consent-bar__main {
  grid-area: main;
  min-width: 0;
}

#consentRoot .consent-bar__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 224, 255, 0.25);
  background: rgba(0, 224, 255, 0.08);
  color: #c9fbff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

#consentRoot .consent-bar__content h2 {
  margin: 10px 0 6px;
  font-size: 1.04rem;
  line-height: 1.2;
  color: #f4fbff;
}

#consentRoot .consent-bar__content p {
  margin: 0;
  color: #bfd2e3;
  line-height: 1.48;
  font-size: 0.93rem;
  max-width: 62ch;
}

#consentRoot .consent-bar__visual {
  grid-area: visual;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

#consentRoot .consent-visual {
  width: 86px;
  height: auto;
  opacity: .95;
  animation: consentFloat 4.8s ease-in-out infinite;
}

@keyframes consentFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

#consentRoot .consent-bar__actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: minmax(190px, 1.25fr) minmax(140px, .9fr) minmax(155px, 1fr);
  gap: 10px;
  align-items: stretch;
  padding-top: 2px;
}

#consentRoot .consent-btn {
  appearance: none;
  border: 1px solid transparent;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 13px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  transition:
    transform .16s ease,
    filter .16s ease,
    background .16s ease,
    border-color .16s ease,
    color .16s ease,
    box-shadow .16s ease;
}

#consentRoot .consent-bar__actions .consent-btn {
  width: 100%;
}

#consentRoot .consent-btn:hover {
  transform: translateY(-1px);
}

#consentRoot .consent-btn:active {
  transform: translateY(0);
}

#consentRoot .consent-btn:focus-visible,
#consentRoot .consent-switch input:focus-visible + span,
#consentRoot .consent-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.18);
}

#consentRoot .consent-btn--ghost {
  background: rgba(255,255,255,0.018);
  color: #eaf6ff;
  border-color: rgba(148, 163, 184, 0.28);
}

#consentRoot .consent-btn--ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(148, 163, 184, 0.40);
}

#consentRoot .consent-btn--secondary {
  background: rgba(255,255,255,0.07);
  color: #eef7ff;
  border-color: rgba(148, 163, 184, 0.14);
}

#consentRoot .consent-btn--secondary:hover {
  background: rgba(255,255,255,0.10);
}

#consentRoot .consent-btn--primary {
  background: linear-gradient(135deg, #00e0ff, #00a7ff);
  color: #04111b;
  border-color: rgba(78, 231, 255, 0.55);
  box-shadow: 0 12px 28px rgba(0, 180, 255, 0.18);
}

#consentRoot .consent-btn--primary:hover {
  filter: brightness(1.04);
  box-shadow: 0 14px 32px rgba(0, 180, 255, 0.24);
}
/* ###### END Compact Bar ###### */

/* ###### BEGIN Modal ###### */
#consentRoot .consent-modal[hidden] {
  display: none;
}

#consentRoot .consent-modal {
  position: fixed;
  inset: 0;
}

#consentRoot .consent-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 16, 0.64);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .22s ease;
}

#consentRoot .consent-modal.is-open .consent-modal__backdrop {
  opacity: 1;
}

#consentRoot .consent-modal__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(920px, calc(100% - 24px));
  max-height: min(82vh, 860px);
  overflow: auto;
  transform: translate(-50%, calc(-50% + 20px)) scale(.985);
  opacity: 0;
  border-radius: 26px;
  border: 1px solid rgba(0, 224, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
    rgba(5, 14, 25, 0.97);
  color: #eef7ff;
  box-shadow:
    0 40px 120px rgba(0,0,0,0.52),
    inset 0 1px 0 rgba(255,255,255,0.05);
  padding: 24px;
  transition:
    transform .24s ease,
    opacity .24s ease;
}

#consentRoot .consent-modal.is-open .consent-modal__panel {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

#consentRoot .consent-modal__head h2 {
  margin: 12px 0 10px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.15;
  color: #f5fbff;
}

#consentRoot .consent-modal__head p {
  margin: 0 0 20px;
  color: #bfd2e3;
  line-height: 1.68;
  max-width: 74ch;
}

#consentRoot .consent-cats {
  display: grid;
  gap: 12px;
}

#consentRoot .consent-cat {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.10);
  background: rgba(255,255,255,0.035);
}

#consentRoot .consent-cat__text {
  min-width: 0;
}

#consentRoot .consent-cat__text strong {
  display: block;
  margin-bottom: 6px;
  color: #f3fbff;
  font-size: 1rem;
}

#consentRoot .consent-cat__text p {
  margin: 0;
  color: #bfd2e3;
  line-height: 1.62;
}

#consentRoot .consent-switch {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

#consentRoot .consent-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#consentRoot .consent-switch span {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 32px;
  border-radius: 999px;
  background: #2b3d4b;
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

#consentRoot .consent-switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.22);
  transition: transform .18s ease;
}

#consentRoot .consent-switch input:checked + span {
  background: linear-gradient(135deg, #00e0ff, #00a7ff);
  border-color: rgba(0, 224, 255, 0.30);
}

#consentRoot .consent-switch input:checked + span::after {
  transform: translateX(24px);
}

#consentRoot .consent-switch.is-locked {
  opacity: .9;
}

#consentRoot .consent-switch.is-locked span {
  background: linear-gradient(135deg, rgba(0, 224, 255, 0.34), rgba(0, 167, 255, 0.28));
}

#consentRoot .consent-modal__actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding-top: 6px;
}

#consentRoot .consent-modal__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#consentRoot .consent-link {
  color: #c9efff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* ###### END Modal ###### */

/* ###### BEGIN footer consent button ###### */
.footer-consent-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 224, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(0,224,255,0.10), rgba(255,255,255,0.02)),
    rgba(3, 16, 28, 0.92);
  color: #eafcff;
  cursor: pointer;
  font: inherit;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    0 10px 26px rgba(0,0,0,.20),
    inset 0 1px 0 rgba(255,255,255,.05);
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    color .16s ease,
    box-shadow .16s ease,
    filter .16s ease;
}

.footer-consent-link::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00e0ff, #00a7ff);
  box-shadow: 0 0 10px rgba(0, 224, 255, .45);
  flex: 0 0 auto;
}

.footer-consent-link:hover {
  transform: translateY(-1px);
  color: #ffffff;
  border-color: rgba(0, 224, 255, 0.40);
  background:
    linear-gradient(180deg, rgba(0,224,255,0.18), rgba(255,255,255,0.03)),
    rgba(4, 18, 32, 0.98);
  box-shadow:
    0 14px 30px rgba(0, 120, 170, .18),
    inset 0 1px 0 rgba(255,255,255,.06);
  filter: brightness(1.02);
}

.footer-consent-link:focus-visible {
  outline: none;
  color: #ffffff;
  border-color: rgba(0, 224, 255, 0.56);
  box-shadow:
    0 0 0 3px rgba(0, 224, 255, 0.14),
    0 14px 30px rgba(0, 120, 170, .18);
}

.footer-consent-link:active {
  transform: translateY(0);
}
/* ###### END footer consent button ###### */

@media (max-width: 720px) {
  #consentRoot .consent-bar {
    width: calc(100% - 16px);
    bottom: max(8px, env(safe-area-inset-bottom));
    padding: 16px;
    border-radius: 18px;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 12px 14px;
    max-height: calc(100dvh - 16px);
    overflow: auto;
  }

  #consentRoot .consent-visual {
    width: 70px;
  }

  #consentRoot .consent-bar__actions {
    grid-template-columns: 1fr 1fr;
  }

  #consentRoot .consent-bar__actions .consent-btn--primary {
    grid-column: 1 / -1;
  }

  #consentRoot .consent-modal__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  #consentRoot .consent-bar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "actions";
    padding: 14px;
  }

  #consentRoot .consent-bar__visual {
    display: none;
  }

  #consentRoot .consent-bar__content h2 {
    font-size: 1rem;
  }

  #consentRoot .consent-bar__content p {
    font-size: .9rem;
    line-height: 1.42;
  }

  #consentRoot .consent-bar__actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #consentRoot .consent-bar__actions .consent-btn--primary {
    grid-column: auto;
  }

  #consentRoot .consent-btn {
    min-height: 44px;
  }

  #consentRoot .consent-modal__panel {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    padding: 18px;
    border-radius: 20px;
  }

  #consentRoot .consent-cat {
    align-items: flex-start;
    flex-direction: column;
  }

  #consentRoot .consent-modal__buttons,
  #consentRoot .consent-modal__buttons .consent-btn {
    width: 100%;
  }

  .footer-consent-link {
    min-height: 36px;
    padding: 0 12px;
    font-size: .88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #consentRoot .consent-bar,
  #consentRoot .consent-modal__backdrop,
  #consentRoot .consent-modal__panel,
  #consentRoot .consent-btn,
  #consentRoot .consent-switch span,
  #consentRoot .consent-switch span::after {
    transition: none !important;
  }

  #consentRoot .consent-visual {
    animation: none !important;
  }
}

/* ###### END assets/css/consent.css ###### */
