/* Shunya Bots: Bright Path demo pop-up (DEMO). Loaded as a same-origin file (strict CSP, no inline styles).
   Chat colours follow the original Bright Path demo (demo1); trigger and badges use the site's brand variables. */

/* trigger: the screenshot is a real button, plus a visible "Try the demo" button under the caption */
.demo-shot .badge-float{pointer-events:none}
.demo-shot-open{position:relative;display:block;width:100%;padding:0;margin:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;border-radius:12px}
.demo-shot-open img{transition:transform .15s ease,box-shadow .15s ease}
.demo-shot-open:hover img{transform:translateY(-2px);box-shadow:0 22px 56px rgba(0,0,0,.55)}
.demo-shot-hint{position:absolute;right:14px;bottom:14px;display:inline-flex;align-items:center;gap:.45em;background:var(--sb-saffron);color:var(--sb-midnight);font-family:var(--sb-font-head);font-weight:600;font-size:.95rem;line-height:1.2;padding:9px 16px;border-radius:999px;box-shadow:0 6px 18px rgba(0,0,0,.35)}
.demo-shot-hint::before{content:"";width:0;height:0;border-left:9px solid var(--sb-midnight);border-top:6px solid transparent;border-bottom:6px solid transparent}
.demo-shot-open:hover .demo-shot-hint{background:#FFB547}
.demo-try{margin:16px 0 0}
.demo-try .btn-ghost{background:transparent}   /* <button> needs this: .btn-ghost was written for links */
.demo-try .btn-ghost:hover{background:rgba(246,247,251,.12)}
.demo-try + figcaption{margin-top:10px}
@media (prefers-reduced-motion:reduce){.demo-shot-open img{transition:none}.demo-shot-open:hover img{transform:none}}

/* scroll lock while the dialog is open */
.dc-lock{overflow:hidden;scrollbar-gutter:stable}
.dc-lock body{overflow:hidden}

/* dialog */
.dc-overlay{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(11,16,51,.74)}
.dc-overlay[hidden]{display:none}
.dc-panel{display:flex;flex-direction:column;width:min(440px,100%);height:min(680px,100%);overflow:hidden;background:#FFFFFF;color:#1E2A33;border-radius:16px;box-shadow:0 24px 60px rgba(0,0,0,.5);font-family:var(--sb-font-body);font-size:1rem;line-height:1.5}
.dc-panel:focus{outline:none}
.dc-head{display:flex;align-items:center;gap:10px;padding:10px 8px 10px 14px;background:#1F4E5F;color:#FFFFFF}
.dc-mark{flex:none;width:32px;height:32px;border-radius:8px}
.dc-titles{min-width:0}
.dc-title{margin:0;font-family:var(--sb-font-head);font-weight:600;font-size:1rem;line-height:1.25;color:#FFFFFF;letter-spacing:0}
.dc-sub{margin:0;font-size:.8rem;color:#E6F2F2}
.dc-restart{flex:none;margin-left:auto;min-height:36px;padding:6px 12px;border:1px solid rgba(255,255,255,.7);border-radius:999px;background:transparent;color:#FFFFFF;font:inherit;font-size:.8rem;font-weight:600;cursor:pointer}
.dc-restart:hover{background:rgba(255,255,255,.14)}
.dc-close{flex:none;width:44px;height:44px;border:0;border-radius:8px;background:none;color:#FFFFFF;font-size:1.75rem;line-height:1;cursor:pointer}
.dc-close:hover{background:rgba(255,255,255,.14)}
.dc-banner{margin:0;padding:6px 12px;background:#1E2A33;color:#FFFFFF;font-size:.78rem;line-height:1.35;text-align:center}
.dc-badge{display:inline-block;background:var(--sb-saffron,#FFA41B);color:var(--sb-midnight,#0B1033);font-family:var(--sb-font-head);font-weight:700;font-size:.7rem;letter-spacing:.1em;line-height:1.4;padding:2px 8px;border-radius:999px}

/* talking avatar bar (cartoon, not a real person). Voice is off by default; motion only while speaking. */
.dc-avbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:6px 10px 6px 12px;background:#F2F9F9;border-bottom:1px solid #DCEFEF}
.dc-avatar{position:relative;flex:none;width:44px;height:44px;border-radius:50%}
.dc-avatar::after{content:"";position:absolute;inset:-3px;border:2px solid #F2994A;border-radius:50%;opacity:0;pointer-events:none}
.dc-av-svg{display:block;width:100%;height:100%}
.dc-av-mouth{transform-box:fill-box;transform-origin:50% 50%}
.dc-avatar.is-speaking::after{opacity:1}
.dc-avatar.is-speaking .dc-av-mouth{animation:dc-talk .3s ease-in-out infinite alternate}
.dc-avatar.is-speaking.dc-beat-a::after{animation:dc-ring-a .45s ease-out}
.dc-avatar.is-speaking.dc-beat-b::after{animation:dc-ring-b .45s ease-out}
@keyframes dc-talk{from{transform:scaleY(1)}to{transform:scaleY(2.8)}}
@keyframes dc-ring-a{from{transform:scale(1);opacity:1}to{transform:scale(1.14);opacity:.35}}
@keyframes dc-ring-b{from{transform:scale(1);opacity:1}to{transform:scale(1.14);opacity:.35}}
.dc-av-text{flex:1;min-width:0}
.dc-av-label{margin:0;font-size:.8rem;font-weight:700;line-height:1.3;color:#1E2A33}
.dc-av-status{margin:0;font-size:.75rem;line-height:1.3;color:#475569}
.dc-voice{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:5px 12px 5px 10px;border:2px solid #1F4E5F;border-radius:999px;background:#FFFFFF;color:#1F4E5F;font:inherit;font-size:.82rem;font-weight:700;cursor:pointer}
.dc-voice[hidden]{display:none}
.dc-voice-note{flex:1 1 100%;margin:-4px 0 0;font-size:.72rem;line-height:1.3;color:#475569}
.dc-voice-note[hidden]{display:none}
.dc-voice:hover{background:#DCEFEF}
.dc-voice[aria-pressed="true"]{background:#1F4E5F;color:#FFFFFF}
.dc-voice[aria-pressed="true"]:hover{background:#163B48}
.dc-voice:focus-visible{outline:3px solid #1F4E5F;outline-offset:2px}
.dc-voice-icon{flex:none;width:18px;height:18px}
.dc-voice .dc-vi-on{display:none}
.dc-voice[aria-pressed="true"] .dc-vi-on{display:inline}
.dc-voice[aria-pressed="true"] .dc-vi-off{display:none}
@media (prefers-reduced-motion:reduce){
  .dc-avatar .dc-av-mouth,.dc-avatar::after,.dc-avatar.is-speaking .dc-av-mouth,.dc-avatar.is-speaking.dc-beat-a::after,.dc-avatar.is-speaking.dc-beat-b::after{animation:none}
  .dc-av-mouth{transform:none}
}

.dc-log{flex:1;display:flex;flex-direction:column;gap:10px;overflow-y:auto;overscroll-behavior:contain;padding:14px;background:#FFF8EE}
.dc-msg{max-width:88%;padding:10px 13px;border-radius:14px;font-size:.95rem;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.dc-bot{align-self:flex-start;background:#FFFFFF;border:1px solid #DCEFEF;border-bottom-left-radius:4px}
.dc-me{align-self:flex-end;background:#1F4E5F;color:#FFFFFF;border-bottom-right-radius:4px}
.dc-urgent{border-left:4px solid #1F4E5F;font-weight:600}
.dc-quick{display:flex;flex-wrap:wrap;gap:6px}
.dc-qr{min-height:40px;padding:6px 12px;border:2px solid #1F4E5F;border-radius:18px;background:#FFFFFF;color:#1F4E5F;font:inherit;font-size:.88rem;font-weight:700;cursor:pointer}
.dc-qr:hover{background:#DCEFEF}
.dc-typing{display:inline-flex;align-items:center;gap:4px;padding:12px 14px}
.dc-dot{width:7px;height:7px;border-radius:50%;background:#4B5A63;animation:dc-blink 1s infinite ease-in-out}
.dc-dot:nth-child(2){animation-delay:.15s}
.dc-dot:nth-child(3){animation-delay:.3s}
@keyframes dc-blink{0%,80%,100%{opacity:.25}40%{opacity:1}}
@media (prefers-reduced-motion:reduce){.dc-dot{animation:none;opacity:.7}}

.dc-msg-card{align-self:stretch;max-width:100%;padding:0;border:0;background:none;white-space:normal}
.dc-card{padding:14px;border:2px solid #1F4E5F;border-radius:14px;background:#FFFFFF}
.dc-card-title{margin:8px 0 6px;font-family:var(--sb-font-head);font-weight:600}
.dc-dl{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:0 0 10px}
.dc-dl dt{font-weight:700}
.dc-dl dd{margin:0;overflow-wrap:anywhere}
.dc-card-warn{margin:0 0 8px;padding:8px 10px;background:#FFF1D6;color:#7A4A00;border:1px dashed #C77700;border-radius:8px;font-weight:700}
.dc-card-note{margin:0;font-size:.85rem;color:#475569}

.dc-form{padding:10px 10px 8px;border-top:1px solid #DCEFEF;background:#FFFFFF}
.dc-row{display:flex;gap:8px}
#dc-input{flex:1;min-width:0;padding:10px 12px;border:2px solid #5E7F87;border-radius:10px;background:#FFFFFF;color:#1E2A33;font:inherit;font-size:1rem}
#dc-input::placeholder{color:#5B6770}
#dc-input:focus-visible{outline:3px solid #1F4E5F;outline-offset:1px}
.dc-send{flex:none;width:48px;min-height:44px;border:0;border-radius:10px;background:#1F4E5F;color:#FFFFFF;font-size:1.1rem;cursor:pointer}
.dc-send:hover{background:#163B48}
.dc-note{margin:6px 2px 0;font-size:.78rem;line-height:1.35;color:#475569}
.dc-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}

/* phones: full screen */
@media (max-width:640px){
  .dc-overlay{padding:0}
  .dc-panel{width:100%;height:100%;border-radius:0}
  .dc-avbar{gap:8px;padding:3px 8px 3px 10px}
  .dc-av-label,.dc-av-status{line-height:1.25}
  .dc-avbar{row-gap:4px}
  .dc-voice-note{margin:0;font-size:.7rem;line-height:1.25}
  .dc-avatar{width:40px;height:40px}
  .demo-shot-hint{right:10px;bottom:10px;font-size:.85rem;padding:7px 12px}
}
