/**
 * Diremex Chat Asesor IA - Modern Minimalist Public Styles
 * Developed by Diremex (https://diremex.com.mx)
 * Complete CSS Reset & Scoped Isolation against WordPress theme style bleeding
 */

/* 1. Scoped CSS Reset for #diremex-chat-widget to avoid theme interference */
#diremex-chat-widget {
    --diremex-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --diremex-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.08);
    font-family: var(--diremex-font) !important;
    position: fixed !important;
    bottom: 24px !important;
    z-index: 999999 !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

#diremex-chat-widget *, 
#diremex-chat-widget *::before, 
#diremex-chat-widget *::after {
    box-sizing: border-box !important;
    font-family: var(--diremex-font) !important;
    text-shadow: none !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

#diremex-chat-widget button {
    all: unset !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}

#diremex-chat-widget p,
#diremex-chat-widget h4 {
    margin: 0 !important;
    padding: 0 !important;
}

#diremex-chat-widget a {
    text-decoration: none !important;
}

#diremex-chat-widget.diremex-pos-right { right: 24px !important; }
#diremex-chat-widget.diremex-pos-left { left: 24px !important; }

/* 2. Floating Launcher Button */
#diremex-chat-widget .diremex-launcher-btn {
    width: 58px !important;
    height: 58px !important;
    border-radius: 50% !important;
    background-color: var(--diremex-primary, #059669) !important;
    color: #ffffff !important;
    cursor: pointer !important;
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.35) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
}
#diremex-chat-widget .diremex-launcher-btn:hover {
    transform: scale(1.06) !important;
    box-shadow: 0 10px 28px rgba(5, 150, 105, 0.45) !important;
}
#diremex-chat-widget .diremex-launcher-btn .diremex-launcher-icon-close { display: none !important; }
#diremex-chat-widget .diremex-launcher-btn.active .diremex-launcher-icon-open { display: none !important; }
#diremex-chat-widget .diremex-launcher-btn.active .diremex-launcher-icon-close { display: block !important; }

/* Unread Badge */
#diremex-chat-widget .diremex-unread-badge {
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #ffffff !important;
}

/* 3. Chat Window Box (Hidden strictly by default, shown via .diremex-chat-open) */
#diremex-chat-widget .diremex-chat-box {
    display: none !important;
    position: absolute !important;
    bottom: 74px !important;
    width: 380px !important;
    max-width: calc(100vw - 32px) !important;
    height: 570px !important;
    max-height: calc(100vh - 110px) !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: var(--diremex-shadow) !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    z-index: 99990 !important;
}
#diremex-chat-widget .diremex-chat-box.diremex-chat-open {
    display: flex !important;
}
#diremex-chat-widget.diremex-pos-right .diremex-chat-box { right: 0 !important; }
#diremex-chat-widget.diremex-pos-left .diremex-chat-box { left: 0 !important; }

/* 4. Chat Header */
#diremex-chat-widget .diremex-chat-header {
    background: var(--diremex-primary, #059669) !important;
    color: var(--diremex-header-text, #ffffff) !important;
    padding: 12px 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}
#diremex-chat-widget .diremex-header-avatar {
    position: relative !important;
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0 !important;
}
#diremex-chat-widget .diremex-header-avatar img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 2px solid rgba(255, 255, 255, 0.85) !important;
    display: block !important;
}
#diremex-chat-widget .diremex-status-indicator {
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 10px !important;
    height: 10px !important;
    background: #22c55e !important;
    border-radius: 50% !important;
    border: 2px solid #ffffff !important;
}
#diremex-chat-widget .diremex-header-info {
    flex: 1 !important;
    min-width: 0 !important;
}
#diremex-chat-widget .diremex-header-title-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
}
#diremex-chat-widget .diremex-header-info h4 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: var(--diremex-header-text, #ffffff) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
}
#diremex-chat-widget .diremex-header-team-tag {
    font-size: 9.5px !important;
    background: rgba(255, 255, 255, 0.24) !important;
    padding: 2px 6px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    color: var(--diremex-header-text, #ffffff) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
#diremex-chat-widget .diremex-header-info p {
    margin: 2px 0 0 0 !important;
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
#diremex-chat-widget .diremex-header-action-btn, 
#diremex-chat-widget .diremex-close-btn {
    width: 30px !important;
    height: 30px !important;
    color: var(--diremex-header-text, #ffffff) !important;
    opacity: 0.9 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
    font-size: 19px !important;
    line-height: 1 !important;
    transition: background 0.15s ease, opacity 0.15s ease !important;
}
#diremex-chat-widget .diremex-header-action-btn:hover, 
#diremex-chat-widget .diremex-close-btn:hover {
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.2) !important;
}

