/* ==========================================================================
   Live Orders Social Proof Toast - شركة البيت اللامع بحفر الباطن
   تصميم طبق الأصل متطابق مع معايير الـ High-Converting CRO
   ========================================================================== */

.live-order-popup {
  position: fixed;
  bottom: 95px;
  right: 20px;
  z-index: 9998;
  max-width: 360px;
  width: calc(100% - 40px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(25px) scale(0.96);
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
}

@media (min-width: 640px) {
  .live-order-popup {
    width: 340px;
    right: 25px;
    bottom: 30px;
  }
}

.live-order-popup.live-order-show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.live-order-popup.live-order-hide {
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  pointer-events: none;
}

.live-order-inner {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 14px 18px;
  box-shadow: 0 14px 35px -6px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  backdrop-filter: blur(10px);
}

.live-order-close {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 22px;
  height: 22px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  color: #64748b;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s;
  padding: 0;
}

.live-order-close:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.live-order-content {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

/* Green Live Pulsing Indicator Dot */
.live-order-pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: liveDotPulse 2s infinite;
}

@keyframes liveDotPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.live-order-text {
  flex: 1;
  min-width: 0;
}

.live-order-name {
  margin: 0 0 3px 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-order-action {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mint Green Icon Box */
.live-order-icon-box {
  width: 44px;
  height: 44px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.live-order-icon {
  font-size: 22px;
  line-height: 1;
}
