.es-chatbot{position:fixed;right:14px;bottom:88px;z-index:41;font-family:"PingFang HK","Noto Sans TC","Microsoft JhengHei",Arial,sans-serif;color:#173b51;font-size:14px;line-height:1.6;text-align:left}
.es-chatbot,.es-chatbot *{box-sizing:border-box}
.es-chatbot [hidden]{display:none!important}
.es-chatbot button,.es-chatbot a{-webkit-tap-highlight-color:transparent}
.es-chatbot button{font:inherit;cursor:pointer}
.es-chatbot a{color:inherit}
.es-chatbot button:focus-visible,.es-chatbot a:focus-visible,.es-chatbot input:focus-visible{outline:3px solid #c89b48;outline-offset:2px}

.es-chatbot-launcher{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:11px 17px;border:1px solid #c8dbe4;border-radius:999px;background:#006e70;color:#fff;box-shadow:0 6px 22px #173b5130;font-weight:700!important;letter-spacing:.3px}
.es-chatbot-launcher:hover{background:#005559;box-shadow:0 8px 26px #173b5145}
.es-chatbot-launcher svg{width:20px;height:20px;flex-shrink:0}

.es-chatbot-panel{position:absolute;right:0;bottom:60px;display:flex;flex-direction:column;width:360px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 190px);border:1px solid #d5e2e7;border-radius:16px;background:#fff;box-shadow:0 18px 54px #173b5130;overflow:hidden}

.es-chatbot-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 15px 14px 19px;background:#f0f6f7;border-bottom:1px solid #dfe9ec}
.es-chatbot-eyebrow{display:block;font-size:10px;font-weight:700;letter-spacing:1.2px;color:#47718a}
.es-chatbot-heading h2{margin:4px 0 0;font-size:20px;line-height:1.35;color:#004a4d;font-weight:700}
.es-chatbot-subtitle{margin:4px 0 0;font-size:11px;line-height:1.5;color:#6b7f89}
.es-chatbot-close{display:flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;margin:-5px -5px 0 0;border:0;border-radius:50%;background:transparent;color:#587286;font-size:26px!important;line-height:1}
.es-chatbot-close:hover{background:#dde9ec}

.es-chatbot-messages{flex:1;min-height:170px;max-height:330px;overflow-y:auto;overscroll-behavior:contain;padding:15px 15px 8px;display:flex;flex-direction:column;gap:10px}
.es-chatbot-msg{max-width:88%;padding:11px 13px;border-radius:14px;font-size:13px;line-height:1.7;white-space:pre-line}
.es-chatbot-msg p{margin:0}
.es-chatbot-msg--bot{align-self:flex-start;background:#f2f7f8;border:1px solid #dce7ea;color:#173b51;border-bottom-left-radius:4px}
.es-chatbot-msg--user{align-self:flex-end;background:#006e70;color:#fff;border-bottom-right-radius:4px}
.es-chatbot-en{display:block;margin-top:6px!important;font-size:11px;line-height:1.55;color:#7b8e96}

.es-chatbot-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.es-chatbot-links a{display:inline-flex;align-items:center;min-height:36px;padding:5px 11px;border:1px solid #aac6cd;border-radius:16px;background:#fff;color:#005b5e;font-size:12px;font-weight:700;text-decoration:none}
.es-chatbot-links a:hover{background:#e6f0f1}

.es-chatbot-chips{display:flex;flex-wrap:wrap;gap:6px;padding:6px 15px 10px;border-top:1px solid #eef3f4}
.es-chatbot-chips button{min-height:36px;padding:5px 11px;border:1px solid #d5e2e7;border-radius:16px;background:#fff;color:#5a6b75;font-size:12px!important}
.es-chatbot-chips button:hover{background:#f0f6f7;color:#004a4d}

.es-chatbot-input{display:flex;gap:8px;padding:9px 15px 12px;border-top:1px solid #eef3f4}
.es-chatbot-input input{flex:1;min-height:42px;padding:8px 12px;border:1px solid #d5e2e7;border-radius:10px;font:inherit;font-size:13px;color:#173b51;background:#fff}
.es-chatbot-input input::placeholder{color:#9db0b8}
.es-chatbot-input button{display:flex;align-items:center;justify-content:center;min-width:46px;min-height:42px;border:0;border-radius:10px;background:#006e70;color:#fff;font-size:15px!important}
.es-chatbot-input button:hover{background:#005559}

.es-chatbot-note{margin:0;padding:7px 15px 13px;font-size:10.5px;line-height:1.6;color:#7b8e96}
.es-chatbot-note a{color:#004a4d;font-weight:700;text-decoration:none}
.es-chatbot-note a:hover{text-decoration:underline}

@media(max-width:540px){
  .es-chatbot{right:12px;bottom:calc(84px + env(safe-area-inset-bottom,0px))}
  .es-chatbot-launcher{width:48px;min-height:48px;padding:12px;gap:0}
  .es-chatbot-launcher>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
  .es-chatbot-panel{bottom:58px;width:360px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 200px - env(safe-area-inset-bottom,0px))}
  .es-chatbot-messages{min-height:140px}
}

@media print{.es-chatbot{display:none!important}}
