.smsfaq {
  --smsfaq-animation-ms: 360ms;
  --smsfaq-item-gap: 12px;
  --smsfaq-section-gap: 26px;
  width: 100%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  color: #334155;
  box-sizing: border-box;
}

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

.smsfaq-heading {
  margin: 0 0 20px;
  color: #0f2742;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: center;
}

.smsfaq-search-wrap {
  position: relative;
  margin: 0 0 16px;
}

.smsfaq .smsfaq-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -9px;
  box-sizing: border-box;
  border: 2px solid #8aa4bd;
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
  z-index: 2;
}

.smsfaq .smsfaq-search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  background: #8aa4bd;
  border-radius: 2px;
  transform: rotate(45deg);
}

.smsfaq .smsfaq-search-input {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box !important;
  width: 100%;
  height: 48px;
  margin: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-right: 18px !important;
  padding-left: 46px !important;
  border: 1px solid #dbe7f4;
  border-radius: 999px;
  background: #ffffff;
  color: #0f2742;
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
  box-shadow: 0 6px 18px rgba(15, 39, 66, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.smsfaq-search-input::placeholder {
  color: #8aa4bd;
}

.smsfaq-search-input:focus {
  outline: none;
  border-color: rgba(32, 121, 202, 0.5);
  box-shadow: 0 0 0 3px rgba(32, 121, 202, 0.14);
}

.smsfaq-no-results {
  padding: 18px 20px;
  border: 1px dashed #c7d6e6;
  border-radius: 8px;
  background: #f8fbff;
  color: #52677d;
  font-size: 14px;
  text-align: center;
}

.smsfaq-item[hidden] {
  display: none !important;
}

.smsfaq-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 20px;
}

.smsfaq-filter-button,
.smsfaq-question {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.smsfaq-filter-button {
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid rgba(32, 121, 202, 0.18);
  border-radius: 9px;
  background: #eef6ff;
  color: #1f3b57;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.smsfaq-filter-button:hover,
.smsfaq-filter-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(32, 121, 202, 0.35);
  outline: none;
}

.smsfaq-filter-button.is-active {
  background: #2079ca;
  border-color: #2079ca;
  color: #ffffff;
}

.smsfaq-groups {
  display: grid;
  gap: var(--smsfaq-section-gap);
}

.smsfaq-group[hidden] {
  display: none !important;
}

.smsfaq-category-title {
  margin: 0 0 12px;
  color: #52677d;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.smsfaq-list {
  display: grid;
  gap: var(--smsfaq-item-gap);
}

.smsfaq-item {
  overflow: hidden;
  border: 1px solid #dbe7f4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 39, 66, 0.06);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.smsfaq-item.is-open {
  border-color: rgba(32, 121, 202, 0.35);
  background: #f8fbff;
}

.smsfaq-question {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 58px;
  margin: 0 !important;
  padding: 18px 20px;
  border: 0 !important;
  background: transparent !important;
  color: #0f2742;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
}

.smsfaq-question:hover,
.smsfaq-question:focus-visible {
  color: #2079ca;
  outline: none;
}

.smsfaq-question-text {
  min-width: 0;
}

.smsfaq-icon {
  position: relative;
  display: inline-flex;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: #2079ca;
}

.smsfaq-icon::before,
.smsfaq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--smsfaq-animation-ms) cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms ease;
}

.smsfaq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.smsfaq-item.is-open .smsfaq-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0.25);
}

.smsfaq-answer {
  height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition:
    height var(--smsfaq-animation-ms) cubic-bezier(0.22, 1, 0.36, 1),
    opacity var(--smsfaq-animation-ms) ease,
    visibility 0s linear var(--smsfaq-animation-ms);
}

.smsfaq-answer.is-open {
  opacity: 1;
  visibility: visible;
  transition:
    height var(--smsfaq-animation-ms) cubic-bezier(0.22, 1, 0.36, 1),
    opacity var(--smsfaq-animation-ms) ease,
    visibility 0s linear 0s;
}

.smsfaq-answer-inner {
  padding: 0 20px 20px;
  color: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.62;
}

.smsfaq-answer-inner > :first-child {
  margin-top: 0;
}

.smsfaq-answer-inner > :last-child {
  margin-bottom: 0;
}

.smsfaq-answer-inner a {
  color: #2079ca;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.smsfaq-empty {
  padding: 18px 20px;
  border: 1px solid #dbe7f4;
  border-radius: 8px;
  background: #f8fbff;
  color: #52677d;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 767px) {
  .smsfaq-heading {
    font-size: 26px;
  }

  .smsfaq-filter {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .smsfaq-filter-button {
    flex: 0 0 auto;
  }

  .smsfaq-question {
    min-height: 54px;
    padding: 16px;
    font-size: 16px;
  }

  .smsfaq-answer-inner {
    padding: 0 16px 17px;
    font-size: 14px;
  }
}

/* ---------- Colored sections (per-category color + zebra) ---------- */
/* --smsfaq-cat is set inline on each .smsfaq-group and filter button. */
.smsfaq.is-colored .smsfaq-group .smsfaq-category-title {
  color: var(--smsfaq-cat, #52677d);
  border-left: 4px solid var(--smsfaq-cat, #52677d);
  padding-left: 11px;
}

.smsfaq.is-colored .smsfaq-group .smsfaq-item {
  border-color: #e6edf6;
  border-left: 4px solid var(--smsfaq-cat, #2563eb);
  background: #fbfdff;
  background: color-mix(in srgb, var(--smsfaq-cat, #2563eb) 6%, #fff);
}

.smsfaq.is-colored .smsfaq-group .smsfaq-list .smsfaq-item:nth-child(even) {
  background: #f3f8fe;
  background: color-mix(in srgb, var(--smsfaq-cat, #2563eb) 12%, #fff);
}

.smsfaq.is-colored .smsfaq-group .smsfaq-list .smsfaq-item.is-open {
  border-color: var(--smsfaq-cat, #2563eb);
  background: #ecf4ff;
  background: color-mix(in srgb, var(--smsfaq-cat, #2563eb) 17%, #fff);
}

.smsfaq.is-colored .smsfaq-group .smsfaq-question {
  color: #16324f;
  color: color-mix(in srgb, var(--smsfaq-cat, #2563eb) 55%, #0f2742);
}

.smsfaq.is-colored .smsfaq-group .smsfaq-item.is-open .smsfaq-question {
  color: var(--smsfaq-cat, #2563eb);
}

.smsfaq.is-colored .smsfaq-group .smsfaq-icon {
  color: var(--smsfaq-cat, #2563eb);
}

.smsfaq.is-colored .smsfaq-filter .smsfaq-filter-button {
  border-color: #e6edf6;
  background: #f6f9fe;
  background: color-mix(in srgb, var(--smsfaq-cat, #2563eb) 9%, #fff);
  color: #1f3b57;
  color: color-mix(in srgb, var(--smsfaq-cat, #2563eb) 60%, #0f2742);
}

.smsfaq.is-colored .smsfaq-filter .smsfaq-filter-button.is-active {
  background: var(--smsfaq-cat, #2079ca);
  border-color: var(--smsfaq-cat, #2079ca);
  color: #ffffff;
}
