/**
 * CoParents Forum Design
 * Scoped to /forum/ via .cp-forum-design-active and .cp-forum-modern.
 */

.cp-forum-design-active {
	background: #f5f7fa;
	overflow-x: hidden;
}

.cp-forum-design-active .site-content,
.cp-forum-design-active .content-area,
.cp-forum-design-active #primary,
.cp-forum-design-active #content {
	background: #f5f7fa;
}

.cp-forum-design-active .content-area,
.cp-forum-design-active #primary,
.cp-forum-design-active .site-main,
.cp-forum-design-active .entry-content {
	width: 100% !important;
	max-width: 100% !important;
}

.cp-forum-design-active #bbpress-forums:not(.cp-forum-modern) {
	display: none !important;
}

.cp-forum-design-active .entry-header,
.cp-forum-design-active .entry-title,
.cp-forum-design-active .page-header,
.cp-forum-design-active .bb-rl-forum-single-header,
.cp-forum-design-active .bb-rl-forum-single-header-cover,
.cp-forum-design-active .bb-rl-forum-single-header-content,
.cp-forum-design-active .bb-topic-banner-container,
.cp-forum-design-active .bb-topic-banner,
.cp-forum-design-active .bb-rl-cover-wrap,
.cp-forum-design-active .bb-cover-wrap,
.cp-forum-design-active .bb-cover-photo,
.cp-forum-design-active .bbp-forum-header-cover,
.cp-forum-design-active .forum-cover,
.cp-forum-design-active .page-titlebar,
.cp-forum-design-active .page-title-bar,
.cp-forum-design-active .bb-page-header,
.cp-forum-design-active .bb-page-cover,
.cp-forum-design-active .entry-cover,
.cp-forum-design-active .bb-rl-page-header,
.cp-forum-design-active .bb-rl-page-title,
.cp-forum-design-active .bb-rl-cover-image,
.cp-forum-design-active .bb-rl-forum-header,
.cp-forum-design-active .bb-rl-forum-banner,
.cp-forum-design-active .entry-post-thumbnail,
.cp-forum-design-active .post-thumbnail,
.cp-forum-design-active .bbp-breadcrumb,
.cp-forum-design-active .bbp-search-form,
.cp-forum-design-active #secondary,
.cp-forum-design-active .widget-area,
.cp-forum-design-active .bb-sidebar,
.cp-forum-design-active .bbpress-sidebar,
.cp-forum-design-active .buddypress-sidebar {
	display: none !important;
}

.cp-forum-design-active .bb-rl-forum-single-header,
.cp-forum-design-active .bb-rl-forum-single-header-cover,
.cp-forum-design-active .bb-rl-forum-single-header-content,
.cp-forum-design-active .bb-topic-banner-container,
.cp-forum-design-active .bb-topic-banner,
.cp-forum-design-active .bb-rl-cover-wrap,
.cp-forum-design-active .bb-cover-wrap,
.cp-forum-design-active .bb-cover-photo,
.cp-forum-design-active .bbp-forum-header-cover,
.cp-forum-design-active .forum-cover {
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	background: transparent !important;
}

.cp-forum-design-active .bb-topic-banner-container,
.cp-forum-design-active .bb-topic-banner {
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	background: transparent !important;
}

.cp-forum-design-active .page-titlebar,
.cp-forum-design-active .page-title-bar,
.cp-forum-design-active .bb-page-header,
.cp-forum-design-active .bb-page-cover,
.cp-forum-design-active .entry-cover,
.cp-forum-design-active .bb-rl-page-header,
.cp-forum-design-active .bb-rl-page-title,
.cp-forum-design-active .bb-rl-cover-image,
.cp-forum-design-active .bb-rl-forum-header,
.cp-forum-design-active .bb-rl-forum-banner {
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	background: transparent !important;
}

.cp-forum-design-active .site-content .container,
.cp-forum-design-active .site-content-grid,
.cp-forum-design-active .site-content .bb-grid {
	width: 100% !important;
	max-width: 1220px !important;
}

.cp-forum-design-active .site-content-grid,
.cp-forum-design-active .site-content .bb-grid {
	display: block !important;
}

