/* Ask Hiraya — homepage concierge pilot */
:root{--hc-navy:#07162d;--hc-navy2:#102844;--hc-gold:#e6b64c;--hc-cream:#fbf7ef;--hc-ink:#0b1930;--hc-muted:#667085;--hc-border:rgba(7,22,45,.14)}
.hiraya-chat-root{position:fixed;right:24px;bottom:24px;z-index:2147482000;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--hc-ink)}
.hiraya-chat-launcher{appearance:none;border:0;border-radius:999px;background:var(--hc-gold);color:var(--hc-navy);min-height:54px;padding:0 20px;display:flex;align-items:center;gap:10px;font-weight:800;font-size:14px;box-shadow:0 14px 40px rgba(7,22,45,.24);cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}
.hiraya-chat-launcher:hover{transform:translateY(-2px);box-shadow:0 18px 44px rgba(7,22,45,.3)}
.hiraya-chat-launcher:focus-visible,.hiraya-chat-panel button:focus-visible,.hiraya-chat-panel a:focus-visible,.hiraya-chat-panel textarea:focus-visible{outline:3px solid rgba(231,182,76,.55);outline-offset:3px}
.hiraya-chat-mark{width:30px;height:30px;border-radius:50%;display:block;overflow:hidden;background:#f7f1e7;border:1px solid rgba(7,22,45,.18);flex:0 0 auto}.hiraya-chat-mark img{width:100%;height:100%;display:block;object-fit:cover}
.hiraya-chat-teaser{position:absolute;right:0;bottom:68px;width:280px;background:#fff;color:var(--hc-ink);border:1px solid var(--hc-border);border-radius:16px;padding:13px 42px 13px 14px;box-shadow:0 16px 42px rgba(7,22,45,.18);font-size:13px;line-height:1.4;opacity:0;transform:translateY(6px);pointer-events:none;transition:.22s ease}
.hiraya-chat-teaser.is-visible{opacity:1;transform:none;pointer-events:auto}
.hiraya-chat-teaser strong{display:block;margin-bottom:2px;color:var(--hc-navy)}
.hiraya-chat-teaser-close{position:absolute;right:8px;top:7px;border:0;background:transparent;color:#667085;width:30px;height:30px;border-radius:50%;cursor:pointer;font-size:19px}
.hiraya-chat-panel{position:absolute;right:0;bottom:68px;width:min(390px,calc(100vw - 32px));height:min(620px,calc(100vh - 120px));background:#fff;border:1px solid rgba(7,22,45,.12);border-radius:24px;box-shadow:0 24px 72px rgba(7,22,45,.3);overflow:hidden;display:none;grid-template-rows:auto 1fr auto}
.hiraya-chat-panel.is-open{display:grid;animation:hirayaChatIn .2s ease-out}
@keyframes hirayaChatIn{from{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:none}}
.hiraya-chat-head{background:linear-gradient(135deg,var(--hc-navy),#15395d);color:#fff;padding:18px 18px 16px;display:flex;align-items:center;gap:12px}
.hiraya-chat-avatar{width:42px;height:42px;border-radius:50%;display:block;overflow:hidden;background:#f7f1e7;border:1px solid rgba(255,255,255,.55);flex:0 0 auto}.hiraya-chat-avatar img{width:100%;height:100%;display:block;object-fit:cover}
.hiraya-chat-headcopy{min-width:0;flex:1}.hiraya-chat-headcopy strong{display:block;font-family:Georgia,serif;font-size:19px;letter-spacing:.01em}.hiraya-chat-headcopy span{display:block;margin-top:2px;font-size:12px;color:rgba(255,255,255,.74)}
.hiraya-chat-close{border:0;background:rgba(255,255,255,.1);color:#fff;width:36px;height:36px;border-radius:50%;cursor:pointer;font-size:22px;line-height:1}
.hiraya-chat-log{padding:17px 16px 8px;overflow:auto;background:linear-gradient(180deg,#fff 0%,#fbfaf6 100%);scroll-behavior:smooth}
.hiraya-chat-message{max-width:86%;padding:11px 13px;border-radius:16px;margin:0 0 10px;font-size:14px;line-height:1.48;white-space:pre-wrap}
.hiraya-chat-message.bot{background:#f1f4f8;color:var(--hc-ink);border-bottom-left-radius:6px}.hiraya-chat-message.user{margin-left:auto;background:var(--hc-navy);color:#fff;border-bottom-right-radius:6px}
.hiraya-chat-message a{color:#0b4f8a;font-weight:800;text-decoration:underline;text-underline-offset:2px}.hiraya-chat-message.user a{color:#fff}
.hiraya-chat-chips{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 14px}.hiraya-chat-chip{border:1px solid rgba(7,22,45,.18);background:#fff;color:var(--hc-navy);padding:8px 11px;border-radius:999px;font-weight:700;font-size:12px;cursor:pointer}.hiraya-chat-chip:hover{background:var(--hc-cream);border-color:rgba(231,182,76,.75)}
.hiraya-chat-actions{display:flex;flex-wrap:wrap;gap:8px;margin:9px 0 14px}.hiraya-chat-action{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 12px;border-radius:12px;text-decoration:none!important;font-size:12px;font-weight:800}.hiraya-chat-action.primary{background:var(--hc-gold);color:var(--hc-navy)!important}.hiraya-chat-action.secondary{background:#fff;color:var(--hc-navy)!important;border:1px solid var(--hc-border)}
.hiraya-chat-compose{border-top:1px solid rgba(7,22,45,.1);padding:11px;background:#fff}.hiraya-chat-compose form{display:flex;gap:8px;align-items:flex-end}.hiraya-chat-input{resize:none;flex:1;min-height:44px;max-height:104px;border:1px solid rgba(7,22,45,.18);border-radius:14px;padding:11px 12px;font:inherit;font-size:14px;color:var(--hc-ink);background:#fff}.hiraya-chat-send{width:44px;height:44px;border:0;border-radius:13px;background:var(--hc-navy);color:#fff;font-size:18px;cursor:pointer;flex:0 0 auto}.hiraya-chat-note{margin:8px 2px 0;color:#7a8392;font-size:10.5px;line-height:1.35}
@media(max-width:640px){.hiraya-chat-root{right:14px;bottom:14px}.hiraya-chat-launcher{min-height:50px;padding:0 16px}.hiraya-chat-panel{position:fixed;left:10px;right:10px;bottom:10px;width:auto;height:min(72vh,610px);border-radius:22px}.hiraya-chat-teaser{right:0;width:min(270px,calc(100vw - 28px))}}
@media(prefers-reduced-motion:reduce){.hiraya-chat-panel.is-open{animation:none}.hiraya-chat-launcher,.hiraya-chat-teaser{transition:none}}

/* Ask Hiraya AI backend states */
.hiraya-chat-typing{display:inline-flex;align-items:center;gap:5px;background:#f1f4f8;color:var(--hc-muted);padding:11px 13px;border-radius:16px;border-bottom-left-radius:6px;margin:0 0 10px;font-size:13px}
.hiraya-chat-typing i{width:6px;height:6px;border-radius:50%;background:#7c8797;display:block;animation:hirayaDot 1s infinite ease-in-out}
.hiraya-chat-typing i:nth-child(2){animation-delay:.15s}.hiraya-chat-typing i:nth-child(3){animation-delay:.3s}
@keyframes hirayaDot{0%,60%,100%{opacity:.35;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
.hiraya-chat-send[disabled],.hiraya-chat-input[disabled]{opacity:.62;cursor:not-allowed}
@media(prefers-reduced-motion:reduce){.hiraya-chat-typing i{animation:none}}

/* v2.2 polish */
.hiraya-chat-root.chat-open .hiraya-chat-launcher{display:none}
@media(max-height:760px) and (min-width:641px){
  .hiraya-chat-panel{height:min(590px,calc(100vh - 36px));bottom:0}
}
@media(max-width:640px){
  .hiraya-chat-root.chat-open{right:0;bottom:0}
  .hiraya-chat-panel{height:min(70vh,590px)}
}

/* v2.4 session-history controls */
.hiraya-chat-reset{
  width:36px;height:36px;border:0;border-radius:999px;background:rgba(255,255,255,.08);
  color:#fff;font-size:20px;line-height:1;cursor:pointer;margin-left:auto;margin-right:6px
}
.hiraya-chat-reset:hover{background:rgba(255,255,255,.15)}
.hiraya-chat-reset:focus-visible{outline:2px solid #e6b64c;outline-offset:2px}

/* v2.5 site-wide continuity */
.hiraya-chat-root{--hiraya-chat-sitewide:1}


/* v2.6 — true minimized state */
.hiraya-chat-mini{
  display:none;
  width:238px;
  min-height:58px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:18px;
  background:linear-gradient(135deg,var(--hc-navy),#15395d);
  color:#fff;
  box-shadow:0 18px 52px rgba(7,22,45,.28);
  padding:9px 12px;
  align-items:center;
  gap:10px;
  cursor:pointer;
  text-align:left;
}
.hiraya-chat-root.chat-minimized .hiraya-chat-mini{display:flex}
.hiraya-chat-root.chat-minimized .hiraya-chat-launcher,
.hiraya-chat-root.chat-minimized .hiraya-chat-panel,
.hiraya-chat-root.chat-minimized .hiraya-chat-teaser{display:none!important}
.hiraya-chat-mini-mark{
  width:34px;height:34px;border-radius:50%;overflow:hidden;display:block;flex:0 0 auto;
  background:#f7f1e7;border:1px solid rgba(255,255,255,.55)
}
.hiraya-chat-mini-mark img{width:100%;height:100%;display:block;object-fit:cover}
.hiraya-chat-mini-copy{display:block;min-width:0;flex:1}
.hiraya-chat-mini-copy strong{display:block;font-family:Georgia,serif;font-size:16px;line-height:1.15}
.hiraya-chat-mini-copy small{display:block;margin-top:3px;color:rgba(255,255,255,.72);font-size:10.5px;line-height:1.2}
.hiraya-chat-mini-expand{font-size:18px;line-height:1;color:#e6b64c}
.hiraya-chat-mini:hover{transform:translateY(-1px)}
.hiraya-chat-mini:focus-visible{outline:3px solid rgba(231,182,76,.6);outline-offset:3px}

.hiraya-chat-minimize{
  width:36px;height:36px;border:0;border-radius:999px;background:rgba(255,255,255,.08);
  color:#fff;font-size:22px;line-height:1;cursor:pointer;margin-right:6px;padding:0 0 5px
}
.hiraya-chat-minimize:hover{background:rgba(255,255,255,.15)}
.hiraya-chat-minimize:focus-visible{outline:2px solid #e6b64c;outline-offset:2px}

/* keep all three header controls comfortably aligned */
.hiraya-chat-reset{margin-left:auto;margin-right:0}
.hiraya-chat-close{flex:0 0 auto}
.hiraya-chat-minimize{flex:0 0 auto}

@media(max-width:640px){
  .hiraya-chat-root.chat-minimized{right:14px;bottom:14px}
  .hiraya-chat-mini{width:min(238px,calc(100vw - 28px))}
  /* Keep the proactive prompt from covering mobile page content or conversion controls. */
  .hiraya-chat-teaser{display:none!important}
}
