/* HEMSIDA-3 DEL 2 — chatten på maxkollen.se (mockup v4). Egna regler, inga
   inline-stilar: CSP:n i vercel.json tillåter bara 'self'. Färgerna är
   stil.css:s variabler (laddas före den här filen). Allt ligger under
   .mkchatt-, så inget här kan röra sidans egna klasser. */

.mkchatt-knapp{position:fixed;right:16px;bottom:16px;z-index:50;display:flex;align-items:center;gap:10px;min-height:52px;padding:0 18px 0 8px;border:0;border-radius:999px;background:var(--oliv,#3E4728);color:var(--vit,#fff);font:600 15px/1.2 "Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif;box-shadow:0 6px 18px rgba(38,44,24,.25);cursor:pointer}
.mkchatt-knapp:focus-visible,.mkchatt-stang:focus-visible,.mkchatt-chip:focus-visible,.mkchatt-skicka:focus-visible,.mkchatt-lank:focus-visible{outline:3px solid var(--guld,#C9A24B);outline-offset:2px}
.mkchatt-rund{width:38px;height:38px;border-radius:50%;background:var(--oliv-mork,#262C18);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.mkchatt-rund svg{width:20px;height:20px}
.mkchatt-knapp[hidden]{display:none}

.mkchatt-ruta{position:fixed;right:16px;bottom:16px;z-index:51;width:380px;max-width:calc(100vw - 32px);max-height:min(640px,calc(100vh - 32px));display:flex;flex-direction:column;background:var(--krem,#F4F3EA);border:1px solid var(--ring,#C7CDB0);border-radius:24px;overflow:hidden;box-shadow:0 18px 50px rgba(38,44,24,.25);font:15px/1.45 "Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--black,#1B2014)}
.mkchatt-ruta[hidden]{display:none}
.mkchatt-huvud{display:flex;align-items:center;gap:10px;background:var(--oliv,#3E4728);color:var(--vit,#fff);padding:6px 6px 6px 16px;flex:0 0 auto}
.mkchatt-huvud .logo img{height:32px;width:auto}
.mkchatt-titel{flex:1;min-width:0;font-weight:600;font-size:15px}
.mkchatt-hel{white-space:nowrap}
.mkchatt-stang{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:0;border-radius:12px;background:transparent;color:var(--vit,#fff);font-size:20px;line-height:1;cursor:pointer}
.mkchatt-flode{flex:1 1 auto;min-height:0;overflow-y:auto;padding:14px 12px;display:flex;flex-direction:column;gap:10px}
.mkchatt-bub{max-width:86%;padding:10px 12px;border-radius:14px;font-size:14.5px;white-space:pre-wrap;overflow-wrap:anywhere}
.mkchatt-bot{background:var(--vit,#fff);border:1px solid #EFEEE5;align-self:flex-start;border-bottom-left-radius:4px}
.mkchatt-du{background:var(--oliv-ljus,#E6E9D6);align-self:flex-end;border-bottom-right-radius:4px}
.mkchatt-skriver{color:var(--text-mjuk,#5B6449);font-style:italic}
.mkchatt-chips{display:flex;flex-wrap:wrap;gap:8px}
.mkchatt-chip{min-height:44px;display:inline-flex;align-items:center;padding:0 12px;border-radius:999px;border:1px solid var(--ring,#C7CDB0);background:var(--vit,#fff);font:500 13.5px/1.2 "Plus Jakarta Sans",system-ui,sans-serif;color:var(--oliv-mork,#262C18);cursor:pointer;text-align:left}
.mkchatt-lank{display:inline-flex;align-items:center;min-height:44px;margin-top:8px;padding:0 12px;border-radius:10px;background:var(--oliv,#3E4728);color:var(--vit,#fff);font-weight:600;font-size:13.5px;text-decoration:none}
.mkchatt-rod{border-radius:12px;padding:10px 12px;font-size:14px;background:#F3E1D8;border:1px solid #e3bba9;color:#5d2a14}
.mkchatt-rod a{color:#5d2a14;font-weight:600}
.mkchatt-inmat{display:flex;gap:8px;padding:10px 12px;border-top:1px solid #EFEEE5;background:var(--vit,#fff);flex:0 0 auto}
.mkchatt-falt{flex:1;min-width:0;min-height:44px;border:1px solid var(--ring,#C7CDB0);border-radius:12px;padding:0 12px;font:14.5px/1.4 "Plus Jakarta Sans",system-ui,sans-serif;color:var(--black,#1B2014);background:var(--vit,#fff)}
.mkchatt-skicka{width:44px;height:44px;flex:0 0 auto;border:0;border-radius:12px;background:var(--oliv,#3E4728);color:var(--vit,#fff);display:flex;align-items:center;justify-content:center;font-size:18px;cursor:pointer}
.mkchatt-skicka:disabled{opacity:.5;cursor:default}
.mkchatt-fot{font-size:11.5px;color:var(--text-mjuk,#5B6449);padding:6px 12px 12px;background:var(--vit,#fff);flex:0 0 auto}
.mkchatt-fot a{color:var(--oliv-mork,#262C18)}
.mkchatt-dold{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Telefon: knappen blir en rund ikon (52 px) utan text, och rutan tar skärmen. */
@media (max-width:760px){
  .mkchatt-knapp{width:52px;height:52px;padding:0;justify-content:center}
  .mkchatt-knapp .mkchatt-text{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .mkchatt-ruta{right:8px;left:8px;bottom:8px;width:auto;max-width:none;max-height:calc(100vh - 16px)}
}
