#tvs-ai-widget {
    position: fixed;
    z-index: 999999;
    bottom: 22px;
    font-family: Inter, Arial, sans-serif;
}

#tvs-ai-widget.tvs-right {
    right: 22px;
}

#tvs-ai-widget.tvs-left {
    left: 22px;
}

.tvs-ai-launcher {
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 18px 45px rgba(0,0,0,.22);
    color: #fff;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.tvs-ai-launcher:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 22px 55px rgba(0,0,0,.28);
}

.tvs-ai-panel {
    width: 360px;
    max-width: calc(100vw - 32px);
    height: 540px;
    max-height: calc(100vh - 110px);
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 26px 80px rgba(0,0,0,.24);
    display: none;
    flex-direction: column;
    margin-bottom: 14px;
    border: 1px solid rgba(15, 23, 42, .08);
}

.tvs-ai-panel.tvs-open {
    display: flex;
}

.tvs-ai-header {
    padding: 18px;
    color: #fff;
}

.tvs-ai-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.tvs-ai-title {
    font-weight: 800;
    font-size: 17px;
    line-height: 1.2;
}

.tvs-ai-subtitle {
    font-size: 12px;
    opacity: .85;
    margin-top: 4px;
}

.tvs-ai-close {
    border: 0;
    background: rgba(255,255,255,.16);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 18px;
}

.tvs-ai-tabs {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.tvs-ai-tab {
    flex: 1;
    border: 0;
    padding: 11px 12px;
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
    font-weight: 800;
    color: #475569;
}

.tvs-ai-tab.tvs-active {
    color: #fff;
}

.tvs-ai-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.tvs-ai-view {
    display: none;
    flex: 1;
    min-height: 0;
}

.tvs-ai-view.tvs-active {
    display: flex;
}

.tvs-call-view {
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 24px;
    text-align: center;
    gap: 18px;
}

.tvs-call-orb {
    width: 108px;
    height: 108px;
    border-radius: 999px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    box-shadow: 0 18px 40px rgba(0,0,0,.16);
}

.tvs-call-status {
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
}

.tvs-call-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.tvs-btn {
    border: 0;
    padding: 12px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
}

.tvs-btn-primary {
    color: #fff;
}

.tvs-btn-light {
    background: #f1f5f9;
    color: #0f172a;
}

.tvs-chat-view {
    flex-direction: column;
    min-height: 0;
}

.tvs-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #fff;
}

.tvs-msg {
    max-width: 82%;
    padding: 11px 13px;
    margin-bottom: 10px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.45;
}

.tvs-msg-bot {
    background: #f1f5f9;
    color: #0f172a;
    border-bottom-left-radius: 6px;
}

.tvs-msg-user {
    margin-left: auto;
    color: #fff;
    border-bottom-right-radius: 6px;
}

.tvs-chat-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.tvs-chat-input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 12px 14px;
    outline: none;
}

.tvs-chat-send {
    border: 0;
    color: #fff;
    border-radius: 999px;
    padding: 0 16px;
    cursor: pointer;
    font-weight: 900;
}

@media (max-width: 480px) {
    #tvs-ai-widget {
        left: 12px !important;
        right: 12px !important;
        bottom: 12px;
    }

    .tvs-ai-panel {
        width: 100%;
        height: calc(100vh - 95px);
        border-radius: 20px;
    }

    .tvs-ai-launcher {
        margin-left: auto;
    }
}
