/* The trigger has to read as one of the surrounding text inputs: same 47px
   box, 7px radius and 3px transparent border that turns red on error. */
.home__filters .hrc {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.home__filters .hrc-flexible {
  width: 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .home__filters .hrc,
  .home__filters .hrc-flexible {
    max-width: 80%;
  }
}

.home__filters .hrc-flexible-row {
  margin-top: -8px;
}

.home__filters .hrc-error-row {
  margin-bottom: 0;
}

.home__filters .hrc-flexible-row > .filter-form__label[aria-hidden],
.home__filters .hrc-error-row > .filter-form__label[aria-hidden] {
  margin: 0;
}

.home__filters .hrc-error-row .home-form-error {
  width: 100%;
  max-width: 100%;
  margin-top: 0;
}

@media (min-width: 768px) {
  .home__filters .hrc-error-row .home-form-error {
    max-width: 80%;
  }
}

.home__filters .hrc-flexible .custom-checkbox-group__label {
  margin: 0;
}

.home__filters .hrc__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  height: 47px;
  margin: 0;
  padding: 0 15px;
  background: #ffffff;
  border: 3px solid transparent;
  border-radius: 7px;
  box-shadow: none;
  box-sizing: border-box;
  color: #3d3d3d;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease-out;
}

.home__filters .hrc__trigger:hover:not(:disabled),
.home__filters .hrc__trigger[aria-expanded="true"] {
  border-color: #32c4d6;
}

.home__filters .hrc__trigger:disabled {
  background: #f3f4f7;
  cursor: default;
}

.home__filters .hrc__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home__filters .hrc__value.is-empty {
  color: #9a9a9a;
}

.home__filters .hrc__icon {
  flex: 0 0 auto;
  color: #32c4d6;
}

.home__filters .hrc__trigger:disabled .hrc__icon {
  color: #c1c4cc;
}

.home__filters .home-form-section.is-invalid .hrc__trigger {
  border-color: #ff8b8b;
}

.home__filters .hrc__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 60;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 18px 20px 14px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.22);
  color: #2b2d38;
  font-family: "Roboto", sans-serif;
  cursor: default;
}

.home__filters .hrc__panel[hidden] {
  display: none;
}

.home__filters .hrc__panel--right {
  left: auto;
  right: 0;
}

.home__filters .hrc__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.home__filters .hrc__nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 8px;
  color: #2b2d38;
  cursor: pointer;
}

.home__filters .hrc__nav:hover:not(:disabled) {
  background: #f1f3f7;
}

.home__filters .hrc__nav:disabled {
  color: #c9ccd6;
  cursor: default;
}

.home__filters .hrc__title {
  flex: 1 1 0;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.home__filters .hrc__months {
  display: flex;
  gap: 28px;
}

.home__filters .hrc__month {
  flex: 0 0 auto;
  width: 266px;
}

.home__filters .hrc__weekdays,
.home__filters .hrc__grid {
  display: grid;
  grid-template-columns: repeat(7, 38px);
}

.home__filters .hrc__weekday {
  height: 28px;
  color: #8b90a0;
  font-size: 11px;
  font-weight: 500;
  line-height: 28px;
  text-align: center;
}

.home__filters .hrc__cell {
  position: relative;
  height: 38px;
}

.home__filters .hrc__cell.is-in-range {
  background: #e7f7fa;
}

.home__filters .hrc__cell.is-range-start {
  background: linear-gradient(to right, #ffffff 50%, #e7f7fa 50%);
}

.home__filters .hrc__cell.is-range-end {
  background: linear-gradient(to left, #ffffff 50%, #e7f7fa 50%);
}

.home__filters .hrc__cell.is-single {
  background: #ffffff;
}

.home__filters .hrc__day {
  display: block;
  width: 34px;
  height: 34px;
  margin: 2px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 9px;
  color: #2b2d38;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
}

.home__filters .hrc__day:hover:not(:disabled):not(.is-selected) {
  background: #f1f3f7;
}

.home__filters .hrc__day:disabled {
  color: #c9ccd6;
  cursor: default;
}

.home__filters .hrc__day.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 1px #32c4d6;
}

.home__filters .hrc__day.is-selected {
  background: #32c4d6;
  color: #ffffff;
  font-weight: 700;
}

.home__filters .hrc__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eef0f4;
}

.home__filters .hrc__hint {
  margin: 0;
  color: #8b90a0;
  font-size: 12px;
  line-height: 16px;
}

.home__filters .hrc__clear {
  flex: 0 0 auto;
  padding: 0;
  background: none;
  border: none;
  color: #32c4d6;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.home__filters .hrc__clear:disabled {
  color: #c9ccd6;
  cursor: default;
  text-decoration: none;
}

@media (max-width: 991px) {
  .home__filters .hrc__month--next,
  .home__filters .hrc__title--next {
    display: none;
  }

  .home__filters .hrc__panel {
    width: 100%;
    min-width: 286px;
    padding: 16px 14px 12px;
  }

  .home__filters .hrc__months {
    justify-content: center;
  }

  .home__filters .hrc__weekdays,
  .home__filters .hrc__grid {
    grid-template-columns: repeat(7, 1fr);
  }

  .home__filters .hrc__month {
    width: 100%;
  }

  .home__filters .hrc__day {
    margin: 2px auto;
  }

  .home__filters .hrc__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
