/* MarktWelt live chat widget – v3 glossy, outlined buttons, RTL-safe (logical properties). */
.mw-lc{--lc-teal:#0f5f5c;--lc-teal-2:#14807a;--lc-ink:#0f172a;--lc-muted:#64748b;--lc-line:#e2e8f0;position:fixed;inset-inline-end:clamp(1rem,2vw,2rem);inset-block-end:clamp(1rem,2vw,2rem);z-index:1080;font-size:.875rem;color:var(--lc-ink)}
body:has(.mw-lc) .mw-back-to-top{inset-block-end:calc(clamp(1rem,2vw,2rem) + 4.25rem)}
.mw-lc [hidden]{display:none !important}
.mw-lc-bubble{position:relative;width:3.4rem;height:3.4rem;border-radius:50%;border:1.5px solid rgba(255,255,255,.65);color:#fff;font-size:1.3rem;cursor:pointer;
  background:linear-gradient(180deg,rgba(255,255,255,.22),rgba(255,255,255,0) 55%),linear-gradient(135deg,var(--lc-teal),var(--lc-teal-2));
  box-shadow:0 10px 24px rgba(15,95,92,.35),inset 0 1px 0 rgba(255,255,255,.35);transition:transform .15s ease,box-shadow .15s ease}
.mw-lc-bubble:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(15,95,92,.4)}
.mw-lc-bubble:focus-visible,.mw-lc-btn:focus-visible,.mw-lc-icon-btn:focus-visible{outline:3px solid rgba(20,184,166,.45);outline-offset:2px}
.mw-lc-dot{position:absolute;inset-block-start:.15rem;inset-inline-end:.15rem;width:.75rem;height:.75rem;border-radius:50%;background:#ef4444;border:2px solid #fff}
.mw-lc-panel{position:absolute;inset-block-end:4.1rem;inset-inline-end:0;width:min(360px,calc(100vw - 2rem));max-height:min(560px,calc(100vh - 7rem));display:flex;flex-direction:column;
  background:#fff;border:1px solid var(--lc-line);border-radius:16px;overflow:hidden;box-shadow:0 24px 48px rgba(15,23,42,.18)}
.mw-lc-head{position:relative;display:flex;align-items:center;gap:.4rem;padding:.7rem .9rem;color:#fff;background:linear-gradient(135deg,var(--lc-teal),var(--lc-teal-2))}
.mw-lc-head::before{content:"";position:absolute;inset:0 0 50% 0;background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,0));pointer-events:none}
.mw-lc-head-text{display:flex;flex-direction:column;flex:1;min-width:0}
.mw-lc-head-text strong{font-size:.95rem;font-weight:800}
.mw-lc-presence{font-size:.72rem;opacity:.9}
.mw-lc-presence::before{content:"";display:inline-block;width:.5rem;height:.5rem;border-radius:50%;background:#facc15;margin-inline-end:.35rem;vertical-align:middle}
.mw-lc.is-online .mw-lc-presence::before{background:#4ade80}
.mw-lc-icon-btn{position:relative;width:2rem;height:2rem;border-radius:10px;border:1px solid rgba(255,255,255,.55);background:rgba(255,255,255,.1);color:#fff;cursor:pointer}
.mw-lc-icon-btn:hover{background:rgba(255,255,255,.22)}
.mw-lc-prechat{display:flex;flex-direction:column;gap:.55rem;padding:.9rem;overflow:auto}
.mw-lc-intro{margin:0;color:var(--lc-muted)}
.mw-lc-field{display:flex;flex-direction:column;gap:.2rem;margin:0;font-weight:600;font-size:.78rem}
.mw-lc-field input,.mw-lc-field textarea,.mw-lc-compose textarea{width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:.45rem .6rem;font:inherit;font-weight:400;color:var(--lc-ink);background:#fff;resize:none}
.mw-lc-field input:focus,.mw-lc-field textarea:focus,.mw-lc-compose textarea:focus{outline:none;border-color:var(--lc-teal-2);box-shadow:0 0 0 3px rgba(20,184,166,.18)}
.mw-lc-hp{position:absolute !important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.mw-lc-btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.45rem .9rem;border-radius:10px;border:1.5px solid var(--lc-teal);background:#fff;color:var(--lc-teal);font-weight:700;cursor:pointer}
.mw-lc-btn:hover{background:rgba(20,184,166,.08)}
.mw-lc-btn--primary{color:#fff;border-color:var(--lc-teal);background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,0) 60%),var(--lc-teal)}
.mw-lc-btn--primary:hover{background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,0) 60%),#0b4a48}
.mw-lc-btn:disabled{opacity:.6;cursor:wait}
.mw-lc-error{margin:0;padding:.4rem .6rem;border-radius:8px;background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;font-size:.78rem}
.mw-lc-thread{display:flex;flex-direction:column;min-height:0;flex:1}
.mw-lc-thread > .mw-lc-error,.mw-lc-new{margin:0 .9rem .7rem}
.mw-lc-messages{list-style:none;margin:0;padding:.8rem .9rem;display:flex;flex-direction:column;gap:.45rem;overflow-y:auto;min-height:220px;max-height:360px;background:#f8fafc}
.mw-lc-msg{max-width:82%;padding:.45rem .65rem;border-radius:14px;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere}
.mw-lc-msg time{display:block;font-size:.65rem;opacity:.7;margin-top:.15rem}
.mw-lc-msg--customer{align-self:flex-end;color:#fff;background:var(--lc-teal);border-end-end-radius:4px}
.mw-lc-msg--agent{align-self:flex-start;background:#fff;border:1px solid var(--lc-line);border-end-start-radius:4px}
.mw-lc-msg--agent .mw-lc-who{display:block;font-size:.68rem;font-weight:700;color:var(--lc-teal)}
.mw-lc-msg--system{align-self:center;max-width:92%;text-align:center;font-size:.75rem;color:var(--lc-muted);background:transparent;padding:.2rem .4rem}
.mw-lc-compose{display:flex;gap:.4rem;align-items:flex-end;padding:.6rem .9rem;border-top:1px solid var(--lc-line)}
.mw-lc-compose textarea{flex:1;max-height:6rem}
.mw-lc-send{padding:.5rem .7rem}
[dir="rtl"] .mw-lc-send i,[dir="rtl"] .mw-lc-prechat .fa-paper-plane{transform:scaleX(-1)}
@media (max-width:480px){.mw-lc-panel{position:fixed;inset-inline:.5rem;inset-block-end:5rem;width:auto}}
@media (prefers-reduced-motion:reduce){.mw-lc-bubble{transition:none}}
.mw-lc-sr{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.mw-lc .mw-lc-compose textarea{min-height:2.4rem !important;height:2.4rem;max-height:6rem}
.mw-lc .mw-lc-field textarea{min-height:4.5rem !important;height:auto}
/* Keep clear of the mobile bottom navigation bar. */
@media (max-width:991.98px){.mw-lc{inset-block-end:calc(4.75rem + env(safe-area-inset-bottom,0px))}}
@media (max-width:480px){.mw-lc-panel{inset-block-end:calc(9rem + env(safe-area-inset-bottom,0px));max-height:calc(100vh - 11rem)}}
/* Launcher: perfect circle, immune to global button/pill rules. */
.mw-lc button.mw-lc-bubble{box-sizing:border-box !important;width:3.5rem !important;height:3.5rem !important;min-width:3.5rem !important;min-height:3.5rem !important;max-width:3.5rem !important;padding:0 !important;margin:0 !important;border-radius:50% !important;aspect-ratio:1/1;display:inline-flex !important;align-items:center !important;justify-content:center !important;line-height:1 !important;font-size:1.35rem !important;color:#fff !important;border:1.5px solid rgba(255,255,255,.65) !important;
  background:linear-gradient(180deg,rgba(255,255,255,.24),rgba(255,255,255,0) 55%),linear-gradient(135deg,var(--lc-teal),var(--lc-teal-2)) !important;overflow:visible}
.mw-lc button.mw-lc-bubble i{margin:0 !important;line-height:1;pointer-events:none}
/* lc5: AI assistant messages + escalation */
.mw-lc-msg--ai{align-self:flex-start;background:#f5f3ff;border:1px solid #ddd6fe;color:#2e1065;border-end-start-radius:4px}
.mw-lc-msg--ai .mw-lc-who{display:block;font-size:.68rem;font-weight:700;color:#6d28d9}
.mw-lc-msg--ai .mw-lc-who::before{content:"\f544";font-family:"Font Awesome 6 Free","Font Awesome 5 Free";font-weight:900;margin-inline-end:.3rem}
.mw-lc-human{align-self:center;margin:.35rem auto 0;display:flex;align-items:center;gap:.35rem;padding:.3rem .8rem;border-radius:999px;border:1px solid var(--lc-teal,#0f5f5c);background:#fff;color:var(--lc-teal,#0f5f5c);font-size:.78rem;font-weight:700;cursor:pointer}
.mw-lc-human:hover{background:rgba(15,95,92,.06)}
.mw-lc-human[hidden]{display:none}
/* v6: slim header + round crystal-glass header buttons */
.mw-lc-head{min-height:54px;padding:.4rem .7rem .4rem .9rem;gap:.35rem}
.mw-lc-head-text{line-height:1.2}
.mw-lc-head-text strong{font-size:15px;font-weight:700;letter-spacing:.01em}
.mw-lc-presence{font-size:11.5px;opacity:.92}
.mw-lc-presence::before{width:.42rem;height:.42rem}
.mw-lc-icon-btn{flex:0 0 28px;width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;
  background:rgba(255,255,255,.14);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.35);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),inset 0 -1px 2px rgba(0,0,0,.08),0 1px 3px rgba(15,23,42,.12);
  font-size:11px;line-height:1;transition:background .15s,box-shadow .15s,transform .15s}
.mw-lc-icon-btn i{font-size:11px}
.mw-lc-icon-btn:hover{background:rgba(255,255,255,.26);box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 2px 6px rgba(15,23,42,.18)}
.mw-lc-icon-btn:active{transform:scale(.94)}
.mw-lc-icon-btn[hidden]{display:none}
.mw-lc-guest-fields{display:flex;flex-direction:column;gap:.55rem}
.mw-lc-guest-fields[hidden]{display:none}
.mw-lc-head{min-height:56px;max-height:60px}
.mw-lc-avatar{flex:0 0 36px;width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;
  background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.45);box-shadow:inset 0 1px 0 rgba(255,255,255,.4);
  color:#fff;font-weight:700;font-size:13px;letter-spacing:.02em}
.mw-lc-avatar i{font-size:15px}
.mw-lc-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.mw-lc-head-text strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mw-lc .mw-lc-head .mw-lc-icon-btn{width:28px;height:28px;min-width:28px;max-width:28px;min-height:28px;max-height:28px;padding:0;margin:0;border-radius:50%;align-self:center;box-sizing:border-box}
/* lc10: back-to-top sits exactly centred above the chat bubble (same size, offset, gradient; 12px gap). Logical props = RTL-safe. */
body:has(.mw-lc) .mw-back-to-top{box-sizing:border-box;width:3.5rem !important;height:3.5rem !important;inset-inline-end:clamp(1rem,2vw,2rem) !important;
  inset-block-end:calc(clamp(1rem,2vw,2rem) + 3.5rem + 12px) !important;bottom:calc(clamp(1rem,2vw,2rem) + 3.5rem + 12px) !important;
  border:1.5px solid rgba(255,255,255,.65);border-radius:50%;color:#fff;
  background:linear-gradient(180deg,rgba(255,255,255,.24),rgba(255,255,255,0) 55%),linear-gradient(135deg,#0f5f5c,#14807a);
  box-shadow:0 10px 24px rgba(15,95,92,.35),inset 0 1px 0 rgba(255,255,255,.35)}
body:has(.mw-lc) .mw-back-to-top:hover{box-shadow:0 14px 28px rgba(15,95,92,.4)}
@media (max-width:991.98px){body:has(.mw-lc) .mw-back-to-top{inset-block-end:calc(4.75rem + env(safe-area-inset-bottom,0px) + 3.5rem + 12px) !important;bottom:calc(4.75rem + env(safe-area-inset-bottom,0px) + 3.5rem + 12px) !important}}
/* lc12: mobile/tablet responsive panel — composer always visible, never under bottom nav or off-screen */
.mw-lc-panel{box-sizing:border-box}
.mw-lc-thread{min-width:0}
.mw-lc .mw-lc-compose{flex-wrap:nowrap;min-width:0;box-sizing:border-box;width:100%;flex:0 0 auto;background:#fff}
.mw-lc .mw-lc-compose textarea{flex:1 1 auto !important;width:auto !important;min-width:0 !important;max-width:none !important;box-sizing:border-box;font-size:16px}
.mw-lc .mw-lc-compose .mw-cm-btn{flex-shrink:0}
.mw-lc-human{flex:0 0 auto}
.mw-lc-messages{flex:1 1 auto}
@media (max-width:991.98px){
  .mw-lc .mw-lc-panel{position:fixed !important;left:max(.5rem,env(safe-area-inset-left,0px)) !important;right:max(.5rem,env(safe-area-inset-right,0px)) !important;
    inset-inline:auto;margin:0 auto;width:auto !important;max-width:520px;
    bottom:var(--mw-lc-bottom,calc(4.75rem + env(safe-area-inset-bottom,0px) + .5rem)) !important;top:auto !important;
    height:auto;max-height:var(--mw-lc-maxh,calc(100dvh - 4.75rem - env(safe-area-inset-bottom,0px) - 1.5rem - env(safe-area-inset-top,0px))) !important;z-index:1090}
  .mw-lc .mw-lc-messages{min-height:0 !important;max-height:none !important}
  .mw-lc .mw-lc-prechat{overflow-y:auto;min-height:0}
  body.mw-lc-open .mw-lc-bubble{display:none !important}
}
/* lc13: phones only — open chat covers the whole screen */
@media (max-width:767.98px){
  .mw-lc .mw-lc-panel{left:0 !important;right:0 !important;top:var(--mw-lc-top,0px) !important;bottom:auto !important;max-width:none;width:100% !important;
    height:var(--mw-lc-h,100dvh) !important;max-height:none !important;border-radius:0;border:0;box-shadow:none;z-index:2147483000;
    padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px);background:#f8fafc}
  .mw-lc .mw-lc-head{border-radius:0;max-height:none;min-height:56px}
  .mw-lc .mw-lc-thread,.mw-lc .mw-lc-prechat{flex:1 1 auto;min-height:0}
  .mw-lc .mw-lc-close{width:34px !important;height:34px !important;min-width:34px !important;max-width:34px !important;min-height:34px !important;max-height:34px !important;font-size:13px}
  body.mw-lc-open{overflow:hidden !important;overscroll-behavior:none}
  body.mw-lc-open .mw-mobile-nav,body.mw-lc-open .mw-back-to-top{visibility:hidden}
}
@media (max-width:767.98px){body.mw-lc-open .mw-lc{z-index:2147483000 !important}}

/* t751u: WhatsApp FAB beside the support chat bubble, same size, RTL-safe. */
.mw-lc-wa{position:absolute;inset-block-end:0;inset-inline-end:calc(3.5rem + 12px);box-sizing:border-box;width:3.5rem;height:3.5rem;min-width:3.5rem;min-height:3.5rem;max-width:3.5rem;max-height:3.5rem;padding:0;margin:0;border-radius:50%;aspect-ratio:1/1;display:inline-flex;align-items:center;justify-content:center;color:#fff;text-decoration:none;border:1.5px solid rgba(255,255,255,.65);
  background:linear-gradient(180deg,rgba(255,255,255,.24),rgba(255,255,255,0) 55%),linear-gradient(135deg,#25D366,#128C7E);
  box-shadow:0 10px 24px rgba(18,140,126,.35),inset 0 1px 0 rgba(255,255,255,.35);transition:transform .15s ease,box-shadow .15s ease}
.mw-lc-wa:hover{color:#fff;transform:translateY(-2px);box-shadow:0 14px 28px rgba(18,140,126,.4)}
.mw-lc-wa:focus-visible{outline:3px solid rgba(37,211,102,.45);outline-offset:2px}
.mw-lc-wa__glyph{display:block;width:1.45rem;height:1.45rem;pointer-events:none}
.mw-lc--wa-only .mw-lc-wa,.mw-lc:not(:has(.mw-lc-bubble)) .mw-lc-wa{inset-inline-end:0}
@media (prefers-reduced-motion:reduce){.mw-lc-wa{transition:none}}
@media (max-width:991.98px){body.mw-lc-open .mw-lc-wa{display:none !important}}


/* t886u: on product pages with the sticky mobile buy bar, raise WhatsApp + support
   FABs above the bar (and the bottom tab nav). Side-by-side layout is unchanged.
   Other pages and desktop keep the default inset-block-end. */
@media (max-width: 599.98px) {
  body:has(.mw-product-mobile-bar) .mw-lc {
    inset-block-end: calc(var(--mw-mobile-nav-stack, 66px) + var(--mw-product-mobile-bar-height, 4rem) + .75rem + env(safe-area-inset-bottom, 0px));
  }
  body:has(.mw-lc):has(.mw-product-mobile-bar) .mw-back-to-top {
    inset-block-end: calc(var(--mw-mobile-nav-stack, 66px) + var(--mw-product-mobile-bar-height, 4rem) + .75rem + env(safe-area-inset-bottom, 0px) + 3.5rem + 12px) !important;
    bottom: calc(var(--mw-mobile-nav-stack, 66px) + var(--mw-product-mobile-bar-height, 4rem) + .75rem + env(safe-area-inset-bottom, 0px) + 3.5rem + 12px) !important;
  }
}
