.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;
  }
}
.bet-select {
  margin-top: 8px;
}
.bet-select__wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.bet-select__heading {
  margin: 0;
  margin-bottom: 12px;
  color: #404040;
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  text-align: center;
}
.bet-select label {
  padding: 6px 4px;
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}
.bet-select label input[type=radio] {
  cursor: pointer;
  appearance: none;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
}
@media (any-hover: hover) {
  .bet-select label input[type=radio]:not(:checked):hover + img {
    outline-color: rgba(180, 202, 9, 0.5);
  }
}
.bet-select label input[type=radio]:checked {
  pointer-events: none;
}
.bet-select label input[type=radio]:checked + img {
  outline-color: #B4CA09;
}
.bet-select label img {
  border-radius: 50%;
  outline: 2px solid transparent;
  transition: outline-color 0.2s ease-in-out;
}

@media screen and (max-width: 767px) {
  .bet-select__wrapper {
    gap: 12px;
  }
  .bet-select__heading {
    font-size: 15px;
    text-align: start;
  }
  .bet-select label img {
    width: 30px;
    height: 30px;
  }
}
@media screen and (max-width: 375px) {
  .bet-select {
    position: relative;
  }
  .bet-select__wrapper {
    justify-content: flex-start;
    padding-right: 30px;
  }
  .bet-select__wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    user-select: none;
    display: block;
    width: 30px;
    height: 100%;
    background: linear-gradient(270deg, #F9FAFA 0%, rgba(249, 250, 250, 0) 100%);
  }
}
.craps-payout-calculator .up {
  color: #4BBC50;
}
.craps-payout-calculator .down {
  color: #E43D43;
}

@media screen and (max-width: 767px) {
  .craps-payout-calculator .tool__head {
    padding: 16px 12px;
    font-size: 17px;
    line-height: 30px;
  }
  .craps-payout-calculator .tool__body {
    padding: 8px;
  }
}
.craps-payout-form__inner {
  display: grid;
  grid-template-columns: minmax(250px, 350px) minmax(400px, 1fr);
  column-gap: 16px;
}
.craps-payout-form__left {
  border-radius: 16px;
  background: #187147;
  padding: 32px 24px;
}
.craps-payout-form__bets {
  margin-bottom: 48px;
}
.craps-payout-form .bet-select {
  margin: 0;
  position: relative;
}
.craps-payout-form .bet-select__heading {
  margin-bottom: 16px;
  color: #FFF;
  font-size: 18px;
  text-align: start;
}
.craps-payout-form .bet-select__wrapper {
  padding: 8px 32px 8px 8px;
  border-radius: 12px;
  border: 2px solid #195D3D;
  background: #206947;
  justify-content: flex-start;
  gap: 8px;
}
.craps-payout-form .bet-select__wrapper::after {
  content: "";
  position: absolute;
  top: unset;
  bottom: 2px;
  right: 1px;
  user-select: none;
  display: block;
  width: 44px;
  height: 58px;
  z-index: 1;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(24, 113, 71, 0) 0%, #187147 100%);
}
.craps-payout-form__total-bets {
  margin-top: 24px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  border: 2px solid #195D3D;
  background: #206947;
  color: #FFF;
  font-size: 13px;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
}
.craps-payout-form__actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(90px, 140px));
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.craps-payout-form__action {
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  border: 0.5px solid #A3A3A3;
  outline: 1.5px solid transparent;
  background: #F3F3F3;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.16);
  min-height: 36px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  color: #5E6166;
  text-align: center;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
  transition: outline 0.2s ease-in-out, color 0.2s ease-in-out;
}
.craps-payout-form__action:disabled {
  color: #BFBFBF;
  pointer-events: none;
}
.craps-payout-form__action:disabled img {
  filter: brightness(0) invert(91%) sepia(0%) saturate(8%) hue-rotate(152deg) brightness(88%) contrast(82%);
}
@media (any-hover: hover) {
  .craps-payout-form__action:hover {
    outline-color: #A3A3A3;
  }
}
.craps-payout-form__craps-layout {
  display: flex;
}
.craps-payout-form__results {
  margin-top: 32px;
}

