/* Cookie bar for the Meta Pixel (class-nanolex-meta-pixel.php). Uses the theme's --nx-* tokens. */

.nx-consent {
  align-items: center;
  background: #fff;
  border-radius: var(--nx-radius, 12px);
  bottom: 16px;
  box-shadow: var(--nx-shadow-strong, 0 12px 32px rgba(44, 24, 68, 0.14));
  box-sizing: border-box;
  color: var(--nx-purple, #2c1844);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--nx-font, system-ui, sans-serif);
  gap: 12px 24px;
  left: 16px;
  margin: 0 auto;
  max-width: 880px;
  padding: 16px 20px;
  position: fixed;
  right: 16px;
  z-index: 80; /* above the phone bottom bar (60), below the open mobile menu (90+) */
}

.nx-consent[hidden] {
  display: none;
}

.nx-consent__body {
  flex: 1 1 320px;
}

.nx-consent__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
}

.nx-consent__text {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.nx-consent__text a {
  color: inherit;
  text-decoration: underline;
}

.nx-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

@media (max-width: 1023px) {
  body.has-nx-bottom-bar .nx-consent {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .nx-consent__actions {
    flex: 1 1 100%;
  }

  .nx-consent__actions .nx-btn {
    flex: 1 1 0;
  }
}
