/**
 * BookingWP bbPress.
 */

#bbpress-forums {
	clear: both;
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--wp--preset--color--text, #2a3139);
}

#bbpress-forums ul,
#bbpress-forums li {
	list-style: none;
	margin: 0;
	padding: 0;
}

#bbpress-forums a {
	color: inherit;
	text-decoration: none;
}

#bbpress-forums a:hover {
	color: var(--wp--preset--color--accent, #f5405b);
}

/* Search + crumbs live in the bbPress block template hero. */
#bbpress-forums .bbp-search-form,
.bbp-breadcrumb,
#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer,
body:not(.bbp-search) #bbpress-forums .bbp-reply-header,
body:not(.bbp-search) #bbpress-forums .bbp-topic-header,
#bbpress-forums .bbp-reply-ip,
#bbpress-forums .bbp-topic-ip,
#bbpress-forums li.bbp-forum-topic-count,
#bbpress-forums li.bbp-topic-voice-count,
#bbpress-forums li.bbp-forum-reply-count,
#bbpress-forums li.bbp-topic-reply-count,
#bbpress-forums li.bbp-topic-freshness,
.bbp-pagination-count,
.bbp-topic-tags,
.form-allowed-tags,
#bbpress-forums fieldset.bbp-form p:has(> input#bbp_topic_tags) {
	display: none;
}

div.bbp-template-notice {
	margin: 0 0 1rem;
	padding: 0.85rem 1.1rem;
	border: 1px solid var(--wp--custom--color--outline-variant, #eceef1);
	border-radius: 10px;
	background: var(--wp--custom--color--surface-container, #f7f8f9);
	color: var(--wp--preset--color--muted, #5b6570);
	font-size: 0.9375rem;
}

div.bbp-template-notice p,
div.bbp-template-notice ul {
	margin: 0 !important;
	padding: 0;
	list-style: none;
}

div.bbp-template-notice a {
	color: var(--wp--preset--color--accent, #f5405b);
	font-weight: 600;
}

/* Orphaned outside the support rail; desktop already drops them via display:contents. */
#favorite-toggle,
#subscription-toggle {
	display: none;
}

/* Lists */

#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-search-results {
	margin: 0 0 1.5rem;
}

body.bbp-search #bbpress-forums :is(.bbp-topic-header, .bbp-reply-header, .bbp-forum-header) {
	padding: 0.55rem 0;
}

body.bbp-search #bbpress-forums :is(.bbp-topic-title, .bbp-reply-title, .bbp-forum-title) > a {
	font-weight: 600;
}

body.bbp-search #bbpress-forums .bbp-topic-title-meta {
	margin-top: 0.25rem;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted, #5b6570);
}

.bbp-docs-search {
	margin: 0 0 1.5rem;
}

.bbp-search-section__title {
	margin: 0 0 0.65rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted, #5b6570);
}

.bbp-docs-search + :is(.bbp-search-section__title, .bbp-template-notice) {
	margin-top: 1.25rem;
}

.bbp-docs-search > ul {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.bbp-docs-search__link {
	font-weight: 600;
	color: var(--wp--preset--color--accent, #f5405b) !important;
}

.bbp-docs-search__link:hover {
	color: var(--wp--preset--color--accent-hover, #d9364f) !important;
}

.bbp-docs-search__meta {
	margin-top: 0.25rem;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted, #5b6570);
}

#bbpress-forums li.bbp-body > ul.forum,
#bbpress-forums li.bbp-body > ul.topic {
	display: grid;
	align-items: start;
	background: transparent;
}

#bbpress-forums li.bbp-body > ul.forum {
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.35rem 1.25rem;
	padding: 1.15rem 0;
	border-bottom: 1px solid var(--wp--custom--color--outline-variant, #eceef1);
}

#bbpress-forums li.bbp-body > ul.topic {
	grid-template-columns: 0.55rem minmax(0, 1fr);
	column-gap: 0.85rem;
	margin: 0;
	padding: 0.35rem 0 0.55rem;
}

#bbpress-forums li.bbp-body > ul.forum:last-child {
	border-bottom: 0;
}

#bbpress-forums li.bbp-forum-info {
	grid-column: 1;
	grid-row: 1 / span 2;
}

