// styles that apply to the "share" popup when sharing a link to a post or topic

#share-link {
  position: absolute;
  left: 20px;
  z-index: z("dropdown");
  box-shadow: shadow("card");
  background-color: var(--secondary);
  padding: 8px 8px 4px 8px;
  width: 300px;
  display: none;
  &.visible {
    display: block;
  }
  input[type="text"] {
    width: 100%;
  }

  .title {
    margin-bottom: 4px;
    align-items: center;
    display: flex;
    justify-content: space-between;

    h3 {
      font-size: $font-0;
      margin: 0;
    }

    .date {
      font-weight: normal;
      color: var(--primary-med-or-secondary-med);
    }
  }

  .copy-text {
    display: inline-block;
    position: absolute;
    margin: 5px 5px 5px 15px;
    color: var(--success);
    opacity: 1;
    transition: opacity 0.25s;
    font-size: $font-0;
    &:not(.success) {
      opacity: 0;
    }
  }
  .social-link {
    margin-right: 8px;
    font-size: $font-up-4;
    .d-icon {
      color: var(--tertiary-or-white);
    }
    .d-icon-fab-facebook {
      // Adheres to Facebook brand guidelines
      color: var(--facebook-or-white);
    }
    .d-icon-fab-twitter-square {
      // Adheres to Twitter brand guidelines
      color: var(--twitter-or-white);
    }
  }

  input[type="text"] {
    font-size: $font-up-1;
    margin-bottom: 0;
  }

  .actions {
    display: flex;
    align-items: flex-end;
    margin-top: 8px;

    .sources {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      flex-direction: row;
      max-width: 45%;

      .social-link {
        margin-right: 8px;
      }
    }

    .alt-actions {
      display: flex;
      align-items: center;
      flex: 1;
      justify-content: flex-end;
      height: 36px;

      .close-share {
        font-size: $font-up-3;
        color: var(--primary-med-or-secondary-med);
      }

      .new-topic {
        margin-right: 16px;
      }
    }
  }
}
