@import '../helpers/helpers';

.header-wrapper--checkout {
  .header-inner {
    margin-right: -15px;
    justify-content: space-between;
  }

  .header-logo {
    display: block;
    padding-left: 0;

    .header-logo__link {
      display: block;
    }

    .header-logo__link,
    .header-logo__link-tp,
    .header-logo_wickes {
      height: 92px;
      width: 130px;

      &_small {
        height: 72px;
        width: 109px;
      }

      @include media-breakpoint-down(sm) {
        height: 59px;
        width: 130px;
      }
    }

    .header-logo__link,
    .header-logo_wickes {
      background-image: url('../../img/wickes-logo.svg');
    }

    .header-logo__link-tp {
      background-image: url('../../img/tradePro-logo_desk.png');
      transform: translateY(7px);
    }
  }
}

.header__main-title {
  color: $white;
  font-size: 21px;
  text-align: right;

  @include media-breakpoint-up(md) {
    font-size: 26px;
    text-align: center;
    top: auto;
  }

  @include media-breakpoint-up(lg) {
    font-size: 33px;
  }
}

.header__contact-data {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-weight: 500;
  padding-right: 15px;
  color: $white;
  text-align: right;

  @include media-breakpoint-down(sm) {
    padding-left: 0;
    font-size: .75rem;
    line-height: 1rem;
    white-space: nowrap;
    align-self: center;
  }

  @include media-breakpoint-up(md) {
    padding-left: 25px;
    min-height: 50px;
    border-left: 1px solid $gray-light;
  }
}

.header__help {
  @include media-breakpoint-up(md) {
    font-size: 1rem;
    line-height: 2.125rem;

    .header__logout + & {
      line-height: normal;
    }
  }
}

.header__logout {
  display: block;
  margin-bottom: 5px;
  text-decoration: none;
  font-weight: 400;
  color: $white;

  @include media-breakpoint-up(md) {
    font-size: .75rem;
    line-height: 1rem;
  }

  &:hover {
    color: $white;
    text-decoration: underline;
  }
}

@include media-breakpoint-only(md) {
  .header-wrapper--checkout {
    .header-logo {
      .header-logo__link-tp {
        transform: translateY(0);
      }
    }
  }
}

@include media-breakpoint-up(md) {
  .header-wrapper--checkout {
    .header-logo {
      .header-logo__link-tp {
        margin-top: 0;
      }
    }
  }
}

@include media-breakpoint-up(lg) {
  .header-wrapper--checkout {
    .header-logo {
      padding-left: 15px;
    }
  }
}
