/* Mixins */
/**
 * Returns value from colors map
 */
/**
 * Turns pixels to rems
 * We typically set out HTML font size to 62.5% which helps us have a base-10 value to work with.
 * So the following mixin accepts a pixel value that is then turned into a corresponding rem value.
 */
/**
 * Function for converting a px based font-size to rem.
 *
 * @param $size - the value in pixel you want to convert
 *
 * e.g. p {to-rem(12);}
 *
 */
.tpg-pseudo-select {
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  overflow: hidden;
  position: relative;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tpg-pseudo-select__icon {
  color: #fd7512;
  right: 1.8rem;
  -webkit-transform: rotate(0deg);
  -ms-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: -webkit-transform 250ms linear;
  transition: -webkit-transform 250ms linear;
  -o-transition: transform 250ms linear;
  transition: transform 250ms linear;
  transition: transform 250ms linear, -webkit-transform 250ms linear;
}
.tpg-pseudo-select.uk-open .tpg-pseudo-select__icon {
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
  -webkit-transition: -webkit-transform 250ms linear;
  transition: -webkit-transform 250ms linear;
  -o-transition: transform 250ms linear;
  transition: transform 250ms linear;
  transition: transform 250ms linear, -webkit-transform 250ms linear;
}
.tpg-pseudo-select:disabled {
  background-color: whitesmoke;
  border-color: #8c8c8e;
  opacity: 0.5;
  pointer-events: none;
}
.tpg-pseudo-select--with-content {
  color: black !important;
  opacity: 1;
  padding: 1.5rem !important;
}
.tpg-pseudo-select--with-content .traffic-line-number {
  margin-right: 1rem;
}
.tpg-pseudo-select--with-content .uk-icon:not(.tpg-pseudo-select__icon) {
  color: #aeb4d3;
  margin-right: 1rem;
}

.tpg-results-list {
  background-color: white;
  border: 0.1rem solid #d8dbe9 !important;
  border-radius: 0.4rem;
  display: none;
  margin-top: 1rem;
  max-height: 30rem;
  overflow-y: auto;
  padding: 0 !important;
  font-family: "Roboto-Regular", sans-serif !important;
  font-size: 1.8rem;
  line-height: 1.4 !important;
}
.tpg-results-list__item {
  list-style: none;
  padding: 2rem;
}
.tpg-results-list__item .ui-state-active:hover,
.tpg-results-list__item .ui-state-active {
  background: transparent;
  border: none;
  color: #fd7512;
  margin: 0;
  text-decoration: none;
}
.tpg-results-list__item .ui-menu-item-wrapper {
  padding: 0;
}
.tpg-results-list__item--small {
  padding: 1rem;
}
.tpg-results-list__item__terminus {
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
  overflow: hidden;
}
.tpg-results-list__item .uk-icon {
  color: #aeb4d3;
}
.tpg-results-list__item:focus, .tpg-results-list__item:hover, .tpg-results-list__item.tpg-results-list__item--selected {
  background-color: #f0f1f7;
  color: #fd7512;
  cursor: pointer;
}
.tpg-results-list__item:focus .uk-icon, .tpg-results-list__item:hover .uk-icon, .tpg-results-list__item.tpg-results-list__item--selected .uk-icon {
  color: #fd7512;
}
.tpg-results-list__item > * {
  margin-right: 0.8rem;
}
.tpg-results-list__item > *:last-child {
  margin-right: 0;
}

.search {
  background-image: url("/themes/custom/tpg/dist/pictos/search.svg");
  background-position: 1.5rem 50%;
  background-repeat: no-repeat;
  padding-left: 5rem !important;
}

.text-input, .tpg-pseudo-select, .search {
  outline: none;
  font-family: "Roboto-Regular", sans-serif !important;
  font-size: 1.8rem;
  line-height: 1.4 !important;
  background-color: white;
  border: 0.1rem solid #fdbea6;
  border-radius: 0.4rem;
  color: #8c8c8e;
  padding: 1.6rem;
  overflow: hidden;
}

.box-shadow, .tpg-results-list, .text-input, .tpg-pseudo-select, .search {
  -webkit-box-shadow: 0 1.5rem 2.4rem rgba(33, 33, 83, 0.08);
  box-shadow: 0 1.5rem 2.4rem rgba(33, 33, 83, 0.08);
}

@media only screen and (min-width: 960px) {
  .search-stops-lines .uk-grid {
    width: 100%;
    max-width: 100%;
  }
}
.search-stops-lines .uk-search-input {
  height: 6rem;
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
  width: 100%;
}
.search-stops-lines .tpg-results-lines-list {
  z-index: 1020;
}
.search-stops-lines .selected-location-icon {
  color: #aeb4d3;
}