/* 5. Messages Container */
#diremex-chat-widget .diremex-chat-messages {
    flex: 1 !important;
    padding: 14px !important;
    overflow-y: auto !important;
    background: #f8fafc !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}
#diremex-chat-widget .diremex-msg {
    display: flex !important;
    flex-direction: column !important;
    max-width: 86% !important;
}
#diremex-chat-widget .diremex-msg-user {
    align-self: flex-end !important;
    align-items: flex-end !important;
}
#diremex-chat-widget .diremex-msg-bot {
    align-self: flex-start !important;
    align-items: flex-start !important;
}
#diremex-chat-widget .diremex-bubble {
    padding: 10px 14px !important;
    border-radius: 16px !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    word-break: break-word !important;
}
#diremex-chat-widget .diremex-msg-user .diremex-bubble {
    background: var(--diremex-primary, #059669) !important;
    color: #ffffff !important;
    border-bottom-right-radius: 4px !important;
}
#diremex-chat-widget .diremex-msg-bot .diremex-bubble {
    background: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #e2e8f0 !important;
    border-bottom-left-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

/* WhatsApp CTA Button */
.diremex-product-results{display:grid;gap:8px;margin-top:9px}.diremex-product-card{display:flex;gap:9px;align-items:center;padding:8px;border:1px solid rgba(37,99,235,.18);border-radius:10px;background:#fff;color:#172554;text-decoration:none;transition:transform .15s ease,box-shadow .15s ease}.diremex-product-card:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(37,99,235,.12)}.diremex-product-card img{width:54px;height:54px;object-fit:cover;border-radius:8px;background:#eef2ff}.diremex-product-info{display:flex;min-width:0;flex:1;flex-direction:column;gap:2px}.diremex-product-info strong{font-size:12px;line-height:1.25}.diremex-product-info em{font-size:12px;color:#047857;font-style:normal;font-weight:700}.diremex-product-info small{font-size:11px;color:#2563eb}
#diremex-chat-widget .diremex-bubble .diremex-chat-link{color:#1d4ed8;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}#diremex-chat-widget .diremex-bubble .diremex-chat-link:hover{color:#1e40af}
#diremex-chat-widget .diremex-wa-action-box {
    margin-top: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}
#diremex-chat-widget .diremex-wa-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    background: #25d366 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    padding: 8px 14px !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.28) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    line-height: 1 !important;
}
#diremex-chat-widget .diremex-wa-btn:hover {
    background: #1eb954 !important;
}
#diremex-chat-widget .diremex-open-lead-btn {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #059669 !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* 6. CAROUSEL PILLS ROW (Fixed: Left/Right arrows + smooth kinetic scrolling) */
#diremex-chat-widget .diremex-chips-wrapper {
    background: #ffffff !important;
    border-top: 1px solid #f1f5f9 !important;
    padding: 6px 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}
#diremex-chat-widget .diremex-chips-nav-btn {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}
#diremex-chat-widget .diremex-chips-nav-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}
#diremex-chat-widget .diremex-chat-chips {
    flex: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 6px !important;
    padding: 4px 2px !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important;  /* IE/Edge */
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
}
#diremex-chat-widget .diremex-chat-chips::-webkit-scrollbar {
    display: none !important;
}

/* Individual Pill Buttons */
#diremex-chat-widget .diremex-chip-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    border-radius: 9999px !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    background: #f8fafc !important;
    color: #334155 !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.15s ease !important;
}
#diremex-chat-widget .diremex-chip-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}
#diremex-chat-widget .diremex-chip-lead {
    background: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #047857 !important;
    font-weight: 700 !important;
}
#diremex-chat-widget .diremex-chip-lead:hover {
    background: #d1fae5 !important;
}
#diremex-chat-widget .diremex-chip-wa {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #166534 !important;
    font-weight: 600 !important;
}
#diremex-chat-widget .diremex-chip-wa:hover {
    background: #dcfce7 !important;
}

