/* ══════════════════════════════════════
   Adent – تماس قبل از خرید  |  v3.0.0
   رنگ‌ها از PHP/ادمین خوانده می‌شوند
══════════════════════════════════════ */

/* ── دکمه قفل‌شده ── */
.adent-btn-locked {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: grayscale(60%) !important;
}

/* wrapper کلیک‌پذیر روی دکمه قفل */
.adent-locked-wrap {
  display: inline-block;
  cursor: pointer;
  position: relative;
}

/* نشانه قفل روی دکمه — محتوا از JS تنظیم می‌شود */
.adent-locked-wrap::after {
  content: attr(data-lock-icon);
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
}

/* ── پوشش تیره پشت مودال ── */
#adent-overlay {
  position: fixed;
  inset: 0;
  background: var(--adent-overlay-bg, rgba(0, 0, 0, 0.6));
  z-index: 9999999;
  align-items: center;
  justify-content: center;
}
#adent-overlay.adent-active {
  display: flex !important;
}

/* ── باکس مودال ── */
#adent-modal {
  background: #fff;
  border-radius: 16px;
  padding: 40px 28px 28px;
  max-width: 440px;
  width: 92%;
  text-align: center;
  direction: rtl;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  position: relative;
  animation: adentSlideIn 0.28s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes adentSlideIn {
  from {
    transform: translateY(32px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* دکمه بستن × */
#adent-modal-close {
  position: absolute;
  top: 12px;
  left: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #aaa;
  line-height: 1;
  padding: 0;
}
#adent-modal-close:hover {
  color: #555;
}

/* آیکون / لوگو */
.adent-icon {
  font-size: 56px;
  margin-bottom: 10px;
  line-height: 1;
}

/* عنوان */
#adent-modal h2 {
  font-size: 18px !important;
  font-weight: bold !important;
  margin: 0 0 10px !important;
  color: #222 !important;
}

/* متن توضیح */
#adent-modal p {
  font-size: 13px !important;
  color: #666 !important;
  line-height: 1.9 !important;
  margin: 0 0 20px !important;
}

/* ── دکمه تلفن اصلی (رنگ از CSS variable) ── */
#adent-phone-btn {
  display: block !important;
  width: 100% !important;
  padding: 14px 12px !important;
  margin-bottom: 10px !important;
  background: var(--adent-color-phone, #1a73e8) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 18px !important;
  font-family: inherit !important;
  font-weight: bold !important;
  letter-spacing: 1px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: filter 0.2s !important;
  box-sizing: border-box !important;
}
#adent-phone-btn:hover {
  filter: brightness(0.88) !important;
}
#adent-phone-btn small {
  display: block;
  font-size: 12px;
  font-weight: normal;
  margin-top: 4px;
  opacity: 0.9;
}

/* ── تلفن دوم ── */
#adent-phone2-btn {
  display: block !important;
  width: 100% !important;
  padding: 12px !important;
  margin-bottom: 10px !important;
  background: #e3f2fd !important;
  color: #1565c0 !important;
  border: 1.5px solid #90caf9 !important;
  border-radius: 10px !important;
  font-size: 16px !important;
  font-family: inherit !important;
  font-weight: bold !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  box-sizing: border-box !important;
}
#adent-phone2-btn:hover {
  background: #bbdefb !important;
}
#adent-phone2-btn small {
  display: block;
  font-size: 11px;
  font-weight: normal;
  margin-top: 3px;
  opacity: 0.8;
}

/* ── دکمه واتساپ ── */
#adent-whatsapp-btn {
  display: block !important;
  width: 100% !important;
  padding: 12px !important;
  margin-bottom: 10px !important;
  background: #25D366 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-family: inherit !important;
  font-weight: bold !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: filter 0.2s !important;
  box-sizing: border-box !important;
}
#adent-whatsapp-btn:hover {
  filter: brightness(0.9) !important;
}

/* ── آدرس فروشگاه ── */
#adent-address {
  font-size: 12px !important;
  color: #777 !important;
  background: #f9f9f9 !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  margin-bottom: 8px !important;
  text-align: right !important;
  line-height: 1.7 !important;
}

/* ── ساعات کاری ── */
#adent-hours {
  font-size: 12px !important;
  color: #888 !important;
  margin-bottom: 14px !important;
  text-align: center !important;
}

/* ── دکمه تأیید (رنگ متن از CSS variable) ── */
#adent-confirm-btn {
  display: block !important;
  width: 100% !important;
  padding: 12px !important;
  margin-bottom: 10px !important;
  background: #e8f5e9 !important;
  color: var(--adent-color-confirm, #2e7d32) !important;
  border: 1.5px solid #81c784 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  box-sizing: border-box !important;
}
#adent-confirm-btn:hover {
  background: #c8e6c9 !important;
}

/* ── دکمه انصراف ── */
#adent-cancel-btn {
  background: none !important;
  border: none !important;
  font-size: 12px !important;
  color: #bbb !important;
  cursor: pointer !important;
  font-family: inherit !important;
  padding: 4px !important;
}
#adent-cancel-btn:hover {
  color: #777 !important;
}

/* ── اسکرول‌بار داخل مودال ── */
#adent-modal::-webkit-scrollbar { width: 4px; }
#adent-modal::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
#adent-modal::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
