/* See: https://stackoverflow.com/a/56467997/728855 */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* height of sticky header */
}

.result-card {
  display: block;
  position: relative;
  background-color: #ffffff;
  border-radius: 6px;
  transition: box-shadow 80ms ease-in-out;
  box-shadow: 0 7px 30px 0 rgba(113, 103, 222, 0.1),
    0 2px 5px 0 rgba(164, 164, 164, 0.1);
}

.result-card:hover {
  box-shadow: 0 7px 30px 0 rgba(113, 103, 222, 0.2),
    0 2px 5px 0 rgba(164, 164, 164, 0.3);
}

.results-list {
  background-color: #faf8f5;
}

.agency-name {
  font-weight: normal;
}

@media (min-width: 768px) {
  .collapse.dont-collapse-sm {
    display: block;
    height: auto !important;
    visibility: visible;
  }
}

.cqc-rating {
  white-space: break-spaces;
}

.cqc-rating-good,
.cqc-rating-outstanding {
  color: #1e9e03;
}

.cqc-rating-requires-improvement {
  color: #ff9900;
}

.cqc-rating-inadequate {
  color: #da3535;
}

.location-info {
  display: block;
}

@media (min-width: 768px) {
  .location-info {
    display: flex;
  }
}

@media (min-width: 768px) {
  .distance-from-search:after {
    content: "·";
    display: inline-block;
    margin: 0 0.5em;
  }
}

/* Pagination */
.pagination {
  align-items: center;
  border-radius: 6px;
  box-shadow: 0 12px 34px 0 rgba(143, 143, 143, 0.2),
    0 2px 4px 0 rgba(115, 115, 115, 0.2);
}

.page-link {
  border-radius: 6px;
  border: none;
  padding: 8px 15px;
}

.page-link,
.page-link:hover {
  color: #9a5cb4;
}

.page-link:hover {
  border-radius: 6px;
  background-color: #faf8f5;
}

.page-item.active .page-link {
  background-color: #9a5cb4;
  border-color: #9a5cb4;
  border-radius: 6px;
}

.pagination .chevron {
  vertical-align: middle;
}

@media (min-width: 768px) {
  .results-filter-column {
    position: sticky;
    top: 72px;
    border-right: 1px solid #e8e8e8;
    align-self: stretch;
  }
}

.specialisms-group {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.oncare-cta {
  display: block;
  margin: 15px;
  background: #fe892d;
  border-color: #ff8c31;
  transition: all 100ms ease-in-out;
}

.oncare-cta.inactive {
  opacity: 0;
  display: none;
}

.oncare-cta:focus,
.oncare-cta:active {
  background: #ff8c31;
  border-color: #ff8c31;
}

.oncare-cta:hover {
  background: #ff8c31;
  border-color: #ff8c31;
  opacity: 1;
}

#agency-filters {
  position: sticky;
  top: 5.5rem;
}

#agency-filters {
  max-height: calc(100vh - 100px);
  flex-direction: column;
  justify-content: space-between;
}

#agency-filters .content-overflow-for-short-screen {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  padding: 15px;
  padding-bottom: 0;
}

/* On mobile, filters behave like a modal so hidden by default */
@media (min-width: 768px) {
  #agency-filters {
    display: flex;
  }
}

@media (max-width: 768px) {
  #agency-filters.show {
    display: flex;
  }
}

@media (max-width: 768px) {
  #agency-filters {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    top: 100px;
    z-index: 5;
  }
}

.noscroll {
  overflow: hidden;
}

.specialisms-list .col-1,
.ratings-list .col-1 {
  width: 25px;
}

@media (hover: none) {
  .filters-button:hover {
    color: inherit;
    background: inherit;
  }
}

.bg-oncare-orange {
  background-color: #ff7401;
}
