.ph-attachment-container,
.ph-comment-attachment-container {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin: 0 -7px; }

.ph-file-attachment-thumbnail {
  max-width: 50px;
  margin: 10px 7px 5px; }
  .ph-file-attachment-thumbnail .ph-loading-image {
    transform: scale(0.5); }
  .ph-file-attachment-thumbnail .thumb-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    border-radius: 3px;
    border: 1px solid #a8acaf;
    background-color: #f3f3f3;
    box-shadow: 0 0 10px rgba(25, 29, 34, 0.1);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
        align-items: center;
    -ms-flex-pack: center;
        justify-content: center; }
  .ph-file-attachment-thumbnail .ph-close-icon {
    position: absolute !important;
    top: -7px;
    right: -7px;
    background: #51595f;
    color: #fff;
    line-height: 0;
    border-radius: 99px;
    padding: 3px;
    cursor: pointer;
    z-index: 9; }
    .ph-file-attachment-thumbnail .ph-close-icon svg {
      fill: currentColor; }
  .ph-file-attachment-thumbnail .ph-download {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border-radius: 3px;
    bottom: 0;
    background: #191d22;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
        align-items: center;
    -ms-flex-pack: center;
        justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    color: #fff !important;
    cursor: pointer; }
    .ph-file-attachment-thumbnail .ph-download:hover {
      opacity: 0.75; }
  .ph-file-attachment-thumbnail .ph-attachment-title {
    font-size: 10px;
    line-height: 15px;
    min-height: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; }
    .ph-file-attachment-thumbnail .ph-attachment-title:focus:after, .ph-file-attachment-thumbnail .ph-attachment-title:hover:after {
      content: attr(data-text);
      font-size: 12px;
      overflow: visible;
      text-overflow: inherit;
      background: #fff;
      position: absolute;
      left: auto;
      top: auto;
      width: auto;
      max-width: 20rem;
      border-radius: 3px;
      padding: 4px 8px;
      box-shadow: 0 2px 11px 0 rgba(25, 29, 34, 0.1);
      white-space: normal;
      word-wrap: break-word;
      display: block;
      color: black;
      margin-top: -1.2rem;
      margin-left: -6px; }
  .ph-file-attachment-thumbnail .ph-generic-attachment-icon {
    font-weight: bold;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 5px; }
  .ph-file-attachment-thumbnail .ph-upload-progress {
    position: absolute;
    bottom: 3px;
    left: 3px;
    right: 3px;
    height: 3px;
    border-radius: 999px;
    overflow: hidden; }
    .ph-file-attachment-thumbnail .ph-upload-progress .ph-upload-progress-indicator {
      height: 100%;
      width: 0%;
      background: #6e7b89;
      border-radius: 999px;
      transition: width 0.35s ease; }

.ph-loading {
  background: rgba(0, 0, 0, 0.5); }
  .ph-loading .ph-loading-dots {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: typing 1s linear infinite normal;
    position: relative;
    margin-left: -16px;
    background-color: white;
    box-shadow: 16px 0px 0px 0px rgba(255, 255, 255, 0.2), 32px 0px 0px 0px rgba(255, 255, 255, 0.2); }

.ph-loading-image {
  text-align: center; }
  .ph-loading-image .ph-loading-image-dots {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: typing 1s linear infinite normal;
    position: relative;
    display: inline-block;
    margin-left: -32px;
    background-color: white;
    box-shadow: 16px 0px 0px 0px rgba(255, 255, 255, 0.2), 32px 0px 0px 0px rgba(255, 255, 255, 0.2); }
  .ph-loading-image.small .ph-loading-image-dots {
    width: 6px;
    height: 6px; }
  .ph-loading-image.light .ph-loading-image-dots {
    background-color: black;
    box-shadow: 16px 0px 0px 0px rgba(0, 0, 0, 0.2), 32px 0px 0px 0px rgba(0, 0, 0, 0.2);
    animation: typing-light 1s linear infinite normal; }

@keyframes typing {
  0% {
    background-color: white;
    box-shadow: 16px 0px 0px 0px rgba(255, 255, 255, 0.2), 32px 0px 0px 0px rgba(255, 255, 255, 0.2); }
  45% {
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 16px 0px 0px 0px white, 32px 0px 0px 0px rgba(255, 255, 255, 0.2); }
  75% {
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 16px 0px 0px 0px rgba(255, 255, 255, 0.2), 32px 0px 0px 0px white; } }

@keyframes typing-light {
  0% {
    background-color: black;
    box-shadow: 16px 0px 0px 0px rgba(0, 0, 0, 0.2), 32px 0px 0px 0px rgba(0, 0, 0, 0.2); }
  45% {
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 16px 0px 0px 0px black, 32px 0px 0px 0px rgba(0, 0, 0, 0.2); }
  75% {
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 16px 0px 0px 0px rgba(0, 0, 0, 0.2), 32px 0px 0px 0px black; } }

