.tester-profile-header {
  grid-area: test-header;
  display: flex;
  flex-direction: row;
  padding: $body-padding-mobile;
  color: $white;
  background-color: $petrol-dark;

  @include media-breakpoint-up(sm) {
    padding-top: $spacing;
    padding-left: $body-padding-tablet;
    padding-right: $spacing;
    padding-bottom: $spacing;
  }
  @include media-breakpoint-up(lg) {
    padding-left: $body-padding-desktop;
    height: 200px;
  }
}

.tester-profile-header .profile-picture-actions {
  margin-right: $spacing-sm;
  @include media-breakpoint-up(md) {
    margin-right: $spacing-md;
  }
}

.tester-profile-header .profile-thumb {
  height: $spacing-xl;
  width: $spacing-xl;
  margin-right: 0;
  outline: 2px solid $white;
  @include media-breakpoint-up(md) {
    height: 130px;
    width: 130px;
  }
}

.tester-profile-header .profile-picture-actions summary:hover .user-item:before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: $link-hover-color;
  opacity: 0.9;
  border-radius: 50%;
}

.tester-profile-header .profile-picture-actions summary:hover .user-item:after {
  content: "";
  display: block;
  position: absolute;
  width: $icon;
  height: $icon;
  left: 50%;
  top: 50%;
  margin-left: (-1 * $icon * 0.5);
  margin-top: (-1 * $icon * 0.5);
  background-color: $white;
  -webkit-mask-image: url("@images/file-image.svg");
  mask-image: url("@images/file-image.svg");
  mask-repeat: no-repeat;
  @include media-breakpoint-up(md) {
    width: $icon-xl;
    height: $icon-xl;
    margin-left: (-1 * $icon-xl * 0.5);
    margin-top: (-1 * $icon-xl * 0.5);
    -webkit-mask-image: url("@images/file-image-plus-xl.svg");
    mask-image: url("@images/file-image-plus-xl.svg");
  }
}

.tester-profile-header {
  .tester-level-medal.md {
    display: none;
  }
  @include media-breakpoint-up(md) {
    .tester-level-medal.sm {
      display: none;
    }
    .tester-level-medal.md {
      display: block;
    }
  }
}

.tester-profile-header .profile-infos {
  flex-grow: 1;
}

.tester-profile-header .profile-name {
  margin-bottom: $spacing-xxs;
  font-size: $font-size-h4;
  @include media-breakpoint-up(md) {
    font-size: $font-size-h1;
  }
}

.tester-profile-header .profile-details {
  display: none;
  margin-top: $spacing-xs;
  font-size: $font-size-xs;
  @include media-breakpoint-up(sm) {
    display: block;
  }
  @include media-breakpoint-up(md) {
    font-size: $font-size-base;
  }
}