/* HX Global Pay V79 - user support images and 6,000-character composer */
.support-chat-screen--images-v79 .support-message > div {
  min-width: 0;
}

.support-chat-screen--images-v79 .support-message p {
  white-space: pre-wrap;
}

.support-message__image {
  display: block;
  width: min(230px, 64vw);
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(207, 220, 236, 0.94);
  border-radius: 14px;
  background: #eef5ff;
  box-shadow: 0 7px 20px rgba(24, 81, 151, 0.12);
  cursor: zoom-in;
}

.support-message.sent .support-message__image {
  border-bottom-right-radius: 4px;
}

.support-message.received .support-message__image {
  border-bottom-left-radius: 4px;
}

.support-message__image img {
  display: block;
  width: 100%;
  max-height: 290px;
  object-fit: cover;
}

.support-message__image + p,
.support-message__image-loading + p {
  margin-top: 6px;
}

.support-message__image-loading {
  display: inline-flex;
  min-height: 54px;
  padding: 10px 13px;
  border: 1px dashed #c9d9ec;
  border-radius: 12px;
  color: #7d8da1;
  background: #f5f9ff;
  font-size: 10px;
  align-items: center;
}

.support-composer.support-composer--images-v79 {
  display: block;
  min-height: 70px;
  padding: 8px 12px;
}

.support-composer__preview {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 30px;
  min-width: 0;
  margin-bottom: 8px;
  padding: 7px;
  border: 1px solid #dbe8f7;
  border-radius: 12px;
  background: #f6faff;
  align-items: center;
  gap: 9px;
}

.support-composer__preview img {
  width: 48px;
  height: 48px;
  border-radius: 9px;
  object-fit: cover;
}

.support-composer__preview span,
.support-composer__preview strong,
.support-composer__preview small {
  display: block;
  min-width: 0;
}

.support-composer__preview strong {
  color: #2c4058;
  font-size: 11px;
}

.support-composer__preview small {
  margin-top: 3px;
  overflow: hidden;
  color: #8998aa;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-composer__preview button {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #65768a;
  background: #e7eef7;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  place-items: center;
}

.support-composer__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 42px;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.support-composer__attach {
  display: inline-flex;
  height: 38px;
  padding: 0 9px;
  border: 1px solid #d9e6f5;
  border-radius: 19px;
  color: #147cef;
  background: #edf6ff;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.support-composer__attach input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.support-composer__attach span {
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
}

.support-composer__attach b {
  font-size: inherit;
}

.support-composer--images-v79 .support-composer__input {
  height: 46px;
  min-width: 0;
}

.support-composer--images-v79 .support-composer__input textarea {
  display: block;
  width: 100%;
  height: 46px;
  min-height: 46px;
  max-height: 104px;
  padding: 11px 54px 9px 14px;
  resize: none;
  overflow-y: auto;
  border: 1px solid #e0e8f2;
  border-radius: 23px;
  outline: 0;
  color: #2d394b;
  background: #f5f7fa;
  font: inherit;
  font-size: 15px;
  line-height: 23px;
}

.support-composer--images-v79 .support-composer__input textarea:focus {
  border-color: #69aaf5;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(22, 128, 244, 0.1);
}

.support-composer--images-v79 .support-composer__input textarea::placeholder {
  color: #9aa3af;
  font-size: 13px;
}

.support-composer--images-v79 .support-composer__input > span {
  top: auto;
  right: 12px;
  bottom: 7px;
  font-size: 7.5px;
  pointer-events: none;
}

.support-composer__row > button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #278dfa, #0875ef);
  box-shadow: 0 7px 15px rgba(9, 112, 235, 0.2);
  cursor: pointer;
  place-items: center;
}

.support-composer__row > button:disabled {
  color: #a3adb9;
  background: #e8edf3;
  box-shadow: none;
  cursor: default;
}

@media (max-width: 359px) {
  .support-composer.support-composer--images-v79 {
    padding-inline: 8px;
  }

  .support-composer__row {
    grid-template-columns: 36px minmax(0, 1fr) 40px;
    gap: 6px;
  }

  .support-composer__attach {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  .support-composer__attach b {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

@media (min-width: 520px) {
  .support-message__image {
    width: min(270px, 55vw);
  }
}

