/**
 * BigPay checkout.
 * Palette follows the active theme: accent #E6088E on #1b1b1b,
 * Poppins, white text, #ef233c for errors.
 */

.fibp {
	--fibp-accent: #60A3F8;
	--fibp-bg: #1b1b1b;
	--fibp-panel: #232323;
	--fibp-line: #343434;
	--fibp-text: #fff;
	--fibp-muted: #bebebe;
	--fibp-error: #ef233c;

	font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--fibp-text);
	max-width: 880px;
	margin: 0 auto;
	padding: 8px 0 48px;
}

.fibp *,
.fibp *::before,
.fibp *::after { box-sizing: border-box; }

/* The theme injects a floating "A customer just saved 50%" notification
   (its own class name is .fake-sales-pop-up). On mobile it lands directly
   over the plan cards — on top of the one decision the page exists to get —
   so it is suppressed here. Every other page is untouched. */
body.fibp-checkout-page .fake-sales-pop-up { display: none !important; }

/* ---------- page hero ----------
   The theme prints a flat amber slab with the page title on every page. On
   checkout that is loud, says nothing, and pushes the plans below the fold,
   so it is replaced with a header that sets expectations instead. Scoped to
   the checkout body class — every other page keeps the theme's banner. */

body.fibp-checkout-page .inside-ttl { display: none; }

/* The theme pads the container to clear the banner it no longer has. */
body.fibp-checkout-page #insidepage-container { padding-top: 22px; }

.fibp-hero {
	text-align: center;
	max-width: 620px;
	margin: 0 auto 40px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--fibp-line);
}

.fibp-hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 14px;
	padding: 6px 14px;
	border: 1px solid rgba(230, 8, 142, .35);
	border-radius: 99px;
	background: rgba(230, 8, 142, .08);
	color: var(--fibp-accent);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.fibp-hero-title {
	margin: 0 0 10px;
	font-size: 36px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--fibp-text);
	letter-spacing: -.01em;
}

.fibp-hero-sub {
	margin: 0 auto 20px;
	max-width: 44ch;
	font-size: 16px;
	line-height: 1.55;
	color: var(--fibp-muted);
}

.fibp-hero-trust {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fibp-hero-trust li {
	position: relative;
	font-size: 13.5px;
	color: var(--fibp-muted);
	white-space: nowrap;
}

/* Separators between items, not after the last one. */
.fibp-hero-trust li + li::before {
	content: "";
	position: absolute;
	left: -12px;
	top: 50%;
	width: 3px;
	height: 3px;
	margin-top: -1.5px;
	border-radius: 50%;
	background: #4a4a4a;
}

@media (max-width: 600px) {
	.fibp-hero-title { font-size: 27px; }
	.fibp-hero-sub { font-size: 15px; }
	.fibp-hero-trust { gap: 8px 16px; }
	.fibp-hero-trust li { font-size: 12.5px; }
	.fibp-hero-trust li + li::before { left: -9px; }
}

/* ---------- steps ---------- */

.fibp-step { margin-bottom: 38px; }

.fibp-step-title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 18px;
	color: var(--fibp-text);
}

.fibp-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--fibp-accent);
	color: #000;
	font-size: 15px;
	font-weight: 700;
	flex: 0 0 auto;
}

/* ---------- plans ---------- */

.fibp-plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 14px;
}

.fibp-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 22px 18px 18px;
	border: 2px solid var(--fibp-line);
	border-radius: 14px;
	background: var(--fibp-panel);
	cursor: pointer;
	transition: border-color .15s ease, transform .15s ease;
}

.fibp-plan:hover { border-color: #4a4a4a; }

.fibp-plan.is-selected {
	border-color: var(--fibp-accent);
	transform: translateY(-2px);
}

.fibp-plan.is-popular { border-style: solid; }

.fibp-plan-flag {
	position: absolute;
	top: -11px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--fibp-accent);
	color: #000;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 99px;
	white-space: nowrap;
}

.fibp-plan-name {
	font-size: 15px;
	font-weight: 600;
	color: var(--fibp-muted);
}

.fibp-plan-price {
	font-size: 28px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--fibp-text);
}

.fibp-plan-rate {
	font-size: 13px;
	color: var(--fibp-muted);
}

.fibp-plan-save {
	margin-top: 6px;
	align-self: flex-start;
	font-size: 12px;
	font-weight: 700;
	color: var(--fibp-accent);
}

.fibp-sr {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Keyboard users still need to see focus. */
.fibp-plan:focus-within {
	outline: 2px solid var(--fibp-accent);
	outline-offset: 3px;
}

/* ---------- fields ---------- */

.fibp-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px 18px;
}

.fibp-field { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.fibp-field--wide { grid-column: 1 / -1; }

.fibp-field label {
	font-size: 14px;
	font-weight: 600;
	color: var(--fibp-text);
}

.fibp-opt { font-weight: 400; color: var(--fibp-muted); }

.fibp-field input,
.fibp-field select,
.fibp-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--fibp-line);
	border-radius: 10px;
	background: var(--fibp-panel);
	color: var(--fibp-text);
	font-family: inherit;
	font-size: 15px;
}

.fibp-field input:focus,
.fibp-field select:focus,
.fibp-field textarea:focus {
	outline: none;
	border-color: var(--fibp-accent);
}

.fibp-field textarea { resize: vertical; }

.fibp-hint { font-size: 12.5px; color: var(--fibp-muted); }

/* Honeypot — off-screen, never shown to people. */
.fibp-hp { position: absolute; left: -9999px; }

/* ---------- summary + submit ---------- */

.fibp-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	border: 1px solid var(--fibp-line);
	border-radius: 12px;
	background: var(--fibp-panel);
	margin-bottom: 16px;
}

