/* MOTF Support Chat - floating button + chat window (matches the MOTF dark blue look) */
.motf-chat-launcher{position:fixed;right:22px;bottom:22px;z-index:9998;display:inline-flex;align-items:center;gap:9px;padding:12px 18px;border:1px solid #1d4f96;border-top-color:#5d9cf0;border-radius:999px;background:linear-gradient(180deg,#3a82e2 0%,#2563c0 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 3px 6px rgba(0,0,0,.4),0 12px 26px rgba(0,0,0,.45);color:#fff;font:600 14px/1 Inter,Arial,sans-serif;letter-spacing:.02em;cursor:pointer;transition:transform .15s ease}
.motf-chat-launcher:hover{transform:translateY(-1px)}
.motf-chat-launcher svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linejoin:round}
.motf-chat-launcher.is-open{opacity:.85}

.motf-chat-panel{position:fixed;right:22px;bottom:84px;z-index:9999;display:flex;flex-direction:column;width:380px;max-width:calc(100vw - 32px);height:560px;max-height:calc(100vh - 110px);overflow:hidden;background:linear-gradient(180deg,#0b1d2b 0%,#06131c 100%);border-top:1px solid #2c4254;border-right:1px solid #172731;border-bottom:1px solid #050d13;border-left:1px solid #172731;border-radius:10px;box-shadow:0 2px 4px rgba(0,0,0,.35),0 16px 40px rgba(0,0,0,.55);font-family:Inter,Arial,sans-serif;color:#d7e1e8}
.motf-chat-panel[hidden]{display:none}

.motf-chat-head{display:flex;align-items:center;gap:10px;padding:14px 14px 12px 18px;border-bottom:1px solid #173247;background:rgba(255,255,255,.02)}
.motf-chat-head-text{flex:1;min-width:0}
.motf-chat-head-text strong{display:block;font-family:"Michroma",Inter,Arial,sans-serif;font-size:13px;font-weight:400;letter-spacing:.14em;text-transform:uppercase;color:#f4f7f9}
.motf-chat-head-text small{display:block;margin-top:4px;font-size:12px;color:#8fb4d8}
.motf-chat-new{padding:6px 10px;border:1px solid #2c4254;border-radius:6px;background:transparent;color:#c8d7e5;font:500 12px Inter,Arial,sans-serif;cursor:pointer}
.motf-chat-new:hover{border-color:#4785E3;color:#fff}
.motf-chat-close{width:30px;height:30px;border:0;border-radius:6px;background:transparent;color:#c8d7e5;font-size:22px;line-height:1;cursor:pointer}
.motf-chat-close:hover{background:rgba(255,255,255,.06);color:#fff}

.motf-chat-list{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px}
.motf-chat-msg{max-width:88%;padding:10px 13px;border-radius:10px;font-size:14px;line-height:1.55;overflow-wrap:anywhere}
.motf-chat-bot{align-self:flex-start;background:#0f2436;border:1px solid #1b3a55;color:#d7e1e8;border-bottom-left-radius:3px}
.motf-chat-user{align-self:flex-end;background:#2563c0;color:#fff;border-bottom-right-radius:3px}
.motf-chat-msg a{color:#8fc0f5;text-decoration:underline;text-underline-offset:2px}
.motf-chat-user a{color:#fff}
.motf-chat-typing{color:#8fa8bb;font-style:italic}
.motf-chat-error{border-color:#7a3b3b;background:#2a1414;color:#f1c9c9}

.motf-chat-form{display:flex;gap:8px;padding:12px 12px 6px;border-top:1px solid #173247}
.motf-chat-input{flex:1;resize:none;min-height:44px;max-height:120px;padding:10px 12px;border:1px solid #2c4254;border-radius:8px;background:#06131c;color:#f4f7f9;font:14px/1.45 Inter,Arial,sans-serif}
.motf-chat-input:focus{outline:none;border-color:#4785E3}
.motf-chat-send{padding:0 16px;border:1px solid #1d4f96;border-top-color:#5d9cf0;border-radius:8px;background:linear-gradient(180deg,#3a82e2 0%,#2563c0 100%);color:#fff;font:600 14px Inter,Arial,sans-serif;cursor:pointer}
.motf-chat-send:disabled{opacity:.55;cursor:default}
.motf-chat-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}

.motf-chat-notice,.motf-chat-human{margin:0;padding:0 14px 6px;font-size:11.5px;line-height:1.45;color:#7f97aa}
.motf-chat-human{padding-bottom:12px}
.motf-chat-notice a,.motf-chat-human a{color:#8fc0f5}

@media (max-width:520px){
  .motf-chat-launcher{right:14px;bottom:14px}
  .motf-chat-panel{right:8px;left:8px;bottom:72px;width:auto;height:calc(100vh - 96px)}
}
