#armangroup-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Noto Sans Armenian', sans-serif;
}

@keyframes acw-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 59, 48, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

.acw-trigger {
    width: 60px;
    height: 60px;
    background-color: #ff3b30;
    border-radius: 50%;
    display: flex; /* Kept flex for safety, though children are absolute */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    color: white;
    font-size: 0;
    line-height: 0;
    animation: acw-pulse 2s infinite;
    position: relative; /* CRITICAL for absolute children */
}

.acw-trigger:hover {
    transform: scale(1.05);
    animation: none;
}

/* CONTAINER FOR ICONS - Force absolute positioning to stack them */
.acw-trigger > span {
    display: grid !important;
    place-items: center !important;
    width: 100%;
    height: 100%;
    position: absolute !important; /* Force overlap */
    top: 0;
    left: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Force SVG to be centered and block */
.acw-trigger > span svg {
    display: block;
    width: 28px;
    height: 28px;
}

/* Default State: Open Visible, Close Hidden */
.acw-trigger .acw-trigger-icon-open {
    opacity: 1 !important;
    transform: rotate(0deg) scale(1) !important;
}

.acw-trigger .acw-trigger-icon-close {
    opacity: 0 !important;
    transform: rotate(-90deg) scale(0.5) !important;
    pointer-events: none;
}

/* Active State: Open Hidden, Close Visible */
#armangroup-chat-widget.active .acw-trigger .acw-trigger-icon-open {
    opacity: 0 !important;
    transform: rotate(90deg) scale(0.5) !important;
}

#armangroup-chat-widget.active .acw-trigger .acw-trigger-icon-close {
    opacity: 1 !important;
    transform: rotate(0deg) scale(1) !important;
    pointer-events: auto;
}

.acw-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    overflow: hidden;
}

#armangroup-chat-widget.active .acw-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.acw-header {
    background: #fff0eb;
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.acw-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 700;
}

.acw-header p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #888;
}

.acw-list {
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.acw-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.acw-item:hover {
    background: #f9f9f9;
}

.acw-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 20px;
    flex-shrink: 0;
    color: white; /* Icons always white */
}

/* Updated Vibrant Colors */
.chat-icon { background: #ff3b30 !important; }
.telegram-icon { background: #229ED9 !important; }
.whatsapp-icon { background: #25D366 !important; }
.instagram-icon {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
}
.facebook-icon { background: #1877F2 !important; }
.tiktok-icon { background: #000000 !important; }

.acw-text {
    display: flex;
    flex-direction: column;
}

.acw-text strong {
    font-size: 16px;
    color: #333;
}

.acw-text span {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.acw-trigger {
    width: 60px;
    height: 60px;
    background-color: #ff3b30; /* Adjust to match "red" in screenshot */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    color: white;
    font-size: 24px;
}

.acw-trigger:hover {
    transform: scale(1.05);
}

.acw-trigger-icon-close {
    display: none;
}

#armangroup-chat-widget.active .acw-trigger-icon-open {
    display: none;
}

#armangroup-chat-widget.active .acw-trigger-icon-close {
    display: block;
}

.acw-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    overflow: hidden;
}

#armangroup-chat-widget.active .acw-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.acw-header {
    background: #fff0eb; /* Light pinkish bg from screenshot */
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.acw-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 700;
}

.acw-header p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #888;
}

.acw-list {
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.acw-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.acw-item:hover {
    background: #f9f9f9;
}

.acw-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%; /* If icons have backgrounds */
    margin-right: 15px;
    font-size: 20px;
    flex-shrink: 0;
}

/* Specific icon styles if needed, or use SVGs in HTML */
.chat-icon { background: #fee2e2; color: #d93025; }
.telegram-icon { background: #e3f2fd; color: #229ED9; }
.whatsapp-icon { background: #e8f5e9; color: #25D366; }
.instagram-icon { background: #fce4ec; color: #C13584; }
.facebook-icon { background: #e3f2fd; color: #1877F2; }
.tiktok-icon { background: #f5f5f5; color: #000; }

.acw-text {
    display: flex;
    flex-direction: column;
}

.acw-text strong {
    font-size: 16px;
    color: #333;
}

.acw-text span {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
