.chat-wrap.custom-border-active .message {
  border: var(--custom-border-space) solid transparent !important;
  border-image: none !important;
  border-radius: var(--custom-border-radius) !important;
  min-height: var(--bubble-min-height) !important;
  outline: none !important;
}
.chat-wrap.custom-border-active .message-border-layer {
  inset: calc(-1 * var(--custom-border-space)) !important;
  border: 0 !important;
  border-image: none !important;
  background-color: transparent !important;
  background-image: var(--custom-border-image) !important;
  background-position: 0 0 !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
  border-radius: inherit !important;
  box-shadow: none !important;
  outline: none !important;
}
.chat-wrap.custom-border-active .message-background-layer { border-radius: inherit !important; }
.chat-wrap.custom-border-active .message-chat-content,
.chat-wrap.custom-border-active .message-content,
.chat-wrap.custom-border-active .nickname-tag {
  z-index: max(var(--layer-z-text, 6), calc(var(--layer-z-bg, 1) + 1)) !important;
}
