* {
  padding: 0;
  margin: 0;
  border: 0;
  font-family: "roboto", sans-serif;
  box-sizing: border-box;
}

body {
  background-color: #212d3d;
  overflow: hidden;
}

a {
  text-decoration: none;
}

button {
  border-radius: 5px;
  cursor: pointer;
}
button:focus {
  outline: 0;
}

input:focus, textarea:focus, button:focus {
  outline: 0;
}

input:focus {
  box-shadow: 0 0px 0px 1px #495867 !important;
}

.hidden {
  display: none !important;
}

.mes-added-text {
  color: #5d9f6b;
}

/* Nav */
#message-page nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  background-color: #344555;
  color: white;
  font-size: 14px;
  cursor: default;
}

.mes-nav-section-name {
  font-size: 16px;
  font-weight: 500;
}

.mes-nav-badge {
  height: 22px;
  padding: 2px 8px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  background-color: #273747;
}
.mes-nav-badge img {
  width: 12px;
  height: 12px;
  margin-right: 5px;
  vertical-align: middle;
}
.mes-nav-badge span {
  font-weight: 500;
  vertical-align: middle;
}

/* Urgent notes */
.mes-urgent-notes {
  background-color: #3b4b5c;
  font-size: 14px;
  width: 100%;
}

/* Urgent notes -> edit */
.mes-un-edit {
  display: none;
  color: #d0e1de;
}
.mes-un-edit input {
  background-color: #273747;
}

.mes-un-edit-main, .mes-un-edit-duration, .mes-un-edit-type-container {
  background-color: #2f3f4e;
  padding: 5px;
  display: flex;
  flex-direction: column;
}

.mes-un-edit-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 5px 0;
}

.mes-un-edit-main-profile .mes-un-edit-main-section input, .mes-un-edit-main-profile .mes-un-edit-charactercount {
  background-color: #3d4d5d;
}
.mes-un-edit-main-profile .mes-un-edit-main-section:last-child {
  background-color: #354758;
}

.mes-un-edit-main-user .mes-un-edit-main-section input, .mes-un-edit-main-user .mes-un-edit-charactercount {
  background-color: #223140;
}
.mes-un-edit-main-user .mes-un-edit-main-section:last-child {
  background-color: #1e2c3a;
}

.mes-un-edit-main-section:last-child {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: #273747;
  padding: 5px;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
}

.mes-un-edit-main-input {
  padding: 8px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  flex-grow: 1;
  color: #aeb2b7;
  resize: none;
  width: 100%;
}
.mes-un-edit-main-input::placeholder {
  color: #676e76;
  opacity: 1;
}

.mes-un-edit-charactercount {
  background-color: #223140;
  border-radius: 5px;
  padding: 4px 10px;
  cursor: default;
}
.mes-un-edit-charactercount p {
  color: #aeb2b7;
  font-size: 11px;
}

.mes-un-edit-controls .mes-btn {
  padding: 2px 10px;
}

.mes-un-edit-return {
  background-color: #3d4d5d;
  color: #a3a8ae;
}

.mes-un-edit-save {
  background-color: #5d9f6b;
  color: white;
}

.mes-un-edit-duration {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px;
  width: 240px;
}

.mes-un-edit-duration-input {
  text-align: center;
  border-radius: 5px;
  padding: 8px 4px;
  color: #aeb2b7;
}
.mes-un-edit-duration-input::placeholder {
  color: #676e76;
  opacity: 1;
}

.mes-un-edit-duration-format {
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
}

