.sales-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.sales-chat-widget--left {
    right: auto;
    left: 24px;
}

.sales-chat-button {
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.sales-chat-button--hidden {
    display: none;
}

.sales-chat-panel {
    width: 320px;
    max-height: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    margin-top: 12px;
    display: none;
    overflow: hidden;
}

.sales-chat-panel--open {
    display: flex;
    flex-direction: column;
}

.sales-chat-header {
    padding: 14px 16px;
    background: #111827;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sales-chat-title {
    font-weight: 600;
    font-size: 14px;
}

.sales-chat-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

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

.sales-chat-message {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.sales-chat-message--user {
    align-items: flex-end;
}

.sales-chat-bubble {
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    max-width: 80%;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.sales-chat-message--user .sales-chat-bubble {
    background: #111827;
    color: #fff;
}

.sales-chat-sources {
    margin-top: 6px;
    font-size: 11px;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sales-chat-sources a {
    color: #2563eb;
    text-decoration: none;
}

.sales-chat-form {
    display: flex;
    gap: 8px;
    padding: 12px 16px 16px;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.sales-chat-form--loading {
    opacity: 0.7;
}

.sales-chat-input {
    flex: 1 1 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
}

.sales-chat-send {
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
}

.sales-chat-counter {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
    text-align: right;
    flex: 1 1 100%;
}

.sales-chat-cta {
    padding: 0 16px 16px;
    display: flex;
    gap: 8px;
}

.sales-chat-cta-button {
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
}

.sales-chat-cta-button.secondary {
    background: #e5e7eb;
    color: #111827;
}

.sales-chat-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #6b7280;
    display: inline-block;
    animation: sales-chat-dot 1.2s infinite ease-in-out;
}

.sales-chat-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.sales-chat-dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes sales-chat-dot {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    40% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.sales-chat-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.sales-chat-lead {
    width: 100%;
    display: grid;
    gap: 6px;
}

.sales-chat-lead input {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 7px 9px;
    font-size: 12px;
}

@media (max-width: 640px) {
    .sales-chat-panel {
        width: 90vw;
        max-height: 70vh;
    }
}
