/* NGU Cookie Consent — dark theme aligned with marketing site */

.ngu-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10050;
  padding: 1rem;
  background: rgba(10, 10, 12, 0.97);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}

.ngu-cookie-banner.is-visible {
  transform: translateY(0);
}

.ngu-cookie-banner[hidden] {
  display: none !important;
}

.ngu-cookie-banner__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.ngu-cookie-banner__content {
  flex: 1 1 280px;
  min-width: 0;
}

.ngu-cookie-banner__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-oswald, "Oswald", sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.ngu-cookie-banner__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.ngu-cookie-banner__text a {
  color: var(--ngu-accent, #e10600);
  text-decoration: underline;
}

.ngu-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 0 1 auto;
}

.ngu-cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.ngu-cookie-btn--primary {
  background: var(--ngu-accent, #e10600);
  color: #fff;
  border-color: var(--ngu-accent, #e10600);
}

.ngu-cookie-btn--primary:hover {
  background: #c00500;
  border-color: #c00500;
}

.ngu-cookie-btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.ngu-cookie-btn--outline:hover {
  border-color: #fff;
}

.ngu-cookie-btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  border-color: transparent;
}

.ngu-cookie-btn--ghost:hover {
  color: #fff;
}

/* Modal */
.ngu-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ngu-cookie-modal[hidden] {
  display: none !important;
}

.ngu-cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.ngu-cookie-modal__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: auto;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.ngu-cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 0;
}

.ngu-cookie-modal__header h2 {
  margin: 0;
  font-family: var(--font-oswald, "Oswald", sans-serif);
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

.ngu-cookie-modal__close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
}

.ngu-cookie-modal__close:hover {
  color: #fff;
}

.ngu-cookie-modal__body {
  padding: 1rem 1.25rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ngu-cookie-modal__toggles {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ngu-cookie-toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ngu-cookie-toggle__meta strong {
  display: block;
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.ngu-cookie-toggle__meta span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}

.ngu-cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.ngu-cookie-switch__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  transition: background 0.2s;
}

.ngu-cookie-switch__slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.ngu-cookie-switch input:checked + .ngu-cookie-switch__slider {
  background: var(--ngu-accent, #e10600);
}

.ngu-cookie-switch input:checked + .ngu-cookie-switch__slider::before {
  transform: translateX(20px);
}

.ngu-cookie-switch.is-locked {
  opacity: 0.65;
}

.ngu-cookie-switch.is-locked .ngu-cookie-switch__slider {
  cursor: not-allowed;
}

.ngu-cookie-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  padding: 0 1.25rem 1.25rem;
}

/* Map placeholder */
.ngu-map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
}

.ngu-map-placeholder p {
  margin: 0 0 1rem;
  max-width: 420px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.ngu-map-placeholder .ngu-cookie-btn {
  margin-top: 0.25rem;
}

@media (max-width: 575px) {
  .ngu-cookie-banner__actions {
    width: 100%;
  }

  .ngu-cookie-banner__actions .ngu-cookie-btn {
    flex: 1 1 100%;
  }
}
