.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;
  }
}
.red-black {
  background: #1B6547;
  display: flex;
}
.red-black__heading {
  color: #fff;
}
.red-black__body {
  background-color: #1B6547;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 340px auto auto;
  align-items: center;
  flex-wrap: wrap;
  padding: 0px;
  gap: 0 24px;
}
.red-black__form {
  max-width: 340px;
  background-color: #104E35;
  border-top-left-radius: inherit;
  border-bottom-left-radius: inherit;
  height: 100%;
  grid-row: 1/3;
}
.red-black__form-settings {
  gap: 12px;
}
.red-black__form-buttons {
  display: flex;
  gap: 12px;
  flex-direction: column;
}
.red-black__form-generate.tool__cta {
  background-color: #14563B;
  border-radius: 12px;
  border: 1px solid #14563B;
  padding: 12px;
  justify-content: flex-start;
  gap: 8px;
}
.red-black__form-generate.tool__cta:hover {
  background-color: #1B6547;
  border: 1px solid #388766;
}
.red-black__form-generate.tool__cta.active {
  border: 1px solid #388766;
}
.red-black__form-generate.tool__cta.active img {
  animation: spin 0.4s linear 1;
}
.red-black__holder {
  margin: 32px 0 24px 16px;
  position: relative;
}
.red-black__pointer {
  position: absolute;
  left: 50%;
  top: -8px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.red-black__pointer-text {
  padding: 0 4px;
  margin-bottom: -13px;
  font-size: 10px;
  line-height: 24px;
  font-weight: 800;
  color: #fff;
  text-transform: capitalize;
  background-color: #1A0114;
  border-radius: 12px;
  border: 8px solid #fff;
  height: 40px;
  visibility: hidden;
  box-shadow: 0 -2px 4px 0 rgba(0, 0, 0, 0.06);
}
.red-black__spin {
  cursor: pointer;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  background: #fff;
  border: 12px solid #fff;
  border-radius: 50%;
  width: 134px;
  height: 134px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.red-black__spin:hover span {
  background: #079159;
}
.red-black__spin:hover img.spin-start {
  transform: rotate(10deg);
}
.red-black__spin img {
  position: absolute;
  top: 6px;
  z-index: 2;
  transition: all 0.2s ease-in-out;
}
.red-black__spin img.spin-stop {
  display: none;
}
.red-black__spin span {
  position: relative;
  border: 1px solid transparent;
  background: #079159;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: inherit;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  line-height: 27.778px;
  text-transform: uppercase;
  transition: border-color 0.2s ease-in-out, background 0.2s ease-in-out, color 0.2s ease-in-out, font-size 0.2s ease-in-out;
}
.red-black__spin span::after {
  content: attr(data-stop);
  font-size: 0;
  transition: font-size 0.2s ease-in-out;
}
.red-black__spin.pressed span {
  background: #E23134;
  font-size: 0;
}
.red-black__spin.pressed span::after {
  font-size: 20px;
}
.red-black__spin.pressed img.spin-start {
  display: none;
}
.red-black__spin.pressed img.spin-stop {
  display: block;
}
.red-black__summary {
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #388766;
  color: #fff;
  display: flex;
  gap: 12px;
}
.red-black__summary-item {
  width: 54px;
  height: 54px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
}
.red-black__summary-item.disabled {
  opacity: 0.3;
  mix-blend-mode: luminosity;
}
.red-black__summary-item--black {
  background-color: #1A0114;
}
.red-black__summary-item--red {
  background-color: #E23134;
}
.red-black__results {
  border: 1px solid #388766;
  border-radius: 12px;
  padding: 8px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  grid-row: 2;
  grid-column: 2/-1;
  margin-bottom: 32px;
  max-width: 550px;
  display: none;
}
.red-black__results-heading {
  font-size: 14px;
  line-height: 24px;
  font-weight: 700;
  color: #fff;
}
.red-black__results-holder {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.red-black__results-card {
  width: 22px;
  height: 24px;
  border-radius: 4px;
}

@media screen and (max-width: 767px) {
  .red-black {
    flex-direction: column;
  }
  .red-black__body {
    grid-template-columns: auto;
    background: linear-gradient(180deg, #1B6547 525px, #104E35 100px);
  }
  .red-black__body:has(.move-down) {
    background: linear-gradient(180deg, #1B6547 445px, #104E35 100px);
  }
  .red-black__form {
    border-top-left-radius: initial;
    border-bottom-right-radius: inherit;
    max-width: 100%;
    padding: 16px 0;
    overflow: hidden;
    grid-row: 3;
  }
  .red-black__form-buttons {
    flex-direction: row;
    overflow-x: scroll;
    padding: 0 16px;
  }
  .red-black__form-buttons::-webkit-scrollbar {
    display: none;
  }
  .red-black__form-generate {
    text-align: left;
    line-height: 14px;
    font-weight: 600;
  }
  .red-black__heading {
    padding: 0 16px;
  }
  .red-black__holder {
    margin: 32px 16px;
    grid-row: 1;
  }
  .red-black__holder .wheel-svg {
    width: 100%;
    height: auto;
  }
  .red-black__summary {
    padding: 12px;
    margin: -20px 16px 32px;
    grid-row: 2;
    display: none;
  }
  .red-black__summary.move-down {
    grid-row: 4;
    margin-top: -4px;
    margin-bottom: 16px;
  }
  .red-black__summary-item {
    width: -webkit-fill-available;
  }
  .red-black__results {
    grid-row: 5;
    grid-column: 1;
    margin: -4px 16px 16px;
    background-color: #104E35;
  }
}