.cp-forum-design-active .cp-forum-modern .bbp-breadcrumb,
.cp-forum-design-active .cp-forum-modern .widget-area {
	display: initial !important;
}

.cp-forum-design-active .cp-forum-modern,
.cp-forum-design-active .cp-forum-modern * {
	box-sizing: border-box;
}

.cp-forum-modern {
	--cp-bg: #f5f7fa;
	--cp-surface: #ffffff;
	--cp-text: #111832;
	--cp-muted: #667085;
	--cp-line: #e4e8ef;
	--cp-brand: #e4007c;
	--cp-brand-dark: #c30069;
	--cp-cyan: #0b8fa8;
	--cp-cyan-soft: #e7f8fc;
	--cp-pink-soft: #fff0f7;
	--cp-radius: 12px;
	--cp-shadow: 0 10px 28px rgba(17, 24, 50, 0.06);
	width: min(100%, 1820px);
	margin: 0 auto 40px;
	overflow: hidden;
	border: 1px solid rgba(228, 232, 239, 0.95);
	border-radius: 22px;
	background: linear-gradient(180deg, #fff 0, var(--cp-bg) 180px);
	color: var(--cp-text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cp-forum-modern a {
	color: inherit;
	text-decoration: none;
}

.cp-author-link {
	color: #273b78 !important;
	text-decoration: none;
}

.cp-author-link:hover {
	color: var(--cp-cyan) !important;
	text-decoration: underline;
}

.cp-forum-hero {
	display: grid;
	gap: 16px;
	padding: 22px 20px 18px;
	border-bottom: 1px solid var(--cp-line);
	background: rgba(255, 255, 255, 0.96);
}

.cp-forum-title {
	margin: 0;
	color: var(--cp-text);
	font-size: 28px;
	font-weight: 650;
	letter-spacing: 0;
	line-height: 1.05;
}

.cp-forum-subtitle {
	margin: 7px 0 0;
	max-width: 35rem;
	color: var(--cp-muted);
	font-size: 14px;
	line-height: 1.45;
}

.cp-forum-description {
	margin: 12px 0 0;
	max-width: 58rem;
	color: #343842;
	font-size: 14px;
	line-height: 1.6;
}

.cp-description-more {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: max-content;
	min-height: 28px;
	margin: 8px auto 0;
	padding: 0 10px !important;
	border: 1px solid var(--cp-line) !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: var(--cp-cyan) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
}

.cp-forum-tools {
	display: grid;
	align-items: center;
	gap: 12px;
}

.cp-forum-search {
	display: block;
	margin: 0 !important;
}

.cp-search-view .cp-forum-tools {
	align-self: center;
}

.cp-forum-search-label {
	position: relative;
	display: block;
	margin: 0;
}

.cp-forum-search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	width: 17px;
	height: 17px;
	color: var(--cp-muted);
	transform: translateY(-50%);
	pointer-events: none;
}

.cp-forum-search-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.cp-forum-search input[type="search"] {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 16px 0 43px;
	border: 1px solid #d8dee8;
	border-radius: 999px;
	background: #f8fafc;
	color: var(--cp-text);
	font-size: 14px;
	outline: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.cp-forum-search input[type="search"]:focus {
	border-color: rgba(11, 143, 168, 0.55);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(11, 143, 168, 0.1);
}

.cp-forum-notice {
	margin: 18px 20px 22px;
	padding: 14px 17px;
	border: 1px solid rgba(34, 163, 93, 0.34);
	border-radius: 10px;
	background: #e9f8ef;
	color: #116b3a;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
	box-shadow: 0 10px 24px rgba(34, 163, 93, 0.1);
}

.cp-forum-primary-action,
.cp-login-button,
.cp-forum-new-topic #bbp_topic_submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 20px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--cp-brand) !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 650 !important;
	line-height: 1 !important;
	box-shadow: 0 14px 28px rgba(228, 0, 124, 0.22);
	white-space: nowrap;
}

.cp-forum-primary-action {
	position: fixed;
	right: 84px;
	bottom: calc(112px + env(safe-area-inset-bottom, 0px));
	left: auto;
	z-index: 100000;
	width: 54px;
	min-width: 54px;
	height: 54px;
	min-height: 54px;
	padding: 0 !important;
	box-shadow: 0 18px 34px rgba(228, 0, 124, 0.28);
}

body.bb-mobile-panel-open .cp-forum-primary-action,
body.bb-left-panel-open .cp-forum-primary-action,
body.mobile-menu-open .cp-forum-primary-action,
body.menu-open .cp-forum-primary-action,
body.has-mobile-menu-open .cp-forum-primary-action {
	display: none !important;
}

.cp-forum-primary-action span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.cp-forum-primary-action:hover,
.cp-login-button:hover,
.cp-forum-new-topic #bbp_topic_submit:hover {
	background: var(--cp-brand-dark) !important;
	color: #fff !important;
}

.cp-forum-primary-action svg {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
}

.cp-forum-content {
	padding: 16px 14px 150px;
}

.cp-forum-layout {
	display: grid;
	gap: 18px;
}

.cp-forum-pills {
	display: flex;
	gap: 10px;
	margin: 0 -14px 16px;
	padding: 0 14px 3px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.cp-forum-pills::-webkit-scrollbar {
	display: none;
}

.cp-forum-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 15px;
	border: 1px solid var(--cp-line);
	border-radius: 999px;
	background: var(--cp-surface);
	color: var(--cp-muted);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.cp-forum-pill.is-active,
.cp-forum-pill:hover {
	border-color: rgba(11, 143, 168, 0.35);
	background: var(--cp-cyan-soft);
	color: var(--cp-cyan);
}

.cp-section-kicker {
	margin: 0 0 9px;
	color: #6d7286;
	font-size: 11px;
	font-weight: 760;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.cp-discussions {
	display: grid;
	gap: 12px;
}

.cp-topic-card {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 12px;
	width: 100%;
	min-width: 0;
	padding: 15px 14px;
	border: 1px solid var(--cp-line);
	border-radius: var(--cp-radius);
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 1px 0 rgba(17, 24, 50, 0.03);
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
	white-space: normal !important;
}

.cp-topic-card:hover {
	border-color: #d7ddea;
	color: var(--cp-text);
	box-shadow: var(--cp-shadow);
	transform: translateY(-1px);
}

.cp-forum-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--cp-avatar-color, var(--cp-cyan));
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	overflow: hidden;
	flex: 0 0 auto;
}

.cp-forum-avatar .avatar,
.cp-forum-avatar .cp-avatar-img,
.cp-forum-avatar img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	border-radius: 50% !important;
	object-fit: cover;
}