.fibp-summary-label { font-size: 15px; color: var(--fibp-muted); }
.fibp-summary-total { font-size: 26px; font-weight: 800; color: var(--fibp-accent); }

.fibp-submit {
	display: block;
	width: 100%;
	padding: 16px 24px;
	border: 0;
	border-radius: 99px;
	background: var(--fibp-accent);
	color: #000;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	cursor: pointer;
	transition: filter .15s ease;
}

.fibp-submit:hover:not(:disabled) { filter: brightness(1.08); }

.fibp-submit:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.fibp-secure {
	margin: 14px 0 0;
	font-size: 12.5px;
	color: var(--fibp-muted);
	text-align: center;
}

/* ---------- alerts ---------- */

.fibp-alert {
	margin: 0 0 16px;
	padding: 13px 16px;
	border-radius: 10px;
	font-size: 14.5px;
	line-height: 1.5;
}

.fibp-alert--error {
	background: rgba(239, 35, 60, .12);
	border: 1px solid var(--fibp-error);
	color: #ffb3bd;
}

/* ---------- card form ---------- */

.fibp-paying {
	font-size: 15px;
	color: var(--fibp-muted);
	margin: 0 0 16px;
}

.fibp-paying strong { color: var(--fibp-accent); }

/* The gateway injects a white iframe, so give it a light card of its own
   rather than letting it clash with the dark page. */
#fibp-card-form {
	background: #fff;
	border-radius: 12px;
	padding: 8px;
	min-height: 420px;
	overflow: hidden;
}

#fibp-card-form iframe {
	width: 100% !important;
	border: 0;
}

/* ---------- order outcome (thank-you page) ---------- */

.fibp-outcome {
	--fibp-tone: var(--fibp-accent);
	max-width: 560px;
	padding-top: 10px;
	padding-bottom: 56px;
}

.fibp-outcome--ok   { --fibp-tone: #41E296; }
.fibp-outcome--stop { --fibp-tone: #ef233c; }
.fibp-outcome--wait { --fibp-tone: #E6088E; }

.fibp-out-head { text-align: center; margin-bottom: 26px; }

.fibp-out-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--fibp-tone) 14%, transparent);
	border: 1.5px solid color-mix(in srgb, var(--fibp-tone) 45%, transparent);
	color: var(--fibp-tone);
}

/* Fallback for browsers without color-mix. */
@supports not (background: color-mix(in srgb, red 10%, transparent)) {
	.fibp-out-mark { background: rgba(230, 8, 142, .12); border-color: rgba(230, 8, 142, .45); }
}

.fibp-out-title {
	margin: 0 0 8px;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--fibp-text);
	letter-spacing: -.01em;
}

.fibp-out-lead {
	margin: 0;
	font-size: 16.5px;
	line-height: 1.55;
	color: var(--fibp-muted);
}

.fibp-out-card {
	border: 1px solid var(--fibp-line);
	border-radius: 14px;
	background: var(--fibp-panel);
	padding: 6px 20px;
	margin-bottom: 30px;
}

.fibp-out-rows { margin: 0; }

.fibp-out-rows > div {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--fibp-line);
}

.fibp-out-rows > div:last-child { border-bottom: 0; }

.fibp-out-rows dt {
	margin: 0;
	font-size: 14.5px;
	color: var(--fibp-muted);
}

.fibp-out-rows dd {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--fibp-text);
	text-align: right;
	word-break: break-word;
}

.fibp-out-rows code,
.fibp-out-note code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: .92em;
	letter-spacing: .02em;
	color: var(--fibp-accent);
	background: none;
	padding: 0;
}

.fibp-out-h2 {
	margin: 0 0 14px;
	font-size: 17px;
	font-weight: 700;
	color: var(--fibp-text);
}

.fibp-steps { margin: 0 0 28px; padding: 0; list-style: none; }

.fibp-steps li {
	display: flex;
	gap: 13px;
	padding: 0 0 16px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--fibp-muted);
}

.fibp-steps li:last-child { padding-bottom: 0; }
.fibp-steps strong { color: var(--fibp-text); font-weight: 600; }

.fibp-steps-n {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 25px;
	height: 25px;
	border-radius: 50%;
	background: var(--fibp-accent);
	color: #000;
	font-size: 13px;
	font-weight: 700;
}

.fibp-out-body {
	margin: 0 0 26px;
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--fibp-muted);
}

.fibp-out-body strong { color: var(--fibp-text); }

.fibp-out-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.fibp-btn {
	flex: 1 1 200px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 22px;
	border-radius: 99px;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: filter .15s ease, border-color .15s ease;
}

.fibp-btn--primary { background: var(--fibp-accent); color: #000; border: 2px solid var(--fibp-accent); }
.fibp-btn--primary:hover { filter: brightness(1.08); color: #000; }

.fibp-btn--ghost { background: transparent; color: var(--fibp-text); border: 2px solid var(--fibp-line); }
.fibp-btn--ghost:hover { border-color: var(--fibp-accent); color: var(--fibp-text); }

.fibp-out-note {
	margin: 24px 0 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--fibp-muted);
	text-align: center;
}

@media (max-width: 600px) {
	.fibp-out-title { font-size: 25px; }
	.fibp-out-lead { font-size: 15.5px; }
	.fibp-out-mark { width: 54px; height: 54px; }
	.fibp-out-rows > div { flex-direction: column; gap: 3px; }
	.fibp-out-rows dd { text-align: left; }
	.fibp-btn { flex-basis: 100%; }
}

@media (max-width: 600px) {
	.fibp-plans { grid-template-columns: repeat(2, 1fr); }
	.fibp-plan-price { font-size: 23px; }
	.fibp-step-title { font-size: 18px; }
}
