/* Evermore WhatsApp Widget Styles */

.eww-widget-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* Floating Chat Button */
.eww-chat-trigger {
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.eww-chat-trigger:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* Modal Popup */
.eww-modal {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 40px);
    background: #ffffff;
    border-radius: 28px;
    display: none;
    flex-direction: column;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: ewwSlideUp 0.2s ease;
}

.eww-modal.open {
    display: flex;
}

@keyframes ewwSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Header */
.eww-modal-header {
    background: #25D366;
    color: white;
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eww-modal-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.eww-modal-header p {
    margin: 4px 0 0;
    font-size: 0.7rem;
    opacity: 0.9;
}

.eww-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
    padding: 0 8px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.eww-close:hover {
    opacity: 1;
}

/* Branches List */
.eww-branches-list {
    max-height: 460px;
    overflow-y: auto;
}

.eww-branch-item {
    display: flex;
    gap: 14px;
    padding: 1rem 1.2rem;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background 0.15s ease;
}

.eww-branch-item:hover {
    background: #f8f9fc;
}

/* Avatar Circle */
.eww-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e6f4ea, #d4ede0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #075E54;
    flex-shrink: 0;
}

/* Branch Info */
.eww-info {
    flex: 1;
}

.eww-info h4 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 700;
    color: #1e2a3e;
}

.eww-location {
    margin: 0 0 4px;
    font-size: 0.7rem;
    color: #6b5e54;
}

.eww-desc {
    margin: 0 0 6px;
    font-size: 0.7rem;
    color: #8a7a6e;
    line-height: 1.3;
}

.eww-wa-badge {
    font-size: 0.7rem;
    color: #25D366;
    font-weight: 500;
}

/* Modal Footer */
.eww-modal-footer {
    padding: 0.8rem;
    background: #fafbfc;
    text-align: center;
    font-size: 0.7rem;
    color: #6c7a8e;
    border-top: 1px solid #eee;
}

/* Inline Widget (for shortcode) */
.eww-inline .eww-modal {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 560px) {
    .eww-modal {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 90px;
    }
}