#sk-chat-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--cta-color, #D90429);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    font-size: 24px;
    z-index: 2000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sk-chat-panel {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 340px;
    max-width: calc(100vw - 32px);
    height: 460px;
    max-height: calc(100vh - 140px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 2001;
}

#sk-chat-panel.open { display: flex; }

#sk-chat-header {
    background: var(--cta-color, #D90429);
    color: #fff;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

#sk-chat-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

#sk-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #f7f7f8;
}

.sk-chat-msg {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
}

.sk-chat-msg.user {
    background: var(--cta-color, #D90429);
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.sk-chat-msg a {
    color: var(--cta-color, #D90429);
    text-decoration: underline;
    word-break: break-word;
}

.sk-chat-msg.user a {
    color: #fff;
}

.sk-chat-msg.bot, .sk-chat-msg.agent {
    background: #fff;
    border: 1px solid #e3e3e3;
    color: #222;
    margin-right: auto;
    border-bottom-left-radius: 2px;
}

.sk-typing-wrap {
    padding: 6px 14px;
}

.sk-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    padding: 8px 12px;
}

.sk-typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #aaa;
    display: inline-block;
    animation: sk-typing-bounce 1.2s infinite ease-in-out;
}

.sk-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.sk-typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes sk-typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

#sk-chat-quick-actions {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
}

#sk-chat-quick-actions button {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
}

#sk-chat-input-row {
    display: flex;
    gap: 6px;
    padding: 10px;
    border-top: 1px solid #eee;
}

#sk-chat-input-row input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
}

#sk-chat-input-row button {
    background: var(--cta-color, #D90429);
    color: #fff;
    border: none;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    cursor: pointer;
}

#sk-chat-lead-form {
    display: none;
    padding: 12px;
    border-top: 1px solid #eee;
    background: #fff;
}

#sk-chat-lead-form.open { display: block; }

#sk-chat-lead-form input {
    width: 100%;
    margin-bottom: 6px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
}

@media (max-width: 420px) {
    #sk-chat-panel {
        right: 16px;
        bottom: 88px;
        width: calc(100vw - 32px);
    }
    #sk-chat-bubble {
        right: 16px;
        bottom: 16px;
    }
}
