/* P N Fintech V2.0.17 — Madhav smart footer docking.
   Scoped, additive. Keep V2.0.16 and original chatbot styles unchanged. */
.site-footer .pn-footer-chat-dock {
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  flex:0 0 auto; min-height:34px; padding:6px 13px;
  border:1px solid rgba(246,204,109,.85); border-radius:999px;
  background:linear-gradient(115deg,#073a4a,#007452); color:#fff;
  box-shadow:0 3px 12px rgba(0,0,0,.17); font-size:11px;
  font-weight:750; line-height:1.2; white-space:nowrap; cursor:pointer;
  transition:background .2s ease,box-shadow .2s ease;
}
.site-footer .pn-footer-chat-dock>span {color:#f8d77c;font-size:16px;line-height:1;}
.site-footer .pn-footer-chat-dock:hover {text-decoration:none;background:linear-gradient(115deg,#075d59,#078457);box-shadow:0 4px 14px #0004;}
.site-footer .pn-footer-chat-dock:focus-visible {outline:2px solid #ffe19a;outline-offset:3px;}
/* Dock mode only when policy row is actually in view and chatbot is closed. */
.pn-assistant.pn-footer-docked:not(.pn-chat-open) .pn-chat-toggle {
  opacity:0; visibility:hidden; pointer-events:none; transform:none!important;
}
.pn-assistant .pn-chat-toggle {transition:opacity .18s ease,visibility .18s ease,transform .25s ease,box-shadow .25s ease;}
/* Existing V2.0.16 CSS reserves right space for the former fixed pill.
   With inline docking, restore that area for useful footer links. */
@media (min-width:701px) {
  .site-footer .footer-baseline>.shell {gap:16px;}
  .site-footer .footer-baseline>.shell>div:last-child {padding-right:0!important;flex:0 1 auto;}
  .site-footer .pn-footer-chat-dock {margin-left:auto;}
}
@media (max-width:700px) {
  .site-footer .footer-baseline>.shell {padding-bottom:18px;gap:12px;}
  .site-footer .pn-footer-chat-dock {align-self:flex-start;min-height:38px;font-size:12px;}
  .site-footer .footer-baseline>.shell>div:last-child {padding-right:0!important;}
}
/* Open chat uses the original fixed panel, and remains closable by its X button. */
@media (max-width:640px) {
  .pn-assistant.pn-chat-open {bottom:max(12px,env(safe-area-inset-bottom))!important;}
  .pn-assistant.pn-chat-open .pn-chat-panel {max-height:calc(100dvh - 95px);}
}
@media(prefers-reduced-motion:reduce) {
  .pn-assistant .pn-chat-toggle,.site-footer .pn-footer-chat-dock{transition:none!important;}
}
