/*!
 * chat-widget.css - [LIVECHAT-F1/F3C] Diwira Live Chat widget (root #dw-chat) - the only chat on the site.
 * - Launcher bottom-right (Qontak removed in F3C, so no more stacking).
 * - Follows --dw-chat-lift (set by diwira-chat.js) to stay above fixed bottom bars / cookie banner.
 * - Root id contains "dw-chat" + classes "dwc-": the existing mobile rules that hide floating chat while a
 *   booking / calendar modal is open (booking & multi-day pages) therefore apply automatically.
 * - z-index stays below the site modals (10000+).
 */
#dw-chat{all:initial;font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#0f172a}
#dw-chat *,#dw-chat *::before,#dw-chat *::after{box-sizing:border-box}
#dw-chat [hidden]{display:none!important}

/* launcher */
#dw-chat .dwc-launcher{position:fixed;right:28px;bottom:calc(28px + var(--dw-chat-lift,0px));z-index:9998;width:60px;height:60px;border-radius:50%;
  border:2px solid #fff;background:#1e3d2f;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;margin:0;
  box-shadow:0 6px 20px rgba(30,61,47,.38);transition:transform .2s ease,bottom .2s ease,box-shadow .2s ease;-webkit-tap-highlight-color:transparent}
#dw-chat .dwc-launcher:hover{transform:scale(1.07);box-shadow:0 8px 26px rgba(30,61,47,.5)}
#dw-chat .dwc-launcher:focus-visible{outline:3px solid #a8c5a0;outline-offset:3px}
#dw-chat .dwc-launcher svg{width:28px;height:28px;fill:#fff;display:block;pointer-events:none}
#dw-chat .dwc-badge{position:absolute;top:-4px;right:-4px;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#dc2626;color:#fff;
  font:800 12px/22px Inter,Arial,sans-serif;text-align:center;border:2px solid #fff}
#dw-chat.dwc-open .dwc-launcher{display:none}

/* panel */
#dw-chat .dwc-panel{position:fixed;right:24px;bottom:calc(24px + var(--dw-chat-lift,0px));z-index:9999;width:370px;max-width:calc(100vw - 32px);
  height:560px;max-height:calc(100vh - 48px);background:#fff;border-radius:18px;box-shadow:0 24px 64px rgba(15,23,42,.28);display:flex;flex-direction:column;
  overflow:hidden;animation:dwc-in .2s ease}
@keyframes dwc-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
#dw-chat .dwc-hd{display:flex;align-items:center;gap:12px;padding:14px 16px;background:#1e3d2f;color:#fff}
#dw-chat .dwc-av{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
#dw-chat .dwc-av svg{width:20px;height:20px;fill:#fff}
#dw-chat .dwc-tt{flex:1;min-width:0}
#dw-chat .dwc-tt b{display:block;font:800 15.5px/1.2 Inter,Arial,sans-serif;color:#fff}
#dw-chat .dwc-tt span{display:block;font:500 12.5px/1.3 Inter,Arial,sans-serif;color:#d1fae5;margin-top:2px}
#dw-chat .dwc-x{all:unset;cursor:pointer;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px}
#dw-chat .dwc-x:hover,#dw-chat .dwc-x:focus-visible{background:rgba(255,255,255,.16)}
#dw-chat .dwc-bd{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;background:#f8faf9;padding:16px}

/* start form */
#dw-chat .dwc-intro{font:500 14px/1.5 Inter,Arial,sans-serif;color:#334155;margin:0 0 12px}
#dw-chat .dwc-f label.dwc-l{display:block;font:700 12.5px/1.2 Inter,Arial,sans-serif;color:#475569;margin:0 0 5px}
#dw-chat .dwc-f input[type=text],#dw-chat .dwc-f input[type=email],#dw-chat .dwc-f textarea{display:block;width:100%;border:1.5px solid #cbd5e1;border-radius:12px;
  padding:11px 13px;font:500 16px/1.35 Inter,Arial,sans-serif;color:#0f172a;background:#fff;margin:0 0 12px;outline:none}
