.tool {
  border-radius: 24px;
  background: linear-gradient(96deg, #66004F 0%, #851D6E 100%);
  box-shadow: 0 619px 173px 0 rgba(0, 0, 0, 0), 0 396px 158px 0 rgba(0, 0, 0, 0.01);
}
.tool__fieldset label {
  display: flex;
  flex-direction: column;
  row-gap: 12px;
}
.tool__fieldset label > span {
  color: #fff;
  font-size: 14px;
  line-height: 20px;
}
.tool__fieldset label > span:has(.tool__tooltip-btn) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tool__input {
  border-radius: 24px;
  border: 0.5px solid #E6E6E6;
  background: #F9FAFA;
  box-shadow: 0 32px 9px transparent;
  padding: 13.5px 16px;
  text-align: center;
  color: #645E62;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tool__input::placeholder {
  color: #BEBEBE;
}
.tool__input::-webkit-input-placeholder {
  color: #BEBEBE;
}
.tool__input::-moz-placeholder {
  color: #BEBEBE;
}
@media (any-hover: hover) {
  .tool__input:hover {
    border-color: #851D6E;
  }
}
.tool__input:focus {
  box-shadow: 0 32px 9px rgba(206, 111, 177, 0), 0 21px 8px 0 rgba(206, 111, 177, 0.03), 0 12px 7px 0 rgba(206, 111, 177, 0.1), 0 5px 5px 0 rgba(206, 111, 177, 0.17), 0 1px 3px 0 rgba(206, 111, 177, 0.2);
}
.tool__input:disabled {
  background: #F5F5F5;
  color: #909090;
  cursor: not-allowed;
  opacity: 1;
}
.tool__input:disabled::placeholder {
  color: inherit;
}
.tool__input:disabled::-webkit-input-placeholder {
  color: inherit;
}
.tool__input:disabled::-moz-placeholder {
  color: inherit;
}
.tool__input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.tool__input[type=number]::-webkit-outer-spin-button, .tool__input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.tool__input.error {
  border-color: #E82E2E;
}
.tool__tooltip-btn {
  cursor: pointer;
  outline: none;
  border: none;
  background: none;
  padding: 0;
  display: inline-flex;
}
.tool__cta {
  cursor: pointer;
  outline: none;
  border: none;
  border-radius: 360px;
  background: #C1008D;
  padding: 8px 24px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: inherit;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  text-transform: capitalize;
  transition: background 0.2s ease, font-size 0.2s ease;
}
@media (any-hover: hover) {
  .tool__cta:not(:disabled):hover {
    background: #E500A7;
  }
}
.tool__cta.loading span {
  font-size: 0;
}
.tool__cta + .tool__error {
  margin-top: 12px;
}
.tool__error {
  padding-left: 18px;
  color: #FFAF5E;
  font-size: 13px;
  line-height: 120%;
  position: relative;
}
.tool__error::before {
  content: url("https://casinobonusutenomsetningskrav.com/files/images/svg/icon-tool-error.svg");
  position: absolute;
  top: 1px;
  left: 0;
  display: inline-block;
  background-size: 14px;
  background-repeat: no-repeat;
  width: 14px;
  height: 14px;
}

@media screen and (max-width: 1024px) {
  .tool {
    border-radius: 32px;
    background: linear-gradient(238deg, #66004F 0%, #6F0958 100%), linear-gradient(0deg, #7B1364 0%, #7B1364 100%), linear-gradient(13deg, #7B1364 40.61%, #6C0655 59.39%);
  }
  .tool__input {
    padding-inline: 4px;
  }
  .tool__cta + .tool__error {
    margin-top: 8px;
  }
  @supports (-webkit-touch-callout: none) {
    .tool input[type=text],
    .tool input[type=email],
    .tool input[type=number],
    .tool input[type=password],
    .tool input[type=tel],
    .tool textarea,
    .tool select {
      font-size: 16px;
      line-height: 22px;
    }
  }
}
.tool-form {
  padding: 32px;
}
.tool-form__settings {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tool-form__settings-item--tickets {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.tool-form__settings-item--tickets .tool__input {
  flex: 1;
}
.tool-form__generate {
  width: 100%;
  min-height: 46px;
}

@media screen and (max-width: 1024px) {
  .tool-form {
    padding: 24px 16px 16px;
    width: min(532px, 100%);
    align-self: center;
  }
  .tool-form__settings-item {
    gap: 8px;
    font-size: 13px;
    line-height: 18px;
  }
  .tool-form__settings-item--tickets {
    gap: 16px;
  }
  .tool-form__generate {
    margin-top: 16px;
  }
}
.tool-results {
  padding: 64px 24px 40px 32px;
  background: #551045;
  border-top-right-radius: inherit;
  border-bottom-right-radius: inherit;
  display: flex;
  flex-direction: column;
  flex: 1 0 0;
  row-gap: 24px;
}

@media screen and (max-width: 1024px) {
  .tool-results {
    padding: 24px 16px;
    border-top-right-radius: 0;
    border-bottom-right-radius: inherit;
    border-bottom-left-radius: inherit;
    align-items: center;
    flex: 1 0 100%;
    row-gap: 16px;
    max-height: max-content;
  }
}
.counter-button {
  cursor: pointer;
  outline: none;
  border: none;
  background: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  text-align: center;
  font-size: 14px;
  line-height: 1;
}
.counter-button--main {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #C1008D;
  color: #fff;
}
.counter-button--main:disabled {
  pointer-events: none;
  border-color: #8C1C73;
  color: #8C1C73;
}
.counter-button--secondary {
  width: 24px;
  height: 24px;
  color: #851D6E;
}
.counter-button--secondary:disabled {
  pointer-events: none;
  color: #BEBEBE;
}

.countable-input {
  position: relative;
}
.countable-input .counter-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}
.countable-input .counter-button--decrement {
  left: 12px;
}
.countable-input .counter-button--increment {
  right: 12px;
}
.countable-input .tool__input {
  width: 100%;
  padding-inline: 38px;
}

.custom-select {
  width: 100%;
  position: relative;
}
.custom-select__opener {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 16px 8px 24px;
  border-radius: 360px;
  border: 0.5px solid #E6E6E6;
  background: #F9FAFA;
  cursor: pointer;
  color: #645E62;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  transition: border-color 0.2s ease;
}
.custom-select__opener span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-select__opener img {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
@media (any-hover: hover) {
  .custom-select__opener:hover {
    border-color: #378665;
  }
}
.custom-select__popup-holder {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 10;
  border-radius: 24px;
  background: #F9FAFA;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 240px;
  overflow: hidden;
}
.custom-select__popup-holder-container {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 240px;
  overflow-x: hidden;
  overflow-y: auto;
}
@media (min-width: 768px) {
  .custom-select__popup-holder-container {
    scrollbar-width: thin;
    scrollbar-color: #CCCCCC transparent;
  }
  .custom-select__popup-holder-container::-webkit-scrollbar {
    width: 3px;
  }
  .custom-select__popup-holder-container::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 6px;
  }
  .custom-select__popup-holder-container::-webkit-scrollbar-thumb {
    background: #CCCCCC;
    border-radius: 6px;
  }
  .custom-select__popup-holder-container::-webkit-scrollbar-button {
    -webkit-appearance: none;
    display: none;
    height: 0;
    width: 0;
  }
}
.custom-select__popup-holder-container li {
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  color: #909090;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  transition: background 0.15s ease;
}
@media (any-hover: hover) {
  .custom-select__popup-holder-container li:hover {
    background: #F5F5F5;
  }
}
.custom-select__popup-holder-container li.selected {
  background: #F5F5F5;
  color: #433F42;
  font-weight: 600;
}
.custom-select.active .custom-select__opener {
  border-color: #378665;
}
.custom-select.active .custom-select__opener .icon-chevron {
  transform: rotate(180deg);
}
.custom-select.active .custom-select__popup-holder {
  display: block;
}

@media screen and (max-width: 767px) {
  .custom-select__opener {
    padding: 8px 12px 8px 16px;
    font-size: 12px;
  }
  .custom-select__popup-holder {
    border-radius: 24px;
  }
  .custom-select__popup-holder-container {
    padding: 8px;
  }
  .custom-select__popup-holder-container li {
    padding: 6px 8px;
    font-size: 12px;
    text-align: center;
  }
}
.dice-roller {
  display: flex;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  touch-action: manipulation;
}
.dice-roller .tool__form {
  flex: 0 0 340px;
  max-width: 340px;
  padding: 32px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  flex-shrink: 0;
}
.dice-roller .tool-form__settings {
  gap: 16px;
}
.dice-roller .tool-form__settings-item--tickets > .dice-roller__custom-input,
.dice-roller .tool-form__settings-item--tickets > #number-of-dice {
  flex: 1;
  min-width: 0;
  padding: 8px;
  border-radius: 360px;
}
.dice-roller .custom-select__opener .custom-select__dice-icon {
  flex-shrink: 0;
}
.dice-roller .custom-select__opener span {
  margin-right: auto;
  color: #433F42;
  font-size: 13px;
  font-weight: 600;
  line-height: 140%;
}
.dice-roller .results {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dice-roller .results__wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.dice-roller .results__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}
.dice-roller .results__list[data-dice-type=d6], .dice-roller .results__list[data-dice-type=custom] {
  gap: 16px;
}
.dice-roller__results {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
}
.dice-roller__results.tool-results {
  padding: 32px 24px 40px 32px;
  justify-content: center;
  align-items: center;
  gap: 24px;
}
.dice-roller__form-generate:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.dice-roller__form-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: stretch;
}
.dice-roller__form-opener {
  border: 1px solid #C1008D;
  background: transparent;
  padding: 10.5px 24px;
  transition: background 0.2s ease;
}
@media (any-hover: hover) {
  .dice-roller__form-opener:not(:disabled):hover {
    background: #C1008D;
  }
}
.dice-roller__form-restart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.dice-roller__form-restart:disabled, .dice-roller__form-restart.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.dice-roller__custom-input {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  background: #F9FAFA;
  border-radius: 360px;
  border: 0.5px solid #E6E6E6;
  padding: 13.5px 16px;
}
.dice-roller__custom-input .dice-roller__custom-prefix {
  color: #BEBEBE;
  font-size: 13px;
  font-weight: 600;
  margin-left: 1px;
  line-height: 18px;
}
.dice-roller__custom-input .tool__input {
  flex: 0 0 auto;
  background: transparent;
  border: none;
  padding: 0;
  margin-right: 1px;
  width: 3ch;
  max-width: 4ch;
  min-width: 1ch;
  text-align: center;
  color: #645E62;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  box-shadow: none;
  border-radius: 0;
}
.dice-roller__custom-input .tool__input:hover, .dice-roller__custom-input .tool__input:focus {
  border: none;
  box-shadow: none;
}
.dice-roller__statistics {
  width: 100%;
}
.dice-roller__stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.dice-roller__stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  background: #7B1364;
}
.dice-roller__stat-label {
  color: #FFF;
  font-size: 12px;
  font-weight: 700;
  line-height: 150%;
}
.dice-roller__stat-value {
  color: #FFF;
  font-size: 12px;
  font-weight: 400;
  line-height: 130%;
  text-align: right;
}

