/* WellFedHippo Telegram Banner — frontend styles */

#wfh-tg-banner {
	--tgb-bg:  #1292c8;
	--tgb-txt: #ffffff;

	width: 100%;
	background-color: var(--tgb-bg);
	background-size: cover;
	background-position: center center;
	background-blend-mode: multiply;
	color: var(--tgb-txt);
	position: relative;
	z-index: 1;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* ── inner layout ───────────────────────────────────────── */
.wfh-tg-banner__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin: 0 auto;
	padding: 10px 52px 10px 20px; /* right padding leaves room for close btn */
}

/* ── three columns ──────────────────────────────────────── */
.wfh-tg-banner__col {
	flex: 1;
	min-width: 0;
}

.wfh-tg-banner__col--left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.wfh-tg-banner__col--center {
	flex: 0 0 auto;
	text-align: center;
}

.wfh-tg-banner__col--right {
	text-align: right;
}

/* ── logo ───────────────────────────────────────────────── */
.wfh-tg-banner__logo {
	width: 44px;
	height: 44px;
	object-fit: contain;
	border-radius: 6px;
	flex-shrink: 0;
}

/* ── text blocks ────────────────────────────────────────── */
.wfh-tg-banner__text-left,
.wfh-tg-banner__text-right {
	font-size: clamp(12px, 1.4vw, 15px);
	line-height: 1.4;
	color: var(--tgb-txt);
}

.wfh-tg-banner__text-left {
	font-weight: 600;
}

.wfh-tg-banner__text-right {
	opacity: .9;
	font-style: italic;
}

/* ── CTA button ─────────────────────────────────────────── */
.wfh-tg-banner__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 22px;
	background: rgba(255,255,255,.18);
	border: 2px solid rgba(255,255,255,.55);
	border-radius: 30px;
	color: var(--tgb-txt) !important;
	text-decoration: none !important;
	font-weight: 700;
	font-size: clamp(13px, 1.4vw, 15px);
	white-space: nowrap;
	transition: background .2s, border-color .2s, transform .15s;
}

.wfh-tg-banner__cta:hover,
.wfh-tg-banner__cta:focus {
	background: rgba(255,255,255,.32);
	border-color: rgba(255,255,255,.9);
	transform: translateY(-1px);
	outline: none;
}

.wfh-tg-banner__tg-icon {
	width: 20px;
	height: 20px;
	fill: currentColor;
	flex-shrink: 0;
}

/* ── close button ───────────────────────────────────────── */
.wfh-tg-banner__close {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	background: rgba(255,255,255,.15);
	border: 1px solid rgba(255,255,255,.4);
	border-radius: 50%;
	color: var(--tgb-txt);
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: background .2s;
}

.wfh-tg-banner__close:hover,
.wfh-tg-banner__close:focus {
	background: rgba(255,255,255,.35);
	outline: none;
}

/* ── tablet ─────────────────────────────────────────────── */
@media (max-width: 900px) {
	.wfh-tg-banner__inner {
		flex-wrap: wrap;
		justify-content: center;
		gap: 10px;
		padding: 10px 44px 10px 16px;
	}

	.wfh-tg-banner__col--left,
	.wfh-tg-banner__col--right {
		flex: 0 1 auto;
		text-align: center;
	}

	.wfh-tg-banner__col--left {
		justify-content: center;
	}

	.wfh-tg-banner__col--right {
		order: 3;
	}

	.wfh-tg-banner__col--center {
		order: 2;
	}
}

/* ── mobile ─────────────────────────────────────────────── */
@media (max-width: 480px) {
	.wfh-tg-banner__inner {
		padding: 8px 40px 8px 12px;
		gap: 8px;
	}

	.wfh-tg-banner__logo {
		width: 36px;
		height: 36px;
	}

	.wfh-tg-banner__cta {
		padding: 7px 16px;
	}

	.wfh-tg-banner__text-right {
		display: none; /* hide tagline on very small screens */
	}
}