@media screen and (max-width: 900px) {
  .craps-payout-form__inner {
    align-items: flex-start;
  }
  .craps-payout-form__actions {
    gap: 12px;
  }
}
@media screen and (max-width: 767px) {
  .craps-payout-form__inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 12px;
  }
  .craps-payout-form__left {
    display: contents;
  }
  .craps-payout-form__bets {
    margin-bottom: 0;
    padding: 16px 12px;
    border-radius: 12px;
    background: #187147;
  }
  .craps-payout-form .bet-select__heading {
    font-size: 16px;
    text-align: center;
  }
  .craps-payout-form .bet-select__wrapper {
    padding-right: 8px;
    justify-content: center;
    gap: 10px;
  }
  .craps-payout-form .bet-select__wrapper::after {
    right: 2px;
    height: 46px;
  }
  .craps-payout-form .bet-select label {
    padding-block: 3px;
  }
  .craps-payout-form .bet-select label img {
    width: 24px;
    height: 24px;
  }
  .craps-payout-form__total-bets {
    margin-top: 12px;
  }
  .craps-payout-form__actions {
    margin-top: 12px;
  }
  .craps-payout-form__summary {
    margin-top: 12px;
    padding: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: none;
    order: 1;
  }
  .craps-payout-form__craps-layout {
    grid-row: auto;
  }
}
@media screen and (max-width: 450px) {
  .craps-payout-form__results {
    margin-top: 24px;
  }
  .craps-payout-form__results fieldset {
    display: contents;
  }
}
@media screen and (max-width: 420px) {
  .craps-payout-form .bet-select__wrapper {
    padding-right: 32px;
    justify-content: flex-start;
  }
}
.craps-layout {
  -webkit-tap-highlight-color: transparent;
}
.craps-layout .craps-bet path,
.craps-layout .craps-bet rect {
  transition: fill 0.2s ease;
}
.craps-layout .craps-bet.hover path,
.craps-layout .craps-bet.hover rect {
  fill: rgba(255, 255, 255, 0.5);
}
.craps-layout #labels-layer *,
.craps-layout #chips-layer,
.craps-layout #chips-layer * {
  pointer-events: none;
}

.summary p {
  margin: 0;
  margin-bottom: 16px;
  color: #FFF;
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
}
.summary__table {
  padding-inline: 12px;
  background: #FFF;
  border-radius: 12px;
  border: 1px solid #e6e6e6;
}
.summary fieldset {
  padding: 19px 0;
  display: flex;
}
.summary fieldset + fieldset {
  border-top: 1px solid #e6e6e6;
}
.summary label {
  flex: 1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  column-gap: 8px;
}
.summary label > span {
  color: #5E6166;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}
.summary label strong {
  font-size: 16px;
  line-height: 26px;
}

@media screen and (max-width: 767px) {
  .summary p {
    margin-bottom: 12px;
    color: #404040;
    font-size: 16px;
  }
  .summary fieldset {
    padding-block: 8px;
  }
  .summary label > span {
    font-size: 13px;
  }
}
.bets {
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #e6e6e6;
  text-align: center;
  font-size: 14px;
  line-height: normal;
}
.bets:has(.bets__list-item) .bets__wrap {
  height: auto;
  max-height: 280px;
}
.bets__head {
  padding: 12px 24px;
  border-bottom: 1px solid #e6e6e6;
  background: #F9FAFA;
  display: grid;
  grid-template-columns: 120px repeat(4, 90px);
  justify-content: space-between;
  font-weight: 700;
}
.bets__scroller {
  display: contents;
}
.bets__wrap {
  padding: 16px 24px;
  background: #fff;
  height: 280px;
  overflow-y: auto;
  overflow-x: visible;
  scrollbar-width: thin;
  scrollbar-color: #A3A3A3 #e6e6e6;
  position: relative;
}
.bets__wrap::-webkit-scrollbar {
  width: 2px;
}
.bets__wrap::-webkit-scrollbar-track {
  background: #e6e6e6;
}
.bets__wrap::-webkit-scrollbar-thumb {
  background: #A3A3A3;
  border-radius: 0;
}
.bets__list-item {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 120px repeat(4, 90px);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e6e6e6;
}
.bets__list-item:first-child {
  padding-top: 0;
}
.bets__list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.bets__preloader {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 24px;
  text-align: center;
  color: #BFBFBF;
  font-size: 28px;
  font-weight: 500;
  line-height: normal;
}

@media screen and (max-width: 767px) {
  .bets {
    font-size: 12px;
  }
  .bets:has(.bets__list-item) .bets__scroller {
    display: block;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .bets:has(.bets__list-item) .bets__scroller::-webkit-scrollbar {
    display: none;
  }
  .bets:has(.bets__list-item) .bets__head,
  .bets:has(.bets__list-item) .bets__wrap {
    width: max-content;
    min-width: 100%;
  }
  .bets:has(.bets__list-item) .bets__head {
    grid-template-columns: 120px 45px 65px 60px 80px;
  }
  .bets:has(.bets__list-item) .bets__wrap {
    max-height: 310px;
  }
  .bets__head {
    padding: 8px 12px;
    font-weight: 600;
    grid-template-columns: 45px repeat(3, 45px) 80px;
  }
  .bets__head span {
    font-size: 0 !important;
  }
  .bets__head span::after {
    content: attr(data-mobile);
    font-size: 12px;
  }
  .bets__head span:first-child {
    text-align: start;
  }
  .bets__wrap {
    padding: 12px;
    height: 310px;
  }
  .bets__list-item {
    grid-template-columns: 120px 45px 65px 60px 80px;
  }
  .bets__list-item span:first-child {
    text-align: start;
  }
  .bets__preloader {
    font-size: 16px;
  }
  .bets__preloader img {
    width: 96px;
    height: 82px;
  }
}