.site-chat-closed #cw-widget-holder,
.site-chat-closed #cw-bubble-holder {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.site-chat-controls {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(420px, calc(100% - 24px));
  min-height: 52px;
  padding: 4px 8px 4px 14px;
  box-sizing: border-box;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  color: #344054;
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, .12);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.site-chat-controls[hidden],
.site-chat-controls[data-state="open"] { display: none; }
.site-chat-controls button {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: #344054;
  background: #f3f4f6;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
@media (max-width: 668px) {
  .site-chat-controls[data-state="open"] {
    display: flex;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: calc(52px + env(safe-area-inset-top, 0px));
    padding-top: calc(4px + env(safe-area-inset-top, 0px));
    border-radius: 0;
    box-shadow: none;
  }
  .site-chat-controls[data-state="open"][hidden] { display: none; }
  .site-chat-open #cw-widget-holder {
    top: calc(52px + env(safe-area-inset-top, 0px)) !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: calc(100vh - 52px - env(safe-area-inset-top, 0px)) !important;
    height: calc(100dvh - 52px - env(safe-area-inset-top, 0px)) !important;
    max-height: none !important;
    margin: 0 !important;
    transform: none !important;
  }
  .site-chat-open #cw-widget-holder iframe {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
  }
}
