.pureev-nl-bar {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: auto;
  z-index: 999999;
  width: min(33.333vw, 22rem);
  min-width: 16rem;
  max-width: calc(100% - 2rem);
  transform: translateY(calc(100% + 1.5rem));
  transition: transform 0.35s ease;
  pointer-events: none;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

.pureev-nl-bar.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.pureev-nl-bar[hidden] {
  display: block !important;
}

.pureev-nl-bar[hidden]:not(.is-visible) {
  visibility: hidden;
}

.pureev-nl-bar-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1rem 0.95rem;
  border: 1px solid #dbe3ea;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.16);
  color: #1a1a1a;
}

.pureev-nl-bar-copy {
  padding-right: 1.5rem;
}

.pureev-nl-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a7cff;
  font-weight: 700;
}

.pureev-nl-title {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
}

.pureev-nl-lead {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #4b5563;
}

.pureev-nl-bar-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  width: 100%;
}

.pureev-nl-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.62rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  -webkit-appearance: none;
  appearance: none;
}

.pureev-nl-input:focus {
  outline: 2px solid #0a7cff;
  outline-offset: 1px;
  border-color: #0a7cff;
}

.pureev-nl-submit {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 0.68rem 1rem;
  background: #0a7cff;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.pureev-nl-submit:hover {
  background: #0866d4;
}

.pureev-nl-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.pureev-nl-consent {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #6b7280;
  text-align: center;
}

.pureev-nl-consent a {
  color: #0a7cff;
}

.pureev-nl-feedback {
  min-height: 1rem;
  margin: 0;
  font-size: 0.78rem;
}

.pureev-nl-feedback.is-error {
  color: #b91c1c;
}

.pureev-nl-feedback.is-success {
  color: #047857;
}

.pureev-nl-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  border: 0;
  background: transparent;
  color: #9ca3af;
  font-size: 1.5rem;
  line-height: 1;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}

.pureev-nl-close:hover {
  color: #4b5563;
}

@media (max-width: 720px) {
  .pureev-nl-bar {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    min-width: 0;
    max-width: none;
    transform: translateY(110%);
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }

  .pureev-nl-bar.is-keyboard-open .pureev-nl-lead {
    display: none;
  }

  body.pureev-nl-bar-open {
    padding-bottom: var(--pureev-nl-bar-height, 11rem);
    scroll-padding-bottom: var(--pureev-nl-bar-height, 11rem);
  }

  .pureev-nl-bar-inner {
    gap: 0.55rem;
    max-height: min(42dvh, 16rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.7rem 0.8rem calc(0.7rem + env(safe-area-inset-bottom, 0));
    border-radius: 14px 14px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.14);
  }

  .pureev-nl-bar-copy {
    max-width: calc(100% - 2.75rem);
    padding-right: 0;
  }

  .pureev-nl-title {
    font-size: 0.92rem;
    line-height: 1.25;
  }

  .pureev-nl-lead {
    margin-top: 0.3rem;
    font-size: 0.78rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .pureev-nl-input,
  .pureev-nl-submit {
    min-height: 2.75rem;
  }

  .pureev-nl-consent {
    font-size: 0.68rem;
    text-align: left;
  }
}

/* Remonter les icônes cookies / RGPD quand le bandeau mobile est ouvert. */
body.pureev-nl-bar-open #tarteaucitronIcon,
body.pureev-nl-bar-open #tarteaucitronRoot #tarteaucitronIcon,
body.pureev-nl-bar-open .axeptio_widget,
body.pureev-nl-bar-open #cookie-law-info-again,
body.pureev-nl-bar-open .cli_settings_button,
body.pureev-nl-bar-open .cmplz-manage-consent,
body.pureev-nl-bar-open .cc-revoke,
body.pureev-nl-bar-open [class*="rgpd"],
body.pureev-nl-bar-open [id*="rgpd"],
body.pureev-nl-bar-open [class*="cookie"][class*="icon"],
body.pureev-nl-bar-open [class*="gdpr"] {
  bottom: calc(var(--pureev-nl-bar-height, 11rem) + env(safe-area-inset-bottom, 0) + 0.5rem) !important;
  transition: bottom 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .pureev-nl-bar {
    transition: none;
  }
}
