/* Rabbit FIX P12 - read-message bubble wrapping only.
   Does not change textarea/input or Chat send/upload logic. */
.rabbit-chat-fixed .chat-line{min-width:0}
.rabbit-chat-fixed .chat-line .bubble{
  min-width:0;
  max-width:min(86%,620px)!important;
  overflow-wrap:anywhere;
  word-wrap:break-word;
  word-break:break-word;
  white-space:normal;
}
.rabbit-chat-fixed .chat-line .bubble>div:not(.meta){
  min-width:0;
  max-width:100%;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.rabbit-chat-fixed .chat-line .bubble a{
  max-width:100%;
  overflow-wrap:anywhere;
  word-break:break-all;
}
.rabbit-chat-fixed .chat-line.theirs .chat-other-stack{
  min-width:0;
  max-width:min(86%,620px)!important;
}
.rabbit-chat-fixed .chat-line.theirs .chat-other-stack .bubble{max-width:100%!important}
.rabbit-chat-fixed .chat-line.mine .bubble{max-width:min(88%,620px)!important}

/* Admin official chat: same readable behavior for sent/received message bubbles. */
.support-msg{
  min-width:0;
  max-width:min(82%,680px)!important;
  overflow-wrap:anywhere;
  word-wrap:break-word;
  word-break:break-word;
}
.support-msg .support-msg-body{
  min-width:0;
  max-width:100%;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* Promotion button state: long Thai label may wrap to two neat lines on small phones. */
.post-actions .rabbit-promo-locked,
.secondary-post-actions .rabbit-promo-locked{
  opacity:.62!important;
  cursor:default!important;
  pointer-events:none!important;
  font-size:11px!important;
  line-height:1.25!important;
  white-space:normal!important;
  min-height:40px;
  padding:7px 6px!important;
  background:#f5f2e9!important;
  color:#766f61!important;
}
.post-actions .rabbit-promo-locked.used{background:#fff5d5!important;color:#775a16!important}

@media(max-width:760px){
  .rabbit-chat-fixed .chat-line.mine .bubble{max-width:90%!important}
  .rabbit-chat-fixed .chat-line.theirs .chat-other-stack{max-width:calc(100% - 40px)!important}
  .rabbit-chat-fixed .chat-line.theirs .bubble{max-width:100%!important}
  .support-msg{max-width:90%!important}
}