.cp-topic-main {
	min-width: 0;
	max-width: 100%;
}

.cp-topic-title {
	display: block;
	margin: 1px 0 8px;
	color: var(--cp-text);
	font-size: 15px;
	font-weight: 650;
	letter-spacing: 0;
	line-height: 1.26;
	overflow-wrap: anywhere;
	word-break: break-word;
	white-space: normal !important;
}

.cp-topic-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 13px;
	min-width: 0;
	max-width: 100%;
}

.cp-topic-tag {
	display: inline-flex;
	align-items: center;
	min-height: 22px;
	padding: 0 9px;
	border-radius: 999px;
	background: var(--cp-cyan-soft);
	color: var(--cp-cyan);
	font-size: 11px;
	font-weight: 760;
	line-height: 1.15;
	max-width: 100%;
	white-space: normal;
}

.cp-topic-tag.is-new {
	background: var(--cp-pink-soft);
	color: var(--cp-brand);
}

.cp-topic-meta {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 12px;
	color: var(--cp-muted);
	font-size: 12px;
	min-width: 0;
}

.cp-topic-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.cp-topic-date {
	white-space: normal;
}

.cp-forum-empty,
.cp-login-panel {
	padding: 20px;
	border: 1px solid var(--cp-line);
	border-radius: var(--cp-radius);
	background: #fff;
	color: var(--cp-muted);
	text-align: center;
}

.cp-login-panel p {
	margin: 0 0 14px;
}

.cp-forum-pagination,
.cp-forum-modern .bbp-pagination-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 24px 0 0;
}

