/*
 * The speakers controls section.
 *
 * Edit this file. It is served as it is — nothing compiles it, and the
 * order it loads in is set in resources/css/order.php.
 */

.speakers-controls {
  justify-content:space-between;
  margin-inline:var(--offset-x);
  z-index:3;
}

.speakers-controls,
.speakers-controls__filter {
  align-items:center;
  display:flex;
  position:relative;
}

.speakers-controls__filter {
  border:1px solid #ccc;
  height:48px;
  justify-content:center;
  width:calc(var(--grid-column-width)*3 + var(--grid-gap)*2);
}

@media screen and (max-width:1440px) {

  .speakers-controls__filter {
    height:32px;
  }
}

@media (max-width:900px)and (orientation:landscape),screen and (max-width:767px) {

  .speakers-controls__filter {
    width:100%;
  }
}

.speakers-filter__dropdown {
  background-color:#181818;
  -webkit-clip-path:inset(0 0 100% 0);
  clip-path:inset(0 0 100% 0);
  color:#fff;
  display:flex;
  flex-direction:column;
  gap:64px;
  left:0;
  opacity:0;
  padding:16px 24px;
  pointer-events:none;
  position:absolute;
  top:100%;
  transition:-webkit-clip-path .4s ease-in-out;
  transition:clip-path .4s ease-in-out;
  transition:clip-path .4s ease-in-out,-webkit-clip-path .4s ease-in-out;
}

@media (max-width:900px)and (orientation:landscape),screen and (max-width:767px) {

  .speakers-filter__dropdown {
    width:100%;
  }
}

.speakers-filter__dropdown--active {
  -webkit-clip-path:inset(0 0 0 0);
  clip-path:inset(0 0 0 0);
  opacity:1;
  pointer-events:auto;
  z-index:1;
}

.speakers-dropdown__items-container {
  display:grid;
  gap:6px;
  grid-template-columns:repeat(4,1fr);
  width:-webkit-max-content;
  width:max-content;
}

@media (max-width:900px)and (orientation:landscape),screen and (max-width:767px) {

  .speakers-dropdown__items-container {
    width:100%;
  }
}

.speakers-dropdown__item {
  align-items:center;
  border:1px solid #ccc;
  display:flex;
  font-weight:600;
  height:48px;
  justify-content:center;
  padding-inline:24px;
  transition:color .3s ease,background-color .3 ease;
}

@media(any-hover:hover),(hover:hover)and (pointer:fine) {

  .speakers-dropdown__item:not(:disabled):hover {
    background-color:#f1ede4;
    color:#181818;
  }
}

@media screen and (max-width:1440px) {

  .speakers-dropdown__item {
    height:32px;
    padding-inline:16px;
  }
}

.speakers-dropdown__item--selected {
  background-color:#f1ede4;
  color:#181818;
}

.speakers-dropdown__sort-container {
  display:flex;
  flex-direction:column;
  gap:8px;
}

@media (max-width:900px)and (orientation:landscape),screen and (max-width:767px) {

  .speakers-dropdown__sort-container {
    width:100%;
  }
}

.speakers-filter__btn,
.speakers-filter__btn-wrapper {
  height:100%;
  width:100%;
}

.speakers-filter__btn {
  align-items:center;
  display:flex;
  justify-content:space-between;
  padding:19px;
  transition:color .3s ease,background-color .3 ease;
}

.speakers-filter__btn[disabled] {
  opacity:.5;
  pointer-events:none;
}

@media(any-hover:hover),(hover:hover)and (pointer:fine) {

  .speakers-filter__btn:not(:disabled):hover {
    background-color:#181818;
    color:#fff;
  }
}

.speakers-filter__btn svg {
  transition:transform .3s ease-in-out;
}

@media(any-hover:hover),(hover:hover)and (pointer:fine) {

  .speakers-filter__btn:not(:disabled):hover svg {
    transform:rotate(180deg);
  }
}

@media screen and (max-width:1440px) {

  .speakers-filter__btn {
    padding:12px 10px;
  }
}

.speakers-filter__btn.is-active {
  background-color:#181818;
  color:#fff;
}

.speakers-filter__btn.is-active svg {
  transform:rotate(180deg);
}

.speakers-controls__sort {
  align-items:center;
  display:flex;
  height:48px;
}

@media screen and (max-width:1440px) {

  .speakers-controls__sort {
    height:32px;
  }
}

@media (max-width:900px)and (orientation:landscape),screen and (max-width:767px) {

  .speakers-controls__sort {
    display:none;
  }
}

.speakers-sort__item {
  align-items:center;
  border:1px solid #ccc;
  display:flex;
  font-weight:600;
  height:100%;
  justify-content:center;
  padding-inline:24px;
  transition:color .3s ease,background-color .3 ease;
}

.speakers-sort__item:not(:last-child) {
  border-right:none;
}

@media(any-hover:hover),(hover:hover)and (pointer:fine) {

  .speakers-sort__item:not(:disabled):hover {
    background-color:#181818;
    color:#fff;
  }
}

@media screen and (max-width:1440px) {

  .speakers-sort__item {
    padding-inline:16px;
  }
}

.speakers-sort__item--label {
  border:none;
  padding-inline:16px;
}

@media screen and (max-width:1440px) {

  .speakers-sort__item--label {
    padding-inline:12px;
  }
}

.speakers-sort__item--selected {
  background-color:#181818;
  color:#fff;
}

.speakers-controls__filters-container {
  align-items:center;
  display:flex;
}

@media screen and (max-width:1199px) {

  .speakers-controls__filters-container,
  .speakers-filter__btn--desktop {
    display:none;
  }
}

.speakers-filter__btn--mobile {
  display:none;
}

@media screen and (max-width:1199px) {

  .speakers-filter__btn--mobile {
    display:flex;
  }

  .speakers-filter__btn-wrapper--desktop {
    display:none;
  }
}

.speakers-controls__error {
  bottom:110%;
  color:#e1251b;
  position:absolute;
}

@media (max-width:900px)and (orientation:landscape),screen and (max-width:767px) {

  .speakers-controls__filter.speakers-controls__filter {
    height:44px;
  }

  .speakers-dropdown__item.speakers-dropdown__item {
    height:44px;
    padding-inline:20px;
  }
}
