.challenge-statement {
  /* XXX required to let "help tooltip" displaying well even if instruction section is short (1 line) */
  overflow: visible;
}

.challenge-statement__instruction strong {
  font-weight: $font-heavy;
}

.challenge-statement__instruction-section {
  font-size: 15px;

  @include device-is('desktop') {
    font-size: 20px;
  }
}

.challenge-statement__instruction-section blockquote {
  font-size: inherit;
}

.challenge-statement__illustration-section {
  display: block;
  text-align: center;
  border-top: 1px solid $iron-grey;
  box-sizing: content-box;
}

.challenge-statement__illustration {
  max-width: 100%;
}

.challenge-statement__attachments-section {
  background-color: $gallery-grey;
  text-align: center;
  padding: 20px;
}

.challenge-statement__text {
  font-size: 16px;
}

.challenge-statement__help-icon {
  width: 18px;
  height: 18px;
  line-height: 18px;
  color: $white;
  display: inline-block;
  background: $pix-blue;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  position: relative;
  text-align: center;
  vertical-align: middle;
}

.challenge-statement__help-icon:after {
  content: "i";
  position: absolute;
  font-size: 12px;
  font-weight: $font-heavy;
  left: 8px;
}

.challenge-statement__help-tooltip {
  visibility: hidden;
  color: $silver-grey;
  text-align: justify;
  border-radius: 6px;
  padding: 15px;
  width: 430px;
  height: auto;
  background-color: $white;
  box-shadow: 1px 1px 1px 0 rgba(0, 0, 0, 0.1);
  border: solid 1px $gainsboro;
  position: absolute;
  z-index: 999;
  left: 50%;
  margin-left: -400px;
  bottom: 30px;
}

/* XXX tooltip bottom arrow */
.challenge-statement__help-tooltip:before {
  content: '';
  position: absolute;
  top: 100%;
  left: 400px;
  margin-left: -10px;
  width: 0;
  height: 0;
  border-top: 10px solid $gainsboro;
  border-right: 10px solid transparent;
  border-left: 10px solid transparent;
}

.challenge-statement__help-tooltip:after {
  content: '';
  position: absolute;
  top: 100%;
  left: 400px;
  margin-left: -8px;
  width: 0;
  height: 0;
  border-top: 8px solid white;
  border-right: 8px solid transparent;
  border-left: 8px solid transparent;
}

/* XXX the magic trick to manage tooltip appearing at icon mouse hover */
.challenge-statement__help-icon:hover .challenge-statement__help-tooltip {
  visibility: visible;
}

.challenge-statement__help-text {
  font-size: 14px;
  color: $charcoal-grey;
}

.challenge-statement__file-options {
  margin-left: 0;
  padding: 10px 0;
}

.challenge-statement__file-option {
  list-style-type: none;
  display: inline-block;
  padding: 0 15px;
}

.challenge-statement__file-option-label {
  font-size: 16px;
  line-height: 10px;
  font-weight: $font-normal;
}

.challenge-statement__action {
  display: flex;
  align-items: center;
  justify-content: center;
}

.challenge-statement__action-link {
  width: 156px;
  height: 46px;
  border-radius: 23px;
  background-color: $pix-blue;
  color: $white;
  cursor: pointer;
  text-align: center;
}

.challenge-statement__action-link:hover,
.challenge-statement__action-link:focus {
  color: $white;
}

.challenge-statement__action-label {
  width: 76px;
  line-height: 46px;
  font-family: $font-lato;
  font-size: 16px;
  font-weight: $font-heavy;
  text-transform: uppercase;
}
