/* Dynamic WhatsApp & WooCommerce Pro - Frontend Styles */
.dwa-floating-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.dwa-floating-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dwa-floating-trigger:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.dwa-pulse-animation {
    animation: dwaPulse 2s infinite;
}
@keyframes dwaPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}
.dwa-callout-bubble {
    background: #ffffff;
    color: #1e293b;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 260px;
}
.dwa-callout-close {
    background: transparent;
    border: none;
    font-size: 16px;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 4px;
}
.dwa-callout-close:hover {
    color: #0f172a;
}

/* Modal Multi-Asesor */
.dwa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.65);
    z-index: 99999999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.dwa-modal-overlay.dwa-modal-open {
    display: flex !important;
}
body.dwa-modal-body-lock {
    overflow: hidden !important;
}
.dwa-modal-box {
    background: #ffffff;
    width: 90%;
    max-width: 440px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    overflow: hidden;
    animation: dwaModalIn 0.25s ease-out;
}
@keyframes dwaModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.dwa-modal-header {
    background: #075E54;
    color: #ffffff;
    padding: 20px 24px;
    position: relative;
}
.dwa-modal-title {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}
.dwa-modal-subtitle {
    margin: 0;
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.4;
}
.dwa-modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}
.dwa-modal-body {
    padding: 16px;
    max-height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Tarjeta de Asesor */
.dwa-agent-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    transition: background 0.15s ease, transform 0.15s ease;
}
.dwa-agent-card:hover {
    background: #f1f5f9;
    transform: translateX(3px);
}
.dwa-agent-avatar-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.dwa-agent-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.dwa-agent-avatar-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    text-align: center;
}
.dwa-agent-avatar-icon i,
.dwa-agent-avatar-icon svg {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-style: normal !important;
}
.dwa-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}
.dwa-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
}
.dwa-online { background-color: #22c55e; }
.dwa-offline { background-color: #94a3b8; }
.dwa-agent-info {
    flex-grow: 1;
    min-width: 0;
}
.dwa-agent-name {
    margin: 0 0 2px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}
.dwa-agent-role {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}
.dwa-agent-status-text {
    font-size: 11px;
    color: #16a34a;
    font-weight: 500;
}
.dwa-agent-chat-btn {
    background: #25D366;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    transition: background 0.15s ease;
}
.dwa-agent-chat-btn:hover {
    background: #1ebe5d;
    color: #ffffff;
}

/* Botón WooCommerce */
.dwa-woo-button-container {
    margin: 12px 0;
}
.dwa-woo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #25D366;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.dwa-woo-btn:hover {
    background-color: #1ebe5d;
    color: #ffffff;
}

/* Divi 5 & Divi 4 Framework Compatibility */
.et_pb_dwa_button_wrap {
    margin: 15px 0;
    display: inline-block;
    max-width: 100%;
}
.et_pb_dwa_button_wrap.et_pb_dwa_button_fullwidth {
    display: block;
    width: 100%;
}
.et_pb_dwa_button_wrap .dwa-woo-btn {
    text-shadow: none !important;
    font-family: inherit;
}
body.et-fb .dwa-floating-wrapper,
body.et_pb_fb .dwa-floating-wrapper,
body.dwa-divi-builder-active .dwa-floating-wrapper {
    bottom: 84px !important;
    z-index: 99990 !important;
}
body.et-fb.dwa-modal-body-lock,
body.dwa-divi-builder-active.dwa-modal-body-lock {
    overflow: auto !important;
}