.cp-forum-pagination .page-numbers,
.cp-forum-modern .bbp-pagination-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border: 1px solid var(--cp-line);
	border-radius: 10px;
	background: #fff;
	color: var(--cp-text);
	font-size: 13px;
	font-weight: 650;
}

.cp-forum-pagination .page-numbers.current,
.cp-forum-modern .bbp-pagination-links .page-numbers.current {
	border-color: var(--cp-cyan);
	background: var(--cp-cyan);
	color: #fff;
}

.cp-forum-sidebar {
	display: none;
}

.cp-side-panel {
	padding: 18px;
	border: 1px solid var(--cp-line);
	border-radius: var(--cp-radius);
	background: rgba(255, 255, 255, 0.96);
}

.cp-side-panel + .cp-side-panel {
	margin-top: 14px;
}

.cp-side-title {
	margin: 0 0 14px;
	color: #6d7286;
	font-size: 11px;
	font-weight: 760;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.cp-side-list {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cp-side-row,
.cp-recent-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid var(--cp-line);
	color: var(--cp-text);
	font-size: 13px;
}

.cp-recent-link {
	display: block;
	line-height: 1.35;
}

.cp-side-row:first-child,
.cp-recent-link:first-child {
	padding-top: 0;
}

.cp-side-row:last-child,
.cp-recent-link:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.cp-side-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 24px;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--cp-cyan-soft);
	color: var(--cp-cyan);
	font-size: 12px;
	font-weight: 760;
}

.cp-forum-new-topic {
	margin-top: 28px;
	padding: 18px;
	border: 1px solid var(--cp-line);
	border-radius: var(--cp-radius);
	background: #fff;
}

.cp-new-topic-intro h2 {
	margin: 0 0 6px;
	color: var(--cp-text);
	font-size: 20px;
	font-weight: 650;
	line-height: 1.25;
}

.cp-new-topic-intro p {
	margin: 0 0 16px;
	color: var(--cp-muted);
	font-size: 14px;
	line-height: 1.5;
}

.cp-forum-new-topic #bbpress-forums {
	margin: 0;
}

.cp-forum-new-topic .bbp-breadcrumb,
.cp-forum-new-topic .bbp-topic-form legend,
.cp-forum-new-topic #bb_topic_discard_draft {
	display: none !important;
}

.cp-forum-new-topic .bbp-template-notice,
.cp-topic-reply-form .bbp-template-notice {
	display: block !important;
	margin: 0 0 14px !important;
	padding: 12px 14px !important;
	border: 1px solid rgba(11, 143, 168, 0.28) !important;
	border-radius: 10px !important;
	background: #e7f8fc !important;
	color: #075f70 !important;
	font-size: 14px !important;
	line-height: 1.45 !important;
}

.cp-forum-new-topic .bbp-template-notice.error,
.cp-topic-reply-form .bbp-template-notice.error,
.cp-forum-new-topic .bbp-template-notice.warning,
.cp-topic-reply-form .bbp-template-notice.warning {
	border-color: rgba(228, 0, 124, 0.28) !important;
	background: #fff0f7 !important;
	color: #9d0056 !important;
}

.cp-forum-new-topic .bbp-template-notice.error,
.cp-forum-new-topic .bbp-template-notice.warning {
	margin: 12px 0 16px !important;
	padding: 13px 16px !important;
	box-shadow: 0 10px 22px rgba(228, 0, 124, 0.08);
}

.cp-forum-new-topic .bbp-template-notice p,
.cp-topic-reply-form .bbp-template-notice p {
	margin: 0 !important;
	padding: 0 !important;
}

.cp-forum-new-topic .bbp-topic-form,
.cp-forum-new-topic .bbp-form,
.cp-forum-new-topic .bbp-form > div {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

.cp-forum-new-topic .bbp-topic-form p {
	margin: 0 0 14px;
}

.cp-forum-new-topic label {
	display: block;
	margin: 0 0 6px;
	color: var(--cp-text);
	font-size: 13px;
	font-weight: 650;
}

.cp-forum-new-topic input[type="text"],
.cp-forum-new-topic select,
.cp-forum-new-topic textarea,
.cp-forum-new-topic .wp-editor-area {
	width: 100% !important;
	max-width: 100% !important;
	border: 1px solid #d8dee8 !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: var(--cp-text) !important;
	font-size: 14px !important;
}

.cp-forum-new-topic input[type="text"],
.cp-forum-new-topic select {
	min-height: 44px;
	padding: 0 12px !important;
}

.cp-forum-select-field {
	position: relative;
}

.cp-forum-select-field select {
	appearance: none;
	padding-right: 44px !important;
}

.cp-select-arrow {
	position: absolute;
	right: 17px;
	top: 22px;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--cp-cyan);
	border-bottom: 2px solid var(--cp-cyan);
	transform: translateY(-65%) rotate(45deg);
	pointer-events: none;
}

