.chat-widget-container {
    position: fixed;
    z-index: 9999;
    display: flex;
    gap: 15px;
}

/* Directions */
.chat-widget-container.cw-dir-vertical {
    flex-direction: column;
}
.chat-widget-container.cw-dir-horizontal {
    flex-direction: row;
}

/* Positioning & Alignment */
.chat-widget-container.cw-bottom-right {
    align-items: flex-end;
}
.chat-widget-container.cw-bottom-right .cw-options {
    align-items: flex-end;
}
.chat-widget-container.cw-bottom-right .cw-btn {
    flex-direction: row-reverse;
}
.chat-widget-container.cw-bottom-right .cw-btn-text {
    padding-left: 20px;
    padding-right: 0;
    transform: translateX(10px);
}

.chat-widget-container.cw-bottom-left {
    align-items: flex-start;
}
.chat-widget-container.cw-bottom-left .cw-options {
    align-items: flex-start;
}
.chat-widget-container.cw-bottom-left .cw-btn {
    flex-direction: row;
}
.chat-widget-container.cw-bottom-left.cw-dir-horizontal {
    flex-direction: row-reverse;
}

/* Options Container */
.cw-options {
    display: flex;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cw-dir-vertical .cw-options {
    flex-direction: column;
    transform: translateY(20px) scale(0.9);
    transform-origin: bottom center;
}

.cw-dir-horizontal .cw-options {
    flex-direction: row;
    transform: translateX(20px) scale(0.9);
    transform-origin: center right;
}

.cw-bottom-left.cw-dir-horizontal .cw-options {
    transform: translateX(-20px) scale(0.9);
    transform-origin: center left;
}

.chat-widget-container.active .cw-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Buttons */
.cw-main-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    border: none;
    outline: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cw-btn {
    height: 60px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    border: none;
    outline: none;
    max-width: 60px;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.4s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.cw-btn:hover, .cw-main-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(0,0,0,0.3);
    color: white;
}

.cw-btn:hover {
    max-width: 300px;
}

/* Specific Colors from image */
.cw-messenger { background-color: #0084FF; }
.cw-phone { background-color: #00E676; }
.cw-email { background-color: #FF4057; }
.cw-zalo { background-color: #0068FF; }
.cw-main-btn { background-color: #9C3B27; }

/* Icons */
.cw-btn i, .cw-btn .cw-svg-icon {
    font-size: 24px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cw-btn-text {
    font-size: 15px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding-right: 20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0.05s;
}

.cw-btn:hover .cw-btn-text {
    opacity: 1;
    transform: translateX(0);
}

.cw-main-btn i {
    font-size: 32px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: absolute;
}

/* Icon Toggle Animation */
.cw-icon-chat {
    opacity: 1;
    transform: rotate(0) scale(1);
}
.cw-icon-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.chat-widget-container.active .cw-icon-chat {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}
.chat-widget-container.active .cw-icon-close {
    opacity: 1;
    transform: rotate(0) scale(1);
}
