@import '../base/variables';


.throbberWrapper {
  position: absolute;
  background-color: $secondary-view-bg-color;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}
.throbberWrapper .throbber {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -20px;
  margin-left: -20px;
}
.throbberWrapper.initial {
  top: 0;
}
html,
body {
  height: 100%;
}
body {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  position: relative;
  padding: 0;
  background-color: $primary-border-color;
  min-width: 239px;
}
ul {
  margin-bottom: 0 !important;
}
.content {
  padding: 0 20px 0 0;
}
.view-content {
  height: 100%;
}
.view-content .results,
.view-content .history {
  display: none;
}
.view-content[data-state="results"] .results,
.view-content[data-state="history"] .history {
  display: block;
}
/* ==========================================================================
   Highlight
   ========================================================================== */
strong,
.item-subtitle strong {
  font-weight: 400;
}
strong {
  color: $primary-accent-color !important;
}
.item-subtitle strong {
  color: #bababa !important;
}
/* ==========================================================================
   GLUE OVERRIDES
   ========================================================================== */
.mo-image {
  -webkit-backface-visibility: visible !important;
}
li > a {
  color: #FFFFFF !important;
}
[data-uri^="spotify:track"] .mo-info,
[data-uri^="spotify:internal:topresult:spotify:track"] .mo-info {
  margin-left: 0 !important;
}
[data-uri^="spotify:track"] .mo-image-wrapper,
[data-uri^="spotify:internal:topresult:spotify:track"] .mo-image-wrapper {
  display: none !important;
}
.mo-title {
  display: none !important;
}
.mo-info {
  padding-top: 15px !important;
}
.has-subtitle .mo-info {
  padding-top: 5px !important;
}
.item-title,
.item-subtitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.item-title {
  margin: 0 !important;
  line-height: 21px !important;
}
.mo-info {
  padding-left: 10px !important;
  padding-right: 10px !important;
  background-color: transparent !important;
}
.list-group-item.list-group-item-media.more {
  border-bottom: 2px solid transparent !important;
  margin-bottom: 0 !important;
}
.mo-image-background-color {
  display: none !important;
}
.mo-image.fade-able {
  -webkit-transition: opacity 300ms;
  -moz-transition: opacity 300ms;
  -o-transition: opacity 300ms;
  transition: opacity 300ms;
  opacity: 1;
}
.mo-image.fade-out {
  opacity: 0;
}
/*
This is needed for desktop, it's a super hack for CEF.
If not added, searching for a uri and then removing it, to render
recent searches - hover state will be broken.
*/
.media-image,
.media-placeholder svg {
  -webkit-transform: none !important;
  -moz-transform: none !important;
  -ms-transform: none !important;
  -o-transform: none !important;
  transform: none !important;
}
/* ==========================================================================
   Icons
   ========================================================================== */
.spoticon-arrow-left-16 {
  line-height: 1.3;
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  height: 20px;
  position: absolute;
  top: 9px;
  right: 7px;
}
/* ==========================================================================
   Item
   ========================================================================== */
.selectable {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
  color: $primary-text-color !important;
  background-color: $secondary-view-bg-color !important;
  margin-bottom: 2px;
  height: 50px;
  position: relative;
  -webkit-transition: background-color ease-in-out 100ms;
  -moz-transition: background-color ease-in-out 100ms;
  -o-transition: background-color ease-in-out 100ms;
  transition: background-color ease-in-out 100ms;
}
.selectable .item-subtitle {
  color: $secondary-text-color-hover!important;
}
.selectable > a {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-bottom: 0 !important;
  z-index: 1;
}
.selectable:last-child {
  margin-bottom: 0 !important;
}
.selectable .label {
  color: $secondary-text-color;
  background: transparent;
  padding-top: 2px;
  padding-bottom: 1px;
  letter-spacing: 0;
  vertical-align: 10%;
  border: 1px solid darken($primary-border-color, 10%);
  font-size: 10px;
  margin-right: 5px;
}
.selectable.selected {
  background-color: darken($primary-border-color, 10%) !important;
}
.selectable.selected .label {
  color: #bababa !important;
  border-color: #666666 !important;
}
.selectable.selected:hover {
  cursor: pointer;
}
/* ==========================================================================
   Title
   ========================================================================== */
.title {
  margin: 16px 0 4px;
  font-family: $font-replacement;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.015em;
  font-weight: 200;
  color: $secondary-text-color;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.title > .linkable-title:hover {
  cursor: pointer;
  color: $secondary-text-color-hover;
}
/* ==========================================================================
   History
   ========================================================================== */
.history {
  width: 239px;
  padding: 6px 8px;
}
.history .selectable {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  height: 40px;
  margin-bottom: 0 !important;
  background-color: transparent !important;
  padding: 10px 25px 10px 10px;
  border-color: darken($primary-border-color, 10%);
}
.history .selectable.selected {
  background-color: darken($primary-border-color, 10%) !important;
}
.history .selectable:first-child {
  border-top: 0 !important;
}
.history .selectable:last-child {
  border-bottom: 0 !important;
}
/* ==========================================================================
   Results
   ========================================================================== */
.results {
  width: 239px;
  padding: 8px 11px;
  overflow: hidden;
}
