/**
 * @file
 * Search.
 *
 * @see - code taken from Radioplayer D7 site: https://gitlab.microserve.io/radioplayer/radioplayer-d7.
 * Refactor beyond scope of current phase of work.
 */

.search-wrapper {
  position: relative;
}

.search-box .input {
  color: #868686;
}

.search-box.active .input {
  color: #000;
}

.showing-overlay .overlay-container {
  display: block;
}

.overlay-container {
  left: 0;
  position: absolute;
  right: 0;
  top: 64px;
  display: none;
  overflow: hidden;
  z-index: 900;
  background: #f6f6f6;
  border: 1px solid #e6e6e6;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  height: 553px;
}

.scrollable-wrapper {
  overflow: auto;
  height: 553px;
}

.scrollable-wrapper.has-error {
  background: #f6f6f6;
}

.showing-suggest .suggest-container {
  display: block;
}

.suggest-container {
  display: none;
}

.suggest-divider {
  font-weight: 700;
  color: #c03;
  background: #e6e6e6;
  padding: 1em;
  font-size: 1em;
  text-transform: none;
  line-height: 1.5em;
}

.suggest-item {
  border-bottom: 1px solid #e6e6e6;
  background-color: #fff;
}

.suggest-item a {
  font-weight: 700;
  display: block;
  padding: 1em;
  position: relative;
  min-height: 65px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  outline: none;
}

.suggest-item a:hover span,
.suggest-item a:focus span {
  text-decoration: underline;
}

.suggest-item.on a {
  background-color: #f4f4f4;
}

.suggest-item .image {
  position: absolute;
  left: 1em;
  top: 1em;
  width: 61px;
  height: 35px;
  border: none;
}

.suggest-item .name {
  display: block;
  position: absolute;
  left: 5.75em;
  top: .7em;
  font-size: 1em;
  color: #222;
  line-height: 1.5em;
  white-space: nowrap;
  padding-top: 0;
  padding-right: 1em;
}

.suggest-item .prog-name {
  display: block;
  position: absolute;
  left: 7.2em;
  top: 2.75em;
  font-size: 0.8em;
  color: #333;
  padding-top: 0;
  padding-right: 1em;
  line-height: 1.5em;
  font-weight: normal;
  width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.show-all a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  display: block;
  padding: 20px 5px;
  font-size: 14px;
  line-height: 10px;
  text-align: center;
  text-decoration: none;
  min-height: 0;
}

.show-all strong {
  color: #000;
}

.showing-search .search-container {
  display: block;
}

.search-container {
  display: none;
  height: 100%;
}

.overlay-item {
  position: relative;
  min-height: 60px;
  overflow: hidden;
  border-bottom: 1px solid #e6e6e6;
}

.overlay-item-initial {
  padding: 1em;
  overflow: hidden;
  position: relative;
}

.overlay-item-link {
  text-decoration: none;
  color: #333;
  cursor: pointer;
}

.overlay-item-img {
  position: relative;
  width: 88px;
  height: 50px;
  float: left;
  margin-right: 15px;
}

.overlay-item-img img {
  border: 1px solid #e3e3e3;
}

.overlay-item .title {
  font-weight: 700;
  font-size: 14px;
  padding-bottom: 1px;
  line-height: 110%;
  display: block;
  margin-left: 103px;
  white-space: nowrap;
}

.overlay-item-data {
  float: left;
  width: 60%;
}

.overlay-item-data {
  float: left;
  width: 60%;
}

.overlay-item .programme-title,
.overlay-item .subtitle {
  font-size: 12px;
  padding-bottom: 2px;
}

.overlay-item .programme-title.truncate,
.overlay-item .subtitle.truncate {
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.overlay-item .description {
  font-size: 12px;
  color: #868686;
  margin: 0;
}

.overlay-item .broadcast-info {
  padding-top: 8px;
  margin: 0;
}

.overlay-item .broadcast-info .status {
  font-family: "EestiBold", sans-serif;
  font-size: 0.60em;
  padding: 0.75em 1em;
  color: #fff;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 3px;
  margin: 0 0.5em 0 0;
  text-transform: uppercase;
  font-weight: normal;
}

.overlay-item .broadcast-info .broadcast-time {
  text-align: right;
  font-size: 11px;
  line-height: 13px;
}

.station-group-toggle {
  display: block;
  padding: 10px 0;
  text-align: center;
  color: #666;
  text-decoration: none;
  font-weight: bold;
  background-color: #f4f3f3;
  position: relative;
  border-top: 1px solid #ddd;
}

.station-group.collapsed .station-group-hidden {
  display: none;
}

.error-message {
  color: #000;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
  border-radius: 5px;
  background-color: #fff;
  margin: 40px;
  padding: 55px;
  text-align: center;
}

.error-message .terms {
  font-weight: 700;
}

.spinner {
  display: none;
  border: 5px solid rgba(0, 0, 0, 0.2);
  border-top: 5px solid #c03;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.5s linear infinite;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
