#support-widget-root {
  position: relative;
  z-index: 24;
}
#support-widget-root[hidden] {
  display: none !important;
}
.support-widget,
.support-widget * {
  box-sizing: border-box;
}
.support-launchers {
  position: fixed;
  right: max(6px, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 8px;
}
.support-launcher {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  min-height: 48px;
  padding: 7px 3px;
  border: 1px solid #ffffffb8;
  border-radius: 11px;
  background: linear-gradient(145deg, #ffffffa8, #e7f0fc47);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  color: #48647f;
  box-shadow:
    0 6px 22px #234c7710,
    inset 0 1px 0 #ffffffc2,
    inset 0 -1px 0 #c9d9ef40;
  font-size: 9px;
  line-height: 1.2;
  white-space: normal;
  transition:
    background 0.16s,
    box-shadow 0.16s,
    border-color 0.16s,
    color 0.16s;
}
.support-launcher svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.support-launcher:hover,
.support-launcher:focus-visible,
.support-launcher[aria-expanded="true"] {
  border-color: #ffffffde;
  color: #2563eb;
  background: linear-gradient(145deg, #ffffffd6, #dfebff80);
  box-shadow:
    0 8px 26px #234c771a,
    inset 0 1px 0 #fffffff0,
    inset 0 -1px 0 #b9cfee66;
}
.support-widget-panel {
  position: fixed;
  right: 58px;
  top: 50%;
  transform: translateY(-50%);
  width: 350px;
  max-width: calc(100vw - 80px);
  max-height: calc(
    100dvh - 44px - env(safe-area-inset-top) - env(safe-area-inset-bottom)
  );
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 21px;
  border: 1px solid #dce6f0;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 18px 55px #18385720;
  color: #253e5a;
  scrollbar-gutter: stable;
}
.support-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.support-panel-heading h2 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0;
}
.support-close {
  display: grid;
  place-items: center;
  min-width: 30px;
  min-height: 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6d8096;
  font-size: 21px;
  font-weight: 400;
  flex-shrink: 0;
}
.support-mode-switch {
  display: flex;
  gap: 5px;
  padding: 3px;
  background: #f1f5fa;
  border-radius: 8px;
}
.support-mode-switch button {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 7px 5px;
  min-height: 32px;
  background: transparent;
  color: #7b8da4;
  font-size: 11px;
  white-space: normal;
}
.support-mode-switch button[aria-pressed="true"] {
  background: #fff;
  color: #245fe5;
  box-shadow: 0 1px 5px #213d6410;
}
.support-widget-panel > p {
  font-size: 12px;
  line-height: 1.7;
  margin: 13px 0;
  color: #7b8da4;
}
.support-widget-panel label {
  display: block;
  font-size: 12px;
  margin: 12px 0;
  color: #526a85;
}
.support-widget-panel input,
.support-widget-panel textarea {
  width: 100%;
  min-width: 0;
  font-size: 12px;
  line-height: 1.6;
  padding: 10px 11px;
  margin-top: 6px;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  color: #28425e;
  background: #fff;
}
.support-widget-panel textarea {
  resize: vertical;
  min-height: 106px;
  max-height: 240px;
}
.support-widget-panel input[readonly],
.support-widget-panel textarea[readonly] {
  background: #f8fafc;
}
.support-sensitive-hint {
  font-size: 10px !important;
  color: #91a0b3 !important;
  line-height: 1.6;
  margin: 8px 0 !important;
}
.support-info {
  font-size: 11px;
  line-height: 1.6;
  color: #5276a2;
  margin: 9px 0;
}
.support-info:empty,
.support-widget-panel .form-error:empty {
  display: none;
}
.support-widget-panel .form-error {
  font-size: 11px;
  line-height: 1.6;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
#support-submit {
  width: 100%;
  font-size: 12px;
  margin-top: 5px;
  white-space: normal;
}
.support-panel-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #edf1f6;
}
.support-panel-footer button {
  padding: 0;
  min-height: 28px;
  font-size: 11px;
  border: 0;
  color: #6a82a0;
  background: none;
  white-space: normal;
}
.support-success {
  padding: 19px 0 8px;
  text-align: center;
}
.support-success-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0 auto 12px;
  border: 1px solid #c9e3ec;
  border-radius: 50%;
  background: #eff9fa;
  color: #3e94a4;
  font-size: 19px;
}
.support-success h3 {
  font-size: 15px;
  margin: 0;
}
.support-success p {
  font-size: 12px;
  line-height: 1.7;
  color: #7c8ea5;
  margin: 11px 0 17px;
}
.support-primary-link {
  display: inline-block;
  margin: 0 6px 4px;
  font-size: 12px;
  color: #2563eb;
}
.support-success button {
  display: block;
  margin: 7px auto 0;
  min-height: 30px;
  font-size: 11px;
}
.support-widget-panel:focus {
  outline: none;
}
.support-widget button:focus-visible,
.support-widget a:focus-visible {
  outline: 2px solid #80a9e9;
  outline-offset: 3px;
}
body:has(dialog[open]) #support-widget-root {
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 600px) {
  .support-launchers {
    right: max(10px, env(safe-area-inset-right));
    top: auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
    transform: none;
    grid-template-columns: repeat(2, 55px);
    gap: 7px;
  }
  .support-launcher {
    width: 55px;
    min-height: 55px;
    font-size: 9px;
    border-radius: 10px;
  }
  .support-launcher svg {
    width: 18px;
    height: 18px;
  }
  .support-widget-panel {
    right: max(12px, env(safe-area-inset-right));
    top: auto;
    bottom: calc(82px + env(safe-area-inset-bottom));
    transform: none;
    width: min(360px, calc(100% - 24px - env(safe-area-inset-right)));
    max-width: 360px;
    max-height: calc(100dvh - 106px - env(safe-area-inset-bottom));
    padding: 18px;
    border-radius: 13px;
  }
  .support-panel-heading h2 {
    font-size: 17px;
  }
  .support-widget-panel textarea {
    min-height: 94px;
  }
  body:not(.admin-portal) .site-footer {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }
}
@media (max-height: 620px) and (min-width: 601px) {
  .support-widget-panel {
    top: 20px;
    transform: none;
    max-height: calc(100dvh - 40px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .support-widget * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
