.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;
  }
}
.virtual-dice .tool__head {
  background: #F9FAFA;
  color: #859C2E;
}

@media screen and (max-width: 767px) {
  .virtual-dice .tool__head {
    padding: 16px 12px;
    font-size: 17px;
    line-height: 30px;
  }
}
.virtual-dice-form {
  padding: 24px 16px;
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 24px;
}
.virtual-dice-form__block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.virtual-dice-form label {
  row-gap: 8px;
}
.virtual-dice-form label > span {
  color: #5E6166;
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
}
.virtual-dice-form .custom-select__opener {
  padding: 9.5px 12px;
  font-size: 14px;
  line-height: normal;
  min-height: 48px;
}
.virtual-dice-form__actions {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.virtual-dice-form__roll {
  cursor: pointer;
  outline: none;
  border: none;
  padding: 12px;
  height: 48px;
  border-radius: 6px;
  border: 3px solid #C4DB11;
  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) {
  .virtual-dice-form__roll:not(:disabled):hover {
    background: #B4CA09;
  }
}
.virtual-dice-form__roll:disabled {
  pointer-events: none;
}
.virtual-dice-form__reset {
  height: 48px;
  min-width: 67px;
  border-radius: 4px;
  background: #FCFCFC;
}
.virtual-dice-form__results fieldset,
.virtual-dice-form__results label {
  height: 100%;
}

@media screen and (max-width: 767px) {
  .virtual-dice-form {
    padding: 12px 8px;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .virtual-dice-form__block {
    grid-template-columns: 1fr;
  }
  .virtual-dice-form label > span {
    font-size: 15px;
  }
  .virtual-dice-form__roll {
    height: 43px;
    font-size: 16px;
  }
  .virtual-dice-form__reset {
    height: 43px;
  }
  .virtual-dice-form__results, .virtual-dice-form__stats {
    margin-top: 8px;
  }
}
.results {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-radius: 6px;
  border: 2px solid #e6e6e6;
  overflow: hidden;
}
.results__wrap {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1 0 0;
  max-height: 690px;
  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 {
  min-height: 100%;
  background: #F9FAFA;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  row-gap: 32px;
  text-align: center;
  color: #BFBFBF;
  font-size: 20px;
  font-weight: 500;
  line-height: normal;
}
.results-list {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.results-list__item {
  width: 55px;
  height: 55px;
  border-radius: 16px;
  border: 2px solid #A3A3A3;
  background: #FFF;
  display: grid;
  justify-items: center;
  align-items: center;
  color: #404040;
  text-align: center;
  font-family: "Roboto Mono";
  font-size: 26px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: -2.08px;
  user-select: none;
}
.results-list__item--dot svg {
  width: 40px;
  height: 40px;
}
.results-list__item--dot .pip {
  fill: #404040;
  opacity: 0;
  transition: opacity 80ms linear;
}
.results-list__item--dot[data-face="1"] .c {
  opacity: 1;
}
.results-list__item--dot[data-face="2"] .tl,
.results-list__item--dot[data-face="2"] .br {
  opacity: 1;
}
.results-list__item--dot[data-face="3"] .tl,
.results-list__item--dot[data-face="3"] .c,
.results-list__item--dot[data-face="3"] .br {
  opacity: 1;
}
.results-list__item--dot[data-face="4"] .tl,
.results-list__item--dot[data-face="4"] .tr,
.results-list__item--dot[data-face="4"] .bl,
.results-list__item--dot[data-face="4"] .br {
  opacity: 1;
}
.results-list__item--dot[data-face="5"] .tl,
.results-list__item--dot[data-face="5"] .tr,
.results-list__item--dot[data-face="5"] .c,
.results-list__item--dot[data-face="5"] .bl,
.results-list__item--dot[data-face="5"] .br {
  opacity: 1;
}
.results-list__item--dot[data-face="6"] .tl,
.results-list__item--dot[data-face="6"] .tr,
.results-list__item--dot[data-face="6"] .ml,
.results-list__item--dot[data-face="6"] .mr,
.results-list__item--dot[data-face="6"] .bl,
.results-list__item--dot[data-face="6"] .br {
  opacity: 1;
}

@media screen and (max-width: 767px) {
  .results__wrap {
    padding: 12px;
    min-height: 300px;
  }
  .results__preloader {
    row-gap: 24px;
    font-size: 14px;
  }
  .results__preloader img {
    width: 143px;
    height: 143px;
  }
  .results-list {
    gap: 8px;
  }
  .results-list__item {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    border-width: 1.649px;
    font-size: 22px;
    letter-spacing: -1.76px;
  }
}
.virtual-dice__stats {
  margin: 0;
  width: 100%;
  border-radius: 8px;
  border: 2px solid #e6e6e6;
  background: #FFF;
  overflow: hidden;
}

.virtual-dice__stat {
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  color: #5E6166;
  font-size: 16px;
  line-height: 150%;
}
.virtual-dice__stat:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.virtual-dice__stat strong {
  text-transform: uppercase;
}
.virtual-dice__stat p {
  margin: 0;
}

@media screen and (max-width: 767px) {
  .virtual-dice__stat {
    padding: 8px 12px;
    font-size: 13px;
  }
}