.rsmembershiptoggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem 1rem;
  margin: 0 auto 1.75rem;
  color: var(--color-text, #303129);
}

.rsmembershiptoggle__title {
  color: var(--color-text-soft, #636559);
  font-size: 0.95rem;
  line-height: 1.35;
}

.rsmembershiptoggle__control {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(70, 72, 59, 0.16);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-background, #fff) 94%, #eef2e3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.rsmembershiptoggle__button {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-soft, #636559);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.rsmembershiptoggle__button.is-active {
  background: var(--color-heading, #20221c);
  color: #fff;
  box-shadow: 0 8px 20px rgba(28, 30, 24, 0.16);
}

.rsmembershiptoggle__badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-accent, #7a8836) 18%, #fff);
  color: var(--color-text, #303129);
  font-size: 0.76rem;
  font-weight: 500;
}

.rsmembershiptoggle__button.is-active .rsmembershiptoggle__badge {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

@media (max-width: 420px) {
  .rsmembershiptoggle__control {
    width: 100%;
  }

  .rsmembershiptoggle__button {
    padding-inline: 0.65rem;
  }
}
