.nv-lang-flag { background-size: cover; }

/* Mobile: sits above the sticky CTA bar ([data-nds-sticky-cta]). */
#nds-chat-launcher {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(5.5rem + env(safe-area-inset-bottom));
  z-index: 60;
}
@media (max-width: 767px) {
  #nds-chat-launcher span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  #nds-chat-launcher {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
  }
}
@media (min-width: 768px) {
  #nds-chat-launcher {
    right: 1.25rem;
    bottom: 1.25rem;
  }
}
#nds-chat-launcher.is-hidden {
  display: none !important;
}

#nds-chat-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  flex-direction: column;
  overflow: hidden;
  background: #0F1F1A;
  -webkit-overflow-scrolling: touch;
}
#nds-chat-panel.is-open {
  display: flex !important;
}
@media (min-width: 768px) {
  #nds-chat-panel {
    inset: auto;
    top: auto;
    left: auto;
    right: 1.25rem;
    bottom: 6rem;
    width: min(24rem, calc(100vw - 2rem));
    height: min(32rem, calc(100vh - 6rem));
    max-height: min(32rem, calc(100vh - 6rem));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(15, 31, 26, 0.45);
    z-index: 70;
  }
}

body.nds-chat-open {
  overflow: hidden;
  touch-action: none;
}
body.nds-chat-open [data-nds-sticky-cta] {
  display: none;
}
