.site-chat[hidden], .site-chat [hidden] { display: none !important; }
.site-chat {
  position: fixed; z-index: 106; right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom)); font: 14px/1.5 system-ui, sans-serif;
}
.site-chat button, .site-chat input { font: inherit; }
.site-chat__launcher, .site-chat form button {
  min-height: 42px; padding: 9px 16px; border: 1px solid #38621e;
  border-radius: 24px; background: #38621e; color: white; cursor: pointer;
}
.site-chat__launcher { box-shadow: 0 4px 16px #1726112b; }
.site-chat__panel {
  position: absolute; bottom: 52px; right: 0; display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto auto;
  width: min(385px, calc(100vw - 32px)); height: min(490px, calc(100dvh - 90px));
  overflow: hidden; border: 1px solid #dce6d9; border-radius: 16px;
  background: #fff; color: #1c2226; box-shadow: 0 12px 42px #18251830;
}
.site-chat__panel header {
  display: flex; justify-content: space-between; align-items: center;
  background: #eff5eb; padding: 10px 16px; border-bottom: 1px solid #dce6d9;
}
.site-chat__panel h2 { font-size: 16px; margin: 0; }
.site-chat__close { cursor: pointer; background: transparent; border: 0; font-size: 24px !important; padding: 0 5px; color: #23361b; }
.site-chat__messages { overflow: auto; padding: 12px 14px; min-height: 0; }
.site-chat__messages p { margin: 0 0 8px; border-radius: 10px; background: #f0f4ee; padding: 8px 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.site-chat__messages .site-chat__user { margin-left: 25px; background: #e4eedc; }
.site-chat__messages a { display: block; color: #38621e; padding: 2px 8px 6px; }
.site-chat__status { color: #52634c; padding: 0 14px; min-height: 1.5em; margin: 0; }
.site-chat__privacy { margin: 0; padding: 3px 14px; color: #647060; font-size: 11px; line-height: 1.5; }
.site-chat form { display: flex; gap: 6px; padding: 6px 12px; }
.site-chat form input { padding: 8px; border: 1px solid #aebfac; border-radius: 8px; flex: 1; min-width: 0; }
.site-chat form button { border-radius: 8px; padding-inline: 12px; }
.site-chat form button:disabled { opacity: .55; cursor: wait; }
.site-chat__contact { padding: 2px 13px 9px; color: #38621e; }
@media print { .site-chat { display: none; } }
