.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;
  }
}
@media screen and (max-width: 767px) {
  .powerball-odds-calculator .tool__head {
    padding: 16px 12px;
    font-size: 17px;
    line-height: 30px;
  }
}
.powerball-odds-form {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.powerball-odds-form label {
  align-items: flex-start;
  row-gap: 8px;
}
.powerball-odds-form label > span {
  color: #5E6166;
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
}
.powerball-odds-form__settings {
  width: min(600px, 100%);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.powerball-odds-form__settings label {
  display: grid;
  grid-template-columns: auto 350px;
  align-items: center;
  gap: 32px;
}
.powerball-odds-form__settings label > span {
  justify-content: end;
}
.powerball-odds-form__settings-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5E6166;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  position: relative;
}
.powerball-odds-form__settings-item input:not([type=radio]) {
  text-align: center;
  padding: 11px 12px;
  font-size: 14px;
  line-height: normal;
}
.powerball-odds-form__settings-item input:not([type=radio]):disabled {
  pointer-events: none;
  background: transparent;
  border-color: #e6e6e6;
  color: #a3a3a3;
}
.powerball-odds-form__settings-item #jackpot {
  text-align: start;
}
.powerball-odds-form__settings-item #jackpot::placeholder {
  color: rgba(94, 97, 102, 0.7);
}
.powerball-odds-form__settings-item #jackpot::-webkit-input-placeholder {
  color: rgba(94, 97, 102, 0.7);
}
.powerball-odds-form__settings-item #jackpot::-moz-placeholder {
  color: rgba(94, 97, 102, 0.7);
}
.powerball-odds-form__settings-item span {
  flex-shrink: 0;
}
.powerball-odds-form__checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}
.powerball-odds-form__checkbox input {
  appearance: none;
  display: none;
  margin: 0;
  padding: 0;
}
.powerball-odds-form__checkbox input:checked + label::before {
  background-size: 24px;
  border-color: #429BF4;
}
.powerball-odds-form__checkbox input:disabled + label {
  pointer-events: none;
  opacity: 0.5;
}
.powerball-odds-form__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;
}
.powerball-odds-form__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) {
  .powerball-odds-form__checkbox label:hover {
    background: #F3F3F3;
  }
}
.powerball-odds-form__actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.powerball-odds-form__calculate {
  min-width: 343px;
  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) {
  .powerball-odds-form__calculate:hover {
    background: #B4CA09;
  }
}
.powerball-odds-form__reset {
  height: 48px;
  min-width: 67px;
  border-radius: 6px;
  background: #F3F3F3;
}
.powerball-odds-form__results {
  width: 100%;
  margin-top: 12px;
}
.powerball-odds-form__results label {
  row-gap: 12px;
  flex: 1;
  align-items: initial;
}

@media screen and (max-width: 767px) {
  .powerball-odds-form {
    align-items: initial;
    padding: 8px;
  }
  .powerball-odds-form__settings {
    margin-inline: auto;
  }
  .powerball-odds-form__settings label {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .powerball-odds-form__settings label > span {
    justify-content: start;
  }
  .powerball-odds-form__settings-item {
    font-size: 13px;
  }
  .powerball-odds-form__settings-item input:not([type=radio]) {
    padding: 9px 8px;
    font-size: 13px;
  }
  .powerball-odds-form__powerplay label span {
    display: none;
  }
  .powerball-odds-form__checkbox {
    justify-content: center;
  }
  .powerball-odds-form__checkbox input:checked + label::before {
    background-size: 21px;
  }
  .powerball-odds-form__checkbox label {
    display: flex;
    min-height: 37px;
  }
  .powerball-odds-form__checkbox label::before {
    width: 18px;
    height: 18px;
    border-width: 2px;
  }
  .powerball-odds-form label > span {
    font-size: 15px;
  }
  .powerball-odds-form .tool__tooltip-btn img {
    width: 12px;
    height: 12px;
  }
  .powerball-odds-form__actions {
    gap: 4px;
  }
  .powerball-odds-form__calculate {
    flex: 0 1 343px;
    min-width: auto;
    padding: 8px;
    min-height: 38px;
    font-size: 15px;
  }
  .powerball-odds-form__reset {
    height: 38px;
  }
  .powerball-odds-form__results {
    margin-top: 24px;
  }
  .powerball-odds-form__results fieldset {
    display: contents;
  }
}
.results {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-radius: 6px;
  border: 1px solid #e6e6e6;
  overflow: hidden;
}
.results:has(.results-list__item) .results__wrap {
  flex: 1 1 100%;
}
.results__scroller {
  display: contents;
}
.results__head {
  padding: 12px 24px;
  background: #F9FAFA;
  font-weight: 700;
  border-bottom: 1px solid #e6e6e6;
}
.results__head, .results-list__item {
  display: grid;
  grid-template-columns: repeat(2, 100px) repeat(3, 170px);
  justify-content: space-between;
  align-items: center;
  column-gap: 27px;
  font-size: 14px;
  line-height: normal;
}
.results__wrap {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  flex: 1 0 0;
  min-height: 253px;
  overflow-y: auto;
  overflow-x: visible;
  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 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  row-gap: 24px;
  text-align: center;
  color: #BFBFBF;
  font-size: 28px;
  font-weight: 500;
  line-height: normal;
}
.results-list {
  margin: 0;
}
.results-list__item .pb-label {
  padding: 2px 4px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  background: #E43D43;
  color: #FFF;
  font-size: 11px;
  line-height: 100%;
}
.results-list__item span:has(+ .pb-label) {
  margin-right: 8px;
}
.results-list__item span:has(+ .pb-label)::after {
  content: "+";
  margin-left: 8px;
  line-height: 100%;
  color: #BFBFBF;
}
.results-list__item .matches {
  display: inline-flex;
}
.results-list__item .green {
  color: #4BBC50;
}
.results-list__item + .results-list__item {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e6e6e6;
}

@media screen and (max-width: 767px) {
  .results:has(.results-list__item) .results__wrap {
    width: max-content;
    min-width: 100%;
  }
  .results__scroller {
    display: block;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .results__scroller::-webkit-scrollbar {
    display: none;
  }
  .results__head {
    padding: 8px 0;
    font-weight: 600;
    width: max-content;
    min-width: 100%;
  }
  .results__head, .results-list__item {
    grid-template-columns: 60px 67px 83px 96px 97px;
    column-gap: 0;
    font-size: 12px;
  }
  .results__head span, .results-list__item span {
    padding-inline: 4px;
  }
  .results__wrap {
    padding: 12px 0;
    min-height: 206px;
  }
  .results__preloader {
    font-size: 16px;
  }
  .results__preloader img {
    width: 80px;
    height: 80px;
  }
  .results-list__item span {
    overflow: hidden;
  }
  .results-list__item span:has(+ .pb-label) {
    margin-right: 2px;
  }
  .results-list__item span:has(+ .pb-label)::after {
    margin-left: 2px;
  }
}
