.wgt-bi-users {
  margin-top: var(--padding-3xl-60);
  padding-top: 0;
  padding-bottom: 0;
  scroll-margin-top: 8rem;
}

@media (min-width: 961px) {
  .wgt-bi-users {
    margin-top: var(--padding-4xl-80);
    padding-top: var(--padding-2xl-48);
  }
}

.wgt-bi-users .home-inner {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2xl-42);
}

.bi-users-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-lg-24);
}

.wgt-bi-users .bi-users-head .home-section-text {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.bi-users-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--gap-sm-8);
  flex: 0 0 auto;
  width: min(100%, 30.375rem);
  height: 3rem;
  padding: 0 var(--padding-lg-24);
  border: 1px solid transparent;
  border-radius: var(--radius-input);
  background: var(--background-gray);
}

.bi-users-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.bi-users-search input[type="hidden"] {
  display: none;
}

.bi-users-search input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-body);
  font-size: clamp(0.875rem, 0.8447rem + 0.1294vw, 1rem);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
}

.bi-users-search input::placeholder {
  color: var(--text-body);
}

.bi-users-search:focus-within {
  border-color: var(--border-default-purple);
}

.bi-users-search input:focus {
  outline: none;
}

.bi-users-search input[type="search"] {
  -webkit-appearance: textfield;
  appearance: textfield;
}

.bi-users-search input[type="search"]::-webkit-search-decoration,
.bi-users-search input[type="search"]::-webkit-search-cancel-button,
.bi-users-search input[type="search"]::-webkit-search-results-button,
.bi-users-search input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  width: 0;
  height: 0;
  margin: 0;
}

.bi-users-search-clear {
  display: none;
}

.bi-users-search.is-filled .bi-users-search-icon {
  display: none;
}

.bi-users-search.is-filled .bi-users-search-clear {
  display: block;
}

.bi-users-search button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-body);
  cursor: pointer;
}

.bi-users-layout {
  display: grid;
  grid-template-columns: 20rem minmax(0, 1fr);
  gap: var(--gap-lg-24);
  align-items: start;
}

.bi-users-types {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap-md-14);
}

.bi-users-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--padding-sm-12) var(--padding-lg-24);
  border: 1px solid var(--border-default-grey);
  border-radius: var(--radius-full);
  background: var(--background-white);
  color: var(--text-body);
  font-size: clamp(0.875rem, 0.8447rem + 0.1294vw, 1rem);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-caption);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.bi-users-type:hover,
.bi-users-type:focus-visible,
.bi-users-type.is-active {
  border-color: var(--border-default-purple);
  background: var(--background-primary-light);
  color: var(--text-accent);
}

.bi-users-type:focus-visible {
  outline: none;
}

.bi-users-results {
  position: relative;
  min-width: 0;
}

.bi-users-results.is-loading .bi-users-results-body {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

.bi-users-results.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 3rem;
  height: 3rem;
  margin: -1.5rem 0 0 -1.5rem;
  border: 3px solid var(--border-default-purple);
  border-top-color: var(--primary-color-01);
  border-radius: 50%;
  animation: bi-users-spin 0.7s linear infinite;
}

@keyframes bi-users-spin {
  to {
    transform: rotate(360deg);
  }
}

.bi-users-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-lg-24);
}

.bi-users-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding-bottom: var(--padding-md-15);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  background: var(--background-white);
  box-shadow: var(--shadow-card);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

a.bi-users-card:hover,
a.bi-users-card:focus-visible {
  border-color: var(--primary-color-08);
}

a.bi-users-card:focus-visible {
  outline: none;
}

.bi-users-card-logo {
  display: block;
  height: auto;
  margin: 0;
  padding: 0;
}

.bi-users-card-logo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

.bi-users-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--gap-md-14);
  padding: var(--padding-md-15) var(--padding-md-15) 0;
}

.bi-users-card-intro {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs-4);
  padding-bottom: var(--padding-smm-8);
  border-bottom: 1px solid var(--border-default-grey);
}

.bi-users-card-name {
  margin: 0;
  overflow: hidden;
  color: var(--text-title);
  font-size: clamp(1.125rem, 1.0643rem + 0.2589vw, 1.375rem);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-heading);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bi-users-card-name :is(h1, h2, h3, h4, h5, h6, p) {
  margin: 0;
  overflow: hidden;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bi-users-card-name .italic-text {
  color: var(--text-accent);
  font-style: italic;
}

.bi-users-card-meta,
.bi-users-card-description {
  margin: 0;
  color: var(--text-body);
}

.bi-users-card-meta {
  overflow: hidden;
  font-size: clamp(0.75rem, 0.7348rem + 0.0647vw, 0.8125rem);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-caption);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bi-users-card-description {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.bi-users-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm-8);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bi-users-tag {
  padding: var(--padding-xss-4) var(--padding-md-14);
  border-radius: var(--radius-full);
  background: var(--background-gray);
  color: var(--text-body);
  font-size: clamp(0.75rem, 0.7348rem + 0.0647vw, 0.8125rem);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-caption);
}

.bi-users-card-footer {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-xs-4);
  margin-top: auto;
  padding: var(--gap-md-14) var(--padding-md-15) 0;
  color: var(--text-accent);
  font-size: 1rem;
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-heading);
}

.bi-users-arrow {
  display: block;
  flex: none;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

a.bi-users-card:hover .bi-users-arrow,
a.bi-users-card:focus-visible .bi-users-arrow {
  transform: rotate(0deg);
}

.bi-users-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 18rem;
  margin: 0;
  color: var(--text-body);
  font-size: clamp(0.875rem, 0.8447rem + 0.1294vw, 1rem);
  line-height: var(--line-height-body);
  text-align: center;
}

.bi-users-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--gap-2xl-42);
}

.bi-users-pager-pages {
  display: flex;
  align-items: center;
  gap: var(--gap-xs-4);
}

.bi-users-pager-arrow,
.bi-users-pager-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  text-decoration: none;
}

.bi-users-pager-arrow {
  border: 0;
  background: transparent;
  color: var(--text-body);
}

.bi-users-pager-arrow:hover,
.bi-users-pager-arrow:focus-visible {
  color: var(--text-body);
}

.bi-users-pager-arrow.is-disabled {
  opacity: 0.35;
}

.bi-users-pager-page:hover,
.bi-users-pager-page:focus-visible {
  border-color: var(--border-default-purple);
  color: var(--text-accent);
}

.bi-users-pager-page {
  border: 1px solid var(--border-default-grey);
  border-radius: var(--radius-button);
  background: var(--background-white);
  color: var(--text-body);
  font-size: 0.875rem;
  font-weight: var(--font-weight-regular);
  line-height: 1;
}

.bi-users-pager-page.is-current {
  border-color: var(--border-default-purple);
  background: var(--background-primary-light);
  color: var(--text-accent);
}

@media (max-width: 768px) {
  .bi-users-pager-arrow,
  .bi-users-pager-page {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (max-width: 960px) {
  .bi-users-head {
    flex-direction: column;
    align-items: stretch;
  }

  .bi-users-search {
    width: 100%;
    height: 2.875rem;
  }

  .bi-users-type {
    padding: var(--padding-smm-8) var(--padding-md-14);
  }

  .bi-users-layout {
    grid-template-columns: 1fr;
  }

  .bi-users-types {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .bi-users-grid {
    grid-template-columns: 1fr;
  }
}
