/* Font overrides for some custom elements */
/***** MAIN COLOR *****/
/***** GENERAL DEFINITIONS ********/
/***** ADJUSTMENTS REQUESTED ********/
/***** COLOURS ****/
/* used for operator links in article body */
/**** TEXT COLOURS *****/
/**** MENU COLOURS *****/
/***** NAV TABS COLOURS ******/
/***** ODDS COLOURS *****/
/***** MOBILE-ONLY COLOURS *****/
/********* TABLES COLORS ********/
/********* COMMENTS COLORS ********/
/***** HIGHLIGHTED BLOCK BORDER COLORS ****/
/***** PROS/CONS COLORS ****/
/***** PICK COLORS ****/
/**** MATCHCENTER COLORS ****/
/***** BACKGROUNDS ****/
/***** PAGINATION ****/
/***** BOOTSTRAP COLORS ****/
/***** BOX SHADOWS ****/
/***** LIVEBLOG BOX COLORS ****/
/********* PROFILE METER ********/
/********* BOOTSTRAP SELECT *******/
/********* OTHER *******/
/***** SIZES ****/
/* If you change it, then it in PHP file */
/***** FONT SIZES ****/
/**** SIZES CALCULATED FROM PIXELS ****/
/***** MARGINS ****/
/***** BREAKPOINTS ****/
/***** OTHER ****/
.white-link:not(.btn), .main-content .white-link:not(.btn) {
  color: #fff;
}

.pm-wrp {
  position: relative;
  overflow: auto;
}

.pm-left-side {
  position: relative;
}

.pm-right-side {
  overflow: hidden;
}

@media (min-width: 768px) {
  .pm-left-side {
    float: left;
    width: 200px;
  }
  .pm-right-side {
    margin-left: 215px;
  }
}
.pm-messages-scroll-cont {
  height: 500px;
  overflow: auto;
}

.pm-message {
  margin-top: 10px;
  padding: 0 10px;
  position: relative;
  overflow: hidden;
}

.scroll-portion-loader-spinner + .pm-message {
  margin-top: 0;
}

.pm-message:first-child {
  margin-top: 0;
}

.pm-message-body {
  margin-left: 40px;
}

.pm-message-created {
  color: #aaa;
  display: none;
  font-size: 0.75rem;
}

.pm-message-created > span {
  white-space: nowrap;
}

.pm-message-text {
  word-wrap: break-word;
}

.pm-convs-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
  max-height: 40rem;
  overflow: auto;
}

.pm-conv {
  border: 1px solid #ccc;
  border-radius: 15px 0 !important;
  cursor: pointer;
  margin-bottom: 10px;
  position: relative;
}

.pm-conv-nav-link {
  border-radius: 14px 0 !important;
  display: block;
  overflow: hidden;
  padding: 0;
}

.pm-conv-nav-link:hover {
  background: #eee;
}

.pm-conv-nav-link.active {
  background: #ddd;
}

.pm-conv-avatar {
  float: left;
  width: 50px;
  height: 50px;
}

.pm-conv-body {
  margin-left: 55px;
}

.pm-conv-text {
  overflow: hidden;
  padding-right: 1.3571428571rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-wrap: normal;
}
.pm-conv-text > .giphy,
.pm-conv-text > .mess-img {
  width: 32px !important;
  height: 20px !important;
}

.pm-conv-actions {
  bottom: 0;
  opacity: 0;
  position: absolute;
  right: 5px;
  /*> .dropdown-menu {
  	min-width: 0;
  	top: $line-height * $rem-size + 4px;
  }*/
}

.pm-conv:hover > .pm-conv-actions,
.pm-conv-actions.show {
  opacity: 1;
}

.pm-conv-leave-btn {
  display: none;
}

[data-gt-2-users] .pm-conv-leave-btn {
  display: block;
}

/* messages */
.pm-message-inner {
  border-radius: 15px 15px 15px 15px !important;
  display: inline-block;
  max-width: 75%;
  /*overflow: hidden;*/
  padding: 3px 8px;
  position: relative;
}

.pm-message-own > .pm-message-inner {
  background: #0086ff;
  color: #fff;
  float: right;
}

.pm-message-other {
  padding-left: 40px;
}

.pm-message-other > .pm-message-inner {
  background: #eee;
  color: #000;
  float: left;
}

.pm-message-img-link {
  display: none;
}

.pm-message-body {
  margin-left: 0;
}

.pm-message-username {
  display: none;
}

.pm-message-own.pm-message-top > .pm-message-inner,
.pm-message-own.pm-message-middle > .pm-message-inner {
  border-bottom-right-radius: 2px !important;
}

.pm-message-own.pm-message-bottom > .pm-message-inner,
.pm-message-own.pm-message-middle > .pm-message-inner {
  border-top-right-radius: 2px !important;
}