.cp-form-error {
	margin: 7px 0 0 !important;
	color: var(--cp-brand);
	font-size: 13px;
	font-weight: 650;
}

.cp-forum-new-topic select.has-error {
	border-color: var(--cp-brand) !important;
	box-shadow: 0 0 0 4px rgba(228, 0, 124, 0.1) !important;
}

.cp-forum-new-topic textarea,
.cp-forum-new-topic .wp-editor-area {
	min-height: 130px;
	padding: 12px !important;
}

.cp-forum-new-topic .wp-editor-container,
.cp-forum-new-topic .bbp-the-content-wrapper {
	overflow: hidden;
	margin: 0 0 14px;
	min-height: 132px;
	border: 1px solid #d8dee8 !important;
	border-radius: 10px !important;
	background: #fff !important;
	box-shadow: none !important;
}

.cp-forum-new-topic iframe {
	display: block !important;
	width: 100% !important;
	min-height: 130px !important;
	border: 0 !important;
}

.cp-forum-new-topic .wp-editor-tools,
.cp-forum-new-topic .bbp-the-content-wrapper::before,
.cp-forum-new-topic .bbp-the-content-wrapper::after,
.cp-topic-reply-form .wp-editor-tools,
.cp-topic-reply-form .bbp-the-content-wrapper::before,
.cp-topic-reply-form .bbp-the-content-wrapper::after {
	display: none !important;
	border: 0 !important;
	box-shadow: none !important;
}

.cp-forum-new-topic .quicktags-toolbar,
.cp-forum-new-topic .wp-editor-tabs {
	border: 0 !important;
	background: #fff !important;
	box-shadow: none !important;
}

.cp-forum-new-topic .bbp-the-content-wrapper textarea,
.cp-forum-new-topic .bbp-the-content-wrapper .wp-editor-area {
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.cp-forum-new-topic .bbp-submit-wrapper {
	display: flex;
	justify-content: flex-end;
	margin: 18px 0 0 !important;
	position: relative;
	z-index: 100001;
}

.cp-forum-new-topic #bbp_topic_submit {
	min-width: 150px;
	box-shadow: none;
	pointer-events: auto !important;
	cursor: pointer !important;
	opacity: 1 !important;
}

.cp-forum-new-topic #bbp_topic_submit,
.cp-forum-new-topic #bbp_topic_submit:not(:disabled),
.cp-topic-reply-form #bbp_reply_submit,
.cp-topic-reply-form #bbp_reply_submit:not(:disabled) {
	pointer-events: auto !important;
	cursor: pointer !important;
	opacity: 1 !important;
}

.cp-topic-view {
	background: var(--cp-bg);
}

.cp-topic-shell {
	display: grid;
	gap: 18px;
	padding: 18px 14px 34px;
}

.cp-topic-reading {
	min-width: 0;
}

.cp-back-link {
	display: inline-flex;
	margin: 0 0 12px;
	color: var(--cp-muted);
	font-size: 13px;
	font-weight: 650;
}

.cp-topic-article,
.cp-replies-section,
.cp-topic-reply-form,
.cp-topic-actions {
	border: 1px solid var(--cp-line);
	border-radius: var(--cp-radius);
	background: #fff;
}

.cp-topic-article {
	overflow: hidden;
}

.cp-topic-article-header {
	padding: 20px 18px 12px;
}

.cp-topic-forum-badge {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	margin-bottom: 16px;
	padding: 0 12px;
	border: 1px solid #d8dee8;
	border-radius: 8px;
	color: var(--cp-text);
	font-size: 13px;
	font-weight: 500;
}

