#ncb-chat-button {
  position: fixed;
  bottom: 15px;
  right: 15px;
  background: black;
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  cursor: pointer;
  z-index: 999999;
}

#ncb-popup {
  display: block;
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 360px;
  max-width: calc(100% - 40px);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
  padding: 18px;
  z-index: 999999;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.ncb-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

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

#ncb-popup-content {
  position: relative;
}

#ncb-popup-content h4 {
  margin: 0;
}

#ncb-popup-content .tnp-subscription {
  margin: 1em auto 0;
}

#ncb-popup-content
  .tnp-subscription
  .tnp-field-button:has(input[type="submit"]) {
  margin: 0;
}

#ncb-popup-close {
  position: absolute;
  top: -10px;
  right: -10px;
  background: red;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  cursor: pointer;
  border: none;
  font-weight: bold;
}

.ncb-form-wrapper {
  margin-top: 6px;
}

/* Responsive tweak */
@media (max-width: 480px) {
  #ncb-popup {
    right: 12px;
    left: 12px;
    bottom: 80px;
    width: auto;
  }
}

/* Pulsating background animation */
#ncb-chat-button {
  animation: ncb-pulse 3s ease-out infinite;
}

/* Keyframes for pulse effect */
@keyframes ncb-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.6);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}