.pm-message-other.pm-message-top > .pm-message-inner,
.pm-message-other.pm-message-middle > .pm-message-inner {
  border-bottom-left-radius: 2px !important;
}

.pm-message-other.pm-message-bottom > .pm-message-inner,
.pm-message-other.pm-message-middle > .pm-message-inner {
  border-top-left-radius: 2px !important;
}

.pm-message-middle,
.pm-message-bottom {
  margin-top: 1px;
}

.pm-message-other.pm-message-top,
.pm-message-other.pm-message-single {
  padding-top: 24px;
}

.pm-message-other.pm-message-top .pm-message-img-link,
.pm-message-other.pm-message-single .pm-message-img-link {
  display: inline;
}

.pm-message-other.pm-message-top .pm-message-user-avatar,
.pm-message-other.pm-message-single .pm-message-user-avatar {
  left: 0;
  position: absolute;
  top: 0;
}

.pm-message-other.pm-message-top .pm-message-username,
.pm-message-other.pm-message-single .pm-message-username {
  display: block;
  left: 40px;
  position: absolute;
  top: 0;
}

.pm-message-single .pm-message-created,
.pm-message-bottom .pm-message-created {
  bottom: 2px;
  display: block;
  position: absolute;
  white-space: nowrap;
}

.pm-message-other .pm-message-created {
  left: 100%;
  padding-left: 5px;
}

.pm-message-own .pm-message-created {
  right: 100%;
  padding-right: 5px;
}

.pm-message[data-user-id="0"] {
  margin: 10px 0 0;
  padding: 14px 10px 24px;
}
.pm-message[data-user-id="0"] > .pm-message-img-link,
.pm-message[data-user-id="0"] > .pm-message-username,
.pm-message[data-user-id="0"] .pm-message-created {
  display: none;
}
.pm-message[data-user-id="0"] > .pm-message-inner {
  background: none;
  color: #515151;
  display: block;
  float: none;
  font-size: 0.857rem;
  max-width: none;
  text-align: center;
}

/* ------- */
.pm-send-message-wrp {
  margin-top: 20px;
  padding-left: 10px;
}

.speak-bubble {
  overflow: visible;
}
.speak-bubble > .pm-message-inner {
  float: left;
  min-width: 40px;
}
.speak-bubble::after {
  background: #0086ff;
  border-radius: 0 0 15px 0;
  content: "";
  display: block;
  position: absolute;
  top: 100%;
  left: 24px;
  height: 11px;
  width: 11px;
}
.speak-bubble .giphy,
.speak-bubble .mess-img {
  max-width: 100px;
  height: auto !important;
}

.pm-conv-ce {
  max-height: 7rem;
  overflow: auto;
}

@media (max-width: 575px) {
  .pm-message-created {
    bottom: -1px !important;
    max-width: 5rem;
    white-space: normal !important;
  }
  .pm-conv-ce {
    max-height: 5.6rem;
  }
}
.new-message-btn-wrp {
  margin-bottom: 1.5rem;
}

#new-message-btn {
  display: block;
  margin-left: 4.1428571429rem;
}

.ce-wrp > .pm-textarea-wrp {
  margin-bottom: 1rem;
}

@media (max-width: 767px) {
  #conv-list-wrp {
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 10px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    padding: 10px;
    position: absolute;
    width: 80%;
    z-index: 1;
    top: 2.7928571429rem;
    left: 0;
  }
  .pm-convs-list {
    max-height: 238px;
  }
  .new-message-btn-wrp {
    margin-bottom: 1rem;
  }
  #new-message-btn {
    margin-left: 3.1428571429rem;
  }
  .pm-send-message-wrp.ce-wrp {
    margin-top: 1rem;
  }
  .ce-wrp > .pm-textarea-wrp {
    margin-bottom: 0.5rem;
  }
  .pm-conv-actions {
    opacity: 1;
  }
}
@media (min-width: 768px) {
  #conv-list-toggle {
    display: none;
  }
  #new-message-btn {
    margin-left: 0;
  }
  #conv-list-wrp {
    display: block;
    height: auto !important;
  }
  .pm-conv-ce {
    max-height: none;
    min-height: 5.6rem;
  }
}
.conv-tabs-cont-sm > .tab-pane.active {
  height: 100%;
  display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */
  display: -moz-box; /* OLD - Firefox 19- (buggy but mostly works) */
  display: -ms-flexbox; /* TWEENER - IE 10 */
  display: -webkit-flex; /* NEW - Chrome */
  display: flex;
  -webkit-flex-direction: column; /* Safari 6.1+ */
  flex-direction: column;
}
.conv-tabs-cont-sm > .tab-pane.active > .pm-messages-scroll-cont {
  -webkit-flex: 1 1 auto; /* Chrome */
  -ms-flex: 1 1 auto; /* IE 10 */
  flex: 1 1 auto;
}
.conv-tabs-cont-sm > #new-message-tab.active {
  display: block;
}