#bbpress-forums li.bbp-topic-title {
	grid-column: 2;
	min-width: 0;
}

#bbpress-forums li.bbp-forum-freshness {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.15rem;
	grid-column: 2;
	grid-row: 1;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted, #5b6570);
	text-align: right;
}

#bbpress-forums li.bbp-forum-freshness .bbp-topic-meta {
	margin: 0;
}

.bbp-forum-title,
.bbp-topic-permalink {
	display: inline-block;
	font-weight: 650;
	letter-spacing: -0.02em;
	line-height: 1.35;
}

.bbp-forum-title {
	font-size: 1.25rem;
}

.bbp-topic-permalink {
	font-size: 1.125rem;
}

.bbp-forum-info .bbp-forum-content {
	margin: 0.35rem 0 0;
	font-size: 0.875rem;
	color: var(--wp--preset--color--muted, #5b6570);
}

.bbp-forums-list {
	margin: 0.55rem 0 0;
}

.bbp-forums-list > li {
	display: inline-block;
	margin: 0 0.4rem 0.4rem 0;
}

.bbp-forums-list a {
	display: inline-flex;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	background: var(--wp--custom--color--surface-container, #f7f8f9);
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted, #5b6570);
}

.bbp-topic-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.2rem 0.15rem;
	margin: 0.4rem 0 0;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--muted, #5b6570);
	line-height: 1.45;
}

.bbp-topic-meta > span {
	display: inline-flex;
	align-items: center;
	min-width: 0;
}

.bbp-topic-meta .bbp-topic-started-in::after,
.bbp-topic-meta .bbp-freshness::after,
.bbp-topic-meta .bbp-freshness-author::after {
	content: "";
	width: 0.2rem;
	height: 0.2rem;
	margin: 0 0.45rem;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.55;
}

.bbp-topic-meta a {
	display: inline-block;
	padding: 0.1em 0.4em;
	border-radius: 6px;
	background: var(--wp--custom--color--surface-container, #f7f8f9);
	color: var(--wp--preset--color--text, #2a3139);
	line-height: 1.35;
	text-decoration: none;
}

.bbp-topic-meta a:hover {
	color: var(--wp--custom--color--primary, #f5405b);
}

.bbp-topic-meta .bbp-freshness a {
	padding: 0;
	background: transparent;
	color: inherit;
}

.bbp-topic-meta .bbp-freshness-author {
	text-transform: capitalize;
}

.bbp-topic-meta .avatar {
	display: none;
}

:is(
	#bbpress-forums li.bbp-body > ul.topic:is(.topic-resolved, .topic-not-resolved),
	#bbpress-forums .hentry.topic:is(.topic-resolved, .topic-not-resolved) > .bbp-reply-author
)::before {
	--bbp-status: #ef4444;
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--bbp-status);
	box-shadow: 0 0 0 0.34rem color-mix(in srgb, var(--bbp-status) 10%, transparent);
}

#bbpress-forums li.bbp-body > ul.topic:is(.topic-resolved, .topic-not-resolved)::before {
	grid-column: 1;
	grid-row: 1;
	margin-top: 0.45rem;
}

#bbpress-forums .hentry.topic:is(.topic-resolved, .topic-not-resolved) > .bbp-reply-author::before {
	flex: 0 0 auto;
	align-self: center;
}

:is(
	#bbpress-forums li.bbp-body > ul.topic.topic-resolved,
	#bbpress-forums .hentry.topic.topic-resolved > .bbp-reply-author
)::before {
	--bbp-status: #22c55e;
}

.bbp-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 0.5rem;
	margin: 0 0 1rem;
	font-size: 0.875rem;
}

/* Top + empty (count-only) pagination. Keep bottom links only. */
.bbp-pagination:not(:is(ul.bbp-topics, ul.bbp-forums, ul.bbp-replies, ul.bbp-search-results) + .bbp-pagination),
.bbp-pagination:not(:has(.bbp-pagination-links a, .bbp-pagination-links span.current)) {
	display: none;
}

/* Chip look: theme system.css. Beat #bbpress-forums a:hover accent. */
#bbpress-forums .bbp-pagination-links a:hover {
	color: var(--wp--custom--color--on-surface, #2a3139);
}

