/* Stage 3, 12.2: clear only the surface behind user messages. */

/* Chat on the home page: the row and its text bubble both have old fills. */
#chat #chat_messages .chat_message,
#chat #chat_messages .chat_message .message,
#chat #chat_messages .chat_message .with_code {
	background: transparent !important;
	background-image: none !important;
}

#chat #chat_messages .chat_message .with_code {
	border-color: rgba(var(--fox-rgb-as3l14, 181, 113, 242), .3);
	border-left-color: rgba(var(--fox-rgb-as4l16, 209, 152, 255), .57);
	box-shadow: none;
}

/* Private messages, including the current user's own messages. */
.fox-messages-page #place_for_messages #messages .im_message,
.fox-messages-page #place_for_messages #messages .im_message > div,
.fox-messages-page #place_for_messages #messages .im_message.is-own > div,
.fox-messages-page #place_for_messages #messages .im_message .with_code {
	background: transparent !important;
	background-image: none !important;
}

.fox-messages-page #place_for_messages #messages .im_message > div {
	border-color: rgba(var(--fox-rgb-as4l14, 187, 112, 249), .36);
	box-shadow: none;
}
.fox-messages-page #place_for_messages #messages .im_message.is-own > div {
	border-color: rgba(var(--fox-rgb-as4l16, 210, 146, 255), .52);
}

/* The first forum post and all replies use the same answer structure. */
.topic-answers div[id^="answer"] .top-area,
.topic-answers div[id^="answer"] .center-area,
.topic-answers div[id^="answer"] .center-area .right-side,
.topic-answers div[id^="answer"] .center-area .right-side > .with_code:not(.signature) {
	background: transparent !important;
	background-image: none !important;
}

.topic-answers div[id^="answer"] .top-area {
	border-top-color: rgba(var(--fox-rgb-as3l14, 186, 110, 244), .28);
	border-right-color: rgba(var(--fox-rgb-as3l14, 186, 110, 244), .28);
	border-bottom-color: rgba(var(--fox-rgb-as3l14, 186, 110, 244), .28);
	border-left-color: rgba(var(--fox-rgb-as4l15, 202, 137, 255), .55);
	color: var(--fox-tone-as2l18, #eadcf6);
}
.topic-answers div[id^="answer"] .top-area .right-side a { color: var(--fox-tone-as2l15, #c7addd); }

.topic-answers div[id^="answer"] .center-area .right-side > .with_code:not(.signature) {
	min-width: 0;
	max-width: 100%;
	border-left: 1px solid rgba(var(--fox-rgb-as3l14, 184, 109, 244), .32);
	box-shadow: none;
	overflow-wrap: anywhere;
}

@media (max-width: 470px) {
	#chat #chat_messages .chat_message .with_code,
	.fox-messages-page #place_for_messages #messages .im_message .with_code,
	.topic-answers div[id^="answer"] .center-area .right-side > .with_code:not(.signature) {
		max-width: 100%;
	}
}
