.wa-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.wa-widget-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 340px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eaeaea;
    transform-origin: bottom right;
}

/* Transitions */
.wa-transition-enter { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.wa-transition-enter-start { opacity: 0; transform: translateY(20px) scale(0.95); }
.wa-transition-enter-end { opacity: 1; transform: translateY(0) scale(1); }
.wa-transition-leave { transition: all 0.2s cubic-bezier(0.4, 0, 1, 1); }
.wa-transition-leave-start { opacity: 1; transform: translateY(0) scale(1); }
.wa-transition-leave-end { opacity: 0; transform: translateY(20px) scale(0.95); }

.wa-widget-header {
    background-color: #25d366;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
}

.wa-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-avatar {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-header-text h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.wa-header-text p {
    margin: 4px 0 0 0;
    font-size: 11px;
    opacity: 0.9;
}

.wa-close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.wa-close-btn:hover { background: rgba(255,255,255,0.2); }

.wa-widget-body {
    background-color: #efeae2;
    padding: 20px;
    position: relative;
    min-height: 140px;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-size: cover;
    background-position: center;
}

.wa-message-bubble {
    background: #ffffff;
    color: #333333;
    font-size: 14px;
    padding: 12px;
    border-radius: 12px;
    border-top-left-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    display: inline-block;
    max-width: 85%;
    position: relative;
    border: 1px solid #f0f0f0;
}

.wa-message-time {
    font-size: 10px;
    color: #999;
    display: block;
    text-align: right;
    margin-top: 6px;
}

.wa-message-tail {
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-top-color: #ffffff;
    border-right-color: #ffffff;
}

.wa-widget-options {
    background: #f9f9f9;
    padding: 16px;
    border-top: 1px solid #eaeaea;
    max-height: 240px;
    overflow-y: auto;
}

.wa-options-title {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    margin: 0 0 12px 0;
}

.wa-option-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: #ffffff;
    color: #444;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    margin-bottom: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.wa-option-btn:last-child { margin-bottom: 0; }
.wa-option-btn:hover {
    border-color: #25d366;
    color: #25d366;
    background: #f0fbf4;
}

.wa-primary-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    background: #25d366;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}
.wa-primary-btn:hover { background: #20ba56; }

.wa-toggler-btn {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 50;
    padding: 0;
}

.wa-toggler-btn:focus { outline: none; }

.wa-toggler-closed {
    animation: pulse-wa 2s infinite;
}
.wa-toggler-closed:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #20ba56;
}

.wa-toggler-open {
    transform: scale(0.9);
    background-color: #20ba56;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.wa-icon-wa {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wa-icon-close {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
    .wa-widget-container { bottom: 20px; right: 20px; }
    .wa-widget-window { width: 300px; bottom: 70px; right: 0; }
    .wa-toggler-btn { width: 50px; height: 50px; }
    .wa-icon-wa { width: 26px; height: 26px; }
}
