.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;
  }
}
.output {
  border-radius: 6px;
  border: 1px solid #B4CA09;
}
.output-caption {
  display: block;
  padding: 16px;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  border-bottom: 1px solid #B4CA09;
  background: #C4DB11;
  color: #404040;
  text-align: center;
  font-size: 14px;
  line-height: normal;
  text-transform: uppercase;
}
.output-data {
  padding-inline: 24px;
}
.output-data__total {
  padding-block: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  line-height: normal;
}
.output-data__total strong {
  color: #859C2E;
  font-size: 28px;
}
.output-data__total p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #404040;
  font-size: 14px;
  font-weight: 700;
}
.output-data__details {
  margin: 0;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  border-top: 1px solid #e6e6e6;
  color: #404040;
  font-size: 13px;
  font-weight: 700;
  line-height: normal;
}
.output-data__details strong {
  margin-left: auto;
  color: #859C2E;
  font-size: 15px;
  line-height: 26px;
}

@media screen and (max-width: 767px) {
  .output-data {
    padding-inline: 16px;
  }
  .output-data__total {
    gap: 4px;
  }
  .output-data__total strong {
    font-size: 24px;
  }
  .output-data__total p {
    font-size: 12px;
  }
  .output-data__details {
    font-size: 12px;
  }
}
.calc-form {
  display: flex;
  flex-direction: column;
  row-gap: 16px;
}
.calc-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 10px;
}
.calc-form__radio {
  display: flex;
  align-items: center;
  gap: 8px;
}
.calc-form__radio.active * {
  pointer-events: all;
}
.calc-form__radio span {
  position: relative;
  flex-shrink: 0;
}
.calc-form__radio input[type=radio] {
  cursor: pointer;
  appearance: none;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
}
@media (any-hover: hover) {
  .calc-form__radio input[type=radio]:not(:checked):hover + label {
    background: rgba(196, 219, 17, 0.24);
    color: #5E6166;
  }
}
.calc-form__radio input[type=radio]:checked + label {
  padding-left: 36px;
  background: rgba(196, 219, 17, 0.24) url(/public/images/svg/icon-check-tpl.svg) no-repeat 16px center;
  background-size: 16px;
  color: #5E6166;
}
.calc-form__radio label {
  min-height: 44px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  background: #F9FAFA;
  background-position: 16px center;
  background-repeat: no-repeat;
  background-size: 16px;
  color: #757575;
  text-align: center;
  font-size: 15px;
  line-height: normal;
  transition: background 0.2s ease-in-out, color 0.2s ease-in-out, padding-left 0.2s ease-in-out;
}

@media screen and (max-width: 767px) {
  .calc-form label span {
    font-size: 13px;
  }
  .calc-form input:not([type=radio], [type=checkbox]),
  .calc-form .js-currency-selector {
    padding: 11px 16px;
    font-size: 15px;
  }
  .calc-form__radio {
    margin-right: -10px;
    padding-right: 10px;
  }
}
.calculator {
  margin: 0 auto;
  max-width: 524px;
  width: 100%;
}
.calculator__reset {
  margin: 0 auto;
  min-height: 40px;
  min-width: 124px;
}
.calculator [data-tab-content] {
  display: contents;
}
.calculator [data-currency]::before {
  content: attr(data-currency);
}

.calculator--wagering {
  margin-bottom: 112px;
  position: relative;
}
.calculator--wagering::after {
  content: "";
  position: absolute;
  bottom: -56px;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  width: 100%;
  height: 1px;
  background: #e6e6e6;
}
.calculator--wagering__tabs {
  margin: 24px 24px 8px 24px;
  overflow: hidden;
}

@media screen and (max-width: 767px) {
  .calculator--wagering::after {
    display: none;
  }
  .calculator--wagering__tabs {
    margin: 16px 12px 8px;
  }
}
.tabs {
  display: flex;
  justify-content: center;
  border-radius: 120px;
  border: 1px solid #e6e6e6;
}
.tabs-btn {
  cursor: pointer;
  outline: none;
  border: none;
  padding: 12px 16px;
  min-height: 50px;
  background: #F9FAFA;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1 0 0;
  color: #757575;
  text-align: center;
  font-family: inherit;
  font-size: 15px;
  line-height: normal;
  transition: background 0.2s ease-in-out, color 0.2s ease-in-out;
}
.tabs-btn.active {
  pointer-events: none;
  background: #C4DB11;
  color: #404040;
}
.tabs-btn.active img {
  filter: brightness(0) invert(22%) sepia(0%) saturate(2%) hue-rotate(57deg) brightness(97%) contrast(88%);
}
@media (any-hover: hover) {
  .tabs-btn:not(.active):hover {
    color: #404040;
  }
  .tabs-btn:not(.active):hover img {
    filter: brightness(0) invert(22%) sepia(0%) saturate(2%) hue-rotate(57deg) brightness(97%) contrast(88%);
  }
}
.tabs-btn img {
  transition: filter 0.2s ease-in-out;
}

@media screen and (max-width: 767px) {
  .tabs-btn {
    padding: 8px 10px;
    min-height: 38px;
    font-size: 14px;
  }
  .tabs-btn img {
    width: 22px;
    height: 22px;
  }
}