/* UMS live chat widget. Navy, cyan, and orange palette; large text and high contrast. */
.ums-chat, .ums-chat * { box-sizing: border-box; }
.ums-chat [hidden] { display: none !important; }
.ums-chat { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 9990; font-family: inherit; font-size: 16px; line-height: 1.5; color: #0b1f3a; }

.ums-chat-launch { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 20px; border: 0; border-radius: 999px; background: #0b1f3a; color: #fff; font-weight: 700; font-size: 16px; line-height: 1.2; font-family: inherit; cursor: pointer; box-shadow: 0 10px 28px rgba(11,31,58,.35); }
.ums-chat-launch:hover { background: #13305a; }
.ums-chat-launch:focus-visible, .ums-chat button:focus-visible, .ums-chat a:focus-visible, .ums-chat textarea:focus-visible, .ums-chat input:focus-visible { outline: 3px solid #ff8a1f; outline-offset: 2px; }
.ums-chat-launch-icon { font-size: 22px; line-height: 1; }
.ums-chat-badge { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: #ff8a1f; color: #0b1f3a; font-weight: 800; font-size: 14px; display: inline-grid; place-items: center; }

.ums-chat-panel { position: absolute; right: 0; bottom: 64px; width: min(400px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 110px)); display: flex; flex-direction: column; background: #fff; border: 2px solid #0b1f3a; border-radius: 18px; box-shadow: 0 18px 50px rgba(11,31,58,.35); overflow: hidden; }
.ums-chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px; background: #0b1f3a; color: #fff; }
.ums-chat-head strong { display: block; font-size: 19px; }
.ums-chat-head small { display: block; color: #e6f7fb; font-size: 15px; margin-top: 2px; }
.ums-chat-head .ums-chat-staff-link { display: inline-block; margin-top: 6px; color: #7fe3f7; font-weight: 700; font-size: 15px; }
.ums-chat-close { flex: 0 0 auto; width: 44px; height: 44px; border: 0; border-radius: 10px; background: rgba(255,255,255,.14); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.ums-chat-close:hover { background: rgba(255,255,255,.26); }

.ums-chat-body { flex: 1 1 auto; overflow-y: auto; padding: 16px 16px 8px; background: #f3f8fc; min-height: 120px; }
.ums-chat-hello { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: #0b1f3a; }
.ums-chat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ums-chat-chip { min-height: 44px; padding: 8px 14px; border: 2px solid #0b7fa3; border-radius: 999px; background: #fff; color: #0b1f3a; font-weight: 600; font-size: 15px; line-height: 1.2; font-family: inherit; cursor: pointer; }
.ums-chat-chip:hover { background: #e3f6fb; }

.ums-chat-messages { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ums-chat-bubble { max-width: 86%; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid #c9d7e6; }
.ums-chat-bubble.me { margin-left: auto; background: #0b1f3a; color: #fff; border-color: #0b1f3a; border-bottom-right-radius: 4px; }
.ums-chat-bubble.them { margin-right: auto; border-bottom-left-radius: 4px; }
.ums-chat-bubble small { display: block; font-size: 14px; font-weight: 700; color: #35506e; }
.ums-chat-bubble.me small { color: #bfe9f5; }
.ums-chat-bubble p { margin: 2px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; color: inherit; }
.ums-chat-bubble time { display: block; font-size: 17px; color: #35506e; text-align: right; }
.ums-chat-bubble.me time { color: #bfe9f5; }

.ums-chat-status { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff4e5; border: 2px solid #ff8a1f; color: #5a2d00; font-size: 16px; font-weight: 600; }

.ums-chat-start, .ums-chat-form { display: grid; gap: 10px; padding: 14px 16px 10px; background: #fff; border-top: 1px solid #c9d7e6; }
.ums-chat-form { grid-template-columns: 1fr auto; align-items: end; }
.ums-chat-field { display: grid; gap: 4px; font-size: 15px; font-weight: 700; color: #0b1f3a; }
.ums-chat-field-grow { min-width: 0; }
.ums-chat input, .ums-chat textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 2px solid #7d8fa8; border-radius: 10px; background: #fff; color: #0b1f3a; font-weight: 400; font-size: 16px; line-height: 1.4; font-family: inherit; resize: vertical; }
.ums-chat input:focus, .ums-chat textarea:focus { border-color: #0b7fa3; }
.ums-chat-signed { margin: 0; font-size: 15px; font-weight: 600; color: #0b1f3a; }
.ums-chat .ums-chat-submit { min-height: 48px; padding: 10px 18px; border: 0; border-radius: 10px; background: #ff8a1f; color: #0b1f3a; font-weight: 800; font-size: 16px; line-height: 1.2; font-family: inherit; cursor: pointer; }
.ums-chat .ums-chat-submit:hover { background: #ff9f3d; }
.ums-chat .ums-chat-submit:disabled { opacity: .7; cursor: wait; }
.ums-chat-foot { margin: 0; padding: 0 16px 14px; background: #fff; font-size: 14px; color: #35506e; }

@media (max-width: 560px) {
  .ums-chat { right: 12px; bottom: 12px; }
  .ums-chat-launch-label { display: none; }
  .ums-chat-launch { width: 58px; height: 58px; min-height: 58px; padding: 0; justify-content: center; }
  .ums-chat-panel { position: fixed; inset: 0; width: 100vw; max-height: none; height: 100dvh; border-radius: 0; border: 0; bottom: auto; right: auto; }
  .ums-chat-body { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .ums-chat * { transition: none !important; } }