.dice-type-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #909090;
  font-size: 13px;
  font-weight: 600;
  line-height: 140%;
}
.dice-type-list li .dice-option-icon {
  flex-shrink: 0;
}

.dice-result {
  display: inline-flex;
}
.dice-result--big .dice-face {
  width: 85px;
  height: 85px;
}
.dice-result--big .dice-face__number {
  font-size: 36px;
}
.dice-result--small .dice-face {
  width: 47px;
  height: 47px;
}
.dice-result--small .dice-face__number {
  font-size: 18px;
}
.dice-result--rolling .dice-face {
  animation: diceRoll 1s cubic-bezier(0.2, 0.8, 0.3, 1);
  animation-fill-mode: forwards;
}
.dice-result--rolling .dice-face.dice-face--custom {
  animation: none;
}

@media (min-width: 768px) {
  .results__list[data-dice-type=d6] .dice-result--big .dice-face,
  .results__list[data-dice-type=custom] .dice-result--big .dice-face {
    width: 77px;
    height: 77px;
  }
  .results__list[data-dice-type=d6] .dice-result--small .dice-face,
  .results__list[data-dice-type=custom] .dice-result--small .dice-face {
    width: 42px;
    height: 42px;
  }
}
.dice-face {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.dice-face--d6 {
  background: #F7E5FC;
}
.dice-face--poly {
  position: relative;
}
.dice-face__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.dice-face__number {
  position: absolute;
  color: #7B1364;
  font-weight: 700;
  font-size: 24px;
  text-align: center;
}
.dice-face--custom {
  position: relative;
  background: #F7E5FC;
  padding: 4px;
}
.dice-face--custom .dice-face__img {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
}
.dice-face--custom .dice-face__number {
  position: relative;
  color: #7B1364;
  font-weight: 700;
  z-index: 1;
}

.d6-dots {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  padding: 10%;
}

.d6-dot {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.d6-dot::after {
  content: "";
  width: 70%;
  height: 0;
  padding-bottom: 70%;
  border-radius: 50%;
  background: #7B1364;
}
.d6-dot--tl {
  grid-area: 1/1;
}
.d6-dot--tr {
  grid-area: 1/3;
}
.d6-dot--ml {
  grid-area: 2/1;
}
.d6-dot--cc {
  grid-area: 2/2;
}
.d6-dot--mr {
  grid-area: 2/3;
}
.d6-dot--bl {
  grid-area: 3/1;
}
.d6-dot--br {
  grid-area: 3/3;
}

@keyframes diceRoll {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@media (min-width: 1025px) {
  .dice-roller__results.tool-results.has-results {
    padding-top: 64px;
  }
}
@media (max-width: 1024px) {
  .dice-roller {
    flex-direction: column;
  }
  .dice-roller .tool__form {
    flex: 1 0 auto;
    max-width: 100%;
    width: 100%;
    padding: 24px 16px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid #7B1364;
  }
  .dice-roller .tool-form__settings {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  .dice-roller .tool-form__settings-item--tickets > .dice-roller__custom-input,
  .dice-roller .tool-form__settings-item--tickets > #number-of-dice {
    font-size: 16px;
  }
  .dice-roller .results {
    width: 100%;
    max-width: 400px;
    flex: 0;
  }
  .dice-roller .results__list {
    gap: 8px;
    align-self: stretch;
  }
  .dice-roller .results__list[data-dice-type=d6], .dice-roller .results__list[data-dice-type=custom] {
    gap: 12px;
  }
  .dice-roller__results.tool-results {
    padding: 16px;
    gap: 16px;
    background: #551045;
    align-items: center;
    justify-content: flex-start;
  }
  .dice-roller__form-buttons {
    gap: 8px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  .dice-roller__form-opener {
    padding: 10px 8px;
  }
  .dice-roller__custom-input .tool__input {
    font-size: 16px;
  }
  .dice-roller__statistics {
    max-width: 400px;
  }
  .dice-roller__stats-grid {
    grid-template-columns: 1fr;
  }
  .dice-result--big .dice-face, .dice-result--small .dice-face {
    width: 50px;
    height: 50px;
  }
  .dice-result--big .dice-face__number, .dice-result--small .dice-face__number {
    font-size: 18px;
  }
}
@media (max-width: 767px) {
  .dice-type-list li {
    justify-content: center;
  }
  .dice-roller .results__list {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }
  .dice-roller .results__list[data-dice-type=d6], .dice-roller .results__list[data-dice-type=custom] {
    gap: 12px;
  }
  .dice-result--big, .dice-result--small {
    display: block;
  }
  .dice-result--big .dice-face, .dice-result--small .dice-face {
    height: auto;
    aspect-ratio: 1/1;
  }
  .dice-result--big .dice-face__number, .dice-result--small .dice-face__number {
    font-size: 18px;
  }
  .results__list[data-dice-type=d6] .dice-result--big,
  .results__list[data-dice-type=d6] .dice-result--small,
  .results__list[data-dice-type=custom] .dice-result--big,
  .results__list[data-dice-type=custom] .dice-result--small {
    flex: 0 0 calc((100% - 48px) / 5);
  }
}
@media (max-width: 360px) {
  .dice-roller .results__list {
    padding: 0;
  }
  .dice-roller .results__list[data-dice-type=d6], .dice-roller .results__list[data-dice-type=custom] {
    gap: 8px;
  }
  .dice-result--big .dice-face, .dice-result--small .dice-face {
    width: 45px;
    height: 45px;
  }
  .results__list[data-dice-type=d6] .dice-result--big,
  .results__list[data-dice-type=d6] .dice-result--small,
  .results__list[data-dice-type=custom] .dice-result--big,
  .results__list[data-dice-type=custom] .dice-result--small {
    flex: initial;
  }
  .results__list[data-dice-type=d6] .dice-result--big .dice-face,
  .results__list[data-dice-type=d6] .dice-result--small .dice-face,
  .results__list[data-dice-type=custom] .dice-result--big .dice-face,
  .results__list[data-dice-type=custom] .dice-result--small .dice-face {
    width: 37px;
    height: 37px;
  }
}