.ap-cherry-shell{
  --ap-primary:#075DAA;
  --ap-accent:#E52575;
  font-family:Arial,Helvetica,sans-serif;
  font-size:16px;
  line-height:1.4;
  color:#14324a;
  z-index:2147483000;
}
.ap-cherry-shell,
.ap-cherry-shell *{box-sizing:border-box}
.ap-cherry-shell.is-floating{
  position:fixed;
  right:max(22px,env(safe-area-inset-right));
  bottom:max(22px,env(safe-area-inset-bottom));
}
.ap-cherry-launch{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:grid!important;
  place-items:center!important;
  width:62px!important;
  min-width:62px!important;
  max-width:62px!important;
  height:62px!important;
  min-height:62px!important;
  max-height:62px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  background:var(--ap-primary)!important;
  color:#fff!important;
  line-height:1!important;
  text-align:center!important;
  text-indent:0!important;
  overflow:visible!important;
  box-shadow:0 8px 28px #0003!important;
  cursor:pointer;
  isolation:isolate;
}
.ap-cherry-launch:hover{transform:translateY(-1px)}
.ap-cherry-launch:focus-visible{outline:3px solid #fff;outline-offset:3px}
.ap-cherry-launch[hidden],
.ap-cherry-shell.is-open .ap-cherry-launch{display:none!important}
.ap-cherry-launch-icon{
  display:grid!important;
  place-items:center!important;
  width:40px!important;
  height:40px!important;
  margin:0!important;
  padding:0!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
}
.ap-cherry-icon{display:block!important;width:100%!important;height:100%!important;overflow:visible!important}
.ap-cherry-panel{
  position:relative;
  width:min(410px,calc(100vw - 24px));
  min-width:min(320px,calc(100vw - 24px));
  max-width:calc(100vw - 24px);
  height:min(650px,calc(100dvh - 76px));
  max-height:calc(100dvh - 24px);
  background:#fff;
  border-radius:18px;
  box-shadow:0 16px 50px #0004;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.ap-cherry-panel[hidden]{display:none!important}
.ap-cherry-header{
  min-height:66px;
  background:var(--ap-primary);
  color:#fff;
  padding:14px 50px 14px 14px;
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
}
.ap-cherry-avatar{
  flex:0 0 38px;
  width:38px;
  height:38px;
  padding:5px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff;
}
.ap-cherry-header strong,.ap-cherry-header span{display:block}
.ap-cherry-header strong{font-size:15px;line-height:1.2;color:#fff}
.ap-cherry-header span{font-size:11px;opacity:.92;margin-top:2px;color:#fff}
.ap-cherry-close{
  appearance:none!important;
  -webkit-appearance:none!important;
  position:absolute;
  right:12px;
  top:12px;
  width:34px!important;
  min-width:34px!important;
  height:34px!important;
  min-height:34px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  color:#fff!important;
  font:700 25px/1 Arial,sans-serif!important;
  text-align:center!important;
  cursor:pointer;
}
.ap-cherry-close:hover{background:#ffffff1f!important}
.ap-cherry-messages{
  flex:1;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  padding:14px;
  background:#f4f7fb;
  scroll-behavior:smooth;
}
.ap-message-row{display:flex;flex-direction:column;margin:8px 0}
.ap-message-row.user{align-items:flex-end}
.ap-message-row.bot{align-items:flex-start}
.ap-message-label{font-size:10px;color:#66788a;margin:0 4px 4px}
.ap-msg{max-width:88%;padding:11px 13px;border-radius:14px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45;font-size:14px}
.ap-msg.bot{background:#fff;border:1px solid #dbe4ef;border-top-left-radius:5px}
.ap-msg.user{background:var(--ap-primary);color:#fff;border-top-right-radius:5px}
.ap-msg a{overflow-wrap:anywhere}
.ap-action-card{margin:3px 0 10px}
.ap-cta{display:inline-block;background:var(--ap-accent);color:#fff!important;padding:10px 13px;border-radius:9px;text-decoration:none;font-size:13px;font-weight:700}
.ap-cherry-typing{font-size:12px;color:#667;padding:7px 14px;background:#f4f7fb}
.ap-cherry-form{display:flex;align-items:flex-end;gap:8px;padding:10px;border-top:1px solid #dde4ec;background:#fff;margin:0!important}
.ap-cherry-form textarea{
  appearance:none!important;
  -webkit-appearance:none!important;
  flex:1;
  width:auto!important;
  min-width:0!important;
  min-height:42px;
  max-height:112px;
  margin:0!important;
  resize:none;
  overflow-y:auto;
  border:1px solid #aebdcc!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#14324a!important;
  padding:10px 11px!important;
  font:14px/1.35 Arial,Helvetica,sans-serif!important;
  box-shadow:none!important;
}
.ap-cherry-form textarea:focus{outline:2px solid color-mix(in srgb,var(--ap-primary) 25%,transparent);border-color:var(--ap-primary)!important}
.ap-cherry-form button{
  appearance:none!important;
  -webkit-appearance:none!important;
  width:auto!important;
  min-width:64px!important;
  height:42px!important;
  min-height:42px!important;
  margin:0!important;
  padding:0 16px!important;
  border:0!important;
  border-radius:10px!important;
  background:var(--ap-primary)!important;
  color:#fff!important;
  font:700 13px/1 Arial,Helvetica,sans-serif!important;
  text-transform:none!important;
  letter-spacing:0!important;
  cursor:pointer;
}
.ap-cherry-toolbar{padding:0 12px 10px;background:#fff}
.ap-cherry-new{
  appearance:none!important;
  -webkit-appearance:none!important;
  width:auto!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:3px 0!important;
  border:0!important;
  background:transparent!important;
  color:#5c6f81!important;
  font:600 11px/1.3 Arial,Helvetica,sans-serif!important;
  text-transform:uppercase!important;
  letter-spacing:.03em!important;
  cursor:pointer;
}
.is-inline .ap-cherry-launch{display:none!important}
.is-inline .ap-cherry-panel{display:flex!important;position:relative;width:100%;height:650px}
@media(max-width:520px){
  .ap-cherry-shell.is-floating{right:max(8px,env(safe-area-inset-right));bottom:max(8px,env(safe-area-inset-bottom))}
  .ap-cherry-panel{width:calc(100vw - 16px);min-width:0;max-width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:14px}
  .ap-msg{max-width:92%}
}
@media(max-height:600px) and (min-width:521px){
  .ap-cherry-shell.is-floating{bottom:12px}
  .ap-cherry-panel{height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}
}
