#kst-support,
#kst-support * { box-sizing: border-box; }
#kst-support {
  position: fixed;
  right: 24px;
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  color: #303b3a;
  font-family: Arial, "Noto Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}
#kst-support [hidden] { display: none !important; }
#kst-support .kst-support__launcher {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .2);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}
#kst-support .kst-support__launcher:hover { background: #1abd5b; }
#kst-support .kst-support__panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 140px);
  max-height: calc(100dvh - 140px);
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 9px;
  background: #f6f6f6;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .18);
}
#kst-support .kst-support__header {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 16px 42px 17px 24px;
  background: #078f81;
  color: #fff;
}
#kst-support .kst-support__header h2 {
  margin: 0 0 5px;
  padding: 0;
  color: #fff;
  font: 600 16px/1.35 Arial, "Noto Sans SC", sans-serif !important;
  letter-spacing: 0;
  text-transform: none !important;
}
#kst-support .kst-support__header p {
  margin: 0;
  color: #d3eeeb;
  font: 400 11.5px/1.45 Arial, "Noto Sans SC", sans-serif;
}
#kst-support .kst-support__close {
  position: absolute;
  top: 7px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
#kst-support .kst-support__close:hover { background: rgba(255, 255, 255, .14); }
#kst-support .kst-support__agents { display: grid; gap: 5px; padding: 5px; }
#kst-support .kst-support__agent {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dedede;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .16);
}
#kst-support .kst-support__chat {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  margin: 0;
  padding: 6px 18px 3px 6px;
  background: #fff;
  color: #303b3a;
  text-decoration: none;
}
#kst-support .kst-support__chat:hover { background: #f4fbf8; }
#kst-support .kst-support__avatar {
  display: block;
  width: 54px;
  height: 54px;
  max-width: none;
  margin: 0;
  border: 2px solid #e1b47c;
  border-radius: 50%;
  object-fit: cover;
  object-position: 54% 30%;
}
#kst-support .kst-support__person { display: grid; gap: 1px; min-width: 0; }
#kst-support .kst-support__person strong {
  color: #303b3a;
  font: 400 16px/1.3 Arial, "Noto Sans SC", sans-serif;
  text-transform: none;
  letter-spacing: 0;
}
#kst-support .kst-support__person small {
  color: #303b3a;
  font: 400 11.5px/1.3 Arial, sans-serif;
}
#kst-support .kst-support__chat-icon { color: #0fc75a; font-size: 21px; }
#kst-support .kst-support__email {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  margin: -2px 0 3px 70px;
  padding: 2px 8px 2px 0;
  color: #49645e;
  font: 400 12px/1.3 Arial, "Noto Sans SC", sans-serif;
  text-decoration: none;
}
#kst-support .kst-support__email:hover { color: #078f81; text-decoration: underline; }
#kst-support .kst-support__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
  padding: 6px 12px 8px;
  color: #646c69;
  background: #fff;
  font: 400 11px/1.4 Arial, "Noto Sans SC", sans-serif;
  text-align: center;
}
#kst-support a:focus-visible,
#kst-support button:focus-visible { outline: 3px solid #54283f; outline-offset: -3px; }
@media (max-width: 767px) {
  #kst-support { right: 16px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  #kst-support .kst-support__panel {
    max-height: calc(100vh - 190px - env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 190px - env(safe-area-inset-bottom, 0px));
  }
  #kst-support .kst-support__email { min-height: 44px; margin-bottom: 0; }
  #kst-support .kst-support__close { width: 44px; height: 44px; top: 0; right: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  #kst-support .kst-support__launcher { transition: background-color .15s; }
}


/* Keep hover enlargement inside the existing card gutters. */
#kst-support .kst-support__agent { position: relative; transform-origin: center; }
@media (hover: hover) and (pointer: fine) {
  #kst-support .kst-support__agent:hover,
  #kst-support .kst-support__agent:focus-within {
    transform: scale(1.02);
    z-index: 1;
    border-color: #078f81;
    box-shadow: 0 3px 8px rgba(7, 143, 129, .24);
  }
  #kst-support .kst-support__chat:hover .kst-support__avatar,
  #kst-support .kst-support__chat:focus-visible .kst-support__avatar { transform: scale(1.08); }
  #kst-support .kst-support__launcher:hover { transform: scale(1.08); }
}
@media (prefers-reduced-motion: no-preference) {
  #kst-support .kst-support__agent { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
  #kst-support .kst-support__avatar { transition: transform .18s ease; }
  #kst-support .kst-support__launcher { transition: transform .18s ease, background-color .15s; }
}
@media (prefers-reduced-motion: reduce) {
  #kst-support .kst-support__agent,
  #kst-support .kst-support__avatar,
  #kst-support .kst-support__launcher { transform: none !important; }
}
