/* TiAssistito – WhatsApp Share Only (ListingPro)
   Nasconde ogni share nativo e mostra un modal elegante per WhatsApp */
:root{
  --tiw-bg: #0b1220;
  --tiw-card: #ffffff;
  --tiw-accent: #25D366; /* WhatsApp green */
  --tiw-text: #0f172a;
  --tiw-muted: #64748b;
  --tiw-shadow: 0 12px 30px rgba(2,6,23,.2);
}

/* 1) Nascondi blocchi social nativi (non la voce "Condividere" nel menu) */
.lp-social-share,
.lp-social-links,
.lp-post-social,
.lp-detail-page .social-icons,
.lp-detail-page .lp-social-icons,
.lp-detail-page [class*="social"] .fa-facebook,
.lp-detail-page [class*="social"] .fa-instagram,
.lp-detail-page [class*="social"] .fa-twitter,
.lp-detail-page [class*="social"] .fa-pinterest,
#lp-listing-social .social-icons,
#lp-listing-social .lp-social-share-box,
#lp-listing-social .lp-social-share
{ display:none !important; }

/* 2) Modal base (overlay + card) */
#tiw-wa-wrap{ position:fixed; inset:0; z-index:999999; display:none; }
#tiw-wa-wrap.tiw-open{ display:block; }
#tiw-wa-backdrop{
  position:absolute; inset:0; background:rgba(15,23,42,.6); backdrop-filter:blur(2px);
}
#tiw-wa-modal{
  position:relative; width:min(480px, 92vw); margin:10vh auto 0; background:var(--tiw-card);
  border-radius:16px; box-shadow:var(--tiw-shadow); padding:20px 18px;
}
#tiw-wa-close{
  position:absolute; right:10px; top:10px; width:36px; height:36px; border-radius:10px;
  border:0; background:#f1f5f9; color:#0f172a; cursor:pointer; font-size:20px; line-height:1;
}
#tiw-wa-title{ margin:0 0 8px; font-weight:800; color:var(--tiw-text); }
#tiw-wa-sub{ margin:0 0 14px; color:var(--tiw-muted); }
#tiw-wa-btn{
  appearance:none; display:flex; align-items:center; justify-content:center; gap:10px;
  width:100%; padding:14px 18px; border-radius:12px; border:0; cursor:pointer;
  background:var(--tiw-accent); color:#fff; font-weight:800; font-size:16px; text-decoration:none;
  box-shadow:0 10px 24px rgba(37,211,102,.25);
}
#tiw-wa-btn svg{ width:22px; height:22px; }
#tiw-wa-preview{
  margin-top:14px; background:#f8fafc; border:1px solid #e2e8f0; border-radius:10px; padding:10px 12px;
  font-size:13px; color:#0f172a;
}
#tiw-wa-preview .u{ color:#334155; overflow-wrap:anywhere; }
#tiw-wa-preview .t{ color:#0f172a; font-weight:700; }

/* 3) Accessibilità */
#tiw-wa-modal:focus{ outline:2px solid var(--tiw-accent); outline-offset:4px; }

/* Mini-fix: evita che l'ancora #lp-listing-social scorra la pagina qui */
#lp-listing-social{ min-height:0 !important; height:auto !important; }
