:root {
    --v7-primary: #0073aa;
    --v7-bubble: #0073aa;
    --v7-text: #ffffff
}

#v7-chatbot-container {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif
}

#v7-chatbot-container.bottom-right {
    bottom: 20px;
    right: 20px
}

#v7-chatbot-container.bottom-left {
    bottom: 20px;
    left: 20px
}

#v7-chatbot-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--v7-bubble);
    color: var(--v7-text);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, box-shadow .2s
}

#v7-chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .2)
}

#v7-chatbot-window {
    position: relative;
    bottom: 0;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: auto;
    min-height: 480px;
    max-height: calc(100vh - 100px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
    display: flex;
    flex-direction: column;
    overflow: hidden
}

#v7-chatbot-container.bottom-left #v7-chatbot-window {
    left: 0
}

#v7-chatbot-footer {
    padding: 10px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #e5e5e5;
    text-align: center;
    font-size: 12px;
    color: #555;
    letter-spacing: 0.5px
}

#v7-chatbot-footer span {
    display: inline-flex;
    align-items: center;
    gap: 4px
}

#v7-chatbot-footer a {
    color: var(--v7-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    background: linear-gradient(90deg, var(--v7-primary), #00a0d2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    transition: all 0.3s ease
}

#v7-chatbot-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--v7-primary), #00a0d2);
    transition: width 0.3s ease
}

#v7-chatbot-footer a:hover::after {
    width: 100%
}

#v7-chatbot-footer a:hover {
    transform: scale(1.05);
    display: inline-block
}

#v7-chatbot-container.bottom-right #v7-chatbot-window {
    right: 0
}

#v7-chatbot-header {
    background: var(--v7-primary);
    color: var(--v7-text);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

#v7-chatbot-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600
}

#v7-chatbot-close {
    background: transparent;
    border: none;
    color: var(--v7-text);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .8;
    transition: opacity .2s
}

#v7-chatbot-close:hover {
    opacity: 1
}

#v7-chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f5f5f5;
    min-height: 300px
}

.v7-message {
    margin-bottom: 16px;
    display: flex;
    animation: v7-slide-up .3s ease-out
}

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

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

.v7-message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word
}

.v7-bot-message .v7-message-content {
    background: #fff;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .05)
}

.v7-user-message {
    justify-content: flex-end
}

.v7-user-message .v7-message-content {
    background: var(--v7-primary);
    color: var(--v7-text);
    border-bottom-right-radius: 4px
}

.v7-typing {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 12px;
    width: fit-content
}

.v7-typing span {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    animation: v7-bounce 1.4s infinite ease-in-out both
}

.v7-typing span:nth-child(1) {
    animation-delay: -.32s
}

.v7-typing span:nth-child(2) {
    animation-delay: -.16s
}

@keyframes v7-bounce {

    0%,
    80%,
    100% {
        transform: scale(0)
    }

    40% {
        transform: scale(1)
    }
}

#v7-chatbot-input-container {
    display: flex;
    padding: 16px;
    background: #fff;
    border-top: 1px solid #e5e5e5
}

#v7-chatbot-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s
}

#v7-chatbot-input:focus {
    border-color: var(--v7-primary)
}

#v7-chatbot-send {
    background: var(--v7-primary);
    color: var(--v7-text);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .2s
}

#v7-chatbot-send:hover:not(:disabled) {
    opacity: .9
}

#v7-chatbot-send:disabled {
    opacity: .5;
    cursor: not-allowed
}

@media(max-width:480px) {
    #v7-chatbot-window {
        width: calc(100vw - 40px);
        height: calc(100vh - 140px)
    }

    #v7-chatbot-container.bottom-right,
    #v7-chatbot-container.bottom-left {
        left: 20px;
        right: 20px
    }

    #v7-chatbot-container.bottom-right #v7-chatbot-window,
    #v7-chatbot-container.bottom-left #v7-chatbot-window {
        left: 0;
        right: 0
    }
}