/* ==========================================================================
   Weijun Toys — Conversion Rate Optimization (CRO) Module Styles (2026-12-03)
   Loaded via wp-content/mu-plugins/wj-cro-boost.php
   ========================================================================== */

/* ---------- 1. Blog Inline & End-of-Article Brand CTA Cards ---------- */
.wj-blog-cta {
  position: relative;
  overflow: hidden;
  margin: 30px 0;
  padding: 26px 28px;
  border-radius: 18px;
  color: #e6f0fa;
  font-family: Poppins, Inter, system-ui, sans-serif;
  background-color: #0b2a4d;
  background-image:
    radial-gradient(360px 180px at 0% 0%, rgba(95, 208, 255, 0.28), transparent 70%),
    radial-gradient(300px 180px at 100% 100%, rgba(242, 230, 0, 0.16), transparent 70%),
    linear-gradient(125deg, #08223f 0%, #0f3a66 52%, #1d65aa 100%);
  border: 1px solid rgba(95, 208, 255, 0.25);
  box-shadow: 0 22px 48px -28px rgba(8, 34, 63, 0.72);
}
.wj-blog-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.wj-blog-cta > * {
  position: relative;
  z-index: 1;
}
.wj-blog-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(242, 230, 0, 0.16);
  border: 1px solid rgba(242, 230, 0, 0.45);
  color: #f2e600;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.wj-blog-cta-title {
  margin: 0 0 8px !important;
  color: #ffffff !important;
  font-size: clamp(20px, 2.2vw, 24px) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
}
.wj-blog-cta-desc {
  margin: 0 0 18px !important;
  color: #d5e5f5 !important;
  font-size: 14.5px !important;
  line-height: 1.6 !important;
}
.wj-blog-cta-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none !important;
  font-size: 13px;
  color: #cfe4f7;
}
.wj-blog-cta-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  padding: 0 !important;
}
.wj-blog-cta-trust li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(95, 208, 255, 0.22);
  color: #9be4ff;
  font-size: 11px;
  font-weight: 700;
}
.wj-blog-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.wj-blog-cta-btn-primary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #fff36b 0%, #f2e600 50%, #ffd200 100%) !important;
  color: #0b2a4d !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 24px -10px rgba(242, 230, 0, 0.65) !important;
  transition: transform 0.18s ease, filter 0.18s ease !important;
}
.wj-blog-cta-btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  color: #0b2a4d !important;
}
.wj-blog-cta-btn-secondary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(155, 228, 255, 0.42) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: background-color 0.18s ease, border-color 0.18s ease !important;
}
.wj-blog-cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: #9be4ff !important;
  color: #ffffff !important;
}
.wj-blog-cta-wa {
  background: rgba(37, 211, 102, 0.16) !important;
  border-color: rgba(37, 211, 102, 0.55) !important;
  color: #d9ffe7 !important;
}
.wj-blog-cta-wa:hover {
  background: #25d366 !important;
  border-color: #25d366 !important;
  color: #062814 !important;
}
@media (max-width: 767px) {
  .wj-blog-cta {
    padding: 20px 18px;
    border-radius: 14px;
    margin: 22px 0;
  }
  .wj-blog-cta-btn-primary,
  .wj-blog-cta-btn-secondary {
    width: 100%;
    text-align: center;
  }
}

/* ---------- 2. Product Detail Page B2B Procurement Trust Strip ---------- */
.wj-product-trust-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f4f8fc;
  border: 1px solid #dbe7f3;
  font-family: Poppins, Inter, system-ui, sans-serif;
}
.wj-pts-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.8px;
  line-height: 1.35;
  color: #13304f;
  font-weight: 500;
}
.wj-pts-icon {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e3effa;
  color: #206eb1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 560px) {
  .wj-product-trust-strip {
    grid-template-columns: 1fr;
  }
}

/* ---------- 3. WPForms #689 Field Polish, Submit CTA & NDA Reassurance Note ---------- */
html body .wpforms-container.Iputwj select#wpforms-689-field_17 {
  width: 100% !important;
  max-width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 8px 36px 8px 14px !important;
  line-height: 1.4 !important;
  box-sizing: border-box !important;
}
html body .wpforms-container.Iputwj button#wpforms-submit-689 {
  white-space: nowrap !important;
  min-width: 240px !important;
  padding: 14px 30px !important;
}
html body .wj-form-reassurance {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px 14px !important;
  margin-top: 12px !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  color: #4a5d73 !important;
  font-family: Poppins, Inter, system-ui, sans-serif !important;
  text-align: center !important;
}
html body .wj-form-reassurance span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  white-space: nowrap !important;
}
html body .wj-form-reassurance svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  min-height: 14px !important;
  max-height: 14px !important;
  display: inline-block !important;
  fill: #206eb1 !important;
  flex: 0 0 14px !important;
}

/* ---------- 4. About / Factory Tour Audit CTA Strip ---------- */
.wj-factory-audit-cta {
  max-width: 1180px;
  margin: 24px auto 40px;
  padding: 0 20px;
}

/* ---------- 5. Floating WhatsApp Quick-Contact Button ---------- */
/* Positioned cleanly at bottom-right ABOVE existing live chat button so zero overlap */
.wj-wa-float {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: #1fa855 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: Poppins, Inter, system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 12px 28px -8px rgba(15, 92, 46, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.85);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.wj-wa-float:hover {
  background: #179447 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -8px rgba(15, 92, 46, 0.65), 0 0 0 2px #ffffff;
}
.wj-wa-float svg {
  width: 22px;
  height: 22px;
  fill: #ffffff;
  flex: none;
}
/* Keep Astra scroll-to-top cleanly stacked above WhatsApp & chat button */
#ast-scroll-top {
  bottom: 152px !important;
  right: 22px !important;
}
@media (max-width: 767px) {
  #ast-scroll-top {
    bottom: 158px !important;
    right: 16px !important;
  }
  .wj-wa-float {
    right: 14px;
    bottom: 98px;
    padding: 11px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    justify-content: center;
  }
  .wj-wa-float .wj-wa-text {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wj-blog-cta-btn-primary,
  .wj-wa-float {
    transition: none !important;
  }
}