/* Replies */

#bbpress-forums ul.bbp-replies {
	margin: 0 0 1.5rem;
}

#bbpress-forums .hentry.topic {
	margin: 0 0 1.25rem;
}

#bbpress-forums .hentry.reply {
	margin: 0 0 1rem;
	padding: 1.25rem 1.35rem;
	border: 1px solid var(--wp--custom--color--outline-variant, #eceef1);
	border-radius: 12px;
	background: #fff;
}

#bbpress-forums .hentry.bbp-private-reply {
	background: var(--wp--custom--color--surface-container, #f7f8f9);
}

#bbpress-forums .bbp-reply-author {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.55rem;
	margin: 0 0 0.85rem;
	font-size: 0.9375rem;
}

#bbpress-forums .bbp-author-link {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
}

#bbpress-forums .bbp-author-avatar img {
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
}

#bbpress-forums .bbp-author-name {
	font-weight: 650;
	text-transform: capitalize;
}

#bbpress-forums .bbp-author-role {
	color: var(--wp--preset--color--subtle, #8b939c);
	font-size: 0.8125rem;
	text-transform: lowercase;
}

#bbpress-forums .bbp-author-role:empty {
	display: none;
}

#bbpress-forums .bbp-reply-author .bbp-reply-post-date {
	flex: 1 0 100%;
	width: 100%;
	margin: 0.15rem 0 0;
	color: var(--wp--preset--color--subtle, #8b939c);
	font-size: 0.75rem;
}

#bbpress-forums :is(.bbp-reply-content, .bbp-topic-content) {
	min-width: 0;
	overflow-wrap: break-word;
	font-size: 1rem;
	line-height: 1.65;
}

#bbpress-forums :is(.bbp-reply-content, .bbp-topic-content) > *:first-child {
	margin-top: 0;
}

#bbpress-forums :is(.bbp-reply-content, .bbp-topic-content) > *:last-child {
	margin-bottom: 0;
}

#bbpress-forums :is(.bbp-reply-content, .bbp-topic-content) a:not(.bbp-admin-links a) {
	color: var(--wp--preset--color--accent, #f5405b);
}

#bbpress-forums :is(.bbp-reply-content, .bbp-topic-content) a:not(.bbp-admin-links a):hover {
	text-decoration: underline;
}

#bbpress-forums :is(.bbp-reply-content, .bbp-topic-content) :is(ul, ol) {
	margin: 0 0 1rem;
	padding-left: 1.25rem;
}

#bbpress-forums :is(.bbp-reply-content, .bbp-topic-content) ul > li {
	list-style-type: disc;
}

#bbpress-forums :is(.bbp-reply-content, .bbp-topic-content) ol > li {
	list-style-type: decimal;
}

#bbpress-forums :is(.bbp-reply-content, .bbp-topic-content) li {
	margin: 0 0 0.35rem;
}

#bbpress-forums :is(.bbp-reply-content, .bbp-topic-content) blockquote {
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border-left: 3px solid var(--wp--custom--color--outline, #d7dce2);
	background: var(--wp--custom--color--surface-container, #f7f8f9);
	color: var(--wp--preset--color--muted, #5b6570);
}

#bbpress-forums :is(.bbp-reply-content, .bbp-topic-content) blockquote p {
	margin: 0;
}

#bbpress-forums :is(.bbp-reply-content, .bbp-topic-content) code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.875em;
	padding: 0.12em 0.4em;
	border-radius: 5px;
	background: var(--wp--custom--color--surface-container, #f1f2f3);
	overflow-wrap: anywhere;
}

#bbpress-forums :is(.bbp-reply-content, .bbp-topic-content) pre {
	margin: 0 0 1rem;
	padding: 0.95rem 1.1rem;
	overflow-x: auto;
	border-radius: 10px;
	background: #15191f;
	color: #e8eaed;
	font-size: 0.875rem;
	line-height: 1.55;
}

#bbpress-forums :is(.bbp-reply-content, .bbp-topic-content) pre code {
	padding: 0;
	background: transparent;
	color: inherit;
	font-size: inherit;
}

