html.sfs-open {
  overflow: hidden;
}

.sfs-overlay {
  --sfs-header-height: 0px;
  --sfs-bg: var(--sfs-color-bg, var(--color-primary, #111827));
  --sfs-fg: var(--sfs-color-fg, #fff);
  --sfs-accent: var(--sfs-color-accent, var(--color-accent, #38bdf8));
  --sfs-ink: var(--sfs-color-ink, var(--color-text, #111827));
  --sfs-pill: var(--sfs-color-pill, var(--sfs-fg));
  --sfs-font: inherit;
  position: fixed;
  inset: 0;
  z-index: var(--sfs-z, 40);
  width: 100vw;
  height: 100dvh;
  overflow-y: auto;
  color: var(--sfs-fg);
  background: var(--sfs-bg);
  font-family: var(--sfs-font);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: none;
  transition: opacity 0.3s, visibility 0.3s;
}

.sfs-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.sfs-overlay__content {
  width: min(1216px, 100%);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 70px) clamp(18px, 2vw, 24px);
}

.sfs-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.sfs-form-wrap,
.sfs-form {
  position: relative;
}

.sfs-form:before {
  position: absolute;
  top: 50%;
  left: 8px;
  width: 26px;
  height: 26px;
  background: currentColor;
  content: "";
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/></svg>")
    center / 26px no-repeat;
  transform: translateY(-50%);
}

.sfs-form input[name="search"] {
  width: 100%;
  padding: 20px 110px 20px 50px;
  color: inherit;
  border: 0;
  border-bottom: 2px solid currentColor;
  background: transparent;
  outline: 0;
  font: inherit;
  font-size: clamp(22px, 2.6vw, 32px);
}

.sfs-form input[name="search"]::placeholder {
  color: inherit;
  opacity: 0.75;
}

.sfs-form button[type="submit"] {
  position: absolute;
  top: 50%;
  right: 0;
  min-height: 50px;
  padding: 10px 18px;
  color: var(--sfs-ink);
  border: 0;
  border-radius: 3px;
  background: var(--sfs-accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transform: translateY(-50%);
}

.sfs-heading {
  margin: 28px 0 20px;
  color: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.sfs-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sfs-pills button {
  padding: 15px 20px;
  color: var(--sfs-ink);
  border: 0;
  border-radius: 50px;
  background: var(--sfs-pill);
  box-shadow: 0 0 0 2px var(--sfs-accent);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.sfs-toggle {
  display: none;
  gap: 4px;
  margin: 16px 0 8px;
  padding: 4px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
}

.sfs-toggle__option {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  color: rgb(255 255 255 / 78%);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.sfs-toggle__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.sfs-toggle__option:has(.sfs-toggle__input:checked) {
  color: var(--sfs-ink);
  background: var(--sfs-pill);
}

.sfs-dismiss {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.sfs-dismiss:before,
.sfs-dismiss:after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
}

.sfs-dismiss:before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.sfs-dismiss:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.sfs-exit-bar {
  display: none;
  margin: 0 0 16px;
  padding: 14px 0;
}

.sfs-exit {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  color: inherit;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.sfs-exit:before {
  content: "←";
}

html.sfs-chat-active .sfs-exit,
html.sfs-chat-active .sfs-exit-bar {
  display: block;
}

html.sfs-chat-active .sfs-exit {
  display: inline-flex;
}

html.sfs-chat-active .sfs-overlay__content:has(.sfs-exit-bar) {
  padding: 20px;
}

.sfs-status {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgb(255 255 255 / 8%);
  font-size: 14px;
}

.sfs-status.is-visible {
  display: inline-flex;
}

.sfs-status:before {
  width: 14px;
  height: 14px;
  border: 2px solid rgb(255 255 255 / 40%);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: sfs-spin 0.8s linear infinite;
  content: "";
}

@keyframes sfs-spin {
  to {
    transform: rotate(360deg);
  }
}

.sfs-results {
  margin-top: 36px;
}

.sfs-results ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sfs-results li {
  padding: 18px 20px;
  color: var(--sfs-ink);
  border-radius: 6px;
  background: var(--sfs-pill);
}

.sfs-results a {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}

.sfs-results p {
  margin: 8px 0 0;
  line-height: 1.45;
}

.sfs-results__meta {
  margin: 0 0 16px;
  opacity: 0.8;
}

.sfs-chat-frame {
  display: none;
  width: min(800px, calc(100vw - 32px));
  height: calc(100dvh - 140px);
  margin: 8px auto 0;
  border: 0;
  border-radius: 20px;
  background: #fff;
}

@media (min-width: 1280px) {
  .sfs-chat-frame {
    width: min(1100px, calc(100vw - 64px));
  }
}

@media (min-width: 1600px) {
  .sfs-chat-frame {
    width: min(1280px, calc(100vw - 80px));
  }
}

html.sfs-chat-active .sfs-chat-frame {
  display: block;
}

#divSatisfiChat,
.satisfi_chat-button,
#satisfi_chat-panel {
  display: none !important;
}

html.sfs-open #visit_widget_iframe,
html.sfs-open [id*="visit_widget"] {
  display: none !important;
}

@media (max-width: 600px) {
  .sfs-form input[name="search"] {
    padding-right: 96px;
    font-size: 22px;
  }

  .sfs-form button[type="submit"] {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 14px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .sfs-overlay,
  #divSatisfiChat,
  .satisfi_chat {
    transition: none;
  }

  .sfs-status:before {
    animation: none;
  }
}
