@import '../../styles/variables';
@import '../../styles/mixins';

.wrap {
  margin-top: auto;
  background: $snow;
  @include border(top, 1px, solid, $greyGainsboro);
}

footer.footer {
  display: flex;
  margin-top: 0;
  padding: 20px 0;
  font-size: $font-size-sm;
  height: 18px;
  color: $nobel-01;

  span {
    display: inline-block;
    height: 18px;
    vertical-align: middle;
  }

  .tooltip {
    align-items: center;
    margin-left: 5px;
    position: relative;
    margin-top: -2px;
    height: 20px;
    background: $greyAthens;
    padding: 1px 4px;
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(.12,.76,.14,.99);
    transform-origin: left;

    &:before {
      content: '';
      position: absolute;
      top: 3px;
      left: -7px;
      display: block;
      width: 7px;
      height: 15px;
      background: $greyAthens;
      background-image: linear-gradient(45deg, white, white 30%, transparent 30%), linear-gradient(-225deg, white, white 30%, transparent 30%);
    }


    img:not(:first-child) {
      margin-left: 8px;
    }
  }

  // Footer Hover
  &.showAuthorsGeographic .tooltip,
  &:hover .tooltip {
    display: flex;
    transform: scaleX(1);
  }

  .earth {
    margin-left: 8px;
    margin-right: 8px;
  }

  :global {
    .emoji {
      width: 18px;
      height: 18px;
    }
  }

  .right {
    margin-left: auto;
  }
  .logo {
    vertical-align: top;
    height: 18px;
    width: 20px;
  }
}
