/* Cookie consent UI — bar, modal, floating control */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#eos-cookie-root {
  position: relative;
  z-index: 10050;
}

.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 0;
  background: rgba(5, 8, 12, 0.97);
  border-top: 1px solid rgba(20, 184, 166, 0.25);
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.cookie-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-bar-text {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #cbd5e1;
  max-width: 640px;
}

.cookie-bar-text a {
  color: #5eead4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-bar-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cookie-btn-sm {
  padding: 0.55rem 1rem !important;
  font-size: 0.85rem !important;
}

.cookie-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 8, 0.72);
  backdrop-filter: blur(4px);
}

.cookie-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100% - 2rem));
  max-height: min(90vh, 720px);
  overflow-y: auto;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(165deg, #0f1419 0%, #080b0e 100%);
  border: 1px solid rgba(20, 184, 166, 0.25);
  border-radius: 18px;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.55);
}

.cookie-panel-title {
  font-family: var(--font-display, "Montserrat", system-ui, sans-serif);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  color: #f1f5f9;
}

.cookie-panel-lead {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.6;
}

.cookie-categories {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.cookie-row-text {
  flex: 1 1 200px;
}

.cookie-row-text strong {
  display: block;
  color: #e2e8f0;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.cookie-row-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.45;
}

.cookie-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.15);
  color: #5eead4;
  border: 1px solid rgba(20, 184, 166, 0.35);
}

.cookie-badge--on {
  align-self: center;
}

.cookie-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-switch-ui {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #334155;
  transition: background 0.25s ease;
  position: relative;
}

.cookie-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.cookie-switch input:checked + .cookie-switch-ui {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.cookie-switch input:checked + .cookie-switch-ui::after {
  transform: translateX(20px);
}

.cookie-switch input:focus-visible + .cookie-switch-ui {
  outline: 2px solid #5eead4;
  outline-offset: 3px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.cookie-actions--secondary {
  flex-direction: column;
  align-items: flex-start;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding-top: 1rem;
  margin-bottom: 0;
}

.cookie-btn {
  flex: 1 1 auto;
  min-width: 140px;
}

.cookie-link-btn {
  background: none;
  border: none;
  color: #5eead4;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: inherit;
}

.cookie-link-btn:hover {
  color: #99f6e4;
}

.cookie-link {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-right: 1rem;
}

.cookie-link:hover {
  color: #5eead4;
}

.cookie-fab {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 10040;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(20, 184, 166, 0.45);
  background: linear-gradient(145deg, rgba(13, 148, 136, 0.35), rgba(5, 8, 12, 0.95));
  color: #5eead4;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.cookie-fab.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cookie-fab:hover {
  border-color: rgba(45, 212, 191, 0.65);
  color: #ccfbf1;
}

.cookie-fab:focus-visible {
  outline: 2px solid #5eead4;
  outline-offset: 3px;
}

.cookie-bar:not([hidden]) ~ .cookie-fab {
  bottom: 5.75rem;
}

@media (max-width: 640px) {
  .cookie-bar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-bar-btns {
    justify-content: stretch;
  }

  .cookie-bar-btns .btn {
    flex: 1;
  }

  .cookie-bar:not([hidden]) ~ .cookie-fab {
    bottom: 10rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-fab {
    transition: none;
  }
}
