.bp-rider-search {
  min-height: calc(100vh - 180px);
  padding: 38px 18px 68px;
  background: #f5f6f8;
}

.bp-rider-search__inner {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.bp-rider-search__header {
  margin-bottom: 22px;
}

.bp-rider-search__header h1,
.bp-rider-search__header p,
.bp-rider-search__results-head h2,
.bp-rider-search__results-head p {
  margin: 0;
}

.bp-rider-search__header h1 {
  margin-top: 6px;
  color: var(--black);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.bp-rider-search__header > p:last-child {
  max-width: 680px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.8;
}

.bp-rider-search__form {
  padding: 20px;
  border: 1px solid #e1e3e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(22, 25, 31, .05);
}

.bp-rider-search__form label {
  display: block;
  margin-bottom: 8px;
  color: var(--black);
  font-size: .86rem;
  font-weight: 900;
}

.bp-rider-search__form-row {
  display: flex;
  gap: 10px;
}

.bp-rider-search__form input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #cfd3da;
  border-radius: 6px;
  color: var(--black);
  background: #fff;
}

.bp-rider-search__form input:focus {
  border-color: var(--red);
  outline: 3px solid rgba(215, 25, 32, .15);
}

.bp-rider-search__form button {
  min-width: 96px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--red);
  border-radius: 6px;
  color: #fff;
  font-weight: 900;
  background: var(--red);
  cursor: pointer;
}

.bp-rider-search__form button:hover {
  background: var(--dark-red, #a80f15);
}

.bp-rider-search__form > p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .82rem;
}

.bp-rider-search__results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 34px 0 16px;
}

.bp-rider-search__results-head h2 {
  margin-top: 5px;
  font-size: 1.25rem;
}

.bp-rider-search__results-head > strong {
  color: var(--muted);
  white-space: nowrap;
}

.bp-rider-search__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bp-rider-search__card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  border: 1px solid #e1e3e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(22, 25, 31, .05);
}

.bp-rider-search__identity {
  display: flex;
  min-width: 0;
  gap: 14px;
}

.bp-rider-search__avatar-link {
  flex: 0 0 62px;
}

.bp-rider-search__avatar {
  width: 62px;
  height: 62px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px #d9dce2;
}

.bp-rider-search__avatar--fallback {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  background: #252932;
}

.bp-rider-search__identity > div {
  min-width: 0;
}

.bp-rider-search__identity h3 {
  margin: 0;
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.bp-rider-search__identity h3 a,
.bp-rider-search__matched-bikes a,
.bp-rider-search__profile-link {
  color: var(--black);
  text-decoration: none;
}

.bp-rider-search__identity h3 a:hover,
.bp-rider-search__matched-bikes a:hover,
.bp-rider-search__profile-link:hover {
  color: var(--red);
}

.bp-rider-search__handle {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: #68717d;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .02em;
  user-select: all;
}

.bp-rider-search__identity p {
  display: -webkit-box;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.bp-rider-search__region {
  color: var(--black);
  font-size: .84rem;
  font-weight: 800;
}

.bp-rider-search__matched-bikes {
  padding-top: 14px;
  border-top: 1px solid #eceef1;
}

.bp-rider-search__matched-bikes > p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
}

.bp-rider-search__matched-bikes ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bp-rider-search__matched-bikes li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.bp-rider-search__matched-bikes li > a {
  display: grid;
  min-width: 0;
  gap: 1px;
  font-weight: 900;
}

.bp-rider-search__matched-bikes li > a span,
.bp-rider-search__matched-bikes li > a small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bp-rider-search__matched-bikes li > a small {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}

.bp-rider-search__ownership {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: #8f262d;
  font-size: .7rem;
  font-weight: 900;
  background: #fff2f3;
}

.bp-rider-search__profile-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #eceef1;
  color: var(--red);
  font-size: .86rem;
  font-weight: 900;
}

.bp-rider-search__empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 48px 22px;
  border: 1px dashed #ccd1d9;
  border-radius: 8px;
  text-align: center;
  background: #fff;
}

.bp-rider-search__empty > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 6px;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: #252932;
}

.bp-rider-search__empty strong {
  overflow-wrap: anywhere;
}

.bp-rider-search__empty p {
  margin: 0;
  color: var(--muted);
}

.bp-rider-search__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}

.bp-rider-search__pagination a,
.bp-rider-search__pagination > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #cfd3da;
  border-radius: 6px;
  color: var(--black);
  font-size: .86rem;
  font-weight: 900;
  text-decoration: none;
  background: #fff;
}

.bp-rider-search__pagination a:hover {
  border-color: var(--red);
  color: var(--red);
}

.bp-rider-search__pagination > span[aria-disabled="true"] {
  color: #adb2bb;
  background: #f1f2f4;
}

.bp-rider-search__pagination strong {
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .bp-rider-search__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .bp-rider-search {
    padding-inline: 14px;
  }

  .bp-rider-search__form-row,
  .bp-rider-search__results-head {
    align-items: stretch;
    flex-direction: column;
  }

  .bp-rider-search__form button {
    width: 100%;
  }

  .bp-rider-search__card {
    padding: 16px;
  }
}
