/* Leporis Simulator — shared by leporis/index.php and leporis/demo.php.
   Real WhatsApp-style phone mockup: dark bezel, WhatsApp green header,
   tan wallpaper, white/light-green bubbles, niche-cycling arrows. */
.lep-sim-wrap { display: flex; flex-direction: column; align-items: center; }
.lep-sim-topbar { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; }
.lep-sim-arrow {
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid #dde6e1; background: #fff;
    display: flex; align-items: center; justify-content: center; cursor: pointer; color: #1e5631; flex-shrink: 0;
}
.lep-sim-arrow:hover { background: #eef6f0; }
.lep-sim-niche-label { font-size: 0.88rem; font-weight: 700; min-width: 190px; text-align: center; }
.lep-sim-niche-label span { display: block; font-size: 0.72rem; font-weight: 500; color: #7d8b83; margin-top: 1px; }

/* Fixed phone aspect-ratio (driven by height, not width) so it never looks
   "fat and short" on shorter viewports the way an independent width+vh cap did. */
.lep-phone {
    height: min(72vh, 600px);
    aspect-ratio: 9 / 19.3;
    background: #111; border-radius: 34px; padding: 7px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.18);
    flex-shrink: 0;
}
.lep-phone-screen {
    width: 100%; height: 100%; background: #fff; border-radius: 27px;
    display: flex; flex-direction: column; overflow: hidden; position: relative;
}
.lep-wa-header { background: #075E54; color: #fff; display: flex; align-items: center; gap: 10px; padding: 10px 12px; flex-shrink: 0; }
.lep-wa-avatar { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #075E54; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; flex-shrink: 0; }
.lep-wa-header-info { flex: 1; min-width: 0; }
.lep-wa-name { font-weight: 700; font-size: 0.84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lep-wa-status { font-size: 0.68rem; opacity: 0.85; }
.lep-wa-icons { display: flex; gap: 12px; opacity: 0.9; flex-shrink: 0; }

.lep-wa-body {
    flex: 1; overflow-y: auto; padding: 12px 9px; display: flex; flex-direction: column; gap: 5px;
    background-color: #e9ddce;
    background-image: radial-gradient(rgba(0,0,0,0.035) 1px, transparent 1px);
    background-size: 13px 13px;
}
.lep-wa-bubble { max-width: 82%; padding: 6px 8px 4px; border-radius: 8px; font-size: 0.8rem; line-height: 1.35; white-space: pre-wrap; word-break: break-word; box-shadow: 0 1px 0.5px rgba(0,0,0,0.13); }
.lep-wa-bubble.in { align-self: flex-start; background: #fff; border-top-left-radius: 0; color: #111b21; }
.lep-wa-bubble.user { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 0; color: #111b21; }
.lep-wa-bubble.err { align-self: center; background: #fdecec; color: #a33; font-size: 0.72rem; box-shadow: none; }
.lep-wa-meta { font-size: 0.6rem; color: #667781; display: flex; justify-content: flex-end; align-items: center; gap: 3px; margin-top: 1px; }
.lep-wa-ticks { color: #53bdeb; }
.lep-typing { align-self: flex-start; display: inline-flex; gap: 3px; padding: 8px 10px; background: #fff; border-radius: 8px; border-top-left-radius: 0; box-shadow: 0 1px 0.5px rgba(0,0,0,0.13); }
.lep-typing span { width: 5px; height: 5px; border-radius: 50%; background: #9aa8a0; animation: lep-bounce 1.3s infinite ease-in-out both; }
.lep-typing span:nth-child(2) { animation-delay: 0.15s; }
.lep-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes lep-bounce { 0%, 80%, 100% { transform: scale(0.4); opacity: 0.5; } 40% { transform: scale(1); opacity: 1; } }

.lep-wa-inputbar { flex-shrink: 0; background: #f0f0f0; padding: 7px; display: flex; gap: 7px; align-items: center; }
.lep-wa-inputbar input { flex: 1; border: none; border-radius: 20px; padding: 8px 13px; font-size: 0.82rem; font-family: inherit; background: #fff; min-width: 0; }
.lep-wa-inputbar input:focus { outline: none; }
.lep-wa-send { width: 34px; height: 34px; border-radius: 50%; background: #075E54; border: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.lep-wa-send:disabled { opacity: 0.5; cursor: not-allowed; }
.lep-sim-cap { font-size: 0.72rem; color: #8a9a91; text-align: center; padding: 8px 0 0; }

/* Shown once the per-visit message cap is reached */
.lep-sim-limit-panel { width: 100%; max-width: 460px; margin-top: 16px; background: #fff; border: 1px solid #e4ece7; border-radius: 14px; padding: 18px; box-shadow: 0 2px 10px rgba(30,86,49,0.05); }
.lep-limit-heading { font-size: 0.88rem; font-weight: 700; text-align: center; margin: 0 0 14px; }
.lep-limit-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lep-limit-col { text-align: center; }
.lep-limit-col-title { font-size: 0.76rem; font-weight: 600; color: #2b3a33; margin-bottom: 8px; min-height: 28px; }
.lep-limit-qr { width: 96px; height: 96px; border-radius: 8px; border: 1px solid #eef2ef; margin-bottom: 8px; }
.lep-limit-wa-btn { display: block; background: #25D366; color: #fff; text-decoration: none; font-weight: 700; font-size: 0.78rem; padding: 8px 10px; border-radius: 7px; }
.lep-limit-wa-btn:hover { opacity: 0.9; }
#lep-limit-lead-form { display: flex; flex-direction: column; gap: 6px; }
#lep-limit-lead-form input { padding: 8px 9px; border-radius: 7px; border: 1px solid #dde6e1; font-size: 0.78rem; font-family: inherit; }
#lep-limit-lead-form input:focus { outline: none; border-color: #1e5631; }
#lep-limit-lead-form button { background: #1e5631; color: #fff; border: none; border-radius: 7px; padding: 8px; font-weight: 700; font-size: 0.78rem; cursor: pointer; }
#lep-limit-lead-form button:hover { background: #174425; }
#lep-limit-lead-form button:disabled { opacity: 0.6; cursor: default; }
.lep-limit-lead-msg { font-size: 0.72rem; min-height: 16px; }

@media (max-width: 860px) {
    .lep-phone { height: 62vh; max-height: 480px; }
    .lep-limit-cols { grid-template-columns: 1fr; }
}
