@import 'variables';

#carbonads {
  display: flex;
  align-items: center;
  overflow: hidden;
  font-family: $font-family;
  padding: 0.5rem;
  background: $white;
  text-align: center;
  line-height: 1.5;
  font-size: 14px;
  max-width: 130px;
  min-width: 17rem;
  height: 100%;
  border-radius: 2px;

  a {
    color: inherit;
    text-decoration: none;
    border: none;

    &:hover {
      color: inherit;
    }
  }

  span {
    display: block;
    overflow: hidden;
    margin: auto;

    @include breakpoint('medium') {
      position: relative;
    }
  }

  .carbon-poweredby {
    text-transform: uppercase;
    display: block;
    font-size: 9px;
    letter-spacing: 1px;
    line-height: 1;
    color: $gray-400;

    &:hover {
      color: $gray-400;
    }

    @include breakpoint('medium') {
      position: absolute;
      left: 140px;
      bottom: 0;
    }
  }

  @include breakpoint('medium') {
    min-width: 100%;
    padding: 1rem;
    display: block;
  }
}

.carbon-img {
  display: block;
  margin: 0 auto 8px;
  line-height: 1;

  @include breakpoint('medium') {
    float: left;
    margin: 0 1rem 0 0;
    line-height: 0;
  }
}

.carbon-text {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  padding: 0 0.5rem;

  @include breakpoint('medium') {
    text-align: left;
  }
}

.ts-ad {
  min-width: 17rem;
  order: 2;
  border: 1px solid $gray-200;
  box-sizing: content-box;
  border-radius: 3px;
  margin-left: 1rem;

  @include breakpoint('medium') {
    margin-top: 1rem;
    margin-left: 0;
    min-height: 118px;
  }
}