.bonus-section-title {
  margin-bottom: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;

  @media (min-width: 772px) {
    font-size: 40px;
  }
}

.casino-bonus {
  position: relative;
  display: grid;
  background-color: #fff;
  font-size: 15px;
  margin-bottom: 2.5rem;

  @media (min-width: 1280px) {
    grid-template-columns: 335px 600px 1fr;
    margin-bottom: 1rem;
  }
}

.bonus--left {
  padding: 1rem;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  background-color: var(--color-yellow-lighter);

  @media (min-width: 1280px) {
    display: block;
    padding: 2rem 0 2rem 2.25rem;
    font-size: 38px;

    & > span > span {
      display: block;
    }
  }
}

.bonus--center {
  position: relative;
  padding: 1rem 0;
  background-color: #fff;

  & > div {
    display: grid;
    align-items: start;
    gap: 0.5rem;
  }

  .bonus--center--head {
    display: none;
    height: 41px;
    padding: 1rem;
    font-weight: 700;
    background-color: #fff;
    box-shadow: var(--cs-box-shadow-button);

    & span {
      margin-right: 8px;
      font-weight: normal;
    }

    & svg {
      width: 15px;
      height: 15px;
      margin-right: 0.75rem;
    }
  }

  .bonus--center--values {
    display: flex;
    align-items: center;
  }

  .bonus--center--cashable {
    display: flex;
    align-items: center;
    width: 134px;
    height: 41px;
    margin-right: 0.5rem;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    background-color: #fff;
    box-shadow: var(--cs-box-shadow-button);

    &.cashable {
      opacity: 1;
    }

    &.non-cashable {
      opacity: 0.25;
    }

    & svg {
      width: 20px;
      height: 20px;
      margin-left: 1rem;
      flex-shrink: 0;
    }
  }

  .bonus--center--code {
    display: flex;
    align-items: center;
    flex: 1 1 0;
    height: 41px;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    text-transform: uppercase;
    background-color: #fff;
    border-left: 1px solid #f3f4f6;
    box-shadow: var(--cs-box-shadow-button);

    & svg {
      width: 20px;
      height: 20px;
      margin-right: 1rem;
      flex-shrink: 0;
    }
  }

  .bonus--center--label {
    position: absolute;
    top: -3.4rem;
    right: 1.6rem;
    display: flex;
    align-items: center;

    & img {
      display: block;
      margin: auto;
      height: 56px;
      max-height: 100%;

      &.new {
        border-radius: 100%;
        box-shadow: var(--cs-box-shadow-button);
      }
    }
  }

  .bonus--center--details {
    position: relative;
    display: grid;
    grid-template-columns: 134px 1fr;
    column-gap: 0.5rem;
    row-gap: 0.5rem;
    align-items: center;
  }

  .bonus--center--details--part {
    display: flex;
    align-items: center;
    height: 41px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    background-color: #fff;
    box-shadow: var(--cs-box-shadow-button);

    & > span:last-child {
      padding-left: 0.5rem;
      font-weight: 900;
    }
  }

  .bonus--center--wr-contribution {
    display: none;
  }

  .bonus--center--wr-toggle {
    font-size: 15px;

    & > span {
      pointer-events: none;
    }
  }

  .bonus--center--terms {
    display: block;
    margin-top: 8px;
    padding: 0 0.5rem;
    font-size: 12px;
  }

  @media (min-width: 772px) {
    & > div {
      grid-template-columns: 180px 1fr;
    }

    .bonus--center--head {
      display: flex;
      align-items: center;
    }

    .bonus--center--details {
      grid-template-columns: 134px repeat(2, auto);
    }

    .bonus--center--wr {
      display: none;
    }

    .bonus--center--wr-contribution {
      display: flex;
      align-items: start;
      height: 100%;
      padding-right: 1.5rem;
      padding-left: 1.5rem;
      background-color: #fff;
      box-shadow: var(--cs-box-shadow-button);
    }

    .bonus--center--wr-games {
      max-height: 41px;
      overflow: hidden;
      flex-grow: 1;
      display: grid;
      column-gap: 1rem;
      grid-template-columns: repeat(2, 1fr);
      align-items: center;
      transition: max-height 0.3s ease-in-out;

      & > span {
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-right: 24px;
        font-weight: 900;

        & > span {
          font-weight: normal;
        }

        &.restricted {
          opacity: 0.25;
        }

        &:nth-child(1),
        &:nth-child(2) {
          height: 41px;
        }

        &:nth-child(3),
        &:nth-child(4) {
          margin-top: -0.3rem;
        }

        & svg {
          width: 1.5rem;
          height: 1.5rem;
        }
      }

      &[data-expanded="true"] {
        max-height: 222px;
      }
    }

    .bonus--center--wr-toggle {
      width: 120px;
      height: 41px;
      display: flex;
      align-items: center;
      padding-right: 0;
      padding-left: 2rem;
      appearance: none;
      background-color: transparent;
      color: inherit;
      text-decoration: underline;

      & > span {
        &:last-child {
          display: none;
        }
      }

      &[aria-expanded="true"] {
        & > span {
          &:first-child {
            display: none;
          }

          &:last-child {
            display: block;
          }
        }
      }
    }
  }

  @media (min-width: 1280px) {
    padding: 2rem 0 1rem;

    & > div {
      grid-template-columns: 180px 500px;
      gap: 0.75rem;
      margin-left: -6rem;
    }

    .bonus--center--head {
      height: 58px;
    }

    .bonus--center--cashable {
      width: auto;
      height: 58px;
      justify-content: space-between;
      margin-right: 0;
      padding-right: 1.5rem;
      padding-left: 1.5rem;
    }

    .bonus--center--code {
      height: 58px;
      max-width: 14rem;
      margin-right: 1rem;
      padding-right: 1.5rem;
      padding-left: 1.5rem;
    }

    .bonus--center--label {
      position: static;
    }

    .bonus--center--details {
      padding-right: 1.5rem;
      padding-left: 1.5rem;
      background-color: #fff;
      box-shadow: var(--cs-box-shadow-button);
    }

    .bonus--center--details--part {
      width: auto;
      height: 58px;
      padding-left: 0;
      padding-right: 0;
      box-shadow: none;
    }

    .bonus--center--wr-games {
      max-height: 58px;

      & > span {
        &:nth-child(1),
        &:nth-child(2) {
          height: 58px;
        }
      }
    }

    .bonus--center--wr-toggle {
      height: 58px;
    }

    .bonus--center--terms {
      margin-left: 8px;
      padding: 0;
      margin-right: -202px;
    }
  }
}

.bonus--right {
  background-color: #fff;
  padding: 0 0.5rem;

  & > div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  & a.button {
    width: 100%;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    font-size: 1.2rem;
  }

  @media (min-width: 1280px) {
    padding: 6.75rem 3.5rem 0;

    & > div {
      grid-template-columns: 1fr;
      column-gap: 0.5rem;
      row-gap: 0.5rem;
    }

    & a.button {
      padding-top: 10px;
      padding-bottom: 10px;
      font-size: 1.5rem;
    }
  }
}

:is([data-sub="1"], [data-ccs="0"]) {
  .bonus--left {
    background: #c8c8c8;
  }

  .bonus--right a.button {
    background: #c8c8c8;
    pointer-events: none;

    &:hover {
      transform: scale(1);
    }
  }
}