#bbpress-forums :is(.bbp-reply-content, .bbp-topic-content) img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.bbp-private-reply-notice {
	color: var(--wp--preset--color--muted, #5b6570);
}

.bbp-post-actions {
	margin-top: 0.9rem;
}

span.bbp-admin-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
}

#bbpress-forums .bbp-admin-links a,
.bbp-admin-links .support-select-status {
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	min-height: 1.75rem;
	padding: 0 0.55rem;
	border: 0;
	border-radius: 6px;
	background: var(--wp--custom--color--surface-container, #f7f8f9);
	color: var(--wp--custom--color--on-surface, #2a3139);
	font-size: 0.75rem;
	line-height: 1.2;
}

#bbpress-forums .bbp-private-reply .bbp-admin-links a {
	background: #fff;
}

.bbp-admin-links .support-select-status {
	width: auto;
	max-width: 12rem;
	appearance: none;
	font-size: 1rem;
}

:is(#bbpress-forums .bbp-admin-links a, .bbp-the-content-wrapper .ed_button):hover {
	background: color-mix(in srgb, var(--wp--custom--color--on-surface, #2a3139) calc(var(--md-state-hover, 0.08) * 100%), var(--wp--custom--color--surface-container, #f7f8f9)) !important;
	color: var(--wp--custom--color--on-surface, #2a3139) !important;
}

ul.bbp-threaded-replies {
	margin-left: 1.25rem;
}

/* Attachments */

.bbp-attachments-form-label {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25;
	color: inherit;
}

#bbpress-forums :is(.bbp-reply-content, .bbp-topic-content) > p:has(+ .bbp-attachments) {
	margin-bottom: 0.75rem;
}

#bbpress-forums .bbp-attachments {
	margin-top: 1rem;
}

#bbpress-forums .bbp-attachments > .bbp-attachments-form-label {
	display: block;
	margin: 0 0 0.45rem;
}

#bbpress-forums .bbp-attachments-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
}

@media (min-width: 600px) {
	#bbpress-forums .bbp-attachments-list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	#bbpress-forums .bbp-attachments-list {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

#bbpress-forums .bbp-attachments-list > .is-image {
	position: relative;
	min-width: 0;
}

#bbpress-forums .bbp-attachments-list > .is-image > a:not(.bbp-attachment-delete) {
	display: block;
	overflow: hidden;
	aspect-ratio: 1;
	border: 1px solid var(--wp--custom--color--outline-variant, #eceef1);
	border-radius: 8px;
	background: var(--wp--custom--color--surface-container, #f7f8f9);
}

#bbpress-forums :is(.bbp-reply-content, .bbp-topic-content) .bbp-attachments-list img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
}

#bbpress-forums .bbp-attachments-list > .is-file {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.45rem 0.65rem;
	border: 1px solid var(--wp--custom--color--outline-variant, #eceef1);
	border-radius: 8px;
	background: #fff;
}

#bbpress-forums .bbp-attachment-name {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--wp--preset--color--accent, #f5405b);
	overflow-wrap: anywhere;
}

.bbp-attachments-form {
	width: 100%;
	margin: 0 0 1rem;
}

.bbp-attachments-form-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0 0 0.45rem;
}

.bbp-attachments-count {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--wp--preset--color--muted, #5b6570);
	font-variant-numeric: tabular-nums;
}

