@use 'pix-design-tokens/breakpoints';
@use '../globals/a11y' as *;

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

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

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

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

  &__label {
    position: relative;
    display: inline-block;
    padding-left: 20px;
    font-weight: var(--pix-font-normal);
    line-height: 21px;
    cursor: pointer;
  }

  &-solution {
    &__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;

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

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

      p {
        margin: 0;
      }
    }
  }
}
