@use 'pix-design-tokens/breakpoints';

.result-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: auto;
  height: 110px;
  padding: 8px 0;
  background-color: var(--pix-neutral-0);
  border: none;
  border-radius: 4px;
  outline: none;

  &:nth-child(odd) {
    background: var(--pix-neutral-20);
  }

  @include breakpoints.device-is('tablet') {
    height: 70px;
    padding: 0;
  }
}

.result-item__instruction {
  width: 82%;
  margin-left: 10px;
  overflow: hidden;
  font-size: 1rem;

  @include breakpoints.device-is('tablet') {
    width: 60%;
    margin-left: 30px;
  }
}

.result-item__correction {
  margin-right: 26px;
  margin-left: 35px;
  font-size: 0.75rem;

  @include breakpoints.device-is('tablet') {
    margin-left: auto;
  }
}

.result-item__correction-button {
  color: var(--pix-primary-700);
  font-weight: var(--pix-font-normal);
  font-size: 0.875rem;
  background-color: transparent;
  border: none;
  outline: none;

  &:hover,
  &:focus,
  &:active {
    color: var(--pix-primary-700);
    text-decoration: underline;
    cursor: pointer;
  }
}

.result-item__icon {
  margin-left: 10px;
  font-size: 1.375rem;

  @include breakpoints.device-is('tablet') {
    margin-left: 30px;
  }

  &--green {
    color: var(--pix-success-700);
  }

  &--orange {
    color: var(--pix-information-light);
  }

  &--red {
    color: var(--pix-error-500);
  }

  &--grey {
    color: var(--pix-neutral-500);
  }
}