#dw-chat .dwc-f textarea{min-height:84px;resize:vertical}
#dw-chat .dwc-f input:focus,#dw-chat .dwc-f textarea:focus{border-color:#1e3d2f;box-shadow:0 0 0 3px rgba(30,61,47,.14)}
#dw-chat .dwc-f .dwc-bad{border-color:#dc2626!important}
#dw-chat .dwc-ck{display:flex;gap:9px;align-items:flex-start;font:500 12.5px/1.45 Inter,Arial,sans-serif;color:#475569;margin:2px 0 14px;cursor:pointer}
#dw-chat .dwc-ck input{margin:2px 0 0;width:17px;height:17px;flex:0 0 auto;accent-color:#1e3d2f}
#dw-chat .dwc-ck a{color:#1e3d2f;font-weight:700}
#dw-chat .dwc-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}
#dw-chat .dwc-err{font:600 13px/1.4 Inter,Arial,sans-serif;color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:10px;padding:9px 11px;margin:0 0 12px}
#dw-chat .dwc-go{all:unset;box-sizing:border-box;cursor:pointer;display:block;width:100%;text-align:center;padding:13px;border-radius:12px;background:#1e3d2f;color:#fff;
  font:800 15px/1.2 Inter,Arial,sans-serif}
#dw-chat .dwc-go:hover{background:#2d5a3d}
#dw-chat .dwc-go[disabled]{opacity:.6;cursor:progress}

/* messages */
#dw-chat .dwc-msgs{display:flex;flex-direction:column;gap:8px}
#dw-chat .dwc-m{max-width:84%;padding:9px 12px;border-radius:14px;font:500 14px/1.45 Inter,Arial,sans-serif;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere}
#dw-chat .dwc-m small{display:block;margin-top:3px;font-size:10.5px;opacity:.65}
#dw-chat .dwc-m.dwc-guest{align-self:flex-end;background:#1e3d2f;color:#fff;border-bottom-right-radius:4px}
#dw-chat .dwc-m.dwc-admin,#dw-chat .dwc-m.dwc-ai{align-self:flex-start;background:#fff;color:#0f172a;border:1px solid #e2e8f0;border-bottom-left-radius:4px}
#dw-chat .dwc-m .dwc-who{display:block;font-size:11px;font-weight:800;color:#1e3d2f;margin-bottom:2px}
#dw-chat .dwc-m.dwc-system{align-self:center;max-width:94%;background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0;font-size:12.5px;text-align:center}
#dw-chat .dwc-note{align-self:center;font:600 12.5px/1.4 Inter,Arial,sans-serif;color:#64748b;text-align:center;padding:6px 8px}

/* composer + footer */
#dw-chat .dwc-cp{display:flex;gap:8px;align-items:flex-end;padding:10px 12px;border-top:1px solid #e2e8f0;background:#fff}
#dw-chat .dwc-cp textarea{flex:1;min-width:0;border:1.5px solid #cbd5e1;border-radius:12px;padding:10px 12px;font:500 16px/1.35 Inter,Arial,sans-serif;color:#0f172a;
  resize:none;max-height:120px;min-height:44px;outline:none;background:#fff;margin:0}
#dw-chat .dwc-cp textarea:focus{border-color:#1e3d2f}
#dw-chat .dwc-send{all:unset;box-sizing:border-box;cursor:pointer;width:44px;height:44px;border-radius:12px;background:#1e3d2f;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
#dw-chat .dwc-send svg{width:20px;height:20px;fill:#fff}
#dw-chat .dwc-send[disabled]{opacity:.5;cursor:default}
#dw-chat .dwc-ft{padding:8px 12px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #f1f5f9}
#dw-chat .dwc-wa{all:unset;box-sizing:border-box;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:10px;border-radius:12px;
  border:1.5px solid #25d366;color:#128c4b;font:800 13.5px/1.2 Inter,Arial,sans-serif;text-decoration:none}
#dw-chat .dwc-wa:hover{background:#f0fdf4}
#dw-chat .dwc-wa svg{width:18px;height:18px;fill:#25d366}

/* mobile: bottom sheet */
@media (max-width:767px){
  #dw-chat .dwc-launcher{right:16px;bottom:calc(16px + var(--dw-chat-lift,0px));width:56px;height:56px}
  #dw-chat .dwc-panel{right:0;left:0;bottom:0;width:100%;max-width:100%;height:88vh;max-height:88vh;border-radius:18px 18px 0 0}
}
/* [LIVECHAT-F3C] PWA Sopir / Vendor: stay BELOW the PWA's own modals / bottom sheets (z-index 1000) */
#dw-chat.dwc-pwa .dwc-launcher{z-index:900}
#dw-chat.dwc-pwa .dwc-panel{z-index:950}
@media (prefers-reduced-motion:reduce){#dw-chat .dwc-panel{animation:none}#dw-chat .dwc-launcher{transition:none}}
@media print{#dw-chat{display:none!important}}
