#roo-chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--rc-orange);
    color: #fff;
    border: none;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    z-index: 9998;
}
#roo-chat-toggle:hover { transform: scale(1.05); }

#roo-chat-panel {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 340px;
    max-width: calc(100vw - 40px);
    height: 460px;
    max-height: calc(100vh - 140px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 9999;
}
#roo-chat-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

#roo-chat-header {
    background: var(--rc-slate);
    color: #fff;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}
#roo-chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

#roo-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--rc-cream);
}
.roo-msg {
    max-width: 85%;
    padding: 9px 13px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.4;
}
.roo-msg-roo { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; }
.roo-msg-user { background: var(--rc-orange); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }

.roo-results { display: flex; flex-direction: column; gap: 6px; align-self: flex-start; max-width: 90%; }
.roo-results a {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    text-decoration: none;
    color: var(--rc-slate);
    font-weight: 600;
}
.roo-results a:hover { background: var(--rc-cream); }

#roo-chat-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 14px 10px;
    background: var(--rc-cream);
}
#roo-chat-quick-replies button {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 6px 12px;
    font-size: 11px;
    cursor: pointer;
    color: var(--rc-slate);
}
#roo-chat-quick-replies button:hover { border-color: var(--rc-orange); color: var(--rc-orange); }

#roo-chat-form {
    display: flex;
    border-top: 1px solid #eee;
    padding: 10px;
    gap: 8px;
}
#roo-chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 9px 14px;
    font-size: 13px;
}
#roo-chat-form button[type="submit"] {
    background: var(--rc-orange);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    font-size: 16px;
}

@media (max-width: 480px) {
    #roo-chat-panel { width: calc(100vw - 24px); right: 12px; bottom: 82px; height: 70vh; }
    #roo-chat-toggle { right: 16px; bottom: 16px; }
}
