/* ══════════════════════════════════════════════════════════════
   pmgr-inquiry.php 配套样式（2026-07-30 新增，ipetmed 专用）
   产品页「微信询价」按钮 + 弹窗。品牌红 #C8102E，深色站配色。
   ══════════════════════════════════════════════════════════════ */

/* ── 购买区入口按钮 ── */
.pmgr-inq-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  flex-wrap: wrap;
}

.pmgr-inq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: #C8102E;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.18s, transform 0.12s;
}

.pmgr-inq-btn:hover {
  background: #E13349;
  transform: translateY(-1px);
}

.pmgr-inq-tip {
  font-size: 12.5px;
  color: #9a9a9f;
}

/* ── 弹窗 ── */
html.pmgr-inq-lock {
  overflow: hidden;
}

.pmgr-inq-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* 关键：上面的 display:flex 会盖掉浏览器自带的 [hidden]{display:none}，
   导致 HTML 上的 hidden 属性失效——弹窗一进页面就常驻、点关闭也消不掉。
   这里显式补回隐藏规则，JS 的 overlay.hidden = true/false 才真正管用。 */
.pmgr-inq-overlay[hidden] {
  display: none;
}

.pmgr-inq-modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: 86vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 28px 24px 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.pmgr-inq-modal h3 {
  margin: 0 0 4px;
  font-size: 19px;
  color: #17171a;
}

.pmgr-inq-product {
  margin: 0 0 14px;
  font-size: 13px;
  color: #6a6a70;
  line-height: 1.5;
}

.pmgr-inq-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: #9a9a9f;
  cursor: pointer;
}

.pmgr-inq-close:hover {
  color: #C8102E;
}

/* 二维码块：图片不存在时整块不渲染（PHP 侧控制） */
.pmgr-inq-qr {
  text-align: center;
  margin: 0 0 16px;
}

.pmgr-inq-qr img {
  width: 180px;
  height: 180px;
  max-width: 100%;
  border: 1px solid #eceef1;
  border-radius: 8px;
}

.pmgr-inq-qr p {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: #6a6a70;
}

/* 信息行：号码 / 话术 */
.pmgr-inq-row {
  border-top: 1px solid #f0f1f4;
  padding: 14px 0 0;
  margin-top: 14px;
}

.pmgr-inq-label {
  display: block;
  font-size: 12px;
  color: #9a9a9f;
  margin-bottom: 6px;
}

.pmgr-inq-phone {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  color: #C8102E;
  letter-spacing: 1px;
  margin-right: 10px;
  text-decoration: none;
}

.pmgr-inq-msg {
  margin: 0 0 8px;
  font-size: 13.5px;
  color: #33333a;
  line-height: 1.6;
  background: #f7f8fa;
  border-radius: 6px;
  padding: 10px 12px;
}

.pmgr-inq-copy {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 12.5px;
  color: #C8102E;
  background: #ffffff;
  border: 1px solid #C8102E;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.pmgr-inq-copy:hover {
  background: #C8102E;
  color: #ffffff;
}

/* 手机端：弹窗贴底更好按，按钮整宽 */
@media (max-width: 640px) {
  .pmgr-inq-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .pmgr-inq-modal {
    max-width: none;
    border-radius: 14px 14px 0 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .pmgr-inq-btn {
    width: 100%;
  }

  .pmgr-inq-entry {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}
