.store-chat-launcher {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 1050;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: none;
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    transition: transform 0.2s ease;
}

.store-chat-launcher:hover {
    transform: scale(1.05);
}

.store-chat-panel {
    position: fixed;
    bottom: 5.5rem;
    left: 1.25rem;
    z-index: 1050;
    width: min(380px, calc(100vw - 2rem));
    max-height: min(520px, calc(100vh - 7rem));
    background: var(--bs-body-bg, #1a1d24);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.store-chat-panel.is-open {
    display: flex;
}

.store-chat-header {
    padding: 0.75rem 1rem;
    background: rgba(13, 110, 253, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.store-chat-header h6 {
    margin: 0;
    font-size: 0.95rem;
}

.store-chat-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
}

.store-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.store-chat-bubble {
    max-width: 88%;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    font-size: 0.875rem;
    line-height: 1.5;
    word-break: break-word;
}

.store-chat-bubble.user {
    align-self: flex-end;
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    border-bottom-left-radius: 4px;
}

.store-chat-bubble.assistant {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    border-bottom-right-radius: 4px;
}

.store-chat-products {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.store-chat-products a {
    font-size: 0.8rem;
    text-decoration: none;
}

.store-chat-form {
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 0.5rem;
}

.store-chat-form input {
    flex: 1;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.2);
    color: inherit;
    padding: 0.5rem 0.65rem;
    font-size: 0.875rem;
}

.store-chat-form button {
    border-radius: 8px;
    border: none;
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    padding: 0.5rem 0.85rem;
    cursor: pointer;
}

.store-chat-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.store-chat-typing {
    font-size: 0.8rem;
    opacity: 0.7;
    padding: 0 1rem 0.5rem;
}
