/* MRM Chemsklep - czat z asystentem AI. Lewy dolny róg zajmuje przycisk ustawień cookies, więc czat stoi po prawej. */
.mrm-chat-btn{position:fixed;right:20px;bottom:20px;z-index:99990;width:58px;height:58px;min-height:0;margin:0;padding:0;border:0;border-radius:50%;background:#f1b62c;color:#111;box-shadow:0 6px 18px rgba(0,0,0,.25);cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1}
.mrm-chat-btn:hover,.mrm-chat-btn:focus{background:#e5a91d;color:#111}
.mrm-chat-btn svg{width:34px;height:34px;fill:#111}
.mrm-chat-btn svg text{fill:#f1b62c;font-family:Arial,Helvetica,sans-serif;font-size:8px;font-weight:700;letter-spacing:.2px}
.mrm-chat{position:fixed;right:20px;bottom:90px;z-index:99991;width:370px;max-width:calc(100vw - 40px);height:540px;max-height:calc(100vh - 120px);background:#fff;border-radius:10px;box-shadow:0 12px 40px rgba(0,0,0,.25);display:flex;flex-direction:column;overflow:hidden;font-size:14px;line-height:1.45;color:#111;text-align:left}
.mrm-chat[hidden]{display:none}
.mrm-chat:not([hidden]){animation:mrm-chat-in .2s ease-out}
@keyframes mrm-chat-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes mrm-chat-up{from{transform:translateY(100%)}to{transform:none}}
.mrm-chat-head{display:flex;align-items:center;justify-content:space-between;background:#111;color:#fff;padding:12px 14px}
.mrm-chat-head-l{display:flex;align-items:center;gap:8px;min-width:0}
.mrm-chat-title{font-weight:700;font-size:15px}
.mrm-chat-title::after{content:"";display:inline-block;width:9px;height:9px;margin-left:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.25);vertical-align:1px} /* zielona kropka: asystent dostępny */
.mrm-chat .mrm-chat-back{background:none;border:0;color:#fff;font-size:20px;line-height:1;min-height:0;margin:0;padding:0 2px;cursor:pointer;box-shadow:none}
.mrm-chat .mrm-chat-back[hidden]{display:none}
.mrm-chat .mrm-chat-close{background:none;border:0;color:#fff;font-size:26px;line-height:1;min-height:0;margin:0;padding:0 4px;cursor:pointer;box-shadow:none}
.mrm-chat-note{font-size:12px;line-height:1.4;color:#555;background:#fdf6e3;padding:8px 14px;border-bottom:1px solid #f0e6c8}
.mrm-chat-log{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px;background:#fafafa}
.mrm-chat-msg{max-width:88%;padding:9px 12px;border-radius:10px;overflow-wrap:anywhere}
.mrm-chat-bot{align-self:flex-start;background:#fff;border:1px solid #e6e6e6}
.mrm-chat-me{align-self:flex-end;background:#f1b62c}
.mrm-chat-msg a{color:#b45309;text-decoration:underline}
.mrm-chat-wait{color:#888}
.mrm-chat-topics{display:flex;flex-direction:column;gap:6px}
.mrm-chat .mrm-chat-topic{position:relative;display:block;width:100%;min-height:0;margin:0;padding:9px 36px 9px 12px;border:1px solid #e6e6e6;border-radius:10px;background:#fff;color:#111;font:inherit;font-weight:400;letter-spacing:0;line-height:1.3;text-align:left;text-transform:none;box-shadow:none;cursor:pointer}
.mrm-chat .mrm-chat-topic:hover,.mrm-chat .mrm-chat-topic:focus{border-color:#f1b62c;background:#fffaf0;color:#111}
.mrm-chat .mrm-chat-topic::after{content:"\2192";position:absolute;right:13px;top:50%;transform:translateY(-50%);font-size:17px;color:#b45309}
.mrm-chat-topic-t{display:block;font-size:14px;font-weight:700}
.mrm-chat-topic-d{display:block;margin-top:2px;font-size:12px;color:#555}
.mrm-chat-form{display:flex;gap:8px;margin:0;padding:10px;border-top:1px solid #eee;background:#fff}
.mrm-chat .mrm-chat-input{flex:1;min-height:40px;max-height:110px;margin:0;padding:9px 10px;resize:none;border:1px solid #ccc;border-radius:6px;font-family:inherit;font-size:15px;line-height:1.3;color:#111;background:#fff}
.mrm-chat .mrm-chat-send{min-height:0;margin:0;padding:0 14px;border:0;border-radius:6px;background:#111;color:#fff;font-size:14px;font-weight:600;text-transform:none;cursor:pointer}
.mrm-chat .mrm-chat-send:disabled{opacity:.5}
@media (max-width:767px){
	.mrm-chat-btn{right:14px;bottom:14px;width:54px;height:54px}
	.mrm-chat{right:0;left:0;bottom:0;width:auto;max-width:none;height:85vh;max-height:none;border-radius:12px 12px 0 0}
	.mrm-chat:not([hidden]){animation:mrm-chat-up .25s ease-out} /* wysuwa się od dołu ekranu */
	.mrm-chat .mrm-chat-input{font-size:16px} /* iPhone nie powiększa strony przy czcionce od 16 px */
	html.mrm-chat-open .mrm-chat-btn{display:none}
	/* Mały przycisk ustawień cookies (CookieYes) zasłaniałby pole pytania. Baner zgody zostaje nietknięty. */
	html.mrm-chat-open .cky-btn-revisit-wrapper{display:none !important}
}
@media (prefers-reduced-motion:reduce){.mrm-chat:not([hidden]){animation:none}}