/* 7. Typing Indicator */
#diremex-chat-widget .diremex-typing-indicator {
    padding: 6px 14px !important;
    background: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 11px !important;
    color: #64748b !important;
    flex-shrink: 0 !important;
}
#diremex-chat-widget .diremex-dot {
    width: 5px !important;
    height: 5px !important;
    background: #94a3b8 !important;
    border-radius: 50% !important;
    animation: diremex-blink 1.2s infinite ease-in-out !important;
}
#diremex-chat-widget .diremex-dot:nth-child(2) { animation-delay: 0.2s !important; }
#diremex-chat-widget .diremex-dot:nth-child(3) { animation-delay: 0.4s !important; }
@keyframes diremex-blink {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
    40% { transform: scale(1.1); opacity: 1; }
}

/* 8. Chat Input Bar */
#diremex-chat-widget .diremex-chat-form {
    display: flex !important;
    align-items: center !important;
    padding: 8px 12px !important;
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    gap: 8px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}
#diremex-chat-widget .diremex-chat-form input {
    flex: 1 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    padding: 8px 14px !important;
    font-size: 12.5px !important;
    outline: none !important;
    color: #1e293b !important;
    background: #ffffff !important;
    line-height: normal !important;
}
#diremex-chat-widget .diremex-chat-form input:focus {
    border-color: var(--diremex-primary, #059669) !important;
}
#diremex-chat-widget .diremex-chat-form button {
    background: var(--diremex-primary, #059669) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}
#diremex-chat-widget .diremex-chat-form button:hover {
    opacity: 0.9 !important;
}

/* 9. Footer Branding */
#diremex-chat-widget .diremex-chat-footer {
    padding: 5px 10px !important;
    background: #f8fafc !important;
    text-align: center !important;
    font-size: 10.5px !important;
    color: #64748b !important;
    border-top: 1px solid #f1f5f9 !important;
    flex-shrink: 0 !important;
}
#diremex-chat-widget .diremex-chat-footer a {
    color: #059669 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

/* 10. Lead Capture Modal (Strictly hidden by default, shown via .diremex-lead-modal-open) */
#diremex-chat-widget .diremex-lead-modal {
    display: none !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px !important;
    z-index: 99999 !important;
    box-sizing: border-box !important;
}
#diremex-chat-widget .diremex-lead-modal.diremex-lead-modal-open {
    display: flex !important;
}
#diremex-chat-widget .diremex-lead-modal-content {
    background: #ffffff !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 330px !important;
    padding: 16px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22) !important;
    border: 1px solid #e2e8f0 !important;
}
#diremex-chat-widget .diremex-lead-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 8px !important;
    margin-bottom: 10px !important;
}
#diremex-chat-widget .diremex-lead-modal-header h4 {
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}
#diremex-chat-widget .diremex-lead-close {
    font-size: 22px !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
    line-height: 1 !important;
}
#diremex-chat-widget .diremex-lead-close:hover {
    color: #0f172a !important;
}
#diremex-chat-widget .diremex-lead-field {
    margin-bottom: 8px !important;
}
#diremex-chat-widget .diremex-honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }
#diremex-chat-widget .diremex-privacy-consent { display: flex !important; align-items: flex-start !important; gap: 7px !important; margin: 10px 0 !important; color: #64748b !important; font-size: 10.5px !important; line-height: 1.4 !important; }
#diremex-chat-widget .diremex-privacy-consent input { width: auto !important; margin-top: 2px !important; }
#diremex-chat-widget .diremex-privacy-consent a { color: #4f46e5 !important; text-decoration: underline !important; }
#diremex-chat-widget .diremex-lead-field label {
    display: block !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin-bottom: 2px !important;
}
#diremex-chat-widget .diremex-lead-field input, 
#diremex-chat-widget .diremex-lead-field select, 
#diremex-chat-widget .diremex-lead-field textarea {
    width: 100% !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    outline: none !important;
    color: #1e293b !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}
