.cic-chat-launch[hidden], .cic-chat-drawer [hidden] { display: none !important; }
.cic-chat-launch, .cic-chat-drawer .cic-chat-action {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #52625a;
  line-height: 1;
}
.cic-chat-launch {
  position: relative;
  margin-inline-end: 8px;
  background: #eaf4ee;
  color: #235b40;
  font-size: 17px;
}
.cic-chat-launch:hover, .cic-chat-drawer .cic-chat-action:hover {
  background: #deeee5;
  color: #17452e;
}
.cic-chat-launch:focus-visible, .cic-chat-drawer .cic-chat-action:focus-visible {
  outline: 2px solid #26744b;
  outline-offset: 2px;
}
.cic-chat-tooltip {
  position: absolute;
  z-index: 2;
  inset: calc(100% + 8px) 0 auto auto;
  padding: 7px 9px;
  border-radius: 5px;
  background: #25332d;
  color: white;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.cic-chat-launch:is(:hover, :focus-visible) .cic-chat-tooltip { opacity: 1; }

.cic-chat-drawer {
  box-sizing: border-box;
  position: fixed;
  z-index: 11000;
  inset: var(--cic-chat-top, 0px) 0 0 auto;
  margin: 0;
  padding: 0;
  width: min(420px, 100%);
  max-width: none;
  height: calc(100% - var(--cic-chat-top, 0px));
  height: calc(100dvh - var(--cic-chat-top, 0px));
  max-height: none;
  overflow: hidden;
  border: 1px solid #dde6e0;
  border-radius: 8px 0 0 0;
  background: #fff;
  color: #263932;
  box-shadow: 0 10px 36px rgb(25 44 34 / 16%);
}
.cic-chat-drawer.cic-chat-expanded {
  width: 100%;
  border-inline: 0;
  border-radius: 0;
  box-shadow: none;
}
html.cic-chat-scroll-lock { overflow: hidden; }
.cic-chat-drawer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  animation: cic-chat-slide-in 180ms ease-out;
}
.cic-chat-drawer::backdrop { background: transparent; }
@keyframes cic-chat-slide-in { from { opacity: 0; transform: translateX(14px); } }
.cic-chat-drawer-header {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 52px;
  padding: max(7px, env(safe-area-inset-top)) 10px 7px 15px;
  border-block-end: 1px solid #e4ebe6;
}
.cic-chat-drawer-header h2 {
  flex: 1 1 auto;
  margin: 0;
  color: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}
.cic-chat-drawer-frame { display: block; border: 0; width: 100%; height: 100%; }
.cic-chat-drawer-status { align-self: center; margin: 0; padding: 20px; color: #637369; text-align: center; }
.cic-chat-close .cic-chat-back-icon { display: none; }
.cic-chat-expand .cic-chat-collapse-icon, .cic-chat-expanded .cic-chat-expand .cic-chat-expand-icon { display: none; }
.cic-chat-expanded .cic-chat-expand .cic-chat-collapse-icon { display: inline-block; }

@media (max-width: 700px) {
  .cic-chat-drawer { inset: 0; width: 100%; height: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .cic-chat-drawer-header { padding-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right)); }
  .cic-chat-close { order: -1; }
  .cic-chat-close .cic-chat-back-icon { display: inline-block; }
  .cic-chat-close .cic-chat-close-icon { display: none; }
  .cic-chat-drawer .cic-chat-expand { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cic-chat-drawer[open] { animation: none; }
}
