#site-chatbot-root {
    --sc-accent: #DF7A18;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.sc-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--sc-accent);
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease;
}
.sc-bubble:hover { transform: scale(1.06); }
.sc-bubble svg { width: 28px; height: 28px; fill: #fff; display: block; }

.sc-window {
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 340px;
    max-width: calc(100vw - 40px);
    height: 460px;
    max-height: 70vh;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.sc-window.sc-open { display: flex; }

.sc-header {
    background: var(--sc-accent);
    color: #fff;
    padding: 14px 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}
.sc-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.sc-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: #f7f7f8;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sc-msg {
    max-width: 85%;
    padding: 10px 13px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.sc-msg-bot {
    background: #fff;
    border: 1px solid #e5e5e5;
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}
.sc-msg-user {
    background: var(--sc-accent);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}

.sc-sources {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sc-sources a {
    font-size: 12px;
    color: var(--sc-accent);
    text-decoration: none;
    border: 1px solid #eee;
    padding: 5px 8px;
    border-radius: 8px;
    background: #fff;
}
.sc-sources a:hover { text-decoration: underline; }

.sc-typing {
    align-self: flex-start;
    font-size: 12px;
    color: #999;
    padding: 0 4px;
}

.sc-contact-row {
    padding: 8px 14px;
    background: #fff;
    border-top: 1px solid #eee;
    text-align: center;
}
.sc-contact-row a {
    display: inline-block;
    color: var(--sc-accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border: 1px solid var(--sc-accent);
    border-radius: 15px;
    transition: all 0.2s ease;
}
.sc-contact-row a:hover {
    background: var(--sc-accent);
    color: #fff;
}

.sc-input-row {
    display: flex;
    border-top: 1px solid #eee;
    padding: 8px;
    gap: 8px;
    background: #fff;
}
.sc-input-row input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 9px 14px;
    font-size: 13.5px;
    outline: none;
}
.sc-input-row input:focus { border-color: var(--sc-accent); }
.sc-input-row button {
    background: var(--sc-accent);
    border: none;
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sc-input-row button svg { width: 16px; height: 16px; fill: #fff; display: block; }

@media (max-width: 480px) {
    .sc-window {
        width: calc(100vw - 24px);
        right: -8px;
    }
}
