/* Base Styles */
.joinchat, .ht-ctc-chat, [class*="whatsapp-button"], [id*="whatsapp"] {
    display: none !important;
}

.ccw-floating-wrapper {
    position: fixed;
    bottom: 30px;
    right: 25px;
    z-index: 99999999 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Floating Toggle Button */
.ccw-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0084ff;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0,0,0,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s ease, background-color .3s ease;
    outline: 0;
    position: relative;
    margin-left: auto;
}

.ccw-toggle-btn:hover {
    transform: scale(1.08);
    background-color: #006bce;
}

.ccw-toggle-btn svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

.ccw-toggle-btn .ccw-close-icon {
    display: none;
    font-size: 26px;
    font-weight: 700;
}

.ccw-floating-wrapper.active .ccw-chat-icon { display: none; }
.ccw-floating-wrapper.active .ccw-close-icon { display: block; }

/* Multi-App Dropdown Menu */
.ccw-dropdown-menu {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 210px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,.22);
    padding: 8px 0;
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity .25s ease, transform .25s ease;
    overflow: hidden;
}

.ccw-floating-wrapper.active .ccw-dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.ccw-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background .2s ease;
}

.ccw-item:hover {
    background-color: #f4f6f8;
    color: #000;
}

.ccw-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.ccw-item-icon svg { width: 18px; height: 18px; fill: #fff; }

.ccw-whatsapp { background-color: #25d366; }
.ccw-telegram { background-color: #0088cc; }
.ccw-botim { background-color: #00b900; }
.ccw-viber { background-color: #7360f2; }
.ccw-zalo { background-color: #0068ff; }

/* Interactive WhatsApp Drawer (Method 1) */
.ccw-wa-drawer {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(15px);
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
}

.ccw-wa-drawer.ccw-open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.ccw-wa-header {
    background: #075e54;
    color: #fff;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ccw-wa-avatar svg { width: 36px; height: 36px; }

.ccw-wa-info { display: flex; flex-direction: column; flex-grow: 1; }
.ccw-wa-info strong { font-size: 15px; font-weight: 600; }
.ccw-wa-info span { font-size: 11px; opacity: 0.85; }

.ccw-wa-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
}
.ccw-wa-close:hover { opacity: 1; }

.ccw-wa-body {
    background: #e5ddd5;
    padding: 16px;
    min-height: 120px;
    display: flex;
    align-items: flex-start;
}

.ccw-wa-bubble {
    background: #fff;
    padding: 10px 14px;
    border-radius: 0 12px 12px 12px;
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,.15);
}

.ccw-wa-footer {
    padding: 12px;
    background: #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ccw-wa-footer textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    resize: none;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

.ccw-wa-footer button {
    background: #25d366;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s ease;
}

.ccw-wa-footer button:hover { background: #20ba5a; }
.ccw-wa-footer button svg { width: 16px; height: 16px; }