.agents-tiles {
    --padding: 20px;
    --radius: 4px;
    --border: 1px solid #d9e6f3;
    --black: #131A22;
    --grey: #6D798A;
    --blue: #0075EB;
    --blue-grey: #86a5c6;
    --heading: Rubik,arial,sans-serif;
    --ribbon-height: 31px;
}

.agents-tiles-wrapper, .reviews-list-wrapper {
  position: relative;
  letter-spacing: -0.02em;
  --fade-padding: 15px;
  --border-radius: 4px;
  --border: 1px solid #d9e6f3;
}

.agents-tiles-wrapper {
  padding-inline: var(--fade-padding);
  margin-inline: calc(-1 * var(--fade-padding));
}

.agents-tiles-wrapper::after {
  content: '';
  position: absolute;
  width: var(--fade-padding);
  height: 100%;
  background: linear-gradient(to right,rgba(255,255,255,0) 0,rgba(255,255,255,.6) 70%,rgba(255,255,255,1) 100%);
  right: 0;
  top: 0;
  z-index: 2;
}

.agents-tiles-wrapper::before {
  content: '';
  position: absolute;
  width: var(--fade-padding);
  height: 100%;
  background: linear-gradient(to left,rgba(255,255,255,0) 0,rgba(255,255,255,.6) 70%,rgb(255,255,255) 100%);
  left: 0;
  top: 0;
  z-index: 2;
}

.agents-tiles, .reviews-list {
  list-style: none;
  padding-block: 10px;
  display: flex;
}

.agents-tiles {
  gap:clamp(20px, 2.2%, 25px);
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none; 
  padding-inline: var(--fade-padding);
  margin-inline: calc(-1 * var(--fade-padding));
}

.agents-tiles::-webkit-scrollbar {
  display: none;
}

.reviews-list-item, .agents-tiles-item {
  border-radius: var(--border-radius);
  border: var(--border);
  position: relative;
  overflow: hidden;
}

.agents-tiles-item {
  flex-shrink: 0;
  padding:30px 20px;
  border: var(--border);
  border-radius: var(--border-radius);
  scroll-snap-align: center;
  width: 23.35%;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.agents-tiles-item-button {
    text-transform: capitalize;
    font-weight: 500;
    border-radius: var(--radius);
    color: white !important;
    background-color: var(--blue);
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-width: 0;
    font-size: 16px;
    font-family: var(--heading);
    transition: all .25s;
    white-space: nowrap;
    max-width: 100%;
    padding-inline: 20px;
    height: 39px;
}

.agents-tiles-item-button:hover {
  background-color:#66c7ff;
}

.agents-tiles-item-button {
  margin-top: auto;
}

.agents-tiles-item-under-button {
  color: #6D798A !important;
  font-size: 15px;
  margin-bottom: -10px;
}

.agents-tiles-item-under-button:hover {
  color: #436088 !important;
}

.agents-tiles:has(.agents-tiles-item-ribbon) .agents-tiles-item {
  margin-top:25px;
}

.agents-tiles:has(.agents-tiles-item-ribbon) .agents-tiles-item:has(.agents-tiles-item-ribbon) {
  margin-top: 0px;
  padding:55px 20px 30px;
}

.agents-tiles-item-ribbon,.reviews-list-item-claimed {
    cursor: default;
    font-family: Rubik,arial,sans-serif;
    color: #0075EB;
    font-weight: 500;
    background: #E1F0FF;
}

.agents-tiles-item-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  line-height: 1;
  width: 100%;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agents-tiles-item-ribbon svg {
  --icon-size: 14px;
  min-width: var(--icon-size);
  height: var(--icon-size);
  width: var(--icon-size);
  margin-right: 3px;
}

.agents-tiles-item-ribbon path {
  fill: #0075EB;
}

ul:not(.top-list) li:not(:first-child) .agents-tiles-item-ribbon path {
  fill: #8098B3;
}

.reviews-list-item-details-left:has(.agents-tiles-item-ribbon) {
  padding-top: 45px;
}

.reviews-list-item-details-right {
  flex-grow: 1;
  font-size: 16px;
}

.reviews-list-item-name-wrapper {
  display: flex;
  align-items: center;
}

.agents-tiles-item-logo, .reviews-list-item-logo {
  height: 80px;
  object-fit: contain;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.agents-tiles-item-name, .reviews-list-item-name {
  font-size: 18px;
  margin: 0;
  color:var(--bricks-color-rsbpkz);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.agents-tiles-item-type, .reviews-list-item-type {
  color:#4D6A93 !important;
}

.agents-tiles-item-type {
  font-size: 14px;
  line-height: 1.4;
}

.review-tooltip {
  cursor: help !important;
}

.agents-tiles-item-rating, .reviews-list-item-rating {
  display: flex;
  flex-wrap: wrap;
  gap: 0 7px;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
  color:#131A22;
  cursor: default;
}

.agents-tiles-item-overview {
  font-size:14px;
  margin-block: 5px 15px;
}

.reviews-list-item-overview {
  margin-top: 6px;
}

.agents-tiles-arrow {
  position: absolute;
  top: 50%;
  display: flex;
  background: #E1F0FF;
  border-radius: 100px;
  padding: 10px;
  z-index: 3;
  opacity: 0;
  transition: 0.25s opacity ease;
  pointer-events: none;
}

.agents-tiles-arrow.scroll {
  opacity: 1;
  pointer-events: unset;
}

.agents-tiles-arrow path {
  fill:#0075EB;
}

.agents-tiles-arrow-prev {
  left: -2px;
  transform: rotate(180deg);
}

.agents-tiles-arrow-next {
  right: -2px;
}

@media screen and (max-width:478px) {

  .agents-tiles {
    gap:4vw;
  }

  .agents-tiles-wrapper {
    --fade-padding: 4vw;
  }
  .agents-tiles-arrow {
    display: none;
  }
}