/**
 * 🎨 Minimal White Template - Clean & Simple
 * تمپلت مینیمال سفید - ساده و تمیز
 */

/* ========== تنظیمات پایه تمپلت مینیمال ========== */
body.pym-template-minimal-white {
  /* این کلاس به body اضافه می‌شود */
}

/* پس‌زمینه اصلی پنجره چت */
body.pym-template-minimal-white .pym-chat-window {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
}

/* ناحیه پیام‌ها */
body.pym-template-minimal-white .pym-chat-messages {
  background: #ffffff !important;
}

/* استایل پیام‌های ربات */
body.pym-template-minimal-white .pym-message-bot .pym-message-content {
  background-color: rgb(243, 244, 246) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgb(229, 231, 235) !important;
  color: #1f2937 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  border-radius: 18px !important;
  border-bottom-right-radius: 4px !important;
}

/* استایل پیام‌های کاربر */
body.pym-template-minimal-white .pym-message-user .pym-message-content {
  background: rgb(20, 93, 238) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(20, 93, 238, 0.2) !important;
  border-radius: 18px !important;
  border-bottom-left-radius: 4px !important;
}

/* آواتار ربات */
body.pym-template-minimal-white .pym-message-bot .pym-message-avatar {
  background: rgb(20, 93, 238) !important;
  border: 2px solid rgb(219, 234, 254) !important;
  box-shadow: 0 2px 4px rgba(20, 93, 238, 0.1) !important;
}

/* آواتار کاربر */
body.pym-template-minimal-white .pym-message-user .pym-message-avatar {
  background: rgb(20, 93, 238) !important;
  border: 2px solid rgb(219, 234, 254) !important;
  box-shadow: 0 2px 4px rgba(20, 93, 238, 0.1) !important;
}

