@import "../variables/_all";

.twitter-share-button-inner {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
}

.share-button {
  &.ap-button {
    border: none;
    padding: 4px 4px;
    color: inherit;
  }
}

.share-form-button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  .twitter-button, .facebook-button {
    margin-right: 4px;
  }
}

.share-form {
  .ap-field-label-inner {
    margin: 4px 0;
  }
}

.share-form-url {
  font-size: 12px;
  background: #F0F0F0;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  max-width: $content-width;
  border-radius: 4px;
  .share-form-url-link {
    text-decoration: underline;
    color: inherit;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    padding: 4px 8px;
  }
  .share-form-url-copy-button {
    position: relative;
    &.ap-button {
      flex-shrink: 0;
      margin: 0;
      border-radius: 0 4px 4px 0;
      color: inherit;
      border: none;
      background: #DDD;
    }
    &:active {
      .share-form-url-copy-message {
        display: block;
      }
    }
  }
  .share-form-url-copy-message {
    position: absolute;
    z-index: 3;
    right: 0;
    top: -18px;
    padding: 0 4px;
    font-size: 9px;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.33);
    color: #333;
    display: none;
  }
}