.tool {
  border-radius: 16px;
  border: 2px solid #e6e6e6;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.16);
}
.tool__head {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  padding: 24px 16px;
  border-bottom: 1px solid #e6e6e6;
  background: #F3F3F3;
  color: #7F952D;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 30px;
  text-transform: uppercase;
}
.tool__body {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.tool__form label {
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 12px;
}
.tool__form label > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #404040;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}
.tool__form input:not([type=radio], [type=checkbox]) {
  width: 100%;
  outline: none;
  padding: 11px 24px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #F9FAFA;
  color: #5E6166;
  font-family: inherit;
  font-size: 16px;
  line-height: 28px;
}
@media (any-hover: hover) {
  .tool__form input:not([type=radio], [type=checkbox]):not(.active):hover, .tool__form input:not([type=radio], [type=checkbox]):not(.active):focus {
    border-color: rgba(0, 0, 0, 0.24);
  }
}
.tool__tooltip-btn {
  cursor: pointer;
  outline: none;
  border: none;
  background: none;
  padding: 0;
  display: inline-flex;
}
.tool__reset {
  cursor: pointer;
  outline: none;
  border: none;
  padding: 12px 4px;
  border-radius: 4px;
  background: #F9FAFA;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #5E6166;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
  transition: background 0.2s ease-in-out;
}
@media (any-hover: hover) {
  .tool__reset:not(:disabled):hover {
    background: #E6E6E6;
  }
}
.tool__reset:disabled {
  cursor: not-allowed;
  background: #FCFCFC;
  color: #BFBFBF;
}

@media screen and (max-width: 767px) {
  .tool {
    margin-bottom: 40px;
  }
  .tool:has(+ .compare-casinos__results) {
    margin-bottom: 16px;
  }
  .tool__head {
    padding: 16px;
    font-size: 18px;
    line-height: 24px;
  }
  .tool__body {
    margin: 0 -2px;
  }
  .tool__form input:not([type=radio], [type=checkbox]) {
    padding: 11px 16px;
  }
}
.custom-select {
  position: relative;
  width: 100%;
}
.custom-select.active .custom-select__opener {
  border-color: rgba(0, 0, 0, 0.3);
}
.custom-select.active .custom-select__opener .icon-arrow-down {
  rotate: 180deg;
}
.custom-select.active .custom-select__popup-holder {
  display: block;
}
.custom-select__opener {
  cursor: pointer;
  width: inherit;
  padding: 11px 24px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #F9FAFA;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5E6166;
  font-family: inherit;
  font-size: 16px;
  line-height: 28px;
  transition: border-color 0.2s ease-in-out;
}
.custom-select__opener span {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
@media (any-hover: hover) {
  .custom-select__opener:hover, .custom-select__opener:focus {
    border-color: rgba(0, 0, 0, 0.24);
  }
  .custom-select__opener:hover .icon-arrow-down, .custom-select__opener:focus .icon-arrow-down {
    rotate: 180deg;
  }
}
.custom-select__opener .icon-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
}
.custom-select__opener .icon-arrow-down {
  width: 12px;
  height: 7px;
  margin-left: auto;
  filter: invert(36%) sepia(6%) saturate(372%) hue-rotate(179deg) brightness(100%) contrast(88%);
  transition: rotate 0.2s ease-in-out;
}

@media screen and (max-width: 767px) {
  .custom-select__opener {
    padding: 11px 16px;
  }
}
.advanced-settings__opener {
  cursor: pointer;
  outline: none;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #F9FAFA;
  color: #5E6166;
  text-align: center;
  font-family: inherit;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  transition: background 0.2s ease-in-out;
}
@media (any-hover: hover) {
  .advanced-settings__opener:not(.active):hover, .advanced-settings__opener.active {
    background: #F3F3F3;
  }
  .advanced-settings__opener:not(.active):hover .icon-arrow-down, .advanced-settings__opener.active .icon-arrow-down {
    rotate: 180deg;
  }
}
.advanced-settings__opener .icon-arrow-down {
  width: 12px;
  height: 7px;
  filter: invert(36%) sepia(6%) saturate(372%) hue-rotate(179deg) brightness(100%) contrast(88%);
  transition: rotate 0.2s ease-in-out;
}
.advanced-settings__wrapper {
  max-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
  transition: max-height 0.2s ease-in-out, margin-top 0.2s ease-in-out;
}
.advanced-settings__wrapper.active {
  margin-top: 32px;
  max-height: 400px;
}

@media screen and (max-width: 767px) {
  .advanced-settings__opener {
    min-height: 35px;
    padding: 7px 8px;
    font-size: 13px;
  }
  .advanced-settings__wrapper.active {
    margin-top: 24px;
  }
}
.random-card__form {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.random-card__form label {
  align-items: flex-start;
  row-gap: 24px;
}
.random-card__form label > span {
  color: #5E6166;
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
}
.random-card__form-settings {
  width: min(425px, 100%);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.random-card__form-settings > fieldset label {
  display: grid;
  grid-template-columns: 1fr 210px;
  align-items: center;
  gap: 24px;
}
.random-card__form .custom-select__opener {
  padding: 8px 12px;
  font-size: 14px;
  line-height: normal;
  min-height: 40px;
}
.random-card__form-generate {
  margin-top: 40px;
  width: min(425px, 100%);
  min-height: 48px;
  cursor: pointer;
  outline: none;
  border: none;
  padding: 12px;
  border-radius: 6px;
  background: #C4DB11;
  flex: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #404040;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  transition: background 0.2s ease-in-out;
}
@media (any-hover: hover) {
  .random-card__form-generate:hover {
    background: #B4CA09;
  }
}
.random-card__form-results {
  width: 100%;
  margin-top: 24px;
}
.random-card__form-results fieldset,
.random-card__form-results label {
  height: 100%;
}
.random-card__form-error {
  margin: 0;
  margin-top: 8px;
  width: min(425px, 100%);
  text-align: center;
  color: #E43D43;
  font-size: 13px;
  line-height: normal;
}

@media screen and (max-width: 767px) {
  .random-card__form {
    padding: 8px;
    gap: 24px;
  }
  .random-card__form-settings > fieldset label {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .random-card__form .custom-select__opener {
    padding: 7px 8px;
    font-size: 13px;
    min-height: 35px;
  }
  .random-card__form label {
    row-gap: 12px;
  }
  .random-card__form label > span {
    font-size: 15px;
  }
  .random-card__form .tool__tooltip-btn img {
    width: 12px;
    height: 12px;
  }
  .random-card__form-generate {
    margin-top: 0;
    padding: 8px;
    min-height: 38px;
    font-size: 15px;
  }
  .random-card__form-results {
    margin-top: 0;
  }
  .random-card__form-error {
    margin-top: -20px;
    text-align: start;
    font-size: 12px;
  }
}
.advanced-settings {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.advanced-settings__opener {
  width: min(425px, 100%);
}
.advanced-settings__wrapper {
  width: calc(100% + 20px);
  gap: 16px 24px;
}
.advanced-settings__wrapper.active {
  margin-top: 40px;
}
.advanced-settings__field {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 12px 24px;
}
.advanced-settings__field-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
}
.advanced-settings__field-checkbox {
  display: flex;
  align-items: center;
  color: #5E6166;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  text-transform: capitalize;
}
.advanced-settings__field-checkbox label {
  flex-direction: row;
  align-items: center;
  gap: 4px;
}
.advanced-settings__field-checkbox label::before {
  margin-right: 4px;
}
.advanced-settings__checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.advanced-settings__checkbox label {
  padding: 8px;
  min-height: 40px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  border: 1px solid #D6D6D6;
  background: #F9FAFA;
  color: #5E6166;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  transition: background 0.2s ease-in-out;
}
@media (any-hover: hover) {
  .advanced-settings__checkbox label:hover {
    background: #F3F3F3;
  }
}
.advanced-settings input[type=checkbox] {
  appearance: none;
  margin: 0;
  padding: 0;
}
.advanced-settings input[type=checkbox]:checked + label::before {
  background-size: 24px;
  border-color: #429BF4;
}
.advanced-settings input[type=checkbox]:disabled + label {
  pointer-events: none;
  opacity: 0.5;
}
.advanced-settings input[type=checkbox] + label {
  cursor: pointer;
}
.advanced-settings input[type=checkbox] + label::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: url(/public/images/svg/icon-generator-checked.svg) no-repeat;
  background-size: 0;
  background-position: center;
  border: 3px solid #757575;
  transition: border-color 0.2s ease-in-out, background-size 0.2s ease-in-out;
}

@media screen and (max-width: 767px) {
  .advanced-settings {
    margin-top: 0;
  }
  .advanced-settings__wrapper {
    width: 100%;
  }
  .advanced-settings__wrapper.active {
    margin-top: 24px;
  }
  .advanced-settings__field {
    grid-template-columns: 1fr;
  }
  .advanced-settings__field-checkboxes {
    grid-template-columns: repeat(2, 35%);
    justify-content: center;
    column-gap: 32px;
  }
  .advanced-settings__field-checkbox {
    font-size: 13px;
  }
  .advanced-settings__field-checkbox img {
    width: 11px;
    height: 12px;
  }
  .advanced-settings__checkbox label {
    min-height: 37px;
  }
  .advanced-settings input[type=checkbox]:checked + label::before {
    background-size: 21px;
  }
  .advanced-settings input[type=checkbox]:disabled + label {
    pointer-events: none;
    opacity: 0.5;
  }
  .advanced-settings input[type=checkbox] + label::before {
    width: 18px;
    height: 18px;
    border-width: 2px;
  }
}
.results {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-radius: 6px;
  border: 2px solid #e6e6e6;
  overflow: hidden;
}
.results__wrap {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1 0 0;
  min-height: 668px;
  background: #F9FAFA;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #A3A3A3 #e6e6e6;
  position: relative;
}
.results__wrap::-webkit-scrollbar {
  width: 2px;
}
.results__wrap::-webkit-scrollbar-track {
  background: #e6e6e6;
}
.results__wrap::-webkit-scrollbar-thumb {
  background: #A3A3A3;
  border-radius: 0;
}
.results__preloader {
  background: #F9FAFA;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  row-gap: 50px;
  text-align: center;
  color: rgba(191, 191, 191, 0.6);
  font-size: 28px;
  font-weight: 500;
  line-height: normal;
}
.results__preloader.show {
  z-index: 1;
  font-size: 0;
}
.results__preloader.show img {
  animation: fading 2s infinite;
}
@keyframes fading {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}
.results__list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(6, 120px);
  gap: 24px 8px;
  justify-content: space-between;
}
.results__list img {
  border-radius: 6px;
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .results__list {
    grid-template-columns: repeat(auto-fit, 120px);
  }
}
@media screen and (max-width: 767px) {
  .results__wrap {
    padding: 12px;
    min-height: 470px;
  }
  .results__preloader {
    row-gap: 36px;
    font-size: 16px;
  }
  .results__preloader img {
    width: 130px;
    height: 210px;
  }
  .results__list {
    grid-template-columns: repeat(auto-fit, 70px);
    row-gap: 12px;
  }
  .results__list img {
    width: 70px;
    height: 107px;
  }
}