#chatweb-ai-gptpro {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    font-family: var(--chatweb-font, 'Inter, sans-serif');
    font-size: var(--chatweb-font-size, 15px);
}

#chatweb-ai-gptpro.chatweb-right {
    left: auto;
    right: 20px;
}

#chatweb-ai-gptpro * {
    box-sizing: border-box;
}

#chatweb-ai-gptpro .chatweb-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--chatweb-primary, #1f2937);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#chatweb-ai-gptpro .chatweb-toggle::after {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    animation: chatweb-pulse 2.4s infinite;
    top: -5%;
    left: -5%;
}

#chatweb-ai-gptpro .chatweb-toggle img {
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 1;
}

#chatweb-ai-gptpro .chatweb-window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: var(--chatweb-width, 340px);
    height: var(--chatweb-height, 480px);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    display: none;
    overflow: hidden;
    max-width: calc(100vw - 36px);
    max-height: calc(100vh - 140px);
}

#chatweb-ai-gptpro.chatweb-right .chatweb-window {
    left: auto;
    right: 0;
}

#chatweb-ai-gptpro .chatweb-header {
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#chatweb-ai-gptpro .chatweb-header .chatweb-sub {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

#chatweb-ai-gptpro .chatweb-close {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: none;
    font-size: 22px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

#chatweb-ai-gptpro .chatweb-body {
    padding: 14px;
    background: #f9fafb;
    height: calc(100% - 58px);
}

#chatweb-ai-gptpro .chatweb-messages {
    height: calc(100% - 140px);
    overflow-y: auto;
    padding: 6px;
    margin-bottom: 10px;
}

#chatweb-ai-gptpro .chatweb-msg {
    margin-bottom: 10px;
    display: flex;
}

#chatweb-ai-gptpro .chatweb-msg.bot {
    justify-content: flex-start;
}

#chatweb-ai-gptpro .chatweb-msg.user {
    justify-content: flex-end;
}

#chatweb-ai-gptpro .chatweb-msg.typing {
    opacity: 0.9;
}

#chatweb-ai-gptpro .chatweb-bubble {
    max-width: 80%;
    padding: 10px 12px;
    border-radius: 14px;
    color: #fff;
    white-space: pre-wrap;
    line-height: 1.5;
}

#chatweb-ai-gptpro .chatweb-bubble.user {
    background: var(--chatweb-user, #2563eb);
}

#chatweb-ai-gptpro .chatweb-bubble.bot {
    background: var(--chatweb-bot, #111827);
}

#chatweb-ai-gptpro .chatweb-msg.typing .chatweb-bubble {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    opacity: 0.85;
}

#chatweb-ai-gptpro .chatweb-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: chatweb-typing 1.2s infinite ease-in-out;
}

#chatweb-ai-gptpro .chatweb-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

#chatweb-ai-gptpro .chatweb-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

#chatweb-ai-gptpro .chatweb-form textarea {
    width: 100%;
    resize: none;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 10px;
    font-size: inherit;
}

#chatweb-ai-gptpro .chatweb-actions {
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

#chatweb-ai-gptpro .chatweb-btn {
    background: var(--chatweb-primary, #1f2937);
    color: #fff;
    border: none;
    padding: 9px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

#chatweb-ai-gptpro .chatweb-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

#chatweb-ai-gptpro .chatweb-clear {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 9px 14px;
    border-radius: 10px;
    cursor: pointer;
}

#chatweb-ai-gptpro .chatweb-prechat label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #111827;
}

#chatweb-ai-gptpro .chatweb-prechat input,
#chatweb-ai-gptpro .chatweb-prechat textarea {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    margin-top: 4px;
    font-size: inherit;
}

#chatweb-ai-gptpro .chatweb-prechat .chatweb-btn {
    width: 100%;
}

#chatweb-ai-gptpro .chatweb-prechat-intro {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    padding: 10px 12px;
    border-radius: 12px;
    color: #111827;
    margin-bottom: 10px;
    font-size: 13px;
}

#chatweb-ai-gptpro .chatweb-extra-label {
    font-weight: 600;
    color: #111827;
}

#chatweb-ai-gptpro .chatweb-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    justify-content: flex-start;
}

#chatweb-ai-gptpro .chatweb-option {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 8px 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

@keyframes chatweb-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

@keyframes chatweb-typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

@media (max-width: 640px) {
    #chatweb-ai-gptpro {
        left: 12px;
        right: 12px;
        bottom: 14px;
    }

    #chatweb-ai-gptpro.chatweb-right {
        right: 12px;
        left: 12px;
    }

    #chatweb-ai-gptpro .chatweb-toggle {
        width: 56px;
        height: 56px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    }

    #chatweb-ai-gptpro .chatweb-window {
        position: fixed;
        inset: auto 12px 78px 12px;
        width: calc(100vw - 24px);
        height: calc(100vh - 140px);
        max-width: none;
        max-height: none;
        border-radius: 16px;
    }

    #chatweb-ai-gptpro .chatweb-body {
        height: calc(100% - 58px);
    }

    #chatweb-ai-gptpro .chatweb-messages {
        height: calc(100% - 146px);
    }
}