.bbp-attachments-drop {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 0.55rem;
	min-height: 5.25rem;
	padding: 0.9rem 1rem;
	border: 1.5px dashed var(--wp--custom--color--outline, #d7dce2);
	border-radius: 10px;
	background: var(--wp--custom--color--surface-container, #f7f8f9);
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.bbp-attachments-drop:hover,
.bbp-attachments-drop:focus-within {
	border-color: var(--wp--preset--color--accent, #f5405b);
	background: #fff;
}

.bbp-attachments-drop.is-filled {
	min-height: 0;
	justify-content: flex-start;
}

.bbp-attachments-drop.is-full {
	cursor: default;
}

.bbp-attachments-existing,
.bbp-attachments-picked {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	width: 100%;
	margin: 0;
}

.bbp-attachments-picked[hidden] {
	display: none;
}

.bbp-attachments-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	max-width: 100%;
	padding: 0.25rem 0.2rem 0.25rem 0.6rem;
	border: 1px solid var(--wp--custom--color--outline-variant, #eceef1);
	border-radius: 999px;
	background: #fff;
	font-size: 0.75rem;
	line-height: 1.3;
}

.bbp-attachments-chip > span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bbp-attachments-chip-remove {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--wp--custom--layout--touch, 3rem);
	height: var(--wp--custom--layout--touch, 3rem);
	margin: -0.75rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--muted, #5b6570);
	font-size: 1rem;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

.bbp-attachments-chip-remove:hover {
	color: var(--wp--preset--color--accent, #f5405b);
}

.bbp-attachments-add {
	display: inline-flex;
	align-items: center;
	min-height: 2rem;
	margin: 0;
	padding: 0.3rem 0.75rem;
	border: 1px solid var(--wp--custom--color--outline, #d7dce2);
	border-radius: 8px;
	background: #fff;
	color: var(--wp--preset--color--text, #2a3139);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}

.bbp-attachments-add:hover {
	border-color: var(--wp--preset--color--accent, #f5405b);
	color: var(--wp--preset--color--accent, #f5405b);
}

.bbp-attachments-hint {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.4;
	font-weight: 400;
	color: var(--wp--preset--color--muted, #5b6570);
}

.bbp-private-reply-hint {
	display: block;
	margin: 0.35rem 0 0;
	font-size: 0.8125rem;
	line-height: 1.4;
	font-weight: 400;
	color: var(--wp--preset--color--muted, #5b6570);
}

/* Forms */

#bbpress-forums,
#bbpress-forums fieldset.bbp-form,
.bbp-the-content-wrapper,
.bbp-the-content-wrapper :is(.wp-editor-wrap, .wp-editor-container, .quicktags-toolbar, textarea) {
	box-sizing: border-box;
	max-width: 100%;
}

#bbpress-forums fieldset.bbp-form {
	margin: 1rem 0 0;
	padding: 0;
	border: 0;
	background: transparent;
}

/* Hash target: a bit less empty band under the sticky header, more air above the title. */
#bbpress-forums #new-post {
	scroll-margin-top: calc(var(--sticky-under-header, calc(5rem + 25px)) - 2.75rem);
	padding-top: 0.75rem;
}

#bbpress-forums fieldset.bbp-form legend {
	padding: 0;
	margin: 0 0 1rem;
	font-size: 1.25rem;
	font-weight: 650;
	letter-spacing: -0.02em;
}

#bbpress-forums fieldset.bbp-form > div > p,
#bbpress-forums fieldset.bbp-form .md-field,
#bbpress-forums fieldset.bbp-form .bbp-remember-me {
	margin: 0 0 1rem;
}

@media (min-width: 782px) {
	#bbpress-forums fieldset.bbp-form > div:has(#bbp_stick_topic_select):has(#bbp_topic_status_select) {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--md-field-stack-col-gap, 0.65rem);
	}

	#bbpress-forums fieldset.bbp-form > div:has(#bbp_stick_topic_select):has(#bbp_topic_status_select) > :not(:has(#bbp_stick_topic_select, #bbp_topic_status_select)) {
		grid-column: 1 / -1;
	}
}

#bbpress-forums fieldset.bbp-form :is(p:has(> input[type="checkbox"]), .bbp-remember-me) {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
}

#bbpress-forums fieldset.bbp-form :is(p:has(> input[type="checkbox"]), .bbp-remember-me) label {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.35;
	font-weight: 400;
}

#bbpress-forums fieldset.bbp-form input[type="checkbox"] {
	flex: 0 0 auto;
	width: 1.05rem;
	height: 1.05rem;
	margin: 0.15rem 0 0;
	accent-color: var(--wp--preset--color--accent, #f5405b);
}

.bbp-the-content-wrapper {
	margin: 0 0 1rem;
	width: 100%;
}

.bbp-the-content-wrapper .wp-editor-container {
	border: 0;
	width: 100%;
}

.bbp-the-content-wrapper .quicktags-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	padding: 0.45rem;
	border: 1px solid var(--wp--custom--color--outline);
	border-bottom: 0;
	border-radius: var(--wp--custom--shape--xs) var(--wp--custom--shape--xs) 0 0;
	background: var(--wp--custom--color--surface-container, #f7f8f9);
}

.bbp-the-content-wrapper .ed_button {
	min-height: 2rem !important;
	padding: 0 0.65rem !important;
	border: 0 !important;
	border-radius: 6px !important;
	background: var(--wp--custom--color--surface) !important;
	box-shadow: inset 0 0 0 1px var(--wp--custom--color--outline) !important;
	color: var(--wp--custom--color--on-surface) !important;
	font-size: 0.75rem !important;
	font-weight: 500 !important;
}

.bbp-the-content-wrapper textarea:is(.wp-editor-area, .bbp-the-content) {
	display: block;
	width: 100% !important;
	min-height: 7.5rem;
	margin: 0 !important;
	padding: 1rem !important;
	border: 1px solid var(--wp--custom--color--outline) !important;
	border-radius: 0 0 var(--wp--custom--shape--xs) var(--wp--custom--shape--xs) !important;
	background: var(--wp--custom--color--surface) !important;
	box-shadow: none !important;
	font-family: inherit;
	font-size: 1rem !important;
	line-height: 1.5;
	resize: vertical;
}

.bbp-the-content-wrapper textarea:is(.wp-editor-area, .bbp-the-content):focus {
	border-color: var(--wp--custom--color--primary) !important;
	outline: none;
}

@media (max-width: 781px) {
	#bbpress-forums li.bbp-body > ul.forum {
		grid-template-columns: 1fr;
		row-gap: 0.35rem;
		padding-block: 0.9rem;
	}

	#bbpress-forums li.bbp-forum-info,
	#bbpress-forums li.bbp-forum-freshness {
		grid-column: 1;
		grid-row: auto;
	}

	#bbpress-forums li.bbp-forum-freshness {
		flex-flow: row wrap;
		align-items: center;
		gap: 0.15rem 0.45rem;
		text-align: left;
	}

	.bbp-forum-title,
	.bbp-topic-permalink {
		font-size: 1.0625rem;
		overflow-wrap: anywhere;
	}

	#bbpress-forums .hentry.reply {
		padding: 1rem;
	}

	ul.bbp-threaded-replies {
		margin-left: 0.75rem;
	}

	#bbpress-forums .bbp-admin-links a,
	.bbp-admin-links .support-select-status,
	.bbp-attachments-add,
	.bbp-the-content-wrapper .ed_button {
		min-height: var(--wp--custom--component--button-height, 2.5rem) !important;
	}
}

