body:has(.pe-a1-surface) #pe-widget-root.pe-layout-slide-in .pe-header-contact,
body:has(.pe-a1-surface) #pe-widget-root .pe-header .pe-new-conversation {
  display: none;
}
body:has(.pe-a1-surface) #pe-widget-root.pe-layout-slide-in #pe-chat-log .pe-msg-bot {
  background: #e5f3f1;
  color: #1e1e1e;
  border-radius: 14px;
  padding: 10px 14px;
}
body:has(.pe-a1-surface) #pe-widget-root #pe-chat-log :is(.pe-msg-user, .pe-msg-bot) {
  font-weight: 400;
}

/* Draw the input frame on the composer so native textarea painting cannot crop its edges. */
body:has(.pe-a1-surface) #pe-widget-root.pe-layout-slide-in #pe-chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  flex-shrink: 0;
  isolation: isolate;
}
body:has(.pe-a1-surface) #pe-widget-root.pe-layout-slide-in #pe-chat-composer::before {
  content: "";
  position: absolute;
  inset: 16px 22px var(--a1-bottom);
  z-index: -1;
  pointer-events: none;
  border: 1px solid #d4d4d4;
  border-radius: 14px;
  background: #f6f6f6;
}
body:has(.pe-a1-surface) #pe-widget-root.pe-layout-slide-in #pe-chat-composer textarea {
  width: 100%;
  max-width: 100%;
  margin: 0;
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  outline: 0;
  box-shadow: none;
}
body:has(.pe-a1-surface) #pe-widget-root.pe-layout-slide-in #pe-chat-composer:has(textarea:focus)::before {
  outline: 2px solid #1e1e1e;
  outline-offset: 1px;
}
@media (max-height: 450px) {
  body:has(.pe-a1-surface) #pe-widget-root.pe-layout-slide-in #pe-chat-composer::before {
    top: 4px;
  }
}

body:has(.pe-a1-surface) #pe-widget-root .pe-offline-card > p {
  display: none;
}
