#pgv-chat,[data-pgv-chat-open]{--pc-blue:#164f87;--pc-ink:#182c44;--pc-line:#dbe5ef;--pc-soft:#f4f8fc;box-sizing:border-box}
[data-pgv-chat-open]{cursor:pointer}
.pgv-chat-icon{display:inline-block;width:1em;height:1em;border:1.8px solid currentColor;border-radius:50% 50% 50% 15%;vertical-align:-.12em;flex:none}
#pgv-chat{position:fixed;inset:auto 24px 24px auto;margin:0;width:min(484px,calc(100vw - 48px));height:min(648px,calc(100dvh - 48px));max-width:none;max-height:none;border:1px solid #cad8e5;border-radius:20px;padding:0;color:#182c44;background:white;box-shadow:0 24px 80px #17355140;overflow:hidden;font:16px/1.5 system-ui,sans-serif;z-index:2147483647}
#pgv-chat[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
#pgv-chat::backdrop{background:#082b4c1a}
#pgv-chat *{box-sizing:border-box}
#pgv-chat button,#pgv-chat textarea{font:inherit}
#pgv-chat button{cursor:pointer}
.pgv-chat-head{display:flex;align-items:center;gap:13px;padding:14px 16px;background:white;border-bottom:1px solid #dbe5ef}
.pgv-chat-badge{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#e8f2fb;color:#164f87;flex:none}
#pgv-chat-title{font-size:18px;margin:0;line-height:1.2;color:#182c44;font-weight:700}
.pgv-chat-head small{font-size:13px;color:#52667e}
.pgv-chat-close{margin-left:auto;width:44px;height:44px;flex:none;border:0;background:#f4f8fc;border-radius:12px;color:#182c44;font-size:24px!important;padding:0}
.pgv-chat-messages{padding:24px 19px;overflow:auto;overscroll-behavior:contain;background:#f4f8fc;display:flex;flex-direction:column;gap:12px;min-height:0}
.pgv-chat-greeting,.pgv-chat-message{align-self:flex-start;max-width:92%;padding:12px 15px;border-radius:5px 15px 15px;background:white;border:1px solid #dbe5ef;white-space:pre-wrap;overflow-wrap:anywhere;flex:none}
.pgv-chat-messages:not(.has-history){justify-content:center}
.pgv-chat-greeting{align-self:center;max-width:330px;text-align:center;border-radius:14px;padding:18px 20px}
.pgv-chat-message.me{align-self:flex-end;border:0;border-radius:15px 5px 15px 15px;color:#122d49;background:#dfedfa}
.pgv-chat-compose{background:white;border-top:1px solid #dbe5ef;padding:12px 14px max(13px,env(safe-area-inset-bottom));display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;margin:0}
.pgv-chat-compose textarea{width:100%;min-height:49px;height:49px;max-height:110px;resize:vertical;border:1px solid #bccdde;border-radius:11px;padding:11px 12px;color:inherit;background:white;margin:0}
.pgv-chat-compose button[type=submit]{min-height:49px;border:0;border-radius:11px;background:#286cac;color:white;padding:0 14px;font-weight:700}
.pgv-chat-compose button[type=submit]:hover:enabled{background:#103f6d}
.pgv-chat-compose button:disabled{opacity:.5;cursor:default!important}
.pgv-chat-status{grid-column:1/-1;font-size:13px;color:#8c331f;margin:0}
.pgv-chat-older{align-self:center;border:0;background:transparent;color:#164f87;padding:6px 16px}
#pgv-chat [hidden]{display:none!important}

#pgv-chat textarea:focus{outline:1px solid #286cac;outline-offset:1px;border-color:#286cac}
@media(hover:hover) and (pointer:fine) and (min-width:768px){#pgv-chat .pgv-chat-close{opacity:var(--pgv-chat-close-opacity,0);transition:opacity .18s ease,color .18s ease}#pgv-chat .pgv-chat-close:hover,#pgv-chat .pgv-chat-close:focus-visible{opacity:1}#pgv-chat:focus-within .pgv-chat-close:focus-visible{opacity:1}}
@media(prefers-reduced-motion:reduce){#pgv-chat .pgv-chat-close{transition:none}}

#pgv-chat .pgv-chat-close{background:transparent;box-shadow:none}
#pgv-chat textarea:focus,#pgv-chat textarea:focus-visible{outline:0;box-shadow:none;border:1px solid #286cac}

@media(max-width:767px){
  #pgv-chat{inset:var(--pgv-chat-top,0) 0 auto;width:100%;height:var(--pgv-chat-height,100dvh);border:0;border-radius:0}
  .pgv-chat-head{padding-top:max(14px,env(safe-area-inset-top))}
  .pgv-chat-messages{padding:18px 13px}
  .pgv-chat-compose{padding-inline:10px;gap:7px}
  .pgv-chat-compose button[type=submit]{padding:0 10px}
}

#pgv-chat textarea:focus,#pgv-chat textarea:focus-visible{outline:0;border-color:#91adc4;box-shadow:0 0 9px 2px rgba(55,125,185,.18)}
@media(prefers-reduced-motion:no-preference){#pgv-chat textarea.pgv-chat-focus-pulse:focus{animation:pgv-chat-focus-halo 2700ms ease-in-out 2}}
@keyframes pgv-chat-focus-halo{0%,100%{box-shadow:0 0 8px 2px rgba(55,125,185,.14)}50%{box-shadow:0 0 13px 3px rgba(55,125,185,.24)}}
.spcl-modal__actions .pgv-chat-action--telegram{background:#229ed9!important;color:#fff!important}
.spcl-modal__actions .pgv-chat-action--chat{background:#16a34a!important;color:#fff!important}
.spcl-modal__actions .pgv-chat-action--max{background:#111827!important;color:#fff!important}
.spcl-modal__actions .pgv-chat-action--telegram,.spcl-modal__actions .pgv-chat-action--chat,.spcl-modal__actions .pgv-chat-action--max{box-sizing:border-box;min-height:44px;padding:10px 12px;border:0;border-radius:8px;font:800 15px/1.2 Arial,sans-serif;text-align:center;text-decoration:none}
.spcl-modal__actions a.pgv-chat-action--chat{display:flex;align-items:center;justify-content:center;width:100%;cursor:pointer}
.spcl-modal__actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.spcl-modal__actions>*{min-width:0}
.spcl-modal__actions .pgv-chat-action--telegram:hover,.spcl-modal__actions .pgv-chat-action--chat:hover,.spcl-modal__actions .pgv-chat-action--max:hover{filter:brightness(.94)}
