  .np-top-promo {
      position: fixed;
      left: 20px;
      bottom: 20px;
      z-index: 1040;

      display: inline-flex;
      align-items: center;
      gap: 10px;

      max-width: calc(100vw - 40px);
      min-height: 42px;
      padding: 6px 8px 6px 12px;

      direction: rtl;
      font-family: Vazirmatn, sans-serif;

      background: #fff;
      border: 1px solid rgba(0, 0, 0, 0.07);
      border-radius: 999px;
      box-shadow: 0 8px 22px rgba(20, 45, 60, 0.12);

      transition:
          bottom 280ms ease,
          opacity 180ms ease,
          transform 180ms ease;
      animation: npPromoEnter 350ms ease-out both;
  }

  .np-top-promo__content {
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;

      color: var(--np-ink);
      font-size: 12px;
      font-weight: 600;
      line-height: 1.5;
  }

  .np-top-promo__content>i {
      flex: 0 0 auto;
      color: var(--np-success);
      font-size: 17px;
  }

  .np-top-promo__text {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
  }

  .np-top-promo__btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;

      min-height: 30px;
      padding: 4px 11px;

      color: #fff;
      background: var(--np-success);
      border-radius: 999px;

      font-size: 11px;
      font-weight: 700;
      line-height: 1;
      text-decoration: none;
      white-space: nowrap;

      transition: background-color 180ms ease, transform 180ms ease;
  }

  .np-top-promo__btn:hover {
      color: #fff;
      background: var(--np-ink);
      transform: translateY(-1px);
  }

  .np-top-promo__close {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 24px;

      width: 24px;
      height: 24px;
      padding: 0;

      color: var(--np-text-muted);
      background: transparent;
      border: 0;
      border-radius: 50%;
      cursor: pointer;

      font-size: 17px;
      line-height: 1;
  }

  .np-top-promo__close:hover {
      color: var(--np-ink);
      background: var(--np-success-soft);
  }

  .np-top-promo.is-hidden {
      opacity: 0;
      pointer-events: none;
      transform: translateY(12px);
  }

  @keyframes npPromoEnter {
      from {
          opacity: 0;
          transform: translateY(14px);
      }

      to {
          opacity: 1;
          transform: translateY(0);
      }
  }

  /* موبایل */
  @media (max-width: 991.98px) {

      /*
     * قبل از نمایش نوار پایین:
     * تبلیغ پایین صفحه می‌ماند.
     */
      .np-top-promo {
          left: 10px;
          bottom: 12px;

          max-width: calc(100vw - 20px);
          min-height: 40px;
          gap: 7px;
          padding: 5px 6px 5px 10px;

          border-radius: 12px;
          box-shadow: 0 7px 18px rgba(20, 45, 60, 0.14);
      }

      /*
     * بعد از اسکرول و نمایش stickyBottomActions:
     * تبلیغ به بالای نوار اکشن منتقل می‌شود.
     *
     * 82px = ارتفاع تقریبی نوار پایین + فاصله امن
     */
      #stickyBottomActions.show-bar~.np-top-promo {
          bottom: calc(82px + env(safe-area-inset-bottom));
      }

      .np-top-promo__content {
          gap: 5px;
          font-size: 11px;
      }

      .np-top-promo__content>i {
          font-size: 16px;
      }

      .np-top-promo__btn {
          min-height: 28px;
          padding: 4px 9px;
          font-size: 10px;
      }

      .np-top-promo__close {
          flex-basis: 22px;
          width: 22px;
          height: 22px;
          font-size: 16px;
      }
  }

  /* گوشی‌های خیلی کوچک */
  @media (max-width: 380px) {
      .np-top-promo {
          left: 8px;
          bottom: 8px;
          max-width: calc(100vw - 16px);
      }

      #stickyBottomActions.show-bar~.np-top-promo {
          bottom: calc(78px + env(safe-area-inset-bottom));
      }

      .np-top-promo__text {
          max-width: 132px;
      }

      .np-top-promo__content>i {
          display: none;
      }
  }

  /* Chat promo custom UI */
  .np-chat-promo {
      border-color: color-mix(in srgb, var(--np-success) 18%, #fff);
  }

  .np-chat-promo__icon {
      position: relative;

      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 32px;

      width: 32px;
      height: 32px;

      color: var(--np-success);
      background: var(--np-success-soft);
      border-radius: 10px;

      font-size: 18px;
  }

  .np-chat-promo__online {
      position: absolute;
      bottom: -1px;
      right: -1px;

      width: 9px;
      height: 9px;

      background: var(--np-success);
      border: 2px solid #fff;
      border-radius: 50%;
  }

  .np-chat-promo__copy {
      display: flex;
      flex-direction: column;
      min-width: 0;
      gap: 1px;
  }

  .np-chat-promo__title {
      overflow: hidden;

      color: var(--np-ink);
      font-size: 11px;
      font-weight: 700;
      line-height: 1.45;
      text-overflow: ellipsis;
      white-space: nowrap;
  }

  .np-chat-promo__subtitle {
      overflow: hidden;

      color: var(--np-text-muted);
      font-size: 9px;
      font-weight: 400;
      line-height: 1.45;
      text-overflow: ellipsis;
      white-space: nowrap;
  }

  .np-chat-promo__btn {
      padding-right: 10px;
      padding-left: 10px;
  }

  /* موبایل */
  @media (max-width: 991.98px) {
      .np-chat-promo__icon {
          flex-basis: 30px;
          width: 30px;
          height: 30px;
          border-radius: 9px;
          font-size: 17px;
      }

      .np-chat-promo__online {
          width: 8px;
          height: 8px;
      }

      .np-chat-promo__title {
          font-size: 10px;
      }

      .np-chat-promo__subtitle {
          font-size: 8px;
      }

      .np-chat-promo__btn {
          padding-right: 8px;
          padding-left: 8px;
      }
  }

  /* در نمایشگر خیلی کوچک، زیرعنوان حذف می‌شود تا CTA و دکمه بستن جا داشته باشند */
  @media (max-width: 380px) {
      .np-chat-promo__subtitle {
          display: none;
      }

      .np-chat-promo__title {
          max-width: 122px;
      }
  }

  /* دکمه شروع گفتگو — رنگ مرجانی کلینیک */
  .np-top-promo.np-chat-promo .np-top-promo__btn {
      position: relative;
      overflow: hidden;

      color: #fff;
      background: var(--clinic-coral);
      box-shadow: 0 4px 10px color-mix(in srgb, var(--clinic-coral) 35%, transparent);

      font-weight: 800;
  }

  .np-top-promo.np-chat-promo .np-top-promo__btn::before {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      left: -45%;

      width: 35%;
      transform: skewX(-22deg);
      background: rgba(255, 255, 255, 0.28);

      transition: left 350ms ease;
  }

  .np-top-promo.np-chat-promo .np-top-promo__btn:hover {
      color: #fff;
      background: color-mix(in srgb, var(--clinic-coral) 84%, #000);
      transform: translateY(-2px);
  }

  .np-top-promo.np-chat-promo .np-top-promo__btn:hover::before {
      left: 120%;
  }
