/* FYD Feedback & Support 1.7.4 — sticker title, size and chat layout */
@media (min-width: 681px) {
  .fyd-support-panel {
    width: min(var(--fyd-support-panel-width, 680px), calc(100vw - 28px)) !important;
    max-width: none !important;
  }
  .fyd-support-body {
    padding: 20px 24px !important;
  }
  .fyd-support-messages {
    min-height: 330px !important;
    max-height: calc(100vh - 365px) !important;
    padding-right: 8px !important;
  }
  [data-fyd-support-view="thread"] {
    min-height: calc(100vh - 270px);
  }
}

.fyd-support-thread-head.is-sticker-thread h3 {
  display: none !important;
}

.fyd-support-thread-head.is-sticker-thread > div > span {
  margin-bottom: 2px;
}

.fyd-sticker-message:not(.is-compact) {
  width: var(--fyd-sticker-size, 174px) !important;
  max-width: min(var(--fyd-sticker-size, 174px), 100%) !important;
}

.fyd-sticker-message:not(.is-compact) .fyd-sticker-message__art {
  width: var(--fyd-sticker-size, 174px) !important;
  height: var(--fyd-sticker-size, 174px) !important;
  max-width: 100% !important;
}

.fyd-sticker-size-field {
  align-self: end;
}

.fyd-sticker-size-control,
.fyd-support-chat-width-field > span:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fyd-sticker-size-control input,
.fyd-support-chat-width-field input {
  width: 108px !important;
}

.fyd-sticker-size-control output,
.fyd-support-chat-width-field output {
  min-width: 56px;
  color: #77585b;
  font-size: 12px;
  font-weight: 700;
}

.fyd-support-chat-width-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 330px;
  padding: 9px 12px;
  border: 1px solid #e1d8d9;
  border-radius: 12px;
  background: #fffafa;
}

.fyd-support-chat-width-field > span:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fyd-support-chat-width-field small {
  color: #777;
  font-weight: 400;
}

@media (max-width: 680px) {
  .fyd-support-panel {
    width: 100% !important;
  }
  .fyd-sticker-message:not(.is-compact) {
    width: min(var(--fyd-sticker-size, 164px), 72vw) !important;
  }
  .fyd-sticker-message:not(.is-compact) .fyd-sticker-message__art {
    width: min(var(--fyd-sticker-size, 164px), 72vw) !important;
    height: min(var(--fyd-sticker-size, 164px), 72vw) !important;
  }
  .fyd-support-chat-width-field {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    align-items: flex-start;
    flex-direction: column;
  }
}