#diremex-chat-widget .diremex-lead-field input:focus, 
#diremex-chat-widget .diremex-lead-field select:focus, 
#diremex-chat-widget .diremex-lead-field textarea:focus {
    border-color: #059669 !important;
}
#diremex-chat-widget .diremex-lead-submit {
    width: 100% !important;
    background: var(--diremex-primary, #059669) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    padding: 9px !important;
    border-radius: 10px !important;
    text-align: center !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    margin-top: 6px !important;
    display: block !important;
}
#diremex-chat-widget .diremex-lead-submit:hover {
    opacity: 0.9 !important;
}

/* Aurora UI refresh — self-contained so WordPress themes cannot alter it. */
#diremex-chat-widget {
    --diremex-ink: #12213d;
    --diremex-surface: #f7faff;
    --diremex-line: rgba(148, 163, 184, .24);
    --diremex-violet: #7c3aed;
}
#diremex-chat-widget .diremex-launcher-btn {
    width: 64px !important;
    height: 64px !important;
    background: linear-gradient(135deg, var(--diremex-primary, #2563eb), var(--diremex-accent, #7c3aed)) !important;
    box-shadow: 0 14px 34px rgba(79, 70, 229, .36), inset 0 1px 1px rgba(255,255,255,.34) !important;
}
#diremex-chat-widget .diremex-launcher-btn::before {
    content: "" !important;
    position: absolute !important;
    inset: -5px !important;
    border: 1px solid rgba(99,102,241,.30) !important;
    border-radius: 50% !important;
    animation: diremex-aurora-pulse 2.3s ease-out infinite !important;
}
#diremex-chat-widget .diremex-launcher-btn:hover { transform: translateY(-3px) scale(1.04) !important; }
#diremex-chat-widget .diremex-unread-badge {
    top: 0 !important;
    right: 0 !important;
    background: #f97316 !important;
    box-shadow: 0 3px 10px rgba(249,115,22,.40) !important;
}
#diremex-chat-widget .diremex-chat-box {
    width: 402px !important;
    height: 610px !important;
    border-radius: 25px !important;
    border: 1px solid rgba(255,255,255,.72) !important;
    box-shadow: 0 28px 75px rgba(15,23,42,.25), 0 8px 24px rgba(37,99,235,.13) !important;
    background: #fff !important;
}
#diremex-chat-widget .diremex-chat-header {
    min-height: 84px !important;
    padding: 16px 17px !important;
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(120deg, var(--diremex-primary, #2563eb), var(--diremex-accent, #7c3aed)) !important;
}
#diremex-chat-widget .diremex-chat-header::after {
    content: "" !important;
    position: absolute !important;
    width: 130px !important;
    height: 130px !important;
    right: -42px !important;
    top: -65px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.15) !important;
}
#diremex-chat-widget .diremex-header-avatar,
#diremex-chat-widget .diremex-header-info,
#diremex-chat-widget .diremex-header-action-btn,
#diremex-chat-widget .diremex-close-btn { z-index: 1 !important; }
#diremex-chat-widget .diremex-header-avatar { width: 44px !important; height: 44px !important; }
#diremex-chat-widget .diremex-header-avatar img { border-color: rgba(255,255,255,.65) !important; box-shadow: 0 4px 12px rgba(15,23,42,.16) !important; }
#diremex-chat-widget .diremex-status-indicator { width: 12px !important; height: 12px !important; box-shadow: 0 0 0 3px rgba(255,255,255,.25) !important; }
#diremex-chat-widget .diremex-header-info h4 { font-size: 14px !important; letter-spacing: -.1px !important; }
#diremex-chat-widget .diremex-header-team-tag { background: rgba(255,255,255,.17) !important; backdrop-filter: blur(8px) !important; }
#diremex-chat-widget .diremex-header-action-btn,
#diremex-chat-widget .diremex-close-btn { border-radius: 11px !important; background: rgba(255,255,255,.10) !important; }
#diremex-chat-widget .diremex-chat-messages {
    padding: 18px !important;
    gap: 14px !important;
    background: radial-gradient(circle at 10% 0%, #edf5ff 0, transparent 30%), var(--diremex-surface) !important;
}
#diremex-chat-widget .diremex-msg { max-width: 88% !important; }
#diremex-chat-widget .diremex-bubble { padding: 11px 14px !important; border-radius: 18px !important; font-size: 13px !important; line-height: 1.52 !important; }
#diremex-chat-widget .diremex-msg-user .diremex-bubble {
    border-bottom-right-radius: 6px !important;
    background: linear-gradient(135deg, var(--diremex-primary, #2563eb), var(--diremex-accent, #7c3aed)) !important;
    box-shadow: 0 6px 14px rgba(79,70,229,.18) !important;
}
#diremex-chat-widget .diremex-msg-bot .diremex-bubble {
    border-bottom-left-radius: 6px !important;
    border-color: var(--diremex-line) !important;
    box-shadow: 0 7px 16px rgba(15,23,42,.045) !important;
}
#diremex-chat-widget .diremex-chips-wrapper { padding: 9px 11px !important; border-top-color: var(--diremex-line) !important; }
#diremex-chat-widget .diremex-chips-nav-btn { width: 27px !important; height: 27px !important; background: #eef2ff !important; color: #4f46e5 !important; }
#diremex-chat-widget .diremex-chip-btn { padding: 7px 12px !important; border-color: #d9e2f0 !important; background: #fff !important; color: #334155 !important; box-shadow: 0 2px 4px rgba(15,23,42,.03) !important; }
#diremex-chat-widget .diremex-chip-btn:hover { color: #4338ca !important; border-color: #bfc8ff !important; background: #f5f5ff !important; }
#diremex-chat-widget .diremex-chip-lead { background: #eef2ff !important; border-color: #c7d2fe !important; color: #4338ca !important; }
#diremex-chat-widget .diremex-chip-wa { background: #ecfdf5 !important; border-color: #bbf7d0 !important; color: #047857 !important; }
#diremex-chat-widget .diremex-wa-btn { border-radius: 12px !important; padding: 10px 14px !important; box-shadow: 0 6px 13px rgba(34,197,94,.20) !important; }
#diremex-chat-widget .diremex-chat-form { padding: 12px 14px !important; border-top-color: var(--diremex-line) !important; }
#diremex-chat-widget .diremex-chat-form input { padding: 10px 15px !important; border-radius: 13px !important; border-color: #dbe3ef !important; background: #f8fafc !important; }
#diremex-chat-widget .diremex-chat-form input:focus { background: #fff !important; border-color: var(--diremex-primary, #2563eb) !important; box-shadow: 0 0 0 3px rgba(37,99,235,.13) !important; }
#diremex-chat-widget .diremex-chat-form button { width: 39px !important; height: 39px !important; background: linear-gradient(135deg, var(--diremex-primary, #2563eb), var(--diremex-accent, #7c3aed)) !important; box-shadow: 0 6px 14px rgba(79,70,229,.25) !important; }
#diremex-chat-widget .diremex-chat-footer { padding: 7px 10px !important; background: #fff !important; }
#diremex-chat-widget .diremex-chat-footer a { color: #4f46e5 !important; }
#diremex-chat-widget .diremex-lead-modal { background: rgba(15,23,42,.68) !important; }
#diremex-chat-widget .diremex-lead-modal-content { max-width: 348px !important; padding: 20px !important; border-radius: 20px !important; box-shadow: 0 26px 50px rgba(2,6,23,.34) !important; }
#diremex-chat-widget .diremex-lead-modal-header h4 { font-size: 15px !important; color: #172554 !important; }
#diremex-chat-widget .diremex-lead-field input,
#diremex-chat-widget .diremex-lead-field select,
#diremex-chat-widget .diremex-lead-field textarea { padding: 8px 10px !important; border-radius: 10px !important; border-color: #dbe3ef !important; }
#diremex-chat-widget .diremex-lead-submit { padding: 11px !important; border-radius: 12px !important; background: linear-gradient(135deg, var(--diremex-primary, #2563eb), var(--diremex-accent, #7c3aed)) !important; }
@keyframes diremex-aurora-pulse { 0% { transform: scale(.94); opacity: .7; } 70%,100% { transform: scale(1.16); opacity: 0; } }
@media (max-width: 480px) {
    #diremex-chat-widget.diremex-pos-right { right: 14px !important; }
    #diremex-chat-widget.diremex-pos-left { left: 14px !important; }
    #diremex-chat-widget .diremex-chat-box { width: calc(100vw - 28px) !important; height: min(610px, calc(100vh - 98px)) !important; }
}
@media (prefers-reduced-motion: reduce) { #diremex-chat-widget .diremex-launcher-btn::before { animation: none !important; } }
