/* LJVSA Chat v2 — Estilos */

#ljvsa-chat-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9998;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 0;
    font-size: 28px;
    line-height: 1;
}
#ljvsa-chat-btn:hover { transform: scale(1.08); box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
#ljvsa-chat-btn svg, #ljvsa-chat-btn svg path { fill: #ffffff !important; color: #ffffff !important; }

#ljvsa-chat-close-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 9999;
    cursor: pointer;
    border: none;
    color: white;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    font-family: Arial, sans-serif;
    transition: transform 0.2s;
}
#ljvsa-chat-close-btn:hover { transform: scale(1.08); }
#ljvsa-chat-close-btn svg { display: none; }

#ljvsa-chat-cta {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: #fff;
    color: #333;
    padding: 10px 16px;
    border-radius: 20px 20px 4px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    z-index: 9997;
    max-width: 200px;
    display: none;
}
#ljvsa-chat-cta-close {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: #999;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ljvsa-chat-popup {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    z-index: 9999;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
    animation: ljvsa-slidein 0.25s ease;
}

@keyframes ljvsa-slidein { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

.ljvsa-popup-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}
.ljvsa-popup-header-icon { width:44px; height:44px; background:rgba(255,255,255,0.2); border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.ljvsa-popup-header-icon svg { fill:white!important; width:24px; height:24px; }
.ljvsa-popup-header-text h4 { color:white; margin:0 0 3px; font-size:15px; font-weight:700; }
.ljvsa-popup-header-text p { color:rgba(255,255,255,0.88); margin:0; font-size:12px; }
.ljvsa-popup-header-close { position:absolute; top:12px; right:12px; background:none; border:none; color:white; cursor:pointer; opacity:0.8; padding:4px; font-size:18px; }
.ljvsa-popup-header-close:hover { opacity:1; }

.ljvsa-popup-body { padding: 16px; }
.ljvsa-popup-response-text { font-size:12px; color:#888; margin:0 0 12px; }

.ljvsa-contact-item {
    display:flex; align-items:center; gap:12px; padding:10px 14px;
    border-radius:8px; margin-bottom:8px; text-decoration:none;
    background:#f7f7f7; transition:background 0.2s; cursor:pointer; border:none; width:100%; text-align:left;
}
.ljvsa-contact-item:hover { background:#eee; }
.ljvsa-contact-item:last-child { margin-bottom:0; }

.ljvsa-contact-avatar { width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.ljvsa-contact-avatar.whatsapp { background:linear-gradient(135deg,#25D366 0%,#128C7E 100%); }
.ljvsa-contact-avatar.dify { background:linear-gradient(135deg,#F4812B 0%,#c36722 100%); }
.ljvsa-contact-avatar svg { fill:white!important; width:20px; height:20px; }

.ljvsa-contact-info { flex:1; }
.ljvsa-contact-name { font-size:14px; font-weight:600; color:#222; display:block; }
.ljvsa-contact-sub { font-size:11px; color:#888; display:block; margin-top:2px; }
.ljvsa-contact-icon svg { fill:#25D366!important; width:22px; height:22px; }
.ljvsa-contact-icon.dify svg { fill:#F4812B!important; }

/* Modal Dify */
#ljvsa-dify-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.55); z-index:99998; }
#ljvsa-dify-modal {
    display:none; position:fixed; z-index:99999;
    bottom:20px; right:20px; width:420px; height:640px;
    max-width:calc(100vw - 40px); max-height:calc(100vh - 40px);
    background:#fff; border-radius:16px; box-shadow:0 12px 40px rgba(0,0,0,0.3);
    overflow:hidden; flex-direction:column;
}
#ljvsa-dify-modal-header {
    display:flex; align-items:center; justify-content:space-between;
    padding:14px 18px; background:linear-gradient(135deg,#F4812B 0%,#c36722 100%); flex-shrink:0;
}
#ljvsa-dify-modal-title { color:#fff; font-family:-apple-system,Arial,sans-serif; font-size:15px; font-weight:700; }
#ljvsa-dify-modal-close { background:none; border:none; color:#fff; cursor:pointer; padding:4px; opacity:0.85; font-size:20px; }
#ljvsa-dify-modal-close:hover { opacity:1; }
#ljvsa-dify-iframe { flex:1; width:100%; height:100%; border:none; display:block; }

@media (max-width:480px) {
    #ljvsa-dify-modal { bottom:0; right:0; width:100vw; height:90vh; max-width:100vw; max-height:90vh; border-radius:16px 16px 0 0; }
}