.mes-un-edit-duration-format-type {
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: center;
  color: white;
  background-color: #435567;
  font-size: 12px;
  font-weight: 500;
  -webkit-user-select: none;
          user-select: none;
}
.mes-un-edit-duration-format-type:first-child {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}
.mes-un-edit-duration-format-type:last-child {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.mes-un-edit-duration-format-type:not(.mes-un-edit-duration-format-type-selected) {
  background-color: #3b4b5c;
  color: #a3a8ae;
}
.mes-un-edit-duration-format-type:not(.mes-un-edit-duration-format-type-selected):hover {
  background-color: #3e4f61;
}

.mes-un-edit img {
  width: 12px;
  height: 12px;
}

.mes-un-edit-type-container {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 5px;
}

.mes-un-edit-type {
  display: flex;
  flex-direction: row;
  padding: 3px 10px;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 80px;
  cursor: pointer;
  background-color: #3b4b5c;
  -webkit-user-select: none;
          user-select: none;
  font-weight: 500;
}
.mes-un-edit-type span {
  color: #a3a8ae;
  font-size: 12px;
}
.mes-un-edit-type:first-child {
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}
.mes-un-edit-type:last-child {
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.mes-un-edit-type:not(.mes-un-edit-type-selected) {
  transition: all 0.2s ease-in-out;
}
.mes-un-edit-type:not(.mes-un-edit-type-selected):hover {
  background: #3e4f61;
}

.mes-un-edit-type-selected {
  border: 0;
  background-color: #435567;
}
.mes-un-edit-type-selected span {
  color: white;
}

.mes-un-check {
  width: 12px;
  height: 12px;
  margin-right: 3px;
  position: relative;
  top: -1px;
  border-radius: 50%;
  background: #607386;
  padding: 2px;
}

/* Urgent notes -> view */
.mes-un-view {
  display: flex;
  padding: 5px;
  flex-direction: row;
  width: 100%;
}

.mes-un-view-all {
  flex-grow: 2;
}
.mes-un-view-all > p {
  padding: 5px;
  color: #868b90;
  font-size: 12px;
}

.mes-un-view-controls {
  display: flex;
  align-self: center;
  margin-left: 5px;
}

.mes-un-view-controls-row {
  flex-direction: row;
}
.mes-un-view-controls-row .mes-un-view-bubble:first-child {
  margin: 0 4px 0 0;
}

.mes-un-view-controls-column {
  flex-direction: column;
}
.mes-un-view-controls-column .mes-un-view-bubble:first-child {
  margin: 0 0 4px 0;
}

.mes-un-view-bubble {
  display: flex;
  width: 24px;
  height: 24px;
  justify-content: center;
  align-items: center;
  background-color: #5d9f6b;
  border-radius: 50%;
  cursor: pointer;
}
.mes-un-view-bubble img {
  width: 12px;
  height: 12px;
}

/* Urgent Note */
.mes-un {
  font-size: 12px;
  display: inline-block;
  align-items: center;
  border-radius: 5px;
  font-size: 11px;
  -webkit-user-select: none;
          user-select: none;
  margin: 2px 0;
}

.mes-un-icon-container {
  cursor: pointer;
  display: inline-block;
  padding: 2px 4px;
  background: rgba(255, 255, 255, 0.03);
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}
.mes-un-icon-container img {
  width: 11px;
  height: 11px;
  position: relative;
  top: 1px;
}

.mes-un-main, .mes-un-settings {
  align-items: center;
  padding: 2px;
}

.mes-un-settings {
  display: none;
}
.mes-un-settings .mes-un-badge span {
  margin: 0 4px;
}

.mes-un-settings-btn-container {
  display: flex;
  margin: 0 2px 0 4px;
}

.mes-un-settings-btn {
  padding: 0px 8px;
  border-radius: 3px;
}
.mes-un-settings-btn span {
  position: relative;
  top: -1px;
  font-size: 11px;
}

.mes-un-settings-btn-edit {
  background: #495867;
  color: #cfd4da;
  margin-right: 4px;
}

.mes-un-settings-btn-delete {
  background-color: #ec5555;
}
.mes-un-settings-btn-delete span {
  color: white;
}

.mes-un-main {
  display: flex;
}

.mes-un-badge {
  background: red;
  border-radius: 5px;
  display: flex;
  align-items: center;
}

.mes-un-duration {
  display: inline-flex;
  align-items: center;
  margin: 0 5px;
}

.mes-un-duration-from, .mes-un-duration-to {
  text-align: center;
  white-space: nowrap;
}

.mes-un-duration-divider {
  color: #5d9f6b;
  margin: 0 3px;
  font-weight: 500;
}

.mes-un-text {
  display: flex;
  word-break: break-word;
  margin: 0 4px;
}

.mes-un-profile {
  background-color: #364655;
  color: #aeb2b7;
}
.mes-un-profile .mes-un-badge {
  background-color: #3d4d5d;
}

.mes-un-user {
  background-color: #1e2c3a;
  color: #aeb2b7;
}
.mes-un-user .mes-un-badge {
  background-color: #283745;
}

#message-page main {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  box-sizing: border-box;
}

.mes-sp {
  max-width: 450px;
  background-color: #273747;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mes-sp-main-bubbles {
  display: inline-block;
  -webkit-user-select: none;
          user-select: none;
}

.mes-sp-main-bubble {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 4px;
  background-color: #5d9f6b;
}
.mes-sp-main-bubble:last-child {
  margin-bottom: 0;
}
.mes-sp-main-bubble img, .mes-sp-main-bubble svg {
  width: 12px;
  height: 12px;
  transition: 0.2s ease-in-out;
}

.mes-sp-main-bubble-report img {
  position: relative;
  top: -1px;
}

.mes-sp-main-bubble:not(.mes-sp-main-bubble-verified) {
  background-color: #435568;
}

.mes-sp-main-bubble-report {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.mes-sp-main-bubble-report:hover {
  background-color: #4b5e71;
}

.mes-sp-avatar {
  display: inline-block;
}
.mes-sp-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 5px;
}

.mes-sp-main-badge {
  background-color: #3b4b5c;
  color: #ffffff;
  border-radius: 5px;
  font-weight: 600;
}

.mes-sp-main-head {
  padding: 5px;
  background-color: #344555;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mes-sp-main-body {
  background-color: #3b4b5c;
  text-align: center;
  font-size: 14px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  padding: 10px 5px;
}

.mes-sp-username {
  color: #ffffff;
  font-weight: 500;
}

.mes-sp-family-member {
  background-color: #273747;
  padding: 4px;
  border-radius: 5px;
  margin-bottom: 5px;
}
.mes-sp-family-member img[src="img/gear.svg"] {
  position: relative;
  top: 1px;
  margin-left: 5px;
}

.mes-modal-family-edit,
.mes-modal-family-add {
  display: none;
}

.mes-modal-family-hidden {
  display: none;
}

.mes-sp-family-add-member {
  text-align: center;
  display: block;
  width: 100%;
  margin: 5px auto;
  padding: 3px 0;
  background-color: #435465;
}
.mes-sp-family-add-member svg {
  width: 11px;
  height: 11px;
  margin-right: 3px;
}
.mes-sp-family-add-member span {
  color: #b0b0b0;
  font-size: 11px;
  position: relative;
  top: -1px;
}

.mes-sp-gender, .mes-sp-zodiac, .mes-sp-family-gender {
  width: 11px;
  height: 11px;
  position: relative;
  top: 1px;
}

.mes-sp-online-icon {
	height: 11px;
	width: 11px;
	margin-right: 8px;
}

.mes-sp-pipe {
  color: #6c737c;
}

.mes-sp-age {
  background-color: #2e3d4b;
  padding: 1px 4px;
  font-size: 12px;
  border-radius: 5px;
}

.mes-sp-location, .mes-sp-age, .mes-sp-family-age {
  color: #a3a8ae;
}

.mes-sp-family-age {
  background-color: #344555;
  padding: 1px 4px 1px 3px;
  font-size: 12px;
  border-radius: 5px;
}

.mes-sp-family-location, .mes-sp-family-status {
  font-size: 13px;
  color: #a3a8ae;
}

.mes-sp-zodiac {
  margin: 0 5px;
}

img[src="img/gear.svg"] {
  width: 11px;
  height: 11px;
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
}

.mes-sp-tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  overflow-y: auto;
  max-height: 65px;
  margin-right: 0;
  margin-left: auto;
  padding-right: 5px;
}

.mes-sp-tag {
  display: inline-block;
  padding: 1px 4px;
  background-color: #2e3d4b;
  border-radius: 3px;
  cursor: default;
  margin: 2px;
}
.mes-sp-tag span {
  font-size: 12px;
  color: #b0b0b0;
}

.mes-sp-tag-common {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 2px solid #5d9f6b;
}

.mes-sp-body {
  margin: 5px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 0;
}

.mes-sp-family-tabs {
  display: flex;
  justify-content: space-between;
}

.mes-sp-family-tab {
  background-color: #223140;
  padding: 8px 4px;
  border-radius: 5px;
  width: 100%;
  margin-right: 4px;
  text-align: center;
  cursor: pointer;
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
  -webkit-user-select: none;
          user-select: none;
  transition: all 0.2s ease-in-out;
}
.mes-sp-family-tab:last-child {
  margin-right: 0;
}
.mes-sp-family-tab:hover {
  background-color: #1e2d3c;
}

.mes-sp-family-tab-active {
  background-color: #344555;
}
.mes-sp-family-tab-active p {
  color: #b0b0b0;
}
.mes-sp-family-tab-active:hover {
  background-color: #374859;
}

.mes-sp-family-tab-name {
  font-size: 12px;
  font-weight: 500;
  color: #b0b0b0;
}

.mes-sp-family-tab-icon {
  width: 14px;
  height: 14px;
  margin-right: 5px;
  vertical-align: middle;
}

