.show {
  display: grid;
}

.row {
  // display: grid;
  gap: 2rem;
  position: relative;
  padding: 2.4rem;

  @include max(mobile) {
    justify-content: center;
    text-align: center;
  }

  @include min(tablet) {
    padding: 2.4rem;
  }

  ul {
    display: none;

    @include min(tablet) {
      display: flex;
      flex-direction: column;
      gap: 0.8rem;
    }

    li {
      line-height: 2.4rem;
      @include max(mobile) {
        justify-content: center;
      }
    }
  }

  > * {
    align-self: center;
  }

  > a:first-child {
    color: var(--primary-text-color);

    font: {
      weight: bold;
      size: var(--h2-size);
    }
  }

  &.grid {
    grid-template-columns: auto;
  }

  &.list {
    grid-template-columns: 1.3fr 0.7fr 1.5fr 1fr;

    @include max(tablet) {
      grid-template-columns: 1fr;
    }

    > a:first-of-type {
      // background: #33313d;
      border-radius: 0.8rem;
      max-width: unset;
      height: 100%;
      background-color: #1b1b1c;
      background-image: repeating-linear-gradient(
          39deg,
          #ffdb20,
          #ffdb20 13px,
          transparent 13px,
          transparent 20px,
          #ffdb20 20px
        ),
        repeating-linear-gradient(
          129deg,
          #ffdb20,
          #ffdb20 13px,
          transparent 13px,
          transparent 20px,
          #ffdb20 20px
        ),
        repeating-linear-gradient(
          219deg,
          #ffdb20,
          #ffdb20 13px,
          transparent 13px,
          transparent 20px,
          #ffdb20 20px
        ),
        repeating-linear-gradient(
          309deg,
          #ffdb20,
          #ffdb20 13px,
          transparent 13px,
          transparent 20px,
          #ffdb20 20px
        );
      background-size: 1px 100%, 100% 1px, 1px 100%, 100% 1px;
      background-position: 0 0, 0 0, 100% 0, 0 100%;
      background-repeat: no-repeat;
      padding: 1.6rem;
      text-align: center;

      > span {
        color: white;
        font-size: 22px;
        line-height: 28px;
      }
    }
  }

  .alignCenter {
    @include flex-align(center, center);
  }
}

.ribbons {
  position: absolute;
  top: -1rem;
  right: 2.4rem;
  display: flex;
  flex-direction: row;
  // @include flex-direction(row);
  // gap: 1rem;

  > span {
    color: #1c1a28;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background-color: #5ce482;
    border-radius: 0.8rem;
    margin-left: 0.8rem;
  }
}

.tnc {
  grid-column: 1/-1;
  font-weight: 400;
  line-height: 14px;
  font-size: 10px;
  max-height: 4.2rem;
  overflow-y: auto;
  padding-right: 1rem;

  &::-webkit-scrollbar {
    width: 4px;
  }

  &::-webkit-scrollbar-track {
    background: #1b1a37;
    border-radius: 10rem;
  }

  &::-webkit-scrollbar-thumb {
    background: #515156;
    border-radius: 10rem;
  }

  > a {
    font-weight: 600;
    text-decoration-line: underline;
  }
}
