#wddm-chatbot,
#wddm-chatbot *{box-sizing:border-box}

.wddm-chatbot{position:fixed;bottom:22px;z-index:999999;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif!important;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.wddm-chatbot.wddm-pos-right{right:22px}
.wddm-chatbot.wddm-pos-left{left:22px}

#wddm-chatbot .wddm-chat-launcher{all:unset;box-sizing:border-box!important;width:50px!important;min-width:50px!important;max-width:50px!important;height:50px!important;min-height:50px!important;max-height:50px!important;padding:0!important;margin:0!important;border:0!important;border-radius:999px!important;background:var(--wddm-chat-accent)!important;color:#fff!important;box-shadow:0 10px 26px rgba(15,23,42,.18)!important;cursor:pointer!important;display:flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;position:relative!important;overflow:visible!important;appearance:none!important;-webkit-appearance:none!important;transition:transform .18s ease,box-shadow .18s ease!important}
#wddm-chatbot .wddm-chat-launcher:hover{background:var(--wddm-chat-accent)!important;color:#fff!important;transform:translateY(-2px)!important;box-shadow:0 13px 30px rgba(15,23,42,.22)!important}
#wddm-chatbot .wddm-chat-launcher:focus-visible{outline:3px solid rgba(255,255,255,.96)!important;outline-offset:3px!important}
#wddm-chatbot .wddm-chat-launcher.is-chat-open{opacity:.96}
#wddm-chatbot .wddm-launcher-icon{display:flex!important;align-items:center!important;justify-content:center!important;width:23px!important;height:23px!important;margin:0!important;padding:0!important;color:#fff!important;line-height:1!important;pointer-events:none!important}
#wddm-chatbot .wddm-launcher-icon svg{display:block!important;width:23px!important;height:23px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important;overflow:visible!important}
#wddm-chatbot .wddm-launcher-icon circle{fill:currentColor!important;stroke:none!important}

.wddm-chat-window{position:absolute;bottom:66px;width:min(390px,calc(100vw - 30px));height:min(610px,calc(100vh - 105px));background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:20px;box-shadow:0 24px 70px rgba(15,23,42,.24);overflow:hidden;display:none;flex-direction:column;transform-origin:bottom right}
.wddm-pos-right .wddm-chat-window{right:0}
.wddm-pos-left .wddm-chat-window{left:0;transform-origin:bottom left}
.wddm-chat-window.is-open{display:flex;animation:wddmChatIn .22s ease-out}
@keyframes wddmChatIn{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}

.wddm-chat-header{background:var(--wddm-chat-accent)!important;color:#fff!important;padding:15px 16px!important;min-height:68px;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;position:relative}
.wddm-chat-identity{display:flex;align-items:center;gap:10px;min-width:0}
.wddm-agent-avatar{width:34px;height:34px;min-width:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.24);color:#fff}
.wddm-agent-avatar svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.wddm-agent-avatar circle{fill:currentColor;stroke:none}
.wddm-chat-header strong{display:block!important;color:#fff!important;font-size:15px!important;font-weight:700!important;line-height:1.2!important;letter-spacing:0!important;margin:0!important;padding:0!important}
.wddm-chat-header span:not(.wddm-agent-avatar):not(.wddm-online-dot){display:flex!important;align-items:center!important;color:rgba(255,255,255,.9)!important;font-size:11.5px!important;font-weight:500!important;line-height:1.2!important;margin-top:4px!important}
.wddm-online-dot{display:inline-block!important;width:7px!important;height:7px!important;min-width:7px!important;border-radius:50%!important;background:#61d98b!important;margin-right:6px!important;box-shadow:0 0 0 2px rgba(255,255,255,.16)!important}
#wddm-chatbot .wddm-chat-close{all:unset!important;box-sizing:border-box!important;width:34px!important;height:34px!important;min-width:34px!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:10px!important;background:rgba(255,255,255,.14)!important;color:#fff!important;cursor:pointer!important;transition:background .15s ease,transform .15s ease!important}
#wddm-chatbot .wddm-chat-close:hover{background:rgba(255,255,255,.24)!important;transform:scale(1.03)!important;color:#fff!important}
#wddm-chatbot .wddm-chat-close:focus-visible{outline:2px solid #fff!important;outline-offset:2px!important}
#wddm-chatbot .wddm-chat-close svg{width:17px!important;height:17px!important;display:block!important;fill:none!important;stroke:#fff!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important;color:#fff!important}

.wddm-chat-body{flex:1 1 auto;min-height:0;overflow-y:auto;padding:18px 16px 22px;background:#f7f8fb;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c8cdd6 transparent}
.wddm-chat-body::-webkit-scrollbar{width:6px}
.wddm-chat-body::-webkit-scrollbar-thumb{background:#c8cdd6;border-radius:20px}

.wddm-msg{display:flex;align-items:flex-end;gap:7px;margin:0 0 12px}
.wddm-msg .wddm-bubble{max-width:82%;padding:10px 12px;border-radius:14px;font-size:13.5px;line-height:1.48;word-break:break-word;box-shadow:0 1px 1px rgba(15,23,42,.02)}
.wddm-msg-avatar{width:25px;height:25px;min-width:25px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--wddm-chat-accent) 12%,#fff);color:var(--wddm-chat-accent);border:1px solid color-mix(in srgb,var(--wddm-chat-accent) 18%,#e7eaf0)}
.wddm-msg-avatar svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.wddm-msg-avatar circle{fill:currentColor;stroke:none}
.wddm-bot{justify-content:flex-start}
.wddm-bot .wddm-bubble{background:#fff;color:#273244;border:1px solid #e7eaf0;border-bottom-left-radius:5px}
.wddm-user{justify-content:flex-end}
.wddm-user .wddm-bubble{background:var(--wddm-chat-accent);color:#fff;border-bottom-right-radius:5px;border:1px solid transparent}

.wddm-faq-block{margin:4px 0 8px 32px;max-width:calc(100% - 32px)}
.wddm-faq-label{font-size:11px;line-height:1.4;font-weight:650;color:#7a8493;text-transform:none;margin:0 0 7px 2px}
.wddm-faq-list{display:flex;flex-direction:column;gap:6px}
#wddm-chatbot .wddm-faq-question{all:unset;box-sizing:border-box!important;width:100%!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:9px 10px!important;background:#fff!important;border:1px solid #e3e7ed!important;border-radius:10px!important;color:#394456!important;cursor:pointer!important;font-family:inherit!important;font-size:12.5px!important;font-weight:550!important;line-height:1.35!important;text-align:left!important;transition:border-color .15s ease,background .15s ease,color .15s ease,transform .15s ease!important}
#wddm-chatbot .wddm-faq-question:hover{border-color:color-mix(in srgb,var(--wddm-chat-accent) 50%,#e3e7ed)!important;background:color-mix(in srgb,var(--wddm-chat-accent) 4%,#fff)!important;color:var(--wddm-chat-accent)!important;transform:translateX(1px)!important}
#wddm-chatbot .wddm-faq-question svg{width:15px!important;height:15px!important;min-width:15px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important;opacity:.65!important}
.wddm-faq-empty{font-size:12.5px;color:#7a8493;padding:8px 2px}

.wddm-chat-input-area{flex:0 0 auto;padding:11px 12px 12px;background:#fff;border-top:1px solid #edf0f4;position:relative;z-index:2;box-shadow:0 -7px 18px rgba(15,23,42,.025)}
.wddm-main-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.wddm-main-tabs.is-faq-only{grid-template-columns:1fr}
#wddm-chatbot .wddm-main-tab{all:unset;box-sizing:border-box!important;min-height:56px!important;border-radius:12px!important;padding:9px 10px!important;display:flex!important;align-items:center!important;gap:9px!important;cursor:pointer!important;font-family:inherit!important;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease!important}
#wddm-chatbot .wddm-main-tab:hover{transform:translateY(-1px)!important}
#wddm-chatbot .wddm-main-tab-faq{background:#fff!important;border:1px solid #dfe4eb!important;color:#313d50!important}
#wddm-chatbot .wddm-main-tab-faq:hover{border-color:color-mix(in srgb,var(--wddm-chat-accent) 42%,#dfe4eb)!important;box-shadow:0 6px 16px rgba(15,23,42,.07)!important}
#wddm-chatbot .wddm-main-tab-chat{background:var(--wddm-chat-accent)!important;border:1px solid var(--wddm-chat-accent)!important;color:#fff!important;box-shadow:0 6px 14px color-mix(in srgb,var(--wddm-chat-accent) 23%,transparent)!important}
#wddm-chatbot .wddm-main-tab-chat:hover{box-shadow:0 8px 18px color-mix(in srgb,var(--wddm-chat-accent) 29%,transparent)!important}
.wddm-main-tab .wddm-tab-icon{width:30px;height:30px;min-width:30px;display:flex;align-items:center;justify-content:center;border-radius:9px}
.wddm-main-tab-faq .wddm-tab-icon{background:color-mix(in srgb,var(--wddm-chat-accent) 9%,#fff);color:var(--wddm-chat-accent)}
.wddm-main-tab-chat .wddm-tab-icon{background:rgba(255,255,255,.16);color:#fff}
.wddm-tab-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.wddm-main-tab strong{display:block!important;font-size:12.5px!important;font-weight:700!important;line-height:1.2!important;color:inherit!important;margin:0!important;padding:0!important}
.wddm-main-tab small{display:block!important;font-size:10px!important;line-height:1.2!important;color:inherit!important;opacity:.72!important;margin-top:3px!important}

.wddm-contact-footer{display:block}
#wddm-chatbot .wddm-contact-footer-btn{all:unset;box-sizing:border-box!important;width:100%!important;min-height:46px!important;border-radius:11px!important;background:var(--wddm-chat-accent)!important;color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;cursor:pointer!important;font-family:inherit!important;font-size:13px!important;font-weight:700!important;line-height:1!important;box-shadow:0 6px 14px color-mix(in srgb,var(--wddm-chat-accent) 20%,transparent)!important;transition:transform .15s ease,box-shadow .15s ease!important}
#wddm-chatbot .wddm-contact-footer-btn:hover{transform:translateY(-1px)!important;box-shadow:0 8px 18px color-mix(in srgb,var(--wddm-chat-accent) 28%,transparent)!important}
.wddm-contact-footer-icon{display:flex;align-items:center;justify-content:center}
.wddm-contact-footer-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.wddm-answer-form{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end}
#wddm-chatbot .wddm-answer-input{all:unset;box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:44px!important;border:1px solid #d7dde6!important;border-radius:11px!important;padding:10px 11px!important;background:#fff!important;color:#263244!important;font-family:inherit!important;font-size:13px!important;font-weight:400!important;line-height:1.4!important;box-shadow:none!important;resize:vertical!important}
#wddm-chatbot .wddm-answer-input::placeholder{color:#98a1ad!important;opacity:1!important}
#wddm-chatbot .wddm-answer-input:focus{border-color:var(--wddm-chat-accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--wddm-chat-accent) 11%,transparent)!important}
#wddm-chatbot textarea.wddm-answer-input{grid-column:1/-1!important;min-height:78px!important}
#wddm-chatbot .wddm-send-btn{all:unset;box-sizing:border-box!important;min-height:44px!important;border-radius:11px!important;padding:0 14px!important;background:var(--wddm-chat-accent)!important;color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;cursor:pointer!important;font-family:inherit!important;font-size:12.5px!important;font-weight:700!important;line-height:1!important}
#wddm-chatbot .wddm-send-btn svg{width:15px!important;height:15px!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.wddm-field-error{grid-column:1/-1;color:#b42318;font-size:11.5px;line-height:1.35;padding:0 2px}
.wddm-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}
.wddm-sending{min-height:42px;display:flex;align-items:center;justify-content:center;gap:5px;font-size:12px;color:#687386;text-align:center;padding:7px}
.wddm-loader-dot{width:5px;height:5px;border-radius:50%;background:var(--wddm-chat-accent);animation:wddmDot 1s infinite ease-in-out}
.wddm-loader-dot:nth-child(2){animation-delay:.12s}.wddm-loader-dot:nth-child(3){animation-delay:.24s}
@keyframes wddmDot{0%,80%,100%{opacity:.35;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}
.wddm-privacy-note{font-size:10.5px;line-height:1.45;color:#7b8491}
.wddm-privacy-note-body{margin:3px 0 12px 32px;max-width:78%}

@media(max-width:520px){
  .wddm-chatbot{bottom:14px}
  .wddm-chatbot.wddm-pos-right{right:14px}
  .wddm-chatbot.wddm-pos-left{left:14px}
  #wddm-chatbot .wddm-chat-launcher{width:48px!important;min-width:48px!important;max-width:48px!important;height:48px!important;min-height:48px!important;max-height:48px!important}
  .wddm-chat-window{position:fixed;left:10px!important;right:10px!important;bottom:74px;width:auto;height:min(620px,calc(100vh - 94px));border-radius:18px}
  .wddm-chat-header{min-height:64px;padding:13px 14px!important}
  .wddm-chat-body{padding:16px 13px 20px}
  .wddm-msg .wddm-bubble{max-width:84%;font-size:13px}
  .wddm-main-tabs{grid-template-columns:1fr 1fr;gap:7px}
  #wddm-chatbot .wddm-main-tab{min-height:54px!important;padding:8px!important;gap:7px!important}
  .wddm-main-tab .wddm-tab-icon{width:28px;height:28px;min-width:28px}
  .wddm-main-tab small{display:none!important}
}

@media(max-width:360px){
  .wddm-main-tabs{grid-template-columns:1fr}
}

/* v0.2.5: Mobile keyboard / visual viewport support */
@media(max-width:520px){
  .wddm-chat-window{
    position:fixed!important;
    left:8px!important;
    right:8px!important;
    top:calc(var(--wddm-vv-top, 0px) + 8px)!important;
    bottom:auto!important;
    width:auto!important;
    height:calc(var(--wddm-vv-height, 100dvh) - 16px)!important;
    max-height:none!important;
    min-height:0!important;
  }
  #wddm-chatbot .wddm-chat-launcher.is-chat-open{
    display:none!important;
  }
  .wddm-chat-body{
    min-height:0!important;
    -webkit-overflow-scrolling:touch;
    scroll-padding-bottom:18px;
  }
  .wddm-chat-input-area{
    flex:0 0 auto!important;
    padding-bottom:max(12px, env(safe-area-inset-bottom))!important;
  }
  #wddm-chatbot .wddm-answer-input{
    font-size:16px!important;
  }
}

@media(max-width:520px) and (max-height:520px){
  .wddm-chat-header{
    min-height:56px!important;
    padding:10px 12px!important;
  }
  .wddm-agent-avatar{
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
  }
  .wddm-chat-body{
    padding-top:12px!important;
    padding-bottom:14px!important;
  }
  .wddm-msg{
    margin-bottom:9px!important;
  }
}
