.qkits-ai-assistant {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2147483000;
    font-family: inherit;
    font-size: 14px;
}

.qkits-ai-assistant-toggle {
    background: #007bdb;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.qkits-ai-assistant-panel {
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: 340px;
    max-height: 70vh;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 2147483001;
}

.qkits-ai-assistant-panel.is-open {
    display: flex;
}

.qkits-ai-assistant-header {
    padding: 10px 12px;
    background: #007bdb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qkits-ai-assistant-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.qkits-ai-assistant-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 8px;
    overflow: hidden;
    background: #f5f5f5;
    gap: 6px;
}

.qkits-ai-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 6px;
}

.qkits-ai-products {
    flex: 0 0 auto;
    max-height: 180px;
    overflow-y: auto;
    border-top: 1px solid #e0e0e0;
    padding-top: 6px;
}

.qkits-ai-assistant-footer {
    padding: 8px;
    border-top: 1px solid #e0e0e0;
    background: #ffffff;
    display: flex;
    gap: 6px;
}

.qkits-ai-input {
    flex: 1 1 auto;
    border-radius: 4px;
    border: 1px solid #cccccc;
    padding: 6px 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.qkits-ai-send {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 4px;
    border: none;
    background: #007bdb;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

.qkits-ai-send:hover {
    background: #005fa8;
}

.qkits-ai-msg {
    margin-bottom: 6px;
    padding: 6px 8px;
    border-radius: 6px;
    max-width: 90%;
    clear: both;
}

.qkits-ai-msg-user {
    background: #d1ecf1;
    margin-left: auto;
    text-align: right;
}

.qkits-ai-msg-bot {
    background: #ffffff;
    margin-right: auto;
    text-align: left;
}

.qkits-ai-product-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qkits-ai-product-item {
    background: #ffffff;
    border-radius: 6px;
    padding: 6px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    border: 1px solid #e0e0e0;
}

.qkits-ai-product-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    width: 100%;
    gap: 6px;
}

.qkits-ai-product-thumb {
    flex: 0 0 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 4px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qkits-ai-product-thumb img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.qkits-ai-product-main {
    flex: 1 1 auto;
    min-width: 0;
}

.qkits-ai-product-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.qkits-ai-product-sku {
    font-size: 11px;
    color: #666666;
    margin-bottom: 2px;
}

.qkits-ai-product-price {
    font-size: 13px;
    font-weight: 600;
    color: #007bdb;
}