.bbp-support-layout {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.bbp-support-layout > .support-desk {
	order: -1;
}

.bbp-support-layout__main {
	min-width: 0;
}

#bbpress-forums fieldset.bbp-form {
	min-width: 0;
}

@media (min-width: 782px) {
	body.bbpress:has(.bbp-support-layout) .bbpress-shell {
		display: grid;
		grid-template-columns: minmax(0, 45rem) 14.5rem;
		justify-content: center;
		grid-template-areas:
			"hero rail"
			"main rail";
		column-gap: clamp(1.5rem, 4vw, 3rem);
		align-items: start;
		padding-inline: var(--wp--custom--layout--gutter, 1.5rem);
		padding-block: var(--wp--custom--layout--pad-top, 1.75rem) var(--wp--preset--spacing--70, 3.5rem);
	}

	body.bbpress:has(.bbp-support-layout) :is(
		.bbpress-shell > .page-content,
		.bbpress-shell .page-content > .wp-block-post-content,
		#bbpress-forums,
		.bbp-support-layout
	) {
		display: contents;
	}

	body.bbpress:has(.bbp-support-layout) .bbpress-shell > .hero-section {
		grid-area: hero;
		max-width: none;
		margin: 0;
		padding: 0;
	}

	body.bbpress:has(.bbp-support-layout) .bbp-support-layout__main {
		grid-area: main;
		padding-top: 1.75rem;
	}

	body.bbpress:has(.bbp-support-layout) #bbpress-forums > :not(.bbp-support-layout) {
		display: none;
	}

	body.bbpress:has(.bbp-support-layout) .support-desk {
		--support-desk-title-offset: calc(1.25rem + var(--wp--custom--space--4, 1rem));
		grid-area: rail;
		order: 0;
		align-self: stretch;
		padding-top: var(--support-desk-title-offset);
		height: 0;
		min-height: 100%;
	}

	body.bbpress:has(.bbp-support-layout) .support-desk__inner {
		position: sticky;
		top: calc(var(--sticky-under-header) + var(--support-desk-title-offset));
	}
}

