.rmchat,.rmchat *,.rmchat-app,.rmchat-app *{box-sizing:border-box}
.rmchat [hidden],.rmchat-app [hidden]{display:none!important}
.rmchat{
  --chat-red:#c90b2f;--chat-ink:#171719;--chat-line:#e5e5e8;--chat-muted:#67676d;
  position:fixed;right:max(22px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));
  z-index:2147482000;color:var(--chat-ink);font-family:GothamPro,Helvetica,Arial,sans-serif;font-size:14px;line-height:1.4;
}
.rmchat button,.rmchat input,.rmchat textarea,.rmchat-app button,.rmchat-app input,.rmchat-app textarea,.rmchat-app select{font:inherit;box-sizing:border-box}
.rmchat button,.rmchat-app button{cursor:pointer}
.rmchat button:disabled,.rmchat-app button:disabled{cursor:default;opacity:.55}
.rmchat :focus-visible,.rmchat-app :focus-visible{outline:2px solid #c90b2f;outline-offset:3px}
/* A painted launcher with a crisp, recognizable message symbol. */
.rmchat-launcher{
  position:relative;display:grid;place-items:center;width:72px;height:72px;padding:0;border:0;border-radius:50%;
  background:transparent url("icons/launcher-painted-v2.svg") center/contain no-repeat;color:#fff;
  box-shadow:none;filter:drop-shadow(0 4px 7px #58051a26);transition:filter .18s,transform .18s;
}
.rmchat-launcher:hover{background-color:transparent;filter:drop-shadow(0 5px 9px #58051a38);transform:translateY(-2px)}
.rmchat-launcher:active{transform:translateY(0)}
.rmchat-launcher>svg{display:none}
.rmchat-badge{position:absolute;top:-5px;right:-4px;min-width:23px;padding:2px 5px;border:2px solid #fff;border-radius:12px;background:#171719;color:#fff;font-weight:700;font-size:12px}
.rmchat-panel,.rmchat-menu{
  position:absolute;right:0;bottom:78px;width:380px;overflow:hidden;background:#fff;
  border:1px solid var(--chat-line);border-top:3px solid var(--chat-red);border-radius:8px;box-shadow:0 12px 36px #1717191f;
}
.rmchat-panel{height:min(690px,calc(100dvh - 115px));max-height:690px;display:flex;flex-direction:column}
.rmchat-head{flex:none;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:22px 22px 20px;background:#fff;color:var(--chat-ink);border-bottom:1px solid var(--chat-line)}
.rmchat-brand{color:var(--chat-red);font-size:10px;letter-spacing:.1em;font-weight:700}
.rmchat-head h2{font-size:23px;letter-spacing:-.6px;line-height:1.2;margin:8px 0;color:var(--chat-ink);font-weight:700}
.rmchat-head p{font-size:12px;margin:0;line-height:1.5;color:var(--chat-muted)}
.rmchat-close{width:32px;height:32px;flex:none;padding:0;color:var(--chat-muted);border:0;border-radius:4px;background:none;font-size:26px!important;font-weight:400!important;line-height:1;transition:color .15s,background .15s}
.rmchat-close:hover{color:var(--chat-red);background:#f7f7f8}
.rmchat-scroll{flex:1;min-height:85px;overflow-y:auto;overscroll-behavior:contain;padding:18px;background:#fafafa;scrollbar-width:thin}
.rmchat-welcome{padding:4px 0 16px}
.rmchat-welcome p{font-size:14px;margin:12px 0 8px;line-height:1.5}
.rmchat-welcome small{font-size:11px;color:var(--chat-muted)}
.rmchat-sticker{display:inline-block;padding:0;background:none;border:0;box-shadow:none;transform:none;color:var(--chat-red);font-size:10px;font-weight:700;letter-spacing:.06em;line-height:1.4}
.rmchat-message{max-width:88%;width:fit-content;min-width:92px;margin:9px 0;padding:11px 13px;border:1px solid #e5e5e8;border-radius:8px 8px 8px 2px;background:#fff;color:#171719;overflow-wrap:anywhere}
.rmchat-message.is-mine{margin-left:auto;background:#fff4f6;border-color:#eedfe3;border-radius:8px 8px 2px 8px}
.rmchat-message-body{white-space:pre-wrap;font-size:14px;line-height:1.5}
.rmchat-message small{display:block;margin-top:6px;color:#6b686d;font-size:10px}
.rmchat-earlier{display:block;margin:0 auto 12px;padding:7px 12px;background:#fff;border:1px solid #e5e5e8;border-radius:4px;font-size:12px!important}
.rmchat-typing{flex:none;min-height:17px;margin:0;padding:0 18px 3px;color:var(--chat-muted);font-size:11px}
.rmchat-form{flex:none;margin:0;padding:12px 16px 8px;border-top:1px solid var(--chat-line);background:#fff;max-height:65%;overflow:auto}
.rmchat-intro{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px;margin-bottom:10px}
.rmchat-intro>label{display:block;font-weight:700;font-size:11px;line-height:1.4}
.rmchat-intro label>span{font-weight:400;color:var(--chat-muted)}
.rmchat-intro input:not([type=checkbox]){width:100%;height:38px;margin:4px 0 0;padding:7px 9px;color:var(--chat-ink);border:1px solid #dedee2;border-radius:4px;background:#fff;font-size:12px;box-shadow:none}
.rmchat-consent{grid-column:1/-1;display:flex!important;gap:8px;font-size:10px!important;font-weight:400!important;align-items:flex-start}
.rmchat-consent input{flex:none;width:14px;height:14px;margin:1px 0;accent-color:var(--chat-red)}
.rmchat-consent a{color:var(--chat-red);text-decoration:underline}
.rmchat-compose{display:flex;gap:8px;align-items:flex-end}
.rmchat-compose textarea{flex:1;min-width:0;min-height:54px;max-height:150px;padding:10px;border:1px solid #dedee2;border-radius:4px;resize:vertical;background:#fff;color:#171719;font-size:14px;line-height:1.4;box-shadow:none;margin:0}
.rmchat-send{flex:none;width:44px;height:44px;background:var(--chat-red);border:1px solid var(--chat-red);border-radius:4px;color:#fff;font-size:26px!important;font-weight:400;transition:background .15s}
.rmchat-send:hover{background:#ae0929}
.rmchat-error{margin:5px 0 0;color:#af1e22;font-size:12px;line-height:1.4}
.rmchat-error:empty{display:none}
.rmchat-channels{display:flex;gap:8px;padding:8px 16px 4px;flex:none}
.rmchat-channels .redmay-cc__channel{display:flex;align-items:center;gap:5px;color:#67676d;font-size:11px;text-decoration:none!important}
.rmchat-channels svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5}
.rmchat-channels svg .fill{fill:currentColor;stroke:none}
.rmchat-channels .redmay-cc__channel-icon{display:flex}
.rmchat-foot{display:flex;justify-content:space-between;gap:8px;padding:8px 16px 12px;font-size:10px;color:var(--chat-muted);flex:none}
.rmchat-foot>span{font-size:9px}
.rmchat-trap,.rmchat-sr{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
.rmchat-account{margin:0;padding:8px 18px;color:#8b1630;background:#fff4f6;font-size:12px;line-height:1.4}
.rmchat input[readonly]{background:#f7f7f8;color:#67676d}
.rmchat-menu{max-height:calc(100dvh - 115px);overflow:auto}
.rmchat-menu-body{padding:20px 22px 22px}
.rmchat-menu-body>p{font-size:11px;color:var(--chat-muted);line-height:1.6;margin:18px 0 0}
.rmchat-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.rmchat-choices .redmay-cc__channel{
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;min-height:143px;padding:10px 8px 12px;
  color:var(--chat-ink);text-decoration:none!important;text-align:center;background:#fff;border:1px solid var(--chat-line);
  border-radius:4px;box-shadow:none;transform:none;transition:border-color .15s,background .15s;
}
.rmchat-choices .redmay-cc__channel:hover{border-color:var(--chat-red);background:#fafafa;box-shadow:none;transform:none}
.rmchat-choices .redmay-cc__channel--site{border-color:#eedfe3}
/* Painted accents echo the category artwork while the channel symbols stay sharp. */
.rmchat-choices .redmay-cc__channel-icon{display:grid;place-items:center;flex:none;width:88px;height:70px;background:var(--channel-art) center/contain no-repeat;color:var(--chat-ink)}
.rmchat-choices .redmay-cc__channel--site{--channel-art:url("icons/brush-site-v1.svg")}
.rmchat-choices .redmay-cc__channel--telegram{--channel-art:url("icons/brush-telegram-v1.svg")}
.rmchat-choices .redmay-cc__channel--max{--channel-art:url("icons/brush-max-v1.svg")}
.rmchat-choices .redmay-cc__channel--whatsapp{--channel-art:url("icons/brush-whatsapp-v1.svg")}
.rmchat-choices .redmay-cc__channel-label{font-size:13px;font-weight:700;line-height:1.4}
.rmchat-choices small{font-size:10px;margin-top:-2px;color:var(--chat-muted)}
.rmchat-choices svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.6}
.rmchat-choices svg .fill{fill:currentColor;stroke:none}
.rmchat-back{display:block;color:var(--chat-muted);background:transparent;padding:0;border:0;text-decoration:underline;text-underline-offset:3px;font-size:11px!important;margin:8px 0 12px}
.rmchat-back:hover{color:var(--chat-red)}
@media(max-width:600px){
  .rmchat{right:14px;bottom:max(14px,env(safe-area-inset-bottom))}
  .rmchat-launcher{width:64px;height:64px}
  .rmchat-panel,.rmchat-menu{position:fixed;left:10px;right:10px;width:auto;bottom:max(82px,calc(72px + env(safe-area-inset-bottom)));box-shadow:0 8px 28px #1717191f}
  .rmchat-panel{height:min(660px,calc(100dvh - 100px))}
  .rmchat-menu{max-height:calc(100dvh - 100px)}
  .rmchat-head{padding:18px 16px}
  .rmchat-head h2{font-size:22px}
  .rmchat-form{padding:10px 12px 8px}
  .rmchat-scroll{padding:14px}
  .rmchat-intro input:not([type=checkbox]),.rmchat-compose textarea{font-size:16px}
  .rmchat-foot{padding-left:12px;padding-right:12px}
  .rmchat-menu-body{padding:18px 16px}
  .rmchat-choices .redmay-cc__channel{min-height:137px;padding:8px 6px 10px}
}
@media(prefers-reduced-motion:reduce){.rmchat *{scroll-behavior:auto!important;transition:none!important}.rmchat-launcher:hover{transform:none}}

/* Compact conversation: the greeting belongs to the scrollable history. */
.rmchat-panel .rmchat-head--compact{align-items:center;padding:9px 14px;min-height:52px}
.rmchat-head--compact .rmchat-back{margin:0;font-size:12px!important}
.rmchat-greeting{margin:0 0 18px;padding:13px 14px;background:#fff;border:1px solid var(--chat-line);border-radius:8px;max-width:100%}
.rmchat-greeting p{margin:8px 0 0;font-size:14px;line-height:1.5}
.rmchat-greeting .rmchat-presence{display:flex;align-items:center;gap:7px;margin:0;color:var(--chat-muted);font-size:11px;line-height:1.4}
.rmchat-presence::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:#929299}
.rmchat-presence[data-online="true"]::before{background:#23844e}
.rmchat-presence[data-online="true"]{color:#236c43}
.rmchat-panel .rmchat-form{padding-bottom:14px}
