/*
 * MemberPress ClubSuite overrides — circle pages + Connect page.
 * Gated behind login, so hiding elements here has no SEO downside.
 * ClubSuite ships its own styling; these are overrides on top of it.
 */

/* Hero (circle name banner) */

/* Duplicate H1 — we use our own H1 in the Elementor template. Scoped to
   the heading, not the whole hero, so other hero content stays intact.
   Only applies in the no-image state; check the with-image variant too. */
.mpcirc-main-hero.no-image .mpcirc-main-hero-heading {
	display: none;
}

body.mpcirc-circle-page div.mpcirc-main-hero.no-image {
	min-height: unset;
	margin: 0;
}

body.mpcirc-circle-page #mpcirc-main-content {
	padding-top: 0;
}

/* Circles sidebar widget */

.sc-hub-circles-sidebar__heading {
	margin: 0 0 12px;
}

.sc-hub-circles-sidebar__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sc-hub-circles-sidebar__item {
	margin: 0;
}

.sc-hub-circles-sidebar__link {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.sc-hub-circles-sidebar__thumb {
	display: inline-flex;
	flex-shrink: 0;
	overflow: hidden;
}

.sc-hub-circles-sidebar__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sc-hub-circles-sidebar__notice {
	padding: 12px;
	background: #fff3cd;
	border: 1px solid #ffe69c;
	border-radius: 4px;
	font-size: 13px;
}

/* Circles grid widget */

.sc-hub-circles-grid__list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	list-style: none;
	margin: 0;
	padding: 0;
}

.sc-hub-circles-grid__item {
	margin: 0;
}

.sc-hub-circles-grid__link {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.sc-hub-circles-grid__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
}

.sc-hub-circles-grid__icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.sc-hub-circles-grid__notice {
	padding: 12px;
	background: #fff3cd;
	border: 1px solid #ffe69c;
	border-radius: 4px;
	font-size: 13px;
}

/* Connect page */

/* Active room's left accent bar — clashes with our own active-state styling. */
.mpcon-messaging__room-item--active::after {
	display: none;
}

.mpcon-messaging__room-item button.mpcon-messaging__room-button,
.mpcon-messaging__dropdown button.mpcon-messaging__dropdown-item {
	border: none;
	background: transparent;

	&:hover,
	&:focus,
	&:active {
		background: #f9fafb;
	}
}

.mpcon-messaging__room-item--active button.mpcon-messaging__room-button {
	background: #f3f4f6;
}

#mpcon-chat-app {
	max-width: 1200px;
	margin: 0 auto;
}

.mpcon-messaging__message-actions button.mpcon-messaging__attach-button:is(:hover, :focus, :active) {
	background: var(--e-global-color-ae8fc1c, #f3aa3c) !important;
	color: var(--e-global-color-text, #1e1852) !important;
}

button.mpcon-messaging__room-actions-button {
	width: fit-content;
	background: transparent;
	border: none;

	&:hover, &:focus, &:active {
		border: none;
	}
}

body.mpcirc-circle-page nav.mpcirc-page-navigation ul li a:is(:hover, :active, .active) {
	background: var(--e-global-color-ae8fc1c, #f3aa3c);
}