/* stylelint-disable no-descending-specificity */

/* Rule added because of linter and DOM checking limitations */

/* See https://stylelint.io/user-guide/rules/list/no-descending-specificity/#dom-limitations for further detail */
@use 'pix-design-tokens/breakpoints';
@use '../globals/a11y' as *;

.qcu-solution-panel {
  a {
    color: var(--pix-primary-500);
    text-decoration: underline;

    @include breakpoints.device-is('tablet') {
      display: inline-block;
    }

    &:focus {
      color: var(--pix-primary-700);
    }

    &::after {
      @include external-link;
    }
  }

  &__proposal-item {
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
    margin-left: 7px;
    font-weight: var(--pix-font-normal);
    line-height: 1.2rem;
  }

  &__radio-button {
    margin: auto 10px auto 0;
  }

  &__proposition {
    display: inline-block;

    & a {
      color: inherit;
    }

    &[data-goodness='good'] {
      color: var(--pix-success-700);
      font-weight: var(--pix-font-bold);
    }

    &[data-goodness='bad'][data-checked='yes'] {
      text-decoration: line-through;

      & a {
        text-decoration: line-through;
      }
    }

    p {
      margin: 0;
    }
  }
}

.qcu-solution-answer-feedback {
  &__expected-answer {
    font-weight: var(--pix-font-medium);
  }
}