/* اندیکاتور تایپینگ */
body.pym-template-minimal-white .pym-typing-indicator {
  background-color: rgb(243, 244, 246) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgb(229, 231, 235) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

body.pym-template-minimal-white .pym-typing-dot {
  background: rgb(20, 93, 238) !important;
  box-shadow: none !important;
}

/* هدر چت */
body.pym-template-minimal-white .pym-chat-header {
  background: rgb(20, 93, 238) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgb(219, 234, 254) !important;
  box-shadow: 0 1px 3px rgba(20, 93, 238, 0.1) !important;
}

body.pym-template-minimal-white .pym-chat-title {
  color: #ffffff !important;
}

body.pym-template-minimal-white .pym-chat-subtitle {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* دکمه‌های هدر */
body.pym-template-minimal-white .pym-chat-header button {
  color: #ffffff !important;
}

body.pym-template-minimal-white .pym-chat-header button:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* فوتر و اینپوت */
body.pym-template-minimal-white .pym-chat-footer {
  background: #ffffff !important;
  border-top: 1px solid #e5e7eb !important;
}

body.pym-template-minimal-white .pym-chat-input-wrapper {
  background: #f9fafb !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: none !important;
}

body.pym-template-minimal-white .pym-chat-input {
  background: transparent !important;
  color: #1f2937 !important;
}

body.pym-template-minimal-white .pym-chat-input::placeholder {
  color: #9ca3af !important;
}

body.pym-template-minimal-white .pym-send-button {
  background: rgb(20, 93, 238) !important;
  color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(20, 93, 238, 0.1) !important;
}

body.pym-template-minimal-white .pym-send-button:hover {
  background: rgb(16, 76, 195) !important;
}

/* اسکرول‌بار */
body.pym-template-minimal-white .pym-chat-messages::-webkit-scrollbar-track {
  background: #f9fafb !important;
}

body.pym-template-minimal-white .pym-chat-messages::-webkit-scrollbar-thumb {
  background: rgb(20, 93, 238) !important;
  border: 2px solid #ffffff !important;
}

body.pym-template-minimal-white
  .pym-chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgb(16, 76, 195) !important;
}

/* فرمت‌بندی متن */
body.pym-template-minimal-white .pym-message-content strong {
  color: #111827 !important;
}

body.pym-template-minimal-white .pym-message-user .pym-message-content strong {
  color: #ffffff !important;
}

body.pym-template-minimal-white .pym-message-content li:before {
  color: rgb(20, 93, 238) !important;
}

body.pym-template-minimal-white
  .pym-message-user
  .pym-message-content
  li:before {
  color: #ffffff !important;
}

/* لیست شماره‌دار */
body.pym-template-minimal-white .pym-numbered-item {
  background-color: rgb(239, 246, 255) !important;
  border: 1px solid rgb(219, 234, 254) !important;
  border-right: 3px solid rgb(20, 93, 238) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

body.pym-template-minimal-white .pym-numbered-item .pym-number {
  background: rgb(20, 93, 238) !important;
  border: none !important;
  box-shadow: 0 2px 4px rgba(20, 93, 238, 0.1) !important;
}

/* سوالات پیشنهادی */
body.pym-template-minimal-white .pym-suggested-questions {
  background: #f9fafb !important;
  border-top: 1px solid #e5e7eb !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.pym-template-minimal-white .pym-question-chip {
  background: #ffffff !important;
  color: rgb(20, 93, 238) !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

body.pym-template-minimal-white .pym-question-chip:hover {
  background: rgb(239, 246, 255) !important;
  border-color: rgb(20, 93, 238) !important;
  box-shadow: 0 2px 4px rgba(20, 93, 238, 0.1) !important;
}

/* دکمه‌های اکشن */
body.pym-template-minimal-white .pym-lead-button {
  background: rgb(20, 93, 238) !important;
  border: none !important;
  box-shadow: 0 2px 4px rgba(20, 93, 238, 0.15) !important;
}

body.pym-template-minimal-white .pym-lead-button:hover {
  background: rgb(16, 76, 195) !important;
  box-shadow: 0 3px 6px rgba(20, 93, 238, 0.2) !important;
}

/* ایموجی */
body.pym-template-minimal-white .pym-message-time {
  color: #9ca3af !important;
}

/* ========== لینک‌های محصول در متن ========== */
body.pym-template-minimal-white .pym-product-text-link {
  color: rgb(20, 93, 238) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  border-bottom: 1px solid rgb(20, 93, 238) !important;
  display: inline-block !important;
  margin-top: 4px !important;
  background-color: rgb(239, 246, 255) !important;
  padding: 4px 9px !important;
  border-radius: 6px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 1px 2px rgba(20, 93, 238, 0.1) !important;
}

body.pym-template-minimal-white .pym-product-text-link:hover {
  background-color: rgb(219, 234, 254) !important;
  border-bottom-color: rgb(16, 76, 195) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px rgba(20, 93, 238, 0.15) !important;
}

/* ========== کارت‌های محصول ========== */
body.pym-template-minimal-white .pym-products-grid {
  width: 100% !important;
}

body.pym-template-minimal-white .pym-product-card {
  width: 100% !important;
  background-color: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

body.pym-template-minimal-white .pym-product-card::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgb(20, 93, 238),
    transparent
  ) !important;
}

body.pym-template-minimal-white .pym-product-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgb(20, 93, 238) !important;
  background-color: rgb(249, 250, 251) !important;
  box-shadow: 0 4px 12px rgba(20, 93, 238, 0.15) !important;
}

body.pym-template-minimal-white .pym-product-title {
  color: #111827 !important;
}

body.pym-template-minimal-white .pym-product-price {
  color: rgb(34, 197, 94) !important;
  text-shadow: none !important;
}

body.pym-template-minimal-white .pym-product-link {
  background: rgb(20, 93, 238) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: 0 2px 4px rgba(20, 93, 238, 0.15) !important;
}

body.pym-template-minimal-white .pym-product-link:hover {
  background: rgb(16, 76, 195) !important;
  box-shadow: 0 3px 6px rgba(20, 93, 238, 0.2) !important;
}

/* ========== دکمه باز/بسته کردن چت ========== */
body.pym-template-minimal-white .pym-chat-toggle {
  background: rgb(20, 93, 238) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 4px 12px rgba(20, 93, 238, 0.3) !important;
  animation: none !important;
}

body.pym-template-minimal-white .pym-chat-toggle:hover {
  background: rgb(16, 76, 195) !important;
  transform: scale(1.08) !important;
  box-shadow: 0 6px 16px rgba(20, 93, 238, 0.4) !important;
}

/* بج چت‌بات */
body.pym-template-minimal-white .pym-chat-badge {
  background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 50%, #2563EB 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
}

/* ========== دکمه ارسال پیام ========== */
body.pym-template-minimal-white .pym-chat-send {
  background: rgb(20, 93, 238) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: 0 2px 4px rgba(20, 93, 238, 0.2) !important;
}

body.pym-template-minimal-white .pym-chat-send:hover {
  background: rgb(16, 76, 195) !important;
  transform: scale(1.08) !important;
  box-shadow: 0 3px 6px rgba(20, 93, 238, 0.3) !important;
}

body.pym-template-minimal-white .pym-chat-send:disabled {
  background: #e5e7eb !important;
  border: none !important;
  box-shadow: none !important;
}