.cp-topic-page-title {
	margin: 0 0 12px;
	color: var(--cp-text);
	font-size: 26px;
	font-weight: 650;
	letter-spacing: 0;
	line-height: 1.12;
	overflow-wrap: anywhere;
}

.cp-topic-byline {
	margin: 0;
	color: #33426c;
	font-size: 14px;
}

.cp-topic-content {
	padding: 0 18px 18px;
	color: #343842;
	font-size: 15px;
	line-height: 1.7;
}

.cp-topic-content p,
.cp-reply-content p {
	margin: 0 0 16px;
}

.cp-topic-content p:last-child,
.cp-reply-content p:last-child {
	margin-bottom: 0;
}

.cp-topic-footer-meta {
	display: flex;
	gap: 14px;
	padding: 14px 18px 18px;
	color: #33426c;
	font-size: 13px;
}

.cp-replies-section,
.cp-topic-reply-form {
	margin-top: 16px;
	overflow: hidden;
}

.cp-replies-section > h2,
.cp-topic-reply-form > h2 {
	margin: 0;
	padding: 18px;
	border-bottom: 1px solid var(--cp-line);
	color: var(--cp-text);
	font-size: 16px;
	font-weight: 650;
	line-height: 1.2;
}

.cp-reply-list {
	display: grid;
}

.cp-reply-card {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	gap: 14px;
	padding: 18px;
	border-bottom: 1px solid var(--cp-line);
}

.cp-reply-card:last-child {
	border-bottom: 0;
}

.cp-reply-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--cp-cyan-soft);
	color: var(--cp-cyan);
	font-size: 16px;
	font-weight: 760;
}

.cp-reply-card .cp-forum-avatar {
	width: 42px;
	height: 42px;
	background: var(--cp-cyan-soft);
	color: var(--cp-cyan);
}

.cp-reply-header {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin-bottom: 12px;
	color: var(--cp-text);
	font-size: 14px;
	line-height: 1.25;
}

.cp-reply-header span {
	color: #33426c;
	font-weight: 400;
}

.cp-reply-content {
	color: #343842;
	font-size: 15px;
	line-height: 1.65;
}

.cp-topic-reply-form .bbp-reply-form,
.cp-topic-reply-form .bbp-form,
.cp-topic-reply-form .bbp-form > div {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

.cp-topic-reply-form .bbp-reply-form {
	padding: 18px !important;
}

.cp-topic-reply-form .bbp-reply-form legend,
.cp-topic-reply-form #bb_reply_discard_draft {
	display: none !important;
}

.cp-topic-reply-form textarea,
.cp-topic-reply-form .wp-editor-area {
	width: 100% !important;
	min-height: 130px;
	padding: 12px !important;
	border: 1px solid #d8dee8 !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: var(--cp-text) !important;
	font-size: 14px !important;
}

.cp-topic-reply-form .wp-editor-container,
.cp-topic-reply-form .bbp-the-content-wrapper {
	overflow: hidden;
	min-height: 132px;
	border: 1px solid #d8dee8 !important;
	border-radius: 10px !important;
	background: #fff !important;
}

.cp-topic-reply-form iframe {
	display: block !important;
	width: 100% !important;
	min-height: 130px !important;
	border: 0 !important;
}

.cp-topic-reply-form .quicktags-toolbar,
.cp-topic-reply-form .wp-editor-tabs {
	border: 0 !important;
	background: #fff !important;
	box-shadow: none !important;
}

.cp-topic-reply-form .bbp-the-content-wrapper textarea,
.cp-topic-reply-form .bbp-the-content-wrapper .wp-editor-area {
	border: 0 !important;
	border-radius: 0 !important;
}

.cp-topic-reply-form .bbp-submit-wrapper {
	display: flex;
	justify-content: flex-end;
	margin-top: 16px !important;
	position: relative;
	z-index: 100001;
}

.cp-topic-reply-form #bbp_reply_submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--cp-brand) !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 650 !important;
	pointer-events: auto;
}

.cp-topic-aside {
	display: none;
}

.cp-topic-actions {
	display: grid;
	gap: 10px;
	padding: 0;
	border: 0;
	background: transparent;
}

