.swc-widget,
.swc-widget *,
.swc-widget *::before,
.swc-widget *::after {
  box-sizing: border-box;
}

.swc-widget {
  --amswa-color: #97c62d;
  --amswa-ink: #111a33;
  --amswa-muted: #727987;
  --amswa-rule: #e4e8df;
  --amswa-soft: #f7f9f3;
  --amswa-edge-x: 24px;
  --amswa-edge-y: 24px;
  --amswa-mobile-edge-x: 14px;
  --amswa-mobile-edge-y: 82px;
  position: fixed !important;
  right: var(--amswa-edge-x) !important;
  bottom: var(--amswa-edge-y) !important;
  left: auto !important;
  z-index: 100040 !important;
  display: block !important;
  color: var(--amswa-ink);
  font-family: inherit;
  opacity: 1;
  visibility: visible;
  transition: opacity .16s ease, visibility .16s ease;
}

.amswa-panel[hidden],
.amswa-prompt[hidden] {
  display: none !important;
}

.amswa-launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px 0 14px;
  border: 1px solid rgba(151, 198, 45, .62);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 26, 51, .13);
  color: #527a13;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.amswa-launcher svg {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
}

.amswa-launcher:hover {
  border-color: var(--amswa-color);
  background: var(--amswa-color);
  color: #fff;
  box-shadow: 0 14px 34px rgba(64, 91, 22, .2);
  transform: translateY(-2px);
}

.amswa-launcher:focus-visible,
.amswa-close:focus-visible,
.amswa-prompt-close:focus-visible,
.amswa-intent:focus-visible {
  outline: 3px solid rgba(151, 198, 45, .32);
  outline-offset: 2px;
}

.amswa-panel {
  display: flex;
  flex-direction: column;
  width: min(348px, calc(100vw - 28px));
  max-height: min(610px, calc(100vh - 112px));
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--amswa-rule);
  border-top: 4px solid var(--amswa-color);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 58px rgba(17, 26, 51, .18);
  transform-origin: bottom right;
  animation: amswa-in .18s ease-out;
}

@keyframes amswa-in {
  from {
    opacity: 0;
    transform: translateY(7px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.amswa-panel-header {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 70px;
  padding: 12px 13px 12px 15px;
  border-bottom: 1px solid var(--amswa-rule);
  background: #fff;
}

.amswa-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid #d5e7aa;
  border-radius: 50%;
  background: #f1f7e3;
  color: #527a13;
  font-size: 17px;
  font-weight: 850;
}

.amswa-panel-identity {
  min-width: 0;
  flex: 1;
}

.amswa-panel-header strong {
  display: block;
  overflow: hidden;
  color: var(--amswa-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.amswa-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: #61706a;
  font-size: 11px;
  line-height: 1.35;
}

.amswa-status i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amswa-color);
  box-shadow: 0 0 0 3px rgba(151, 198, 45, .15);
}

.amswa-status.is-offline i {
  background: #a7afa9;
  box-shadow: none;
}

.amswa-close,
.amswa-prompt-close {
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.amswa-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #747c89;
  font-size: 23px;
}

.amswa-close:hover {
  background: var(--amswa-soft);
  color: var(--amswa-ink);
}

.amswa-panel-body {
  min-height: 0;
  padding: 17px;
  overflow-y: auto;
  background: #fff;
  overscroll-behavior: contain;
}

.amswa-eyebrow {
  margin: 0 0 5px;
  color: #779d27;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: .11em;
}

.amswa-welcome {
  margin: 0 0 14px;
  color: var(--amswa-ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.amswa-intents {
  display: grid;
  gap: 7px;
}

.amswa-intent {
  position: relative;
  width: 100%;
  min-height: 44px;
  padding: 10px 38px 10px 12px;
  border: 1px solid var(--amswa-rule);
  border-radius: 8px;
  background: var(--amswa-soft);
  color: #263b31;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.amswa-intent::after {
  position: absolute;
  top: 50%;
  right: 13px;
  color: #759b28;
  content: "›";
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-52%);
}

.amswa-intent:hover {
  border-color: rgba(151, 198, 45, .72);
  background: #fff;
  transform: translateX(2px);
}

.amswa-panel-body > small {
  display: block;
  margin-top: 12px;
  color: var(--amswa-muted);
  font-size: 10px;
  line-height: 1.45;
}

.amswa-prompt {
  position: absolute;
  right: 0;
  bottom: 66px;
  width: max-content;
  max-width: min(276px, calc(100vw - 30px));
  padding: 12px 36px 12px 14px;
  border: 1px solid var(--amswa-rule);
  border-left: 3px solid var(--amswa-color);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(17, 26, 51, .14);
  color: var(--amswa-ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
  animation: amswa-in .18s ease-out;
}

.amswa-prompt-close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: #6f7783;
  font-size: 18px;
}

.amswa-prompt-close:hover {
  background: var(--amswa-soft);
}

.amswa-prompt-text {
  display: block;
}

@media (max-width: 767px) {
  .swc-widget {
    right: var(--amswa-mobile-edge-x) !important;
    bottom: var(--amswa-mobile-edge-y) !important;
  }

  .amswa-launcher {
    width: 54px;
    height: 54px;
    min-height: 54px;
    padding: 0;
    border-color: var(--amswa-color);
    background: var(--amswa-color);
    color: #fff;
    box-shadow: 0 9px 26px rgba(78, 107, 24, .25);
  }

  .amswa-launcher:hover {
    transform: none;
  }

  .amswa-launcher span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .amswa-panel {
    max-height: calc(100dvh - 190px);
    margin-bottom: 10px;
    border-radius: 12px;
  }

  .amswa-panel-header {
    min-height: 64px;
  }

  .amswa-panel-body {
    padding: 15px;
  }

  .amswa-prompt {
    bottom: 64px;
  }
}

@media (max-width: 380px) {
  .amswa-panel {
    width: calc(100vw - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .amswa-panel,
  .amswa-prompt {
    animation: none;
  }

  .swc-widget,
  .amswa-launcher,
  .amswa-intent {
    transition: none;
  }
}
