/* Main Container */
.wc-ga-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Float Trigger Button */
.wc-ga-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wc-ga-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6);
}

.wc-ga-trigger span {
    font-size: 30px;
    width: 30px;
    height: 30px;
}

/* Chat Window */
.wc-ga-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.wc-ga-chat-window.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

/* Header */
.wc-ga-header {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
    padding: 15px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wc-ga-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

#wc-ga-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
}

#wc-ga-close:hover {
    opacity: 1;
}

/* Messages Area */
.wc-ga-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wc-ga-msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
    animation: fadeIn 0.3s ease forwards;
}

.wc-ga-msg.assistant {
    background: #f1f3f5;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.wc-ga-msg.user {
    background: #2ecc71;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

/* Options Area */
.wc-ga-options {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wc-ga-start-btn,
.wc-ga-option-btn {
    background: white;
    border: 1px solid #2ecc71;
    color: #2ecc71;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.wc-ga-start-btn:hover,
.wc-ga-option-btn:hover {
    background: #2ecc71;
    color: white;
}

/* Inputs and Forms */
.wc-ga-input-wrapper {
    display: flex;
    width: 100%;
    gap: 10px;
}

#wc-ga-text-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

#wc-ga-text-input:focus {
    border-color: #2ecc71;
}

#wc-ga-submit-text {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}

#wc-ga-submit-text:hover {
    background: #27ae60;
}

/* Typing Indicator */
.wc-ga-msg.typing {
    background: transparent;
    color: #999;
    font-weight: bold;
    font-size: 20px;
    letter-spacing: 2px;
    padding: 0 16px;
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

/* Product Cards */
.wc-ga-product-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    margin-bottom: 10px;
}

.wc-ga-product-card img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 8px;
    height: 120px;
    object-fit: cover;
}

.wc-ga-product-card h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #333;
}

.wc-ga-product-card .price {
    color: #2ecc71;
    font-weight: bold;
    margin-bottom: 10px;
}

.wc-ga-product-card .buy-now {
    background: #333;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.wc-ga-product-card .buy-now:hover {
    background: #000;
}

/* Links */
.wc-ga-wa-btn {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    border: none;
    cursor: pointer;
}

.wc-ga-wa-btn:hover {
    background: #1ebe5d;
    color: white;
}

.wc-ga-text-link {
    color: #666;
    font-size: 12px;
    text-decoration: underline;
}

.wc-ga-text-link:hover {
    color: #333;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Responsive */
@media (max-width: 480px) {
    .wc-ga-chat-window {
        width: 100vw;
        height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
        position: fixed;
    }
}