/* ── Smart Float Widget ─────────────────────────── */

/* دکمه اصلی */
#lpp-float-btn {
  position: fixed;
  /* left و bottom از JS تنظیم می‌شوند */
  z-index: 2147483647;
  pointer-events: all !important;
  min-width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: #0088cc;
  border: 2.5px solid #0088cc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 14px rgba(0,136,204,.2);
  transform: translateY(20px);
  opacity: 0;
  text-decoration: none;
  transition: transform .4s cubic-bezier(.34,1.4,.64,1),
              opacity .3s ease,
              background .2s,
              box-shadow .2s;
}
#lpp-float-btn:hover {
  background: #f0f9ff;
  box-shadow: 0 4px 18px rgba(0,136,204,.3);
}
#lpp-float-btn.lpp-float-visible {
  transform: translateY(0);
  opacity: 1;
}
#lpp-float-btn:hover {
  background: #0077b5;
  box-shadow: 0 5px 20px rgba(0,136,204,.5);
}
#lpp-float-btn svg { width: 22px; height: 22px; display: block; transition: transform .25s; }
#lpp-float-btn.lpp-float-open svg { transform: rotate(45deg); }

/* نقطه آنلاین */
#lpp-float-btn::after {
  content: '';
  position: absolute;
  top: 2px; right: 2px;
  width: 9px; height: 9px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: lpp-pulse 2.2s infinite;
}
@keyframes lpp-pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.35); opacity: .65; }
}

/* پانل کارت‌ها */
#lpp-float-panel {
  position: fixed;
  /* left و bottom از JS تنظیم می‌شوند */
  z-index: 2147483646;
  width: 260px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.15), 0 2px 8px rgba(0,0,0,.08);
  padding: 14px 12px 10px;
  direction: rtl;
  transform: translateY(16px) scale(.95);
  opacity: 0;
  pointer-events: none;
  transition: transform .28s cubic-bezier(.34,1.3,.64,1),
              opacity .22s ease;
  transform-origin: bottom left;
}
#lpp-float-panel.lpp-panel-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* عنوان پانل */
.lpp-panel-title {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  font-family: Tahoma, sans-serif;
  text-align: center;
  margin: 0 0 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* کارت‌های گزینه */
.lpp-float-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s, transform .12s;
  margin-bottom: 4px;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  direction: rtl;
}
.lpp-float-card:last-child { margin-bottom: 0; }
.lpp-float-card:hover { background: #f9fafb; transform: translateX(-2px); }
.lpp-float-card:active { transform: scale(.98); }

.lpp-fc-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.lpp-fc-body { text-align: right; }
.lpp-fc-title {
  font-size: 13px; font-weight: 700;
  color: #111827;
  font-family: Tahoma, sans-serif;
  display: block;
}
.lpp-fc-desc {
  font-size: 11px;
  color: #6b7280;
  font-family: Tahoma, sans-serif;
  display: block;
  margin-top: 1px;
}

/* خط جداکننده */
.lpp-panel-divider {
  height: 1px; background: #f3f4f6;
  margin: 4px 0;
}

@media (max-width: 480px) {
  #lpp-float-btn {
    height: 40px;
  }
  #lpp-float-btn span {
    font-size: 11px !important;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #lpp-float-panel {
    width: calc(100vw - 32px);
    max-width: 280px;
  }
}