/**
 * The Google button on the Login / Join Now page.
 *
 * TWO SLOTS, one visible at a time (Howard's two screenshots, 2026-11-14):
 *
 *   .meetem-gsi--panel      inside the login / register card, under the tabs.
 *                           Desktop and tablet.
 *   .meetem-gsi--join-card  inside the "Join Here" card, above "Join Now —
 *                           Free". Phones only, because on a phone the card
 *                           above is more than a thousand pixels down the page.
 *
 * 767px is the breakpoint `join-partner.css` already uses to stack the two
 * path cards, so the swap happens at the same width as the layout change
 * around it.
 *
 * Deliberately plain. Google's own button is drawn by their script and its
 * look is fixed by their brand rules, so everything here is the frame around
 * it: a line of explanation above, a divider below, and enough air that it
 * reads as an alternative to the form rather than part of it.
 */

.meetem-gsi {
	max-width: 570px;
	margin: 0 auto 26px;
	text-align: center;
}

/*
 * Howard marked this line twice on 2026-11-16 — "Bold / Bigger" on the
 * computer, "Same bold size" against "100% Free to Register & Browse" on the
 * phone. So it matches that line exactly: 15px, 700, the card's ink colour,
 * rather than the 13.5px grey caption it was.
 */
.meetem-gsi__lead {
	margin: 0 0 12px;
	color: #382844;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.45;
}

/* The script replaces the inner div with an iframe of Google's own button;
   centring has to happen on the wrapper, not on it. */
.meetem-gsi__button {
	display: flex;
	justify-content: center;
	min-height: 44px;
}

/*
 * Google sizes its iframe 20px WIDER than the button and pulls it back with
 * `margin: -2px -10px`. The site's generic `iframe { max-width: 100% }`
 * squeezed it back to the container's width, so the right end of the pill
 * was cut off (measured 2026-11-28: inline 332px, computed 312px). Let the
 * iframe be the size Google asked for.
 */
.meetem-gsi .meetem-gsi__button iframe {
	max-width: none;
}

/* A rule with the words sitting on it. The ::before/::after pair draws the
   line either side, so it stays centred at any width without a fixed one. */
.meetem-gsi__or {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 22px 0 0;
	color: #8a7a9c;
	font-size: 12.5px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.meetem-gsi__or::before,
.meetem-gsi__or::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: rgba(107, 91, 125, 0.22);
}

@media screen and (max-width: 600px) {
	.meetem-gsi {
		margin-bottom: 20px;
	}

	.meetem-gsi__or {
		margin-top: 18px;
	}
}


/* -------------------------------------------------------------------------
 * The two slots
 * ---------------------------------------------------------------------- */

/* Under the LOGIN / REGISTER tabs. The card has its own padding, so this
   needs top air to clear the tab bar but not the 26px the old placement had
   above the whole card. */
.meetem-gsi--panel {
	padding: 22px 0 0;
	margin-bottom: 4px;
}

@media screen and (max-width: 767px) {
	.meetem-gsi--panel {
		display: none;
	}
}

/*
 * Inside the Join Here card. That card is a flex column with its text set to
 * `flex: 1 1 auto` so the buttons line up across both cards, so this block has
 * to be full width and must not grow.
 */
.meetem-gsi--join-card {
	display: none;
	width: 100%;
	margin: 0 0 14px;
	text-align: left;
}

@media screen and (max-width: 767px) {
	.meetem-gsi--join-card {
		display: block;
	}

	/* The card's own copy is left-aligned; a centred lead over a left-aligned
	   card reads as a different block that happens to be there. */
	.meetem-gsi--join-card .meetem-gsi__lead {
		margin-bottom: 10px;
		text-align: left;
	}

	.meetem-gsi--join-card .meetem-gsi__button {
		justify-content: flex-start;
	}

	/* "or use your email" here divides Google from "Join Now — Free", which is
	   exactly what it says, so it stays — just tighter than in the panel. */
	.meetem-gsi--join-card .meetem-gsi__or {
		margin: 14px 0 0;
	}
}


/* -------------------------------------------------------------------------
 * The register popup (2026-11-28)
 *
 * Two blocks inside WP Dating's footer popup, as Howard drew them:
 *
 *   .meetem-gsi--popup-top     under the purple price box, above Username
 *   .meetem-gsi--popup-bottom  between "Register" and "Already a member?"
 *
 * Three classes deep, because the popup sits inside .wpee-register-form and
 * the theme styles paragraphs inside forms; the generic .meetem-gsi margins
 * above are for the Join page and must not leak in here.
 * ---------------------------------------------------------------------- */

.wpee-register-form .meetem-gsi.meetem-gsi--popup {
	width: 100%;
	max-width: none;
	margin: 0 0 16px;
	padding: 0;
	text-align: center;
}

.wpee-register-form .meetem-gsi.meetem-gsi--popup-bottom {
	margin: 16px 0 0;
}

.wpee-register-form .meetem-gsi--popup .meetem-gsi__or {
	margin: 14px 0 0;
	padding: 0;
	font-size: 12px;
	line-height: 1.3;
}

.wpee-register-form .meetem-gsi--popup-bottom .meetem-gsi__or {
	margin: 0 0 14px;
}

/*
 * No scroll rule is needed here: WP Dating already caps the popup content at
 * `calc(100vh - 110px)` with `overflow: auto` (.wpee-lr-tab-content-wrap), so
 * the taller register tab scrolls inside the card on any screen. Checked on
 * live 2026-11-28 at 1440x900 and 390x844.
 */
