/* Sentosa chat assistant widget (assets/js/chat.js): an ink launcher, a white panel in the site's type, full screen on
   phones. Scoped under .shc so it cannot touch the page. */
.shc { --shc-ink: #151515; --shc-muted: #5f5f5f; --shc-line: rgba(0, 0, 0, 0.1); --shc-surface: #f7f7f7; position: fixed; right: 20px; bottom: calc(20px + var(--shc-lift, 0px)); z-index: 9990; transition: bottom 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); font-family: var(--sh-sans, system-ui, sans-serif); color: var(--shc-ink); }
.shc *, .shc *::before, .shc *::after { box-sizing: border-box; }
.shc-launch { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 20px 0 8px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 999px; background: var(--shc-ink); color: #fff; font: 500 15px/1 var(--sh-sans, system-ui, sans-serif); letter-spacing: -0.01em; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.16); cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; animation: shc-rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s both; }
.shc-launch:hover { background: #222; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(253, 168, 46, 0.28); }
.shc-launch:active { transform: translateY(0) scale(0.98); }
.shc-launch:focus-visible, .shc button:focus-visible, .shc a:focus-visible, .shc textarea:focus-visible, .shc input:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }
/* The Sentosa mark in its own red to amber, on a dark disc, with a small "online" dot: the bot is always there. */
.shc-mark, .shc-avatar { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #262626 url(../img/sentosa-mark.svg) center / 20px no-repeat; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.shc-mark::after, .shc-avatar::after { content: ""; position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: #34c76f; box-shadow: 0 0 0 2px var(--shc-ink); }
@keyframes shc-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.shc.is-open .shc-launch { display: none; }
.shc-panel { position: fixed; right: 20px; bottom: calc(20px + var(--shc-lift, 0px)); display: flex; flex-direction: column; width: 380px; height: min(600px, calc(100vh - 40px - var(--shc-lift, 0px))); border-radius: 12px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28); overflow: hidden; }
.shc-panel { transform-origin: bottom right; animation: shc-open 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
.shc-panel[hidden] { display: none; }
@keyframes shc-open { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
.shc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 12px 14px 16px; background: var(--shc-ink); color: #fff; }
.shc-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.shc-names { min-width: 0; }
.shc-sub { margin: 3px 0 0; font: 400 12px/1.3 var(--sh-sans, system-ui, sans-serif); color: rgba(255, 255, 255, 0.62); }
.shc-title { margin: 0; font: 400 20px/1.2 var(--sh-serif, Georgia, serif); letter-spacing: -0.02em; color: #fff; }
.shc-close { width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.shc-close:hover { background: rgba(255, 255, 255, 0.12); }
.shc-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.shc-msg { max-width: 88%; padding: 10px 12px; border-radius: 10px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.shc-msg p { margin: 0; }
.shc-msg p + p, .shc-msg p + ul, .shc-msg ul + p { margin-top: 8px; }
.shc-msg ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; }
.shc-msg li + li { margin-top: 2px; }
.shc-msg a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.shc-msg-bot { align-self: flex-start; background: var(--shc-surface); color: var(--shc-ink); }
.shc-msg-user { align-self: flex-end; background: var(--shc-ink); color: #fff; }
.shc-msg-error { background: #fff4f0; color: #8a2b0c; }
.shc-typing { display: inline-flex; gap: 4px; padding: 14px; }
.shc-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--shc-muted); animation: shc-dot 1s infinite ease-in-out; }
.shc-typing span:nth-child(2) { animation-delay: 0.15s; }
.shc-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes shc-dot { 0%, 80%, 100% { opacity: 0.3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.shc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.shc-chip { padding: 7px 12px; border: 1px solid var(--shc-line); border-radius: 999px; background: #fff; color: var(--shc-ink); font: 500 13px/1.2 var(--sh-sans, system-ui, sans-serif); cursor: pointer; }
.shc-chip:hover { background: var(--shc-surface); }
.shc-formbox { padding: 0 16px; max-height: 50%; overflow-y: auto; }
.shc-form { display: grid; gap: 8px; padding: 12px; margin-bottom: 10px; border: 1px solid var(--shc-line); border-radius: 10px; }
.shc-form-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 4px; }
.shc-form-title { margin: 0; font-weight: 600; font-size: 14px; }
.shc-form-close { flex: none; width: 32px; height: 32px; margin: -6px -6px -6px 0; border: 0; border-radius: 6px; background: none; color: var(--shc-muted); font-size: 22px; line-height: 1; cursor: pointer; }
.shc-form-close:hover, .shc-form-close:focus-visible { background: var(--shc-line); color: var(--shc-ink); }
.shc-field { display: grid; gap: 4px; font-size: 13px; color: var(--shc-muted); }
.shc-field input, .shc-field textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--shc-line); border-radius: 6px; font: 15px/1.4 var(--sh-sans, system-ui, sans-serif); color: var(--shc-ink); }
.shc-field textarea { min-height: 64px; resize: vertical; }
.shc-field [aria-invalid="true"] { border-color: #b3261e; }
.shc-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.shc-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.4; color: var(--shc-muted); }
.shc-submit, .shc-send { padding: 9px 14px; border: 0; border-radius: 6px; background: var(--shc-ink); color: #fff; font: 500 14px/1 var(--sh-sans, system-ui, sans-serif); cursor: pointer; }
.shc-submit[disabled] { opacity: 0.6; }
.shc-form-status { margin: 0; font-size: 13px; color: #b3261e; }
.shc-thanks { margin: 0 0 10px; padding: 12px; border-radius: 10px; background: #eef7f0; color: #1d5b2e; font-size: 14px; }
.shc-bar { display: flex; gap: 8px; align-items: flex-end; padding: 10px 16px; border-top: 1px solid var(--shc-line); }
.shc-input { flex: 1; min-height: 40px; max-height: 120px; padding: 9px 10px; border: 1px solid var(--shc-line); border-radius: 8px; font: 15px/1.4 var(--sh-sans, system-ui, sans-serif); color: var(--shc-ink); resize: none; }
.shc-note { margin: 0; padding: 0 16px 12px; font-size: 12px; color: var(--shc-muted); }
.shc-note a { color: var(--shc-muted); text-decoration: underline; }
.shc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) {
  .shc { right: 12px; bottom: calc(12px + var(--shc-lift, 0px)); }
  .shc-panel { inset: 0; width: 100%; height: 100%; border-radius: 0; }
  /* Full screen on a phone: an open chat sits over the cookie banner, which is back when the chat closes. */
  .shc.is-open { z-index: 100000; }
}
@media (prefers-reduced-motion: reduce) { .shc-typing span, .shc-launch, .shc-panel { animation: none; } .shc, .shc-launch { transition: none; } .shc-launch:hover { transform: none; } }
