/* WhatsApp Multi Chat - Estilos del widget público */

.wmc-widget {
    position: fixed;
    bottom: 24px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wmc-widget.wmc-right { right: 24px; }
.wmc-widget.wmc-left  { left: 24px; }

/* Botón flotante */
.wmc-fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--wmc-brand, #25D366);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}
.wmc-fab:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.wmc-fab svg { width: 30px; height: 30px; }
.wmc-fab .wmc-icon-close { display: none; }
.wmc-widget.wmc-open .wmc-fab .wmc-icon-whatsapp { display: none; }
.wmc-widget.wmc-open .wmc-fab .wmc-icon-close { display: block; }
.wmc-widget.wmc-open .wmc-fab { background: #444; }

/* Burbuja de texto */
.wmc-bubble-text {
    position: absolute;
    bottom: 10px;
    right: 72px;
    background: #fff;
    color: #222;
    padding: 10px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(0,0,0,0.18);
    animation: wmc-bounce-in 0.5s ease 1s both;
}
.wmc-widget.wmc-left .wmc-bubble-text {
    right: auto;
    left: 72px;
}
.wmc-widget.wmc-open .wmc-bubble-text { display: none; }

@keyframes wmc-bounce-in {
    0%   { opacity: 0; transform: translateY(8px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Panel desplegable */
.wmc-panel {
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 340px;
    max-width: calc(100vw - 32px);
    max-height: 70vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.22);
    overflow: hidden;
    display: none;
    flex-direction: column;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.wmc-widget.wmc-left .wmc-panel { right: auto; left: 0; }
.wmc-widget.wmc-open .wmc-panel {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.wmc-panel-header {
    background: var(--wmc-brand, #25D366);
    color: #fff;
    padding: 22px 20px 20px;
}
.wmc-panel-header-icon svg { width: 26px; height: 26px; margin-bottom: 8px; }
.wmc-panel-header h3 {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
}
.wmc-panel-header p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.4;
    opacity: 0.95;
}

.wmc-panel-note {
    padding: 12px 20px;
    font-size: 12.5px;
    color: #8a8a8a;
    border-bottom: 1px solid #f0f0f0;
}

.wmc-panel-list {
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wmc-category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    background: #fafafa;
    border-left: 4px solid var(--wmc-brand, #25D366);
    border-radius: 8px;
    padding: 12px 14px;
    transition: background 0.15s ease;
}
.wmc-category-item:hover { background: #f0f0f0; }

.wmc-category-icon svg { width: 30px; height: 30px; flex-shrink: 0; }

.wmc-category-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.wmc-category-text strong {
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}
.wmc-category-text small {
    color: #777;
    font-size: 12.5px;
    line-height: 1.3;
    margin-top: 2px;
}

.wmc-category-arrow svg { width: 22px; height: 22px; flex-shrink: 0; }

/* Responsive móvil */
@media (max-width: 480px) {
    .wmc-widget.wmc-right, .wmc-widget.wmc-left {
        right: 16px;
        left: auto;
        bottom: 16px;
    }
    .wmc-panel {
        right: -8px;
        width: calc(100vw - 24px);
    }
    .wmc-widget.wmc-left .wmc-panel {
        left: -8px;
    }
    .wmc-bubble-text {
        max-width: 160px;
        white-space: normal;
    }
}
