#rdmc-chat-toggle {
    position: fixed;
    bottom: 18px;
    right: 126px;
    z-index: 10000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #2980b9;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease-in-out;
}

#rdmc-chat-toggle:hover {
    transform: scale(1.1);
}

html[data-theme="dark"] #rdmc-chat-toggle {
    background: #1d4ed8;
    border-color: rgba(255, 255, 255, 0.2);
}

#rdmc-chat-panel {
    position: fixed;
    bottom: 72px;
    right: 126px;
    z-index: 10001;
    width: 330px;
    max-width: calc(100vw - 36px);
    height: 420px;
    max-height: calc(100vh - 110px);
    display: none;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

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

html[data-theme="dark"] #rdmc-chat-panel {
    background: #22262a;
    border-color: #3c4248;
}

#rdmc-chat-header {
    padding: 10px 14px;
    background: #2980b9;
    color: #fff;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

html[data-theme="dark"] #rdmc-chat-header {
    background: #1d4ed8;
}

#rdmc-chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

#rdmc-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rdmc-chat-msg {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
    word-wrap: break-word;
}

.rdmc-chat-msg--bot {
    align-self: flex-start;
    background: #f0f2f5;
    color: #333;
    border-bottom-left-radius: 4px;
}

.rdmc-chat-msg--user {
    align-self: flex-end;
    background: #2980b9;
    color: #fff;
    border-bottom-right-radius: 4px;
}

html[data-theme="dark"] .rdmc-chat-msg--bot {
    background: #2d3339;
    color: #d6d8da;
}

html[data-theme="dark"] .rdmc-chat-msg--user {
    background: #1d4ed8;
}

.rdmc-chat-msg--bot ul {
    margin: 6px 0;
    padding-left: 18px;
}

.rdmc-chat-msg--bot li {
    margin-bottom: 4px;
}

.rdmc-chat-msg--bot a {
    display: block;
    margin-top: 6px;
    color: #2980b9;
    font-weight: 600;
    text-decoration: none;
}

.rdmc-chat-msg--bot a:hover {
    text-decoration: underline;
}

html[data-theme="dark"] .rdmc-chat-msg--bot a {
    color: #6cb2f7;
}

.rdmc-chat-section {
    margin-bottom: 8px;
}

.rdmc-chat-section:last-child {
    margin-bottom: 0;
}

.rdmc-chat-section p {
    margin: 4px 0;
}

.rdmc-chat-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(41, 128, 185, 0.15);
    color: #2980b9;
}

html[data-theme="dark"] .rdmc-chat-badge {
    background: rgba(108, 178, 247, 0.18);
    color: #6cb2f7;
}

#rdmc-chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="dark"] #rdmc-chat-suggestions {
    border-top-color: #3c4248;
}

.rdmc-chat-chip {
    border: 1px solid rgba(41, 128, 185, 0.45);
    background: transparent;
    color: #2980b9;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.rdmc-chat-chip:hover {
    background: rgba(41, 128, 185, 0.12);
}

html[data-theme="dark"] .rdmc-chat-chip {
    border-color: rgba(108, 178, 247, 0.5);
    color: #6cb2f7;
}

#rdmc-chat-form {
    display: flex;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] #rdmc-chat-form {
    border-top-color: #3c4248;
}

#rdmc-chat-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 11px 14px;
    font-size: 13px;
    background: transparent;
    color: inherit;
}

html[data-theme="dark"] #rdmc-chat-input {
    color: #d6d8da;
}

#rdmc-chat-form button[type="submit"] {
    border: none;
    background: none;
    color: #2980b9;
    font-size: 17px;
    padding: 0 14px;
    cursor: pointer;
}

html[data-theme="dark"] #rdmc-chat-form button[type="submit"] {
    color: #6cb2f7;
}

.rdmc-chat-feedback {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}
.rdmc-chat-thumb {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13px;
    opacity: 0.7;
    padding: 0;
}
.rdmc-chat-thumb:hover {
    opacity: 1;
    transform: scale(1.15);
}
@media (max-width: 480px) {
    #rdmc-chat-panel {
        right: 18px;
        bottom: 72px;
    }
}
