.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;
  }
}
.keno-form {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.keno-form label {
  align-items: flex-start;
  row-gap: 8px;
}
.keno-form label > span {
  color: #5E6166;
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
}
.keno-form__settings {
  width: min(550px, 100%);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.keno-form__settings label {
  display: grid;
  grid-template-columns: 184px 1fr;
  align-items: center;
  gap: 32px;
}
.keno-form__settings-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #5E6166;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  position: relative;
}
.keno-form__settings-item input:not([type=radio]) {
  width: 63px;
  padding: 11px 12px;
  font-size: 14px;
  line-height: normal;
}
.keno-form__settings-item .keno-form__error {
  position: absolute;
  bottom: -18px;
}
.keno-form .custom-select {
  max-width: 155px;
}
.keno-form .custom-select__opener {
  padding: 8px 12px;
  font-size: 14px;
  line-height: normal;
  min-height: 40px;
}
.keno-form__generate {
  margin-top: 32px;
  width: min(343px, 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) {
  .keno-form__generate:hover {
    background: #B4CA09;
  }
}
.keno-form__results {
  width: 100%;
  margin-top: 12px;
}
.keno-form__results fieldset,
.keno-form__results label {
  height: 100%;
}
.keno-form__error {
  margin: 0;
  margin-top: 4px;
  color: #E43D43;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
}
.keno-form .error {
  border-color: #E43D43 !important;
}

@media screen and (max-width: 767px) {
  .keno-form {
    padding: 8px;
    gap: 24px;
  }
  .keno-form__settings label {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .keno-form__settings-item {
    gap: 0 6px;
    font-size: 13px;
  }
  .keno-form__settings-item input:not([type=radio]) {
    width: 53px;
    padding: 10px 8px;
    font-size: 13px;
  }
  .keno-form__settings-item .keno-form__error {
    position: static;
  }
  .keno-form .custom-select {
    max-width: 100%;
  }
  .keno-form .custom-select__opener {
    padding: 7px 8px;
    font-size: 13px;
    min-height: 35px;
  }
  .keno-form label > span {
    font-size: 15px;
  }
  .keno-form .tool__tooltip-btn img {
    width: 12px;
    height: 12px;
  }
  .keno-form__generate {
    margin-top: 0;
    padding: 8px;
    min-height: 38px;
    font-size: 15px;
  }
  .keno-form__generate + .keno-form__error {
    margin-top: -20px;
  }
  .keno-form__results {
    margin-top: 0;
  }
  .keno-form__error {
    font-size: 11px;
  }
}
.advanced-settings {
  width: min(550px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.advanced-settings__opener {
  width: min(343px, 100%);
}
.advanced-settings__wrapper input:not([type=radio], [type=checkbox]) {
  padding: 11px 12px;
  font-size: 14px;
  line-height: normal;
}
.advanced-settings__checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.advanced-settings__checkbox input {
  appearance: none;
  margin: 0;
  padding: 0;
}
.advanced-settings__checkbox input:checked + label::before {
  background-size: 24px;
  border-color: #429BF4;
}
.advanced-settings__checkbox input:disabled + label {
  pointer-events: none;
  opacity: 0.5;
}
.advanced-settings__checkbox label {
  cursor: pointer;
  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;
}
.advanced-settings__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 (any-hover: hover) {
  .advanced-settings__checkbox label:hover {
    background: #F3F3F3;
  }
}
.advanced-settings__radio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.advanced-settings__radio-wrap {
  display: flex;
}
.advanced-settings__radio-wrap span {
  display: flex;
  border: 1px solid #DBDCDC;
  overflow: hidden;
}
.advanced-settings__radio-wrap span:first-child {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}
.advanced-settings__radio-wrap span:last-child {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}
.advanced-settings__radio-wrap input {
  appearance: none;
  margin: 0;
  padding: 0;
}
.advanced-settings__radio-wrap input:checked + label {
  background: #B4CA09;
}
.advanced-settings__radio-wrap label {
  cursor: pointer;
  width: 72px;
  padding: 8px 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #F3F3F3;
  color: #5E6166;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  text-transform: capitalize;
  transition: background 0.2s ease-in-out;
  text-align: center;
}
@media (any-hover: hover) {
  .advanced-settings__radio-wrap label:hover {
    background: #B4CA09;
  }
}

@media screen and (max-width: 767px) {
  .advanced-settings__wrapper input:not([type=radio], [type=checkbox]) {
    padding: 10px 8px;
    font-size: 13px;
  }
  .advanced-settings__checkbox input:checked + label::before {
    background-size: 21px;
  }
  .advanced-settings__checkbox label {
    min-height: 37px;
  }
  .advanced-settings__checkbox label::before {
    width: 18px;
    height: 18px;
    border-width: 2px;
  }
  .advanced-settings__radio {
    gap: 4px;
  }
  .advanced-settings__radio-wrap label {
    width: 65px;
    padding: 8px 4px;
    font-size: 13px;
  }
}
.results {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-radius: 6px;
  border: 2px solid #e6e6e6;
  overflow: hidden;
}
.results__head {
  padding: 12px;
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  background: #F1F1F1;
  color: #5E6166;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
}
.results__head span:first-of-type {
  min-width: 120px;
  text-align: left;
}
.results__wrap {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  flex: 1 0 0;
  min-height: 644px;
  border-top: 2px solid #e6e6e6;
  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: 58px;
  text-align: center;
  color: #BFBFBF;
  font-size: 28px;
  font-weight: 500;
  line-height: normal;
  opacity: 0.6;
}
.results__preloader.show {
  min-height: calc(100% + 24px);
  z-index: 1;
  font-size: 0;
}
.results__preloader.show img {
  animation: fading 2s infinite;
}
@keyframes fading {
  0% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 0.8;
  }
}
.results-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  row-gap: 32px;
  counter-reset: results-counter;
}
.results-list__item {
  display: grid;
  grid-template-columns: 40px 1fr 30px;
  justify-content: space-between;
  justify-items: center;
  align-items: center;
  color: #5E6166;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  counter-increment: results-counter;
}
.results-list__item .count::before {
  content: counter(results-counter);
}
.results-list__item-balls {
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.results-list__item .ball {
  width: 50px;
  height: 50px;
  padding: 7px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 0.5px solid #e6e6e6;
  background: radial-gradient(112.5% 75.86% at -15.13% 24.32%, #FAFAFA 18.6%, #DFDFDF 70.1%, #A9A9A9 100%);
  color: #000;
  text-align: center;
  font-size: 23px;
  font-weight: 600;
  line-height: normal;
}
.results-list__item .ball.special {
  border-color: #C0CA73;
  background: radial-gradient(138.5% 80.86% at -11.9% 22.72%, #EEF5B8 29.85%, #C6D264 60.97%, #889336 97.28%);
}
.results-list__item-copy {
  cursor: pointer;
  padding: 0;
  outline: none;
  background: none;
  border: none;
  display: flex;
  border-radius: 50%;
  background: url("/public/images/svg/icon-check-green.svg") no-repeat center;
  background-size: 0;
  border: 2px solid transparent;
  transition: opacity 0.2s ease-in-out, background-size 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
@media (any-hover: hover) {
  .results-list__item-copy:hover {
    opacity: 0.8;
  }
}
.results-list__item-copy img {
  transition: opacity 0.2s ease-in-out;
}
.results-list__item-copy.copied {
  background-size: 20px;
  border-color: #4BBC50;
}
.results-list__item-copy.copied img {
  opacity: 0;
}

@media screen and (max-width: 767px) {
  .results__head {
    padding: 8px;
    font-size: 13px;
  }
  .results__wrap {
    padding: 8px;
    min-height: 443px;
  }
  .results__preloader {
    row-gap: 32px;
    font-size: 15px;
  }
  .results__preloader.show {
    min-height: 100%;
  }
  .results__preloader img {
    width: 200px;
    height: 200px;
  }
  .results-list {
    row-gap: 24px;
  }
  .results-list__item {
    grid-template-columns: 38px 1fr 22px;
    font-size: 13px;
  }
  .results-list__item-balls {
    padding-inline: 8px;
    gap: 8px;
  }
  .results-list__item .ball {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }
  .results-list__item-copy img {
    width: 22px;
    height: 22px;
  }
}