@import "ui-variables";
@import "ui-mixins";

#message-list {
  position: relative;

  width: 100%;
  height: 100%;
  padding: 0;

  order: 2;

  .title-and-messages {
    height: 100%;
    overflow: auto;
  }

  .messages-wrap {
    position: relative;

    height: 100%;
    width: 100%;
  }

  .message-list-headers {
    margin: 0 auto;
    padding: @spacing-double;
    padding-bottom: @spacing-standard;
    width: 100%;
    max-width: 800px;

    .participants {
      .contact-chip {
        display:inline-block;
      }
    }
  }

  // .message-list-primary-actions {
  //   z-index: 2;
  //   -webkit-user-select: none;
  //   padding-top: 6px;
  //   padding-bottom: 5px;
  //   padding-left:13px;
  //   background-color: @background-color;
  //   border-bottom:1px solid @border-color;
  //
  //   .primary-actions-bar {
  //     width: 100%;
  //     font-size: 21px;
  //     line-height: 2;
  //     .btn-icon {
  //       padding-top: 0;
  //       padding-bottom: 0;
  //     }
  //     .btn {
  //       margin-left: 4px;
  //     }
  //   }
  // }

  .message-item-wrap {
    position: relative;
    width: 100%;

    margin: 0 auto;
    padding: @spacing-double 0;
    &:first-child { padding-top: 0; }

    border-bottom: 1px solid @border-primary-bg;
    &:last-child { border-bottom: 0; }
  }

  .message-item-area {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: @spacing-standard @spacing-double;

    &.collapsed {
      padding: 0 @spacing-double;
    }

    .message-header {
      font-size: @font-size-small;
      .message-actions {
        float:right;
        padding-right:15px;
        .btn-icon {
          font-size:16px;
          color:rgba(35, 31, 32, 0.1);
          &:hover {
            color:rgba(35, 31, 32, 0.5);
          }
        }
      }
    }

    .message-time, .message-indicator {
      color: @text-color-very-subtle;
      margin-top: 3px;
      float: right;
    }

    .message-indicator {
      margin-right: 4px;
    }

    .to-label {
      font-weight: 600;
    }

    .to-label, .to-everyone, .cc-label, .cc-contact, .to-label, .to-contact {
      position: relative;
      top: -1px;
    }

    .from-label {
      display: none;
    }
    .from-contact {
      font-weight: @headings-font-weight;
      color: @text-color;
    }

    .to-label, .cc-label {
      color: @text-color-very-subtle;
    }
    .cc-label {
      margin-left: @spacing-standard;
    }
    .to-contact, .cc-contact, .to-everyone {
      color: @text-color-very-subtle;
    }

    iframe {
      width: 100%;
      border: 0;
      padding: 0;
      margin-top: @spacing-sub-double;
      overflow: auto;
    }
  }
}
.attachments-area {
  border-bottom: 1px solid @border-color;
  padding: 5px 15px 0px 15px;
}