/* Robertsoft master page: header logo, footer Admin link, "Questions?" help bot */
.rs-logo-hdr { width: 236px; max-width: none; height: auto; max-height: none; object-fit: contain; }
.rs-admin-link i { margin-right: 3px; }

/* ---- help bot ---- */
.rsb-btn { position: fixed; right: 20px; bottom: 20px; z-index: 2500; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 999px; padding: 13px 20px 13px 16px; background: #48bf4f; color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.30); cursor: pointer; }
.rsb-btn i { font-size: 19px; line-height: 1; }
.rsb-btn:hover { background: #38a83e; }
.rsb-panel { position: fixed; right: 20px; bottom: 20px; z-index: 2600; width: 370px; max-width: calc(100vw - 24px); height: 540px; max-height: calc(100vh - 40px); background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.30); display: none; flex-direction: column; overflow: hidden; border: 1px solid #e5e7eb; font-family: inherit; }
.rsb-panel.open { display: flex; }
.rsb-head { background: #111111; color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; border-bottom: 3px solid #48bf4f; }
.rsb-head > i { font-size: 22px; color: #48bf4f; }
.rsb-head b { font-size: 16px; display: block; }
.rsb-head small { opacity: .8; font-size: 12px; }
.rsb-head .x { margin-left: auto; color: #fff; font-size: 24px; line-height: 1; text-decoration: none; opacity: .9; }
.rsb-head .x:hover { color: #ffff00; text-decoration: none; }
.rsb-msgs { flex: 1; overflow-y: auto; padding: 14px; background: #f5f5f5; }
.rsb-m { max-width: 85%; margin-bottom: 10px; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.rsb-m.bot { background: #fff; border: 1px solid #e5e7eb; border-bottom-left-radius: 4px; color: #222; }
.rsb-m.me { background: #48bf4f; color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.rsb-m.bot a { color: #2e8b34; font-weight: 600; }
.rsb-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.rsb-chips a { font-size: 12.5px; padding: 6px 11px; border-radius: 999px; background: #eaf7eb; color: #2e7d32; border: 1px solid #bfe5c2; text-decoration: none; cursor: pointer; }
.rsb-chips a:hover { background: #d6f0d8; text-decoration: none; }
.rsb-typing { display: inline-flex; gap: 4px; }
.rsb-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9ca3af; animation: rsbDot 1s infinite; }
.rsb-typing i:nth-child(2) { animation-delay: .15s; } .rsb-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes rsbDot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.rsb-in { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e5e7eb; background: #fff; }
.rsb-in textarea { flex: 1; resize: none; border: 1px solid #d1d5db; border-radius: 12px; padding: 9px 12px; font-size: 15px; height: 44px; max-height: 110px; font-family: inherit; color: #222; }
.rsb-in button { border: 0; border-radius: 12px; background: #48bf4f; color: #fff; width: 46px; font-size: 17px; cursor: pointer; }
.rsb-in button:hover { background: #38a83e; }
.rsb-in button:disabled { opacity: .5; }
.rsb-in button.rsb-mic { background: #f1f1f1; color: #333; border: 1px solid #d1d5db; display: none; }
.rsb-in button.rsb-mic.show { display: block; }
.rsb-in button.rsb-mic:hover { background: #e6e6e6; }
.rsb-in button.rsb-mic.rec { background: #d9534f; color: #fff; border-color: #d9534f; animation: rsbPulse 1.2s infinite; }
@keyframes rsbPulse { 0% { box-shadow: 0 0 0 0 rgba(217,83,79,.55); } 70% { box-shadow: 0 0 0 10px rgba(217,83,79,0); } 100% { box-shadow: 0 0 0 0 rgba(217,83,79,0); } }
.rsb-note { font-size: 11px; color: #9ca3af; text-align: center; padding: 0 10px 8px; background: #fff; }
@media (max-width: 600px) {
    .rsb-btn { right: 14px; bottom: 14px; padding: 12px 16px 12px 13px; font-size: 14px; }
    .rsb-panel { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 82vh; max-height: 82vh; border-radius: 18px 18px 0 0; }
}
.rsb-red { color: #d9534f; }
