:root {
    --wa-green: #25d366;
    --wa-green-dark: #128c7e;
    --wa-light: #ffffff;
    --wa-gray: #f0f2f5;
    --wa-text: #111b21;
    --wa-text-secondary: #667781;
    --wa-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#wa-widget-container {
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Minimized State */
.wa-button {
    background-color: var(--wa-green);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: var(--wa-shadow);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    font-weight: 600;
    font-size: 14px;
}

.wa-button:hover {
    transform: scale(1.05);
    background-color: var(--wa-green-dark);
}

.wa-button svg {
    width: 24px;
    height: 24px;
}

/* Chat Window */
.wa-chat-window {
    width: 350px;
    max-width: 90vw;
    background: var(--wa-light);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: wa-slide-up 0.3s ease-out;
}

@keyframes wa-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wa-chat-window.active {
    display: flex;
}

.wa-chat-header {
    background: var(--wa-green);
    color: white;
    padding: 20px;
    position: relative;
}

.wa-chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.wa-chat-header p {
    margin: 5px 0 0;
    font-size: 13px;
    opacity: 0.9;
}

.wa-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s;
}

.wa-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.wa-chat-body {
    padding: 20px;
    background-color: #e5ddd5;
    /* Classic WA background color if desired, or use light gray */
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    flex-grow: 1;
    max-height: 400px;
    overflow-y: auto;
}

.wa-message-bubble {
    background: white;
    padding: 10px 15px;
    border-radius: 0 10px 10px 10px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 85%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wa-quick-replies {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.wa-quick-btn {
    background: white;
    border: 1px solid #d1d7db;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    color: #008069;
    font-weight: 500;
}

.wa-quick-btn:hover {
    background: #f0f2f5;
    border-color: #bac0c4;
}

.wa-chat-footer {
    padding: 15px;
    background: var(--wa-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-input-container {
    flex-grow: 1;
    background: white;
    border-radius: 20px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
}

.wa-input-container textarea {
    width: 100%;
    border: none;
    resize: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    padding: 5px 0;
    max-height: 100px;
}

.wa-send-btn {
    background: var(--wa-green);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.wa-send-btn:hover {
    background: var(--wa-green-dark);
}

.wa-send-btn svg {
    width: 20px;
    height: 20px;
    margin-left: 2px;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .wa-chat-window {
        width: calc(100vw - 40px);
        right: 20px;
    }

    .wa-close-btn {
        left: auto;
        right: 10px;
        top: 10px;
    }
}