.cp-topic-actions + .cp-side-panel {
	margin-top: 16px;
}

.cp-single-forum-actions {
	margin-bottom: 14px;
}

.cp-topic-action-primary,
.cp-topic-actions a,
.cp-topic-action-link a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 46px;
	padding: 0 16px;
	border: 1px solid var(--cp-line);
	border-radius: 8px;
	background: #fff;
	color: var(--cp-text);
	font-size: 14px;
	font-weight: 650;
}

.cp-topic-action-primary {
	border-color: var(--cp-cyan);
	background: var(--cp-cyan);
	color: #fff;
}

@media (max-width: 639px) {
	.cp-forum-design-active .site-content,
	.cp-forum-design-active .site-content .container,
	.cp-forum-design-active .site-content-grid,
	.cp-forum-design-active .site-content .bb-grid,
	.cp-forum-design-active .content-area,
	.cp-forum-design-active #primary,
	.cp-forum-design-active .site-main,
	.cp-forum-design-active .entry-content {
		width: 100% !important;
		max-width: 100% !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
		padding-right: 0 !important;
		padding-left: 0 !important;
	}

	.cp-forum-modern {
		width: 100%;
		max-width: 100%;
		margin: 0 0 24px;
		border-right: 0;
		border-left: 0;
		border-radius: 0;
	}

	.cp-forum-hero {
		padding: 18px 14px 16px;
	}

	.cp-forum-title {
		font-size: 28px;
		line-height: 1.08;
	}

	.cp-forum-subtitle,
	.cp-forum-description {
		font-size: 13px;
	}

	.cp-forum-tools {
		gap: 10px;
	}

	.cp-forum-search input[type="search"] {
		height: 44px;
		font-size: 14px;
	}

	.cp-forum-content {
		padding: 12px 10px 132px;
		max-width: 100%;
		overflow: hidden;
	}

	.cp-forum-layout,
	.cp-forum-main,
	.cp-discussions {
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	.cp-forum-pills {
		margin-right: -10px;
		margin-left: -10px;
		padding-right: 10px;
		padding-left: 10px;
	}

	.cp-topic-card {
		grid-template-columns: 42px minmax(0, 1fr);
		gap: 10px;
		padding: 14px 12px;
		max-width: 100%;
		overflow: hidden;
	}

	.cp-forum-avatar {
		width: 42px;
		height: 42px;
		font-size: 16px;
	}

	.cp-topic-title {
		font-size: 14px;
		line-height: 1.25;
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	.cp-topic-tags {
		margin-bottom: 9px;
	}

	.cp-topic-tag {
		padding-top: 4px;
		padding-bottom: 4px;
	}

	.cp-topic-meta {
		grid-column: 2;
		gap: 8px 12px;
		font-size: 11px;
	}

	.cp-forum-primary-action {
		right: 82px;
		bottom: calc(112px + env(safe-area-inset-bottom, 0px));
		left: auto;
		width: 54px;
		min-width: 54px;
		height: 54px;
		min-height: 54px;
		padding: 0 !important;
	}

	.cp-topic-shell {
		gap: 14px;
		padding: 12px 8px 28px;
	}

	.cp-topic-article-header {
		padding: 16px 14px 10px;
	}

	.cp-topic-forum-badge {
		max-width: 100%;
		height: auto;
		padding: 7px 10px;
		line-height: 1.35;
		white-space: normal;
	}

	.cp-topic-page-title {
		font-size: 22px;
		line-height: 1.08;
	}

	.cp-topic-byline {
		font-size: 13px;
		line-height: 1.45;
	}

	.cp-topic-content {
		padding: 0 14px 16px;
		font-size: 14px;
		line-height: 1.65;
	}

	.cp-topic-footer-meta {
		flex-wrap: wrap;
		padding: 12px 14px 16px;
	}

	.cp-replies-section > h2,
	.cp-topic-reply-form > h2 {
		padding: 14px;
	}

	.cp-reply-card {
		grid-template-columns: 36px minmax(0, 1fr);
		gap: 10px;
		padding: 14px;
	}

	.cp-reply-avatar {
		width: 36px;
		height: 36px;
		font-size: 14px;
	}

	.cp-topic-reply-form .bbp-reply-form {
		padding: 14px !important;
	}

	.cp-forum-new-topic {
		margin-top: 22px;
		padding: 16px 14px;
	}

	.cp-new-topic-intro h2 {
		font-size: 19px;
		line-height: 1.25;
	}

	.cp-forum-new-topic textarea,
	.cp-forum-new-topic .wp-editor-area,
	.cp-topic-reply-form textarea,
	.cp-topic-reply-form .wp-editor-area {
		min-height: 150px;
	}

	.cp-forum-new-topic .bbp-submit-wrapper,
	.cp-topic-reply-form .bbp-submit-wrapper {
		justify-content: flex-start;
	}
}

@media (min-width: 640px) {
	.cp-forum-hero {
		padding: 24px;
	}

	.cp-topic-card {
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 14px;
		padding: 17px 18px;
	}

	.cp-forum-avatar {
		width: 48px;
		height: 48px;
	}

	.cp-topic-title {
		font-size: 16px;
	}

	.cp-forum-new-topic {
		padding: 22px;
	}
}

@media (min-width: 900px) {
	.cp-forum-hero {
		grid-template-columns: minmax(260px, 1fr) minmax(480px, 650px);
		align-items: center;
	}

	.cp-forum-title {
		font-size: 28px;
	}

	.cp-forum-tools {
		grid-template-columns: minmax(260px, 1fr) auto;
		align-items: center;
		gap: 14px;
	}

	.cp-forum-search input[type="search"],
	.cp-forum-primary-action {
		height: 48px;
		min-height: 48px;
	}

	.cp-forum-primary-action {
		position: static;
		right: auto;
		bottom: auto;
		left: auto;
		z-index: auto;
		width: auto;
		min-width: 190px;
		padding: 0 20px !important;
		box-shadow: 0 14px 28px rgba(228, 0, 124, 0.22);
	}

	.cp-forum-primary-action span {
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
		clip: auto;
		white-space: nowrap;
	}

	.cp-forum-primary-action svg {
		width: 18px;
		height: 18px;
	}

	.cp-forum-content {
		padding: 20px 22px 34px;
	}

	.cp-forum-layout {
		grid-template-columns: minmax(0, 1fr) 250px;
		gap: 18px;
	}

	.cp-forum-pills {
		margin: 0 0 18px;
		padding: 0;
		overflow: visible;
		flex-wrap: wrap;
	}

	.cp-section-kicker {
		display: none;
	}

	.cp-topic-card {
		grid-template-columns: 48px minmax(0, 1fr) minmax(190px, 230px);
		align-items: center;
		min-height: 82px;
		padding: 16px 18px;
	}

	.cp-topic-tags {
		margin-bottom: 0;
	}

	.cp-topic-meta {
		grid-column: 3;
		justify-self: end;
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		gap: 3px;
		font-size: 13px;
		margin-left: auto;
		text-align: right;
	}

	.cp-topic-stats {
		flex-wrap: wrap;
		gap: 4px;
		max-width: 100%;
		justify-content: flex-end;
		white-space: normal;
	}

	.cp-topic-stats span + span::before {
		content: "·";
		margin-right: 4px;
	}

	.cp-forum-sidebar {
		display: block;
	}

	.cp-topic-date {
		max-width: 100%;
		text-align: right;
		white-space: normal;
	}

	.cp-forum-new-topic {
		padding: 24px;
	}

	.cp-topic-shell {
		grid-template-columns: minmax(0, 1fr) 250px;
		gap: 18px;
		padding: 28px 22px 34px;
	}

	.cp-topic-aside {
		display: block;
	}

	.cp-topic-page-title {
		font-size: 28px;
	}

	.cp-topic-article-header {
		padding: 26px 30px 14px;
	}

	.cp-topic-content {
		padding: 0 30px 22px;
	}

	.cp-topic-footer-meta {
		padding: 16px 30px 26px;
	}

	.cp-replies-section > h2,
	.cp-topic-reply-form > h2,
	.cp-reply-card,
	.cp-topic-reply-form .bbp-reply-form {
		padding-right: 30px !important;
		padding-left: 30px !important;
	}
}
