/* 
* This file contains Slotslaunch plugin customizations
*/

.slotsl-container {
  margin: 24px 0 !important;
  padding: 0 !important;
}

.slotsl-filters form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 32px;
}

.slotsl-filters .slotsl-search {
  order: 1;
  margin-bottom: 0;
}

.slotsl-filters .slotsl-providers {
  order: 3;
  flex-direction: row;
  margin-bottom: 0;
}

.slotsl-filters .slotsl-providers.slotsl-providers-sortby {
  order: 999;
}

.slotsl-filters .slotsl-providers:has(.slots-select-types) {
  order: 2;
}

.slotsl-filters .slotsl-providers .select-options {
  max-height: 300px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
}

.slotsl-filters .slotsl-providers .custom-select,
.slotsl-filters .slotsl-providers .choices__inner {
  min-width: 130px;
  border-color: #ccc;
  border-radius: 5px;
}

.slotsl-filters .choices__inner {
  min-height: 42px;
  padding: 7px 8px 6px 4px !important;
}

.slotsl-filters .choices__inner,
.slotsl-filters .choices__item.choices__placeholder.choices__item--selectable,
.slotsl-filters .slotsl-search input {
  color: #3E4242;
  font-size: 14px !important;
}

.slotsl-filters .choices__item--selectable.is-highlighted {
  background-color: #fcecbe !important;
}

.slotsl-filters .slotsl-search input {
  min-height: 0 !important;
  min-width: 0;
  padding-right: 32px !important;
}

.slotsl-filters .slotsl-search .sl-submit-search {
  right: 10px !important;
}

.slotsl-filters .choices__list--single {
  padding-top: 0;
  padding-right: 24px;
  padding-bottom: 0;
}

.slotsl-filters .custom-select .select-styled::after {
  content: "";
  border: none;
  position: absolute;
  right: 1.5px;
  top: 50%;
  transform: translateY(-50%) rotate(0);
  pointer-events: none;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="5" viewBox="0 0 10 5"><path fill="none" stroke="%23333" stroke-width="1" d="M0 0l5 5 5-5"/></svg>') no-repeat right 10px center;
  padding: 10px;
}

.slotsl-filters .custom-select .select-options li,
.slotsl-filters .select-styled {
  cursor: pointer;
}

.slotsl-filters .select-styled {
  padding: 0 32px 0 8px;
}

.slotsl-filters .custom-select .select-options li {
  padding: 8px;
  overflow: hidden;
}

.slotsl-filters input:checked + .slider {
  background-color: #F5C228;
}

.slotsl-filters .choices[data-type*=select-one].is-open::after {
  margin-top: -3px !important;
}

.slotsl-filters .choices, 
.slotsl-filters .slotsl-search input, 
.slotsl-filters .slotsl-megaways, 
.slotsl-filters .slotsl-providers select {
  min-width: 0;
  width: auto;
  font-family: "Montserrat",sans-serif;
  font-size: 14px;
  color: #3E4242;
}

.slotsl-filters .sl-mobile-filter-button {
  display: none !important;
}

.slotsl-filters .choices__list--dropdown .choices__item {
    line-height: 1.3;
    min-height: 48px;
    display: flex;
    align-items: center;
    padding-right: 16px !important;
}

.slotsl-filters .choices__list--dropdown .choices__item::after {
  display: none;
}

.slotsl-filters .is-flipped .choices__list--dropdown,
.slotsl-filters .is-flipped .choices__list[aria-expanded] {
    top: 100%;
    bottom: auto;
    margin-top: -1px;
    margin-bottom: 0;
    border-radius: 0 0 .25rem .25rem;
}

.slotsl-container .slotsl-loader svg {
  width: 200px;
  height: 200px;
}

.slotsl-container .slotsl-load-more button {
  width: auto;
  height: auto;
  padding: 14px 20px;
  text-transform: uppercase;
  font-size: 14px;
  background-color: var(--vg-turquoise-600-brand);
  border: 1px solid var(--vg-turquoise-600-brand);
  color: #fff;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}

.slotsl-container .slotsl-load-more button:hover {
  background-color: rgba(104,176,196,.2);
}

.slotsl-container .slotsl-progress-bar-fill {
  background: var(--vg-turquoise-600-brand);
}

.slotsl-container .slotsl-demo-container {
  background: rgba(104, 176, 196, 0.5);
}

@media (pointer: coarse) and (max-width: 1200px) {
	.slotsl-container .slotsl-load-more button:not(.active) {
    background-color: var(--vg-turquoise-600-brand);
    border: 1px solid var(--vg-turquoise-600-brand);
    color: #fff;
	}
}

.slotsl-container .slotsl-progress {
  max-width: 400px;
  margin: 40px auto 0;
}

.slotsl-container .slotsl-progress p {
  margin-bottom: 18px !important;
  text-align: center;
  line-height: 20px;
}

.slotsl-container .slotsl-progress-bar .slotsl-progress-bar-line {
  width: 100%;
}

.slotsl-container .slotsl-load-more {
  margin-top: 24px;
}

.slotsl-thumb img {
  margin-bottom: 0 !important;
}

a.slotsl-provider,
.slotsl-url {
  color: #68b0c4 !important;
}

.slotsl-provider,
.slotsl-url {
  font-family: "Montserrat", sans-serif;
}

@media (max-width: 768px) {
  .slotsl-filters form {
    margin-bottom: 24px;
  }

  .slotsl-container .slotsl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 10px;
  }

  .slotsl-filters .slotsl-providers,
  .slotsl-filters .slotsl-search {
    flex-direction: row;
    flex-basis: 45%;
  }

  .slotsl-filters .slotsl-megaways {
    justify-content: flex-start;
  }

  .slotsl-filters .slotsl-providers .custom-select {
    min-width: 0;
  }

  .slotsl-filters .slotsl-providers:has(.slots-select-providers) {
    justify-content: flex-start;
  }

  .slotsl-filters .slotsl-meta {
    padding: 20px 10px;
  }

  .slotsl-filters .slotsl-meta a.slotsl-provider, 
  .slotsl-filters .slotsl-meta span.slotsl-provider {
    left: 10px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: calc(100% - 20px);
  }

  .slotsl-container .slotsl-progress {
    max-width: 250px;
  }

  .slotsl-providers-archives .slotsl-filters {
    max-width: 100%;
  }

  .slotsl-providers-archives .slotsl-filters .slotsl-search {
    flex-basis: 100%;
  }

  .slotsl-container .slotsl-meta:not(.slotsl-providers-meta) .slotsl-title {
    align-content: center;
  }

  .slotsl-container .slotsl-providers-meta .slotsl-url,
  .slotsl-container .slotsl-providers-meta .sl-count {
    align-self: flex-end;
  }
}

@media (min-width: 768px) {
  .slotsl-container .slotsl-providers-meta .slotsl-title {
    align-content: space-between;
  }
}

/* Slot game card */
.slotsl-container .slotsl-game {
  display: flex;
  flex-direction: column;
}

.slotsl-container .slotsl-game .slotsl-thumb {
  flex-shrink: 0;
  flex-grow: 0;
}

.slotsl-container .slotsl-game .slotsl-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  gap: 10px;
}

.slotsl-container .slotsl-meta .slotsl-title {
  flex-grow: 1;
  margin-bottom: 0 !important;
}

.slotsl-container .slotsl-meta .slotsl-provider {
  position: static !important;
  line-height: 1.2;
}