.support-desk {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.35;
}

/* Equal action cells; list flattened so CTA + links share the grid. */
.support-desk__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.5rem;
}

#bbpress-forums .support-desk__links,
#bbpress-forums .support-desk__links > li {
	display: contents;
}

.support-desk__action,
#bbpress-forums .support-desk__links a {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 3.5rem;
	padding: 0.45rem 0.85rem;
	border-radius: var(--wp--custom--shape--sm, 0.5rem);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	text-align: center;
}

#bbpress-forums .support-desk__action {
	background: var(--wp--custom--color--on-surface, #2a3139);
	color: #fff;
}

#bbpress-forums .support-desk__links a {
	border: 1px solid var(--wp--custom--color--outline-variant, #dadce0);
	background: transparent;
	color: var(--wp--preset--color--muted, #5b6570);
	font-weight: 500;
}

#bbpress-forums .support-desk__links a:hover {
	border-color: color-mix(in srgb, var(--wp--custom--color--on-surface, #2a3139) 35%, transparent);
	background: color-mix(in srgb, var(--wp--custom--color--on-surface, #2a3139) 4%, transparent);
	color: var(--wp--preset--color--text, #2a3139);
}

#bbpress-forums .support-desk__guest {
	display: block;
	grid-column: 1 / -1;
	margin-top: 0.65rem;
	color: var(--wp--preset--color--muted, #5b6570);
	font-weight: 500;
	text-align: center;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

#bbpress-forums .support-desk__guest:hover {
	color: var(--wp--preset--color--accent, #f5405b);
}

:is(#bbpress-forums .support-desk__action, .bbp-author-resolve__button):hover {
	background: color-mix(in srgb, #fff calc(var(--md-state-hover, 0.08) * 100%), var(--wp--custom--color--on-surface, #2a3139));
	color: #fff;
}

.support-desk__action:focus-visible,
.bbp-author-resolve__button:focus-visible,
.support-desk a:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent, #f5405b);
	outline-offset: 2px;
}

/* Same pills as blog-topics (system.css); forums stay left under search. */
.bbpress-shell .bbpress-status-chips {
	justify-content: flex-start;
	max-width: 28rem;
	margin: 0.75rem 0 0;
}

body.bbpress:not(.forum-archive, .single-forum, .bbp-user-page, .bbp-search, .bbp-search-results) .bbpress-shell .bbpress-status-chips {
	display: none;
}

body.bbp-user-page #bbp-user-avatar,
body.bbp-user-page #bbp-user-topics-started > h2.entry-title,
body.bbp-user-page #bbp-user-navigation {
	display: none;
}

body:not(.logged-in) .bbp-support-layout__main :is(.bbp-no-topic, .bbp-no-reply) {
	display: none;
}

.bbp-author-resolve {
	margin: 1rem 0 0;
	padding: 0.85rem 0 0;
	border-top: 1px solid var(--wp--custom--color--outline-variant, #eceef1);
}

.bbp-author-resolve__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.25rem;
	padding: 0.4rem 1rem;
	border: 0;
	border-radius: 8px;
	background: var(--wp--custom--color--on-surface, #2a3139);
	color: #fff;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}

.bbp-author-resolve__button:disabled {
	opacity: 0.6;
	cursor: wait;
}

.bbp-author-resolve__hint {
	margin: 0.5rem 0 0;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--wp--preset--color--muted, #5b6570);
}

@media (max-width: 781px) {
	.bbp-support-layout {
		gap: 1.15rem;
	}

	.support-desk {
		box-sizing: border-box;
		width: 100%;
		max-width: 28rem;
		margin-top: 0.85rem;
	}

	.support-desk__inner {
		width: 100%;
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr));
	}

	#bbpress-forums .support-desk__guest {
		display: none;
	}
}

