.rumiforum-channel-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 24px;
	font-family: "Trebuchet MS", Verdana, sans-serif;
}

.rumiforum-channel-popup[hidden] {
	display: none;
}

.rumiforum-channel-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(13, 25, 22, 0.76);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity 220ms ease;
}

.rumiforum-channel-popup__dialog {
	position: relative;
	display: grid;
	grid-template-columns: 170px minmax(0, 1fr);
	width: min(680px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	background: #fffdf8;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
	border-radius: 8px;
	outline: 0;
	opacity: 0;
	transform: translateY(18px) scale(0.98);
	transition: opacity 220ms ease, transform 220ms ease;
}

.rumiforum-channel-popup.is-visible .rumiforum-channel-popup__backdrop,
.rumiforum-channel-popup.is-visible .rumiforum-channel-popup__dialog {
	opacity: 1;
}

.rumiforum-channel-popup.is-visible .rumiforum-channel-popup__dialog {
	transform: translateY(0) scale(1);
}

.rumiforum-channel-popup__accent {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	min-height: 330px;
	padding: 34px 24px;
	background: #144898;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-align: center;
}

.rumiforum-channel-popup__bubble {
	display: grid;
	place-items: center;
	width: 72px;
	aspect-ratio: 1;
	border: 2px solid currentColor;
	border-radius: 50%;
	font-family: Georgia, serif;
	font-size: 38px;
	font-weight: 700;
	letter-spacing: 0;
}

.rumiforum-channel-popup__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 56px 52px 48px;
}

.rumiforum-channel-popup__eyebrow {
	margin: 0 0 12px;
	color: #144898;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2px;
}

.rumiforum-channel-popup__content h2 {
	margin: 0 0 18px;
	color: #173c34;
	font-family: Georgia, serif;
	font-size: clamp(30px, 4vw, 43px);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: 0;
}

.rumiforum-channel-popup__content > p:not(.rumiforum-channel-popup__eyebrow) {
	margin: 0 0 28px;
	color: #40534f;
	font-size: 16px;
	line-height: 1.65;
}

.rumiforum-channel-popup__button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	width: 100%;
	min-height: 54px;
	padding: 14px 18px;
	background: #25d366;
	color: #102f27;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	transition: background-color 160ms ease, transform 160ms ease;
}

.rumiforum-channel-popup__button:hover,
.rumiforum-channel-popup__button:focus-visible {
	background: #45e47f;
	color: #102f27;
	transform: translateY(-2px);
}

.rumiforum-channel-popup__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #173c34;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.rumiforum-channel-popup__close:hover,
.rumiforum-channel-popup__close:focus-visible {
	background: rgba(23, 60, 52, 0.1);
}

body.rumiforum-popup-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.rumiforum-channel-popup {
		align-items: end;
		padding: 14px;
	}

	.rumiforum-channel-popup__dialog {
		grid-template-columns: 1fr;
		max-height: calc(100vh - 28px);
	}

	.rumiforum-channel-popup__accent {
		flex-direction: row;
		justify-content: flex-start;
		min-height: 0;
		padding: 20px 22px;
		text-align: left;
	}

	.rumiforum-channel-popup__bubble {
		width: 45px;
		font-size: 24px;
	}

	.rumiforum-channel-popup__content {
		padding: 34px 24px 26px;
	}

	.rumiforum-channel-popup__content h2 {
		font-size: 31px;
	}

	.rumiforum-channel-popup__close {
		top: 12px;
		right: 12px;
		color: #fffdf8;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rumiforum-channel-popup__backdrop,
	.rumiforum-channel-popup__dialog,
	.rumiforum-channel-popup__button {
		transition: none;
	}
}