.mes-sp-family-tab-amount {
  vertical-align: middle;
  margin-left: 5px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.mes-sp-family-tab-content {
  background-color: #344555;
  padding: 5px 5px 14px;
  text-align: left;
  border-radius: 5px;
  margin-bottom: 10px;
  display: none;
}

.mes-sp-family-name {
  color: #ffffff;
  font-size: 13px;
  margin-left: 2px;
}

.mes-sp-family-hobby {
  color: #b0b0b0;
  font-size: 12px;
  margin-left: 2px;
}

.mes-sp-family-text {
  padding: 2px;
  border-radius: 5px;
  margin: 2px 0 0;
  font-size: 12px;
  color: #b0b0b0;
}

.mes-sp-family-tab-close {
  background-color: #435568;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  text-align: center;
  margin: -2px auto -20px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  -webkit-user-select: none;
          user-select: none;
  transition: all 0.2s ease-in-out;
}
.mes-sp-family-tab-close:hover {
  background-color: #485a6d;
}
.mes-sp-family-tab-close img {
  width: 9px;
  height: 9px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.mes-sp-sections {
  overflow-y: scroll;
  overflow-x: hidden;
  display: flex;
  flex-grow: 1;
  flex-direction: column;
}

.mes-sp-section {
  font-size: 12px;
  text-align: left;
  background-color: #223140;
  padding: 8px;
  border-radius: 5px;
  margin-bottom: 5px;
  margin-right: 5px;
}
.mes-sp-section:last-child {
  margin-bottom: 0;
}

.mes-sp-section-group {
  margin-bottom: 5px;
}
.mes-sp-section-group:last-child {
  margin-bottom: 0;
}

.mes-sp-section-title {
  color: #ffffff;
  display: flex;
  align-items: center;
}
.mes-sp-section-title p {
  padding: 5px 0;
  font-weight: 500;
}
.mes-sp-section-title img, .mes-sp-section-title svg {
  cursor: pointer;
}

/* SIDEPANEL -> FIELD */
.mes-sp-section-fields .mes-sp-section-title {
  margin-bottom: 5px;
}

.mes-sp-field {
  margin-bottom: 2px;
  font-size: 12px;
  display: flex;
  align-items: center;
  background-color: #1e2b38;
  border-radius: 5px;
  padding: 4px;
}
.mes-sp-field:last-child {
  margin-bottom: 0;
}
.mes-sp-field img, .mes-sp-field svg {
  padding: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  vertical-align: middle;
}
.mes-sp-field svg path {
  fill: #5d9f6b;
}

.mes-sp-field-title {
  color: #878787;
  font-size: 11px;
  display: inline-block;
  padding: 4px 0;
}

button.mes-sp-field-btn {
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 11px;
}

.mes-sp-field-btn-disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.mes-sp-field-btn-new {
  padding-left: 0 !important;
}

.mes-sp-field-sections {
  flex: auto;
}

.mes-sp-field-section {
  margin-left: 4px;
}

.mes-sp-field-section-menu {
  margin-left: 4px;
}

.mes-sp-field-btn-menu {
  position: relative;
  top: -1px;
}

.mes-sp-field-section-input {
  margin: 0 4px;
}

.mes-sp-field-toggled-input {
  flex-direction: column;
  align-items: flex-start;
}
.mes-sp-field-toggled-input .mes-sp-field-section-input {
  margin: 4px;
  display: flex;
  align-items: center;
}

.mes-sp-field-input {
  display: block;
  background-color: #14202b;
  border-radius: 3px;
  color: #a2a2a2;
  font-size: 12px;
  padding: 3px 4px;
  margin-right: 4px;
  width: 100%;
}

.mes-sp-field-btn-return-input,
.mes-sp-field-btn-return-menu {
  background: #495867;
  color: #cfd4da;
  margin-left: 4px;
}

.mes-sp-field-btn-done {
  background-color: #5d9f6b;
  color: white;
}

.mes-sp-field-btn-edit {
  background-color: #495867;
  color: #cfd4da;
}

.mes-sp-field-btn-delete {
  background-color: #ec5555;
  color: white;
  margin-left: 4px;
}

.mes-sp-field-btn-return {
  padding: 5px;
  width: 21px !important;
  height: 21px !important;
}

.mes-sp-field-text {
  color: #b0b0b0;
}
.mes-sp-field-text span {
  color: #5d9f6b;
  background-color: #1e2b38;
  word-break: break-all;
}

.mes-sp-field-note {
  margin-left: 4px;
  color: #c1c1c1;
  background-color: #3f4e5d;
  border-radius: 3px;
  padding: 0 3px;
  font-size: 11px;
}
.mes-sp-field-note:empty {
  padding: 0;
  margin: 0;
}

.mes-sp-section-divider {
  height: 1px;
  background-color: #3b4b5c;
  margin: 10px 0;
}

.mes-sp-section-text, .mes-chat-note span {
  line-height: 18px;
}

.mes-sp-section-text {
  margin-top: -2px;
  color: #b0b0b0;
}

.mes-sp-section-badges .mes-sp-section-title,
.mes-sp-section-chat-notes .mes-sp-section-title {
  display: flex;
  justify-content: space-between;
}
.mes-sp-section-badges .mes-sp-section-title-left,
.mes-sp-section-chat-notes .mes-sp-section-title-left {
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
}
.mes-sp-section-badges .mes-sp-section-title-left img,
.mes-sp-section-chat-notes .mes-sp-section-title-left img {
  display: inline-flex;
  vertical-align: middle;
}
.mes-sp-section-badges .mes-sp-section-title-left p,
.mes-sp-section-chat-notes .mes-sp-section-title-left p {
  vertical-align: middle;
  display: inline-flex;
}
.mes-sp-section-badges .mes-sp-section-title-right,
.mes-sp-section-chat-notes .mes-sp-section-title-right {
  padding: 3px;
  background-color: #435568;
  border-radius: 50%;
  height: 15px;
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
}
.mes-sp-section-badges .mes-sp-section-title-right img,
.mes-sp-section-chat-notes .mes-sp-section-title-right img {
  width: 8px;
  height: 8px;
  transform: rotate(180deg);
  position: relative;
  top: -2px;
}

.mes-sp-badge-menu {
  display: none;
}
.mes-sp-badge-menu textarea {
  border-radius: 5px;
  padding: 2px 5px;
  resize: none;
  font-size: 11px;
  background-color: #1f2c3a;
  color: #b0b0b0;
  width: 100%;
  margin-bottom: 2px;
}

.mes-sp-badge-menu-adding .mes-sp-badge-menu-controls-add {
  display: block;
}
.mes-sp-badge-menu-adding .mes-sp-badge-menu-controls-edit {
  display: none;
}

.mes-sp-badge-menu-editing .mes-sp-badge-menu-controls-edit {
  display: block;
}
.mes-sp-badge-menu-editing .mes-sp-badge-menu-controls-add {
  display: none;
}

.mes-sp-badge-menu-controls {
  padding: 5px;
  border-radius: 3px;
  background-color: #2e3d4b;
}

.mes-sp-badge-menu-btn {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
}

.mes-sp-badge-menu-btn-add {
  background-color: #5d9f6b;
  color: white;
}

.mes-sp-badge-menu-btn-edit {
  background-color: #5d9f6b;
  color: white;
}

.mes-sp-badge-menu-btn-delete {
  background-color: #ec5555;
  color: white;
  float: right;
}

.mes-sp-badge-menu-btn-cancel {
  background-color: #495867;
  color: #cfd4da;
}

.mes-sp-badge-menu-btn-disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.mes-sp-badges {
  background-color: #1e2b38;
  border-radius: 5px;
  padding: 3px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.mes-sp-badges:empty {
  display: none;
}

.mes-sp-section-dropdown {
  display: none;
}

.mes-sp-badge {
  border-radius: 5px;
  margin: 2px;
  background-color: #2e3d4b;
  color: #b0b0b0;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  font-size: 11px;
}
.mes-sp-badge img {
  width: 19px;
  height: 19px;
  cursor: pointer;
  padding: 4px;
}

.mes-sp-badge-text {
  margin: 4px 0 4px 4px;
}

.mes-sp-profile .mes-sp-badge-text {
  margin: 4px;
}
.mes-sp-profile .mes-sp-badge-editable-note .mes-sp-badge-text {
  margin: 4px 0 4px 4px;
}

.mes-sp-badge-note {
  color: #c3c3c3;
  background-color: #3f4e5d;
  padding: 0 3px;
  border-radius: 3px;
  margin-left: 4px;
}
.mes-sp-badge-note:empty {
  padding: 0;
  margin: 0;
}

.mes-sp-badge-btn-show-add {
  padding: 5px;
  width: 20px;
  height: 20px;
}

.mes-sp-badge-common {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 2px solid #5d9f6b;
}

.mes-chat-notes {
  padding: 5px;
  background-color: #1e2b38;
  border-radius: 5px;
}

.mes-chat-notes-add {
  padding: 5px;
  width: 20px;
  height: 20px;
}

.mes-chat-note {
  padding: 4px 6px;
  background-color: #2e3d4b;
  border-radius: 3px;
  margin-bottom: 3px;
}
.mes-chat-note img {
  margin-left: 3px;
  position: relative;
  top: 1.5px;
}
.mes-chat-note span {
  font-size: 11px;
  line-height: 14px;
  word-break: break-all;
  color: #b0b0b0;
}
.mes-chat-note:last-child {
  margin-bottom: 0;
}

.mes-chat-notes-menu {
  display: none;
  margin-bottom: 10px;
}
.mes-chat-notes-menu textarea {
  border-radius: 5px;
  padding: 5px;
  resize: none;
  font-size: 11px;
  background-color: #1f2c3a;
  color: #b0b0b0;
  width: 100%;
  margin-bottom: 2px;
}

.mes-chat-notes-menu-controls {
  display: none;
  background: #344555;
  padding: 5px;
  border-radius: 3px;
}

.mes-chat-notes-menu-btn {
  padding: 2px 6px;
  font-size: 11px;
  border-radius: 3px;
}

.mes-chat-notes-menu-btn-add, .mes-chat-notes-menu-btn-edit {
  background-color: #5d9f6b;
  color: white;
  margin-right: 4px;
}

.mes-chat-notes-menu-btn-cancel {
  background-color: #495867;
  color: #cfd4da;
}

.mes-chat-notes-menu-btn-delete {
  background-color: #ec5555;
  color: #fff;
  float: right;
}

.mes-chat-notes-menu-btn-disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.mes-chat-notes-toggle {
  border-radius: 50%;
  padding: 5px;
  background-color: #435568;
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  margin: -4px auto;
  position: relative;
  top: -5px;
  cursor: pointer;
}
.mes-chat-notes-toggle img {
  width: 9px;
  height: 9px;
}

.mes-chat-notes-toggle-expand img {
  transform: rotate(180deg);
}

.mes-sp-profile .mes-sp-main-head {
  padding: 9px 9px 4px 9px;
}
.mes-sp-profile .mes-sp-main-head-right {
  position: relative;
  top: -12px;
  left: 4px;
}
.mes-sp-profile .mes-sp-main-bubbles {
  position: relative;
  top: 12px;
}
.mes-sp-profile .mes-sp-avatar {
  margin-right: 2px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  align-items: center;
}
.mes-sp-profile .mes-sp-main-badge {
  width: 50px;
  text-align: center;
  margin: -22px 0 8px 0;
}
.mes-sp-profile .mes-sp-main-badge span {
  vertical-align: middle;
  font-size: 12px;
  font-weight: 600;
  position: relative;
  top: -1px;
}
.mes-sp-profile .mes-sp-main-badge img {
  position: relative;
  top: -2px;
  vertical-align: middle;
  width: 14px;
  height: 14px;
  margin-right: 4px;
}

.mes-sp-user .mes-sp-main-head {
  text-align: right;
  padding: 5px;
}

.mes-sp-user .mes-sp-main-bubbles {
  margin-left: 7.5vw;
}

.mes-sp-user .mes-sp-main-badges {
  display: inline-block;
  vertical-align: middle;
  margin-left: 2px;
  width: 50%;
}
.mes-sp-user .mes-sp-main-badge {
  text-align: left;
  margin-bottom: 3px;
  padding: 6px 10px;
}
.mes-sp-user .mes-sp-main-badge:last-child {
  margin-bottom: 1px;
}
.mes-sp-user .mes-sp-main-badge img {
  width: 16px;
  height: 16px;
  margin-right: 4px;
  vertical-align: middle;
}
.mes-sp-user .mes-sp-main-badge span {
  vertical-align: middle;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.mes-sp-user .mes-sp-avatar {
  margin: 0 4px 0 6px;
}
.mes-sp-user .mes-sp-avatar img {
  vertical-align: middle;
}
.mes-sp-user .mes-sp-family-tab-close img {
  top: -1px;
}

.mes-chat-container {
  border: 3px solid #223140;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.mes-chat {
  background-color: #273747;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mes-chat-body {
  background-color: #273747;
  padding: 5px;
  display: flex;
  align-items: stretch;
  height: 100%;
}

.mes-chat-messages-container {
  overflow-y: auto;
  padding: 0 5px 0 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.mes-chat-messages-load-previous {
  text-align: center;
}
.mes-chat-messages-load-previous button {
  background-color: #212d3d;
  color: #8f9498;
  font-size: 12px;
  padding: 6px 12px;
  margin-bottom: 10px;
}

.mes-chat-messages {
  height: 0;
}

.mes-chat-message {
  display: flex;
  margin-bottom: 10px;
  align-items: center;
}
.mes-chat-message:last-child {
  margin-bottom: 0;
}

.mes-chat-messages-date {
  text-align: center;
  color: #fff;
  font-size: 14px;
  margin-bottom: 10px;
  padding: 4px;
  background-color: #5d9f6b;
  border-radius: 3px;
}

.mes-chat-message-avatar {
  display: inline-block;
  vertical-align: middle;
  position: relative;
}
.mes-chat-message-avatar img {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  position: relative;
  top: 2px;
}

.mes-chat-message-bubble {
  display: inline-block;
  font-size: 12px;
  vertical-align: middle;
  border-radius: 5px;
}

.mes-chat-message-text {
  max-width: 500px;
  word-break: break-word;
  padding: 8px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  margin: 0;
  overflow-wrap: anywhere;
}

.mes-chat-message-image {
  padding: 8px;
  width: 150px;
}

.mes-chat-message-bubble-bottom {
  padding: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.mes-chat-message-time {
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 11px;
  text-align: center;
  display: inline-block;
  margin-left: 5px;
}

.mes-flag-message {
  display: flex;
  justify-self: flex-end;
  align-items: center;
  border-radius: 2px;
  cursor: pointer;
  float: right;
}
.mes-flag-message svg {
  width: 12px;
  height: 12px;
  vertical-align: middle;
  margin-left: 5px;
}

.mes-flag-message-flagged {
  -webkit-user-select: none;
          user-select: none;
  background-color: #ec5555;
  border-radius: 3px;
  padding: 2px 4px;
  color: white;
  margin-left: 5px;
}
.mes-flag-message-flagged svg {
  width: 10px;
  height: 10px;
  margin-right: 2px;
  position: relative;
  bottom: 1px;
}
.mes-flag-message-flagged svg path {
  fill: white !important;
}

.mes-flagged-message-text {
  font-size: 11px;
  display: inline-block;
}

.mes-chat-message-profile .mes-chat-message-bubble {
  background-color: #3d4d5d;
  color: #aeb2b7;
}
.mes-chat-message-profile .mes-chat-message-bubble-bottom {
  background-color: #354758;
}
.mes-chat-message-profile .mes-flag-message path {
  fill: #a2a2a2;
}
.mes-chat-message-profile .mes-chat-message-avatar {
  margin-right: 2px;
}
.mes-chat-message-profile .mes-chat-message-time {
  background-color: #3d4d5d;
}

.mes-chat-message-user {
  justify-content: flex-end;
}
.mes-chat-message-user .mes-chat-message-bubble {
  background-color: #223140;
  color: #aeb2b7;
}
.mes-chat-message-user .mes-chat-message-bubble-bottom {
  background-color: #1e2c3a;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}
.mes-chat-message-user .mes-flag-message path {
  fill: white;
}
.mes-chat-message-user .mes-chat-message-avatar {
  margin-left: 2px;
}
.mes-chat-message-user .mes-chat-message-time {
  background-color: #223140;
}

/*
  Start: Trigger message styles
*/

.mes-chat-message-profile.mes-chat-message-trigger .mes-chat-message-bubble {
  background-color: #273747 !important;
  border: 1px solid #5d9f6b !important;
}
.mes-chat-message-profile.mes-chat-message-trigger .mes-chat-message-bubble-bottom {
  background-color: #273747 !important;
}
.mes-chat-message-profile .mes-chat-message-trigger-tag {
  margin-left: 4px;
  color: white;
}

.mes-chat-alert {
  display: none;
  justify-content: space-between;
  align-items: center;
  background-color: #5d9f6b;
  margin: 0 5px 5px;
  border-radius: 5px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.25);
  padding: 4px;
  animation-duration: 0.5s;
  cursor: default;
}

.mes-chat-alert-content {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.mes-chat-alert-icon {
  width: 24px;
  height: 24px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 5px;
}

.mes-chat-alert-text {
  color: white;
  font-size: 12px;
  margin-left: 5px;
}

.mes-chat-alert-bold-text {
	font-weight: 700;
}

.mes-chat-alert-close {
  display: flex;
  align-items: center;
  padding: 5px;
  cursor: pointer;
}
.mes-chat-alert-close svg {
  width: 8px;
  height: 8px;
}
.mes-chat-alert-close svg path {
  fill: white;
}

.mes-chat-emojis {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #273747;
  margin: 0 5px 5px;
  border: 2px solid #3b4b5c;
  border-radius: 5px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.25);
  padding: 2px;
  animation-duration: 0.5s;
  cursor: pointer;
}

.mes-chat-emojis-content {
  display: flex;
  flex-direction: flex;
  justify-content: center;
  width: 100%;
}

.mes-chat-emojis-text {
  display: flex;
	flex-direction: flex;
  justify-content: space-between;
  align-items: center;
  color: black;
  font-size: 16px;
  width: 100%;
}

.mes-chat-emojis-open {
  display: flex;
  align-items: center;
  padding: 5px;
  cursor: pointer;
}
.mes-chat-emojis-open svg {
  width: 17px;
  height: 17px;
}

.mes-chat-emoji {
	/*display: flex;*/
	margin: auto;
	padding: auto;
}

.mes-chat-footer {
  background-color: #344555;
  padding: 5px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.mes-chat-footer-top {
  display: flex;
  width: 100%;
}

.mes-chat-message-textarea-container {
  display: flex;
  vertical-align: middle;
  flex-grow: 2;
}

.mes-chat-message-textarea {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  width: 100%;
  height: 100%;
}

.mes-chat-footer textarea,
.mes-chat-footer input {
  padding: 6px;
  background-color: #273747;
  border-radius: 5px;
  color: #aeb2b7;
  resize: none;
  font-size: 13px;
}
.mes-chat-footer textarea::placeholder,
.mes-chat-footer input::placeholder {
  color: #676e76;
  opacity: 1;
}

.mes-chat-message-textarea-controls-wrapper {
  background-color: #273747;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5px;
  vertical-align: middle;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  -webkit-user-select: none;
          user-select: none;
}

.mes-chat-search-textarea, .mes-chat-controls {
  display: inline-flex;
  vertical-align: middle;
}

.mes-chat-message-textarea-controls {
  display: flex;
  margin-bottom: 4px;
}
.mes-chat-message-textarea-controls svg {
  width: 25px;
  height: 25px;
  padding: 5px;
  background: #223140;
  cursor: pointer;
  border-radius: 5px;
  margin-right: 4px;
}
.mes-chat-message-textarea-controls svg:nth-child(3) {
  margin-right: 0;
  width: 50px;
  height: 24px;
  background-color: #344555;
  transition: all 0.2s ease-in-out;
}
.mes-chat-message-textarea-controls svg:nth-child(3):hover {
  background-color: #3e4f5f;
}

.mes-chat-message-textarea-charactercount {
  background-color: #223140;
  padding: 4px;
  text-align: center;
  border-radius: 5px;
  font-size: 12px;
  color: #697178;
  font-weight: 600;
}

.mes-chat-footer-bottom {
  display: flex;
  align-items: center;
  margin-top: 5px;
}

.mes-chat-search-input {
  display: flex;
  margin: 0 5px;
  width: 100%;
}
.mes-chat-search-input input {
  width: 100%;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  vertical-align: middle;
  margin-left: -4px;
}

.mes-chat-search-input-icon {
  background-color: #273747;
  display: inline-block;
  height: 27px;
  width: auto;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  vertical-align: middle;
  padding: 0 3px 0 6px;
}
.mes-chat-search-input-icon img {
  width: 12px;
  height: 12px;
  position: relative;
  top: 4.5px;
}

.mes-chat-controls-bubble {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #435568;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mes-chat-controls-bubble img {
  width: 12px;
  height: 12px;
}

.mes-chat-controls-bubble-pause, .mes-chat-controls-bubble-stop, .mes-chat-controls-bubble-search {
  background-color: #5d9f6b;
}
.mes-chat-controls-bubble-pause img, .mes-chat-controls-bubble-stop img, .mes-chat-controls-bubble-search img {
  width: 10px;
  height: 10px;
}

.mes-chat-controls-bubble-send-attachment, .mes-chat-controls-bubble-pause, .mes-chat-controls-bubble-search {
  margin-right: 3px;
}

.mes-chat-send-message-btn-disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.mes-modal-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 99999;
}

.mes-modal-image-container {
  background-color: transparent;
  display: flex;
  flex-direction: column;
  width: unset;
  margin-top: 30px;
  justify-content: space-between;
  align-items: center;
  
}
.mes-large-image {
	margin: auto;
}
.mes-large-img {
	max-width: 650px;
	max-height: 600px;
}


.mes-modal {
  background-color: #ffffff;
  display: none;
  width: 500px;
  margin: 60px auto 0;
  border-radius: 8px;
}
.mes-modal textarea {
  margin-top: 10px;
  resize: none;
  padding: 10px !important;
}
.mes-modal textarea::placeholder {
  color: #676e76;
  opacity: 1;
}
.mes-modal select, .mes-modal input, .mes-modal textarea {
  display: block;
  margin: 5px auto;
  width: 350px;
  padding: 5px;
  border-radius: 5px;
  background-color: #273747;
  color: #aeb2b7;
}
.mes-modal select:focus, .mes-modal input:focus, .mes-modal textarea:focus {
  outline: 0;
}

.mes-modal-send-attachment .mes-modal,
.mes-modal-received-attachments .mes-modal,
.mes-archived-urgent-notes .mes-modal {
  width: 80vw;
  max-width: 1000px;
  min-width: 600px;
}

.mes-modal-send-attachment .mes-attachment, .mes-modal-received-attachments .mes-attachment {
  width: 140px;
  height: 140px;
  border-radius: 5px;
}
.mes-modal-send-attachment .mes-attachments-container, .mes-modal-received-attachments .mes-attachments-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: #485869;
  border-radius: 5px;
  padding: 5px;
}
.mes-modal-send-attachment .mes-attachment-container, .mes-modal-received-attachments .mes-attachment-container {
  -webkit-user-select: none;
          user-select: none;
  display: flex;
  border-radius: 5px;
  margin: 5px;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.065);
  position: relative;
  transition: all 0.2s ease-in-out;
}
.mes-modal-send-attachment .mes-attachment-container span, .mes-modal-received-attachments .mes-attachment-container span {
  position: absolute;
  bottom: 4px;
  left: 14.5px;
  font-size: 11px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 5px;
  padding: 2px 6px;
}

.mes-modal-received-attachments .mes-attachments-container {
  max-height: 25vh;
  overflow-y: auto;
}
.mes-modal-received-attachments .mes-attachment {
  cursor: default;
}

.mes-modal-send-attachment .mes-attachments-title {
  text-align: left;
  color: #a2a2a2;
  font-size: 14px;
  font-weight: 500;
  margin: 15px;
}
.mes-modal-send-attachment .mes-attachments-title:first-child {
  margin-top: 0;
}
.mes-modal-send-attachment .mes-attachments {
  overflow-y: auto;
  padding: 0 5px 5px;
  max-height: 60vh;
}
.mes-modal-send-attachment .mes-attachment-selected {
  opacity: 1;
}

.mes-attachment-sent {
 border: 5px solid #212d3d;
}

.mes-modal-pause-conversation .mes-modal-head img, .mes-modal-stop-conversation .mes-modal-head img {
  width: 14px;
  height: 14px;
}

.mes-modal-pause-conversation .mes-modal-btn-pause,
.mes-modal-stop-conversation .mes-modal-btn-stop,
.mes-flag-message .mes-modal-btn-flag {
  background-color: #ec5555;
  color: #fff;
}

.mes-modal-btn-disabled {
  background: #1c2531 !important;
  cursor: not-allowed !important;
  color: #a2a2a2 !important;
}

.mes-modal-btn-send {
  background: #5d9f6b;
  cursor: pointer;
  color: #fff;
  transition: all 0.2s ease-in-out;
}

.mes-modal-head {
  background-color: #212d3d;
  color: #ffffff;
  padding: 15px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  display: flex;
  align-items: center;
}

.mes-modal-head-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  position: relative;
  top: -1px;
}

.mes-modal-subhead {
  background-color: #212d3d;
  color: #ffffff;
		padding: 5px;
		display: flex;
  align-items: center;
}

.mes-modal-title {
  text-transform: capitalize;
  font-weight: 500;
  font-size: 14px;
  display: inline-block;
}

.mes-modal-body {
  background-color: #3b4b5c;
  padding: 15px;
  text-align: center;
      /*border-radius: 8px;*/
}

.mes-modal-body-text {
  color: #a2a2a2;
  margin: 10px;
  font-size: 14px;
}

.mes-modal-footer {
  padding: 10px;
  background-color: #212d3d;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  text-align: center;
}
.mes-modal-footer button {
  padding: 5px 20px;
  border: 0;
  margin-right: 5px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
}
.mes-modal-footer button:last-child {
  margin-right: 0;
}
.mes-modal-footer button:focus {
  outline: 0;
}

.mes-modal-report-user textarea {
  width: 100%;
  resize: none;
  border-radius: 5px;
  padding: 5px;
  background-color: #273747;
  transition: all 0.2s ease-in-out;
}
.mes-modal-report-user textarea:focus {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.mes-modal-btn-edit {
  background-color: #495867;
  color: #cfd4da;
}

.mes-modal-btn-add {
  background-color: #5d9f6b;
  color: #fff;
}

.mes-modal-btn-report, .mes-modal-btn-remove {
  background-color: #ec5555;
  color: #fff;
}

/**

Start: Notification modal styles

**/

.mes-modal-body-follow-up,
.mes-modal-body-new-user,
.mes-modal-body-ar-view,
.mes-modal-body-ar-like,
.mes-modal-body-ar-favorite,
.mes-modal-body-reply-confirmation,
.mes-modal-body-pause-confirmation,
.mes-modal-body-stop-confirmation {
  display: none;
}

.mes-modal-notification .mes-modal-btn {
  background-color: #1c2531;
  color: #a2a2a2;
}

.mes-modal-body-follow-up > div,
.mes-modal-body-new-user > div,
.mes-modal-body-ar-view > div,
.mes-modal-body-ar-like > div,
.mes-modal-body-ar-favorite > div,
.mes-modal-body-reply-confirmation > div, 
.mes-modal-body-pause-confirmation > div, 
.mes-modal-body-stop-confirmation > div   {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #495869;
  color: white;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 4px;
  margin: 10px 0;
}

.mes-modal-body-follow-up img, 
.mes-modal-body-new-user img,
.mes-modal-body-ar-view img, .mes-modal-body-ar-view svg,
.mes-modal-body-ar-like img, .mes-modal-body-ar-like svg,
.mes-modal-body-ar-favorite img, .mes-modal-body-ar-favorite svg,
 .mes-modal-body-reply-confirmation img,
 .mes-modal-body-pause-confirmation img,
 .mes-modal-body-stop-confirmation img {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

/**

End: Notification modal styles

**/

.mes-archived-notes {
  text-align: left;
  max-height: 60vh;
  overflow-y: auto;
  background-color: #485869;
  border-radius: 5px;
  padding: 5px;
}

.mes-archived-urgent-note {
  margin: 4px;
}
.mes-archived-urgent-note .mes-un-text {
  padding: 2px 4px;
  margin: 0;
}
.mes-archived-urgent-note .mes-un-icon-container svg {
  width: 8px;
  height: 8px;
}

.mes-select-emoji-overlay, .mes-select-gift-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 999;
  display: none;
}

.mes-select-emoji,
.mes-select-gift {
  z-index: 9999;
  display: none;
}

.mes-select-emoji[data-show],
.mes-select-gift[data-show] {
  display: block;
}

.mes-select-emoji-head {
  padding: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  background-color: #3b4b5c;
}
.mes-select-emoji-head img {
  padding: 5px;
  cursor: pointer;
  width: 20px;
  height: 20px;
}
.mes-select-emoji-head img:first-child {
  transform: rotate(-90deg);
}
.mes-select-emoji-head img:last-child {
  transform: rotate(90deg);
}

.mes-select-emoji-title {
  color: #fff;
  font-size: 14px;
  margin: 5px 0;
  text-transform: capitalize;
}

.mes-select-emoji-body {
  background: #273747;
  padding: 5px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.mes-select-emoji-section {
  justify-content: center;
  display: none;
  width: 250px;
  height: 200px;
  overflow-y: scroll;
  flex-wrap: wrap;
}
.mes-select-emoji-section:first-child {
  display: flex;
}

.mes-emoji {
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  font-size: 16px;
  width: 35px;
  height: 35px;
  background: #223140;
  margin: 2px;
  border-radius: 5px;
  -webkit-user-select: none;
          user-select: none;
  transition: all 0.2s ease-in-out;
}
.mes-emoji:hover {
  background: #202f3e;
}

.mes-select-gift {
  padding: 5px;
  border-radius: 5px;
  background: #273747;
}

.mes-gifts {
  width: 250px;
  height: 200px;
  overflow-y: scroll;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: #273747;
}

.mes-gift {
  display: inline-block;
  padding: 10px;
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
  background-color: #223140;
  margin: 5px;
  border-radius: 5px;
  transition: all 0.2s ease-in-out;
}
.mes-gift:hover {
  background: #202f3e;
}
.mes-gift img {
  width: 50px;
  height: 50px;
  -webkit-user-select: none;
          user-select: none;
}
.mes-gift img:hover {
  transform: scale(1.1);
}

::-webkit-scrollbar {
  width: 4px;
  cursor: grab;
}

::-webkit-scrollbar-thumb {
  cursor: grab !important;
  background-color: #5d9f6b;
  outline: 1px solid slategrey;
  border-radius: 5px;
}

::-webkit-scrollbar-track {
  background-color: #344555;
  border-radius: 5px;
  cursor: grab;
}

/*

1/19/2021
Preview Attachment

*/
.mes-preview-attachment {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #223140;
  padding: 5px 10px;
  cursor: pointer;
  position: relative;
}

.mes-preview-attachment p {
  color: #aeb2b7;
  font-size: 11px;
  margin-bottom: 4px;
}

.mes-preview-attachment:hover .mes-preview-attachment-close {
  transform: scale(1.1) translateX(-2px);
}
.mes-preview-attachment:hover img {
  transform: scale(1.1);
  opacity: 0.5
}


.mes-preview-attachment img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  transition: all 0.2s ease-in-out
}

.mes-preview-attachment-close {
  box-shadow: 0 2px 35px rgba(0,0,0,0.5);
  display: flex;
  border-radius: 50%;
  background-color: red;
  padding: 3px;
  position: absolute;
  bottom: 16px;
  right: 10px;
  transition: all 0.2s ease-in-out;
}


.mes-preview-attachment-close svg {
  width: 6px;
  height: 6px;
}

.mes-nav-badge-status-high {
	background-color: #E22117;
}

.mes-nav-badge-status-mid {
	background-color: #F2680A;
}

.mes-nav-badge-status-low {
	background-color: #25D843;
}

@media screen and (max-width: 4096px) {
  .mes-sp {
    max-width: 750px;
  }
  
  .mes-sp-section-group {
	width: 700px;
}

    .mes-sp-tags {
	max-width: 750px;
}

.mes-large-img {
	max-width: 1200px;
	max-height: 1400px;
}

}
@media screen and (max-width: 3200px) {
  .mes-sp {
    max-width: 660px;
  }
  
  .mes-sp-section-group {
	width: 620px;
}

    .mes-sp-tags {
	max-width: 660px;
}

.mes-large-img {
	max-width: 1100px;
	max-height: 1300px;
}

}
@media screen and (max-width: 2560px) {
  .mes-sp {
    max-width: 580px;
  }
  
  .mes-sp-section-group {
	width: 540px;
}

    .mes-sp-tags {
	max-width: 580px;
}

.mes-large-img {
	max-width: 950;
	max-height: 950px;
}

}
@media screen and (max-width: 2220px) {
  .mes-sp {
    max-width: 510px;
  }
  
  .mes-sp-section-group {
	width: 470px;
}

    .mes-sp-tags {
	max-width: 510px;
}

}
@media screen and (max-width: 1920px) {
  .mes-sp {
    max-width: 450px;
  }
  
  .mes-sp-section-group {
	width: 410px;
}

    .mes-sp-tags {
	max-width: 450px;
}
.mes-large-img {
	max-width: 850px;
	max-height: 750px;
}

}

@media screen and (max-width: 1750px) {
  .mes-sp {
    max-width: 400px;
  }
  .mes-sp-user .mes-sp-main-bubbles {
  margin-left: 30%;
}

  .mes-sp-section-group {
	width: 360px;
}

    .mes-sp-tags {
	max-width: 400px;
}
.mes-large-img {
	max-width: 750px;
	max-height: 780px;
}
  .mes-chat-emojis-text {
	  font-size: 15px;
  }
  .mes-chat-emojis-open svg {
  width: 16px;
  height: 16px;
}
  .mes-sp-section-group {
	width: 260px;
}

}
@media screen and (max-width: 1500px) {
  .mes-sp {
    max-width: 350px;
  }
  .mes-sp-user .mes-sp-main-bubbles {
  margin-left: 25%;
}

  .mes-sp-section-group {
	width: 310px;
}

    .mes-sp-tags {
	max-width: 350px;
}

.mes-large-img {
	max-width: 650px;
	max-height: 500px;
}
  .mes-chat-emojis-text {
	  font-size: 11px;
  }
  .mes-chat-emojis-open svg {
  width: 14px;
  height: 14px;
}

}
@media screen and (max-width: 1350px) {
  .mes-sp {
    max-width: 300px;
  }
  .mes-sp-user .mes-sp-main-bubbles {
  margin-left: 25%;
}
  .mes-chat-emojis-text {
	  font-size: 11px;
  }
  .mes-chat-emojis-open svg {
  width: 14px;
  height: 14px;
}
  .mes-sp-section-group {
	width: 260px;
}

  .mes-sp-tags {
	max-width: 300px;
}

  .mes-chat-message-image {
    width: 150px;
  }
  
  .mes-large-img {
	max-width: 620px;
	max-height: 500px;
}

}

@media screen and (max-width: 1250px) {
  .mes-chat-message-bubble {
    max-width: 400px;
  }
  
    .mes-large-img {
	max-width: 600px;
	max-height: 500px;
}
  .mes-chat-emojis-text {
	  font-size: 9px;
  }
  .mes-chat-emojis-open svg {
  width: 13px;
  height: 13px;
}

}
@media screen and (max-width: 1150px) {
  .mes-chat-message-bubble {
    max-width: 350px;
  }
  .mes-chat-emojis-text {
	  font-size: 8.5px;
  }
  .mes-chat-emojis-open svg {
  width: 13px;
  height: 13px;
}

    .mes-large-img {
	max-width: 560px;
	max-height: 460px;
}

}
@media screen and (max-width: 1100px) {
  .mes-sp-section-text {
    line-height: 17px;
  }

  .mes-sp {
    max-width: 280px;
  }
  .mes-sp-section-group {
	width: 240px;
}

  .mes-sp-tags {
	max-width: 280px;
}

  .mes-chat-emojis-text {
	  font-size: 8px;
  }
  .mes-chat-emojis-open svg {
  width: 12px;
  height: 12px;
}

  .mes-chat-section-body {
    padding: 10px 5px 0 5px;
  }

  .mes-chat-message-bubble {
    max-width: 330px;
  }
}
@media screen and (max-width: 1050px) {
  .mes-chat-footer textarea {
    font-size: 13px;
  }
}
@media screen and (max-width: 1000px) {
  .mes-chat-emojis-text {
	  font-size: 9px;
  }
  .mes-chat-emojis-open svg {
  width: 13px;
  height: 13px;
}

  .mes-chat-footer textarea {
    font-size: 12px;
  }

  .mes-chat-message-image {
    width: 115px;
  }

  .mes-chat-message-bubble {
    max-width: 100%;
  }

  .mes-chat-message-avatar img {
    width: 25px;
    height: 25px;
  }
}
@media screen and (max-width: 950px) {
  .mes-chat-message-textarea-controls {
    margin-bottom: 2px;
  }
  .mes-chat-message-textarea-controls svg {
    margin-right: 2px;
  }
}
@media screen and (max-width: 900px) {
  .mes-chat-message-textarea-controls svg:nth-child(3) {
    width: 30px;
  }

  .mes-chat-footer textarea {
    padding: 6px;
  }

  .mes-chat-footer textarea,
.mes-chat-footer input {
    font-size: 13px;
  }
}
@media screen and (max-width: 850px) {
  .mes-sp {
    max-width: 260px;
  }
  .mes-sp-tags {
	max-width: 260px;
}

.mes-sp-section-group {
	width: 220px;
}

  .mes-chat-message-image {
    width: 90px;
  }

  .mes-sp-user .mes-sp-main-bubbles {
	right: 210px;
  }

  .mes-chat-message-avatar img {
    width: 20px;
    height: 20px;
  }

  .mes-chat-message {
    margin-bottom: 5px;
  }
}
@media screen and (max-width: 780px) {
  .mes-chat-message-textarea-controls svg:nth-child(3) {
    width: auto;
  }

  .mes-chat-message-textarea-controls-wrapper {
    padding: 0 5px 0 0;
  }
}
@media screen and (max-width: 768px) {
  .mes-chat-message-textarea-controls {
    margin-bottom: 4px;
  }
  .mes-chat-message-textarea-controls svg {
    padding: 0;
    width: 16px;
    height: 16px;
    margin-right: 5px;
  }
  .mes-chat-message-textarea-controls svg:nth-child(3) {
    width: 17px;
    height: 17px;
    background: rgba(0, 0, 0, 0);
    margin-right: 0;
  }
}
@media screen and (max-width: 750px) {
  .mes-sp {
    max-width: 230px;
  }

  .mes-sp-tags {
	max-width: 230px;
}

.mes-sp-section-group {
	width: 190px;
}

  .mes-sp-user .mes-sp-main-badge {
    padding: 6px;
  }

  .mes-sp-family-tab-name {
    font-size: 11px;
  }

  .mes-sp-family-tab-icon {
    width: 12px;
    height: 12px;
    margin-right: 2px;
  }

  .mes-sp-family-tab-amount {
    margin-left: 2px;
  }
}
@media screen and (max-width: 700px) {
  .mes-sp-main-body {
    padding: 6px 5px;
  }

  .mes-sp-family-tab {
    padding: 6px 4px;
  }
}

@media screen and (max-width: 675px) {
  .mes-sp {
    max-width: 220px;
  }

  .mes-sp-tags {
	max-width: 220px;
}

.mes-sp-section-group {
	width: 180px;
}

  .mes-sp-user .mes-sp-badge img {
    width: 14px;
    height: 14px;
  }

  .mes-chat-footer textarea, .mes-chat-footer input {
    font-size: 12px;
  }
}

.mes-modal-divider {
	border:0px;
	border-top: 5px solid #ffffff;
	margin: 20px 0px;
}