/**
 * Engoory Flitt — storefront styling.
 *
 * Two surfaces: the payment-method box inside checkout, and the pay page where
 * the embedded widget mounts. Everything is scoped under a plugin class so it
 * cannot reach into the theme or into Flitt's own iframe.
 */

:root {
	--egf-accent: #2f7cf6;
	--egf-ink: #0d1526;
	--egf-muted: #5b6b80;
	--egf-line: #e6eaf0;
	--egf-surface: #fff;
	--egf-tint: #f2f8ff;
	--egf-tint-line: #d6e7fd;
	--egf-critical: #b91c1c;
	--egf-radius: 14px;
	--egf-radius-sm: 10px;
}

/*
 * Context palettes.
 *
 * Custom properties resolve where they are declared, so a mapping such as
 * `--egf-ink: var(--ec-text)` on :root would read Engoory's :root defaults,
 * not the values Engoory sets on <body>. The mappings are therefore declared
 * on the plugin's own containers, which inherit from <body>.
 */

/* WoodMart dark version (body.global-color-scheme-light) without Engoory
   Checkout: follow the theme's own dark variables. */
body.global-color-scheme-light :is(.engoory-flitt-fields, .engoory-flitt-save, .engoory-flitt-marks, .engoory-flitt-pay, .engoory-flitt-account-hint, .engoory-flitt-blocks-label, .engoory-flitt-blocks__description) {
	--egf-ink: var(--wd-title-color, #fff);
	--egf-muted: rgba(255, 255, 255, 0.72);
	--egf-line: var(--brdcolor-gray-300, rgba(255, 255, 255, 0.15));
	--egf-surface: var(--bgcolor-white, #0f0f0f);
	--egf-tint: rgba(255, 255, 255, 0.06);
	--egf-tint-line: rgba(255, 255, 255, 0.3);
	--egf-critical: #ff8a80;
}

/* Engoory Checkout: the payment row matches Engoory's own payment cards —
   same accent, surfaces, hairlines and radius, in light and dark. */
body.engoory-checkout-active :is(.engoory-flitt-fields, .engoory-flitt-save, .engoory-flitt-marks, .engoory-flitt-blocks-label, .engoory-flitt-blocks__description) {
	--egf-accent: var(--ec-accent, #2f7cf6);
	--egf-ink: var(--ec-text, #0d1526);
	--egf-muted: var(--ec-muted, #5b6b80);
	--egf-line: var(--ec-border, #e6eaf0);
	--egf-surface: var(--ec-surface, #fff);
	--egf-tint: var(--ec-accent-soft, #f2f8ff);
	--egf-tint-line: color-mix(in oklab, var(--ec-accent, #2f7cf6) 45%, var(--ec-border, #e6eaf0));
	--egf-critical: var(--ec-critical, #b91c1c);
	--egf-radius: var(--ec-radius, 14px);
	--egf-radius-sm: var(--ec-input-radius, 10px);
}

/* ================================================== Checkout payment box == */

.engoory-flitt-fields {
	display: grid;
	gap: 14px;
	padding-top: 2px;
}

.engoory-flitt-fields__intro {
	margin: 0;
	color: var(--egf-muted);
	font-size: 0.95em;
	line-height: 1.5;
}

/* WooCommerce renders saved cards as a <ul> of <li>: radio, then label, as
   SIBLINGS. Styling the label as the card left the radio outside it on a line
   of its own (WoodMart and Engoory both make labels block-level). The list
   item is the card instead, so radio and text share one 44px row in every
   theme. Themes that style list items globally gave them bullets and
   indentation, hence the resets. */
.engoory-flitt-fields__saved ul,
.engoory-flitt-fields__saved ul.woocommerce-SavedPaymentMethods {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.engoory-flitt-fields__saved li,
.engoory-flitt-fields__saved ul.woocommerce-SavedPaymentMethods > li {
	position: relative;
	display: flex;
	gap: 10px;
	align-items: center;
	box-sizing: border-box;
	min-height: 44px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--egf-line);
	border-radius: var(--egf-radius-sm);
	background: var(--egf-surface);
	list-style: none;
	transition: border-color 0.14s ease, background-color 0.14s ease;
}

.engoory-flitt-fields__saved li::before,
.engoory-flitt-fields__saved li::marker {
	content: none;
}

.engoory-flitt-fields__saved li:hover {
	border-color: var(--egf-tint-line);
}

.engoory-flitt-fields__saved li > input[type="radio"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--egf-accent);
}

/* The label fills the rest of the row, so the whole card is the hit target. */
.engoory-flitt-fields__saved li > label,
body .engoory-flitt-fields__saved ul.woocommerce-SavedPaymentMethods > li > label {
	flex: 1 1 auto;
	display: block;
	min-width: 0;
	margin: 0;
	padding: 12px 0;
	border: 0;
	background: none;
	color: var(--egf-ink);
	font-size: 0.95em;
	line-height: 1.35;
	cursor: pointer;
}

.engoory-flitt-fields__saved li:has(input:checked) {
	border-color: var(--egf-accent);
	background: var(--egf-tint);
}

.engoory-flitt-fields__saved li:has(input:focus-visible) {
	outline: 2px solid var(--egf-accent);
	outline-offset: 2px;
}

/* No-JS fallback for WooCommerce's tokenization script: while a saved card is
   selected there is nothing new to save, so the opt-in steps aside. With the
   script loaded it sets the row's display inline and takes precedence. */
.payment_box:has(.engoory-flitt-fields__saved input.woocommerce-SavedPaymentMethods-tokenInput:checked:not([value="new"])) .engoory-flitt-save {
	display: none;
}

/* -------------------------------------------------- Acceptance marks -- */

/*
 * One tile, four marks.
 *
 * WooCommerce's Visa and Mastercard files are self-contained card tiles — each
 * carries its own background and border — while wallet marks are bare glyphs on
 * transparent. Rendered as-is they read as two different design systems sitting
 * next to each other, which is exactly what they are.
 *
 * So the tile is imposed here rather than left to the artwork: identical box,
 * identical radius, artwork scaled to fit inside with object-fit. Whatever a
 * scheme ships, it ends up in the same frame as everything else.
 */

.engoory-flitt-marks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0;
	line-height: 1;
}

.engoory-flitt-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 46px;
	height: 30px;
}

img.engoory-flitt-mark {
	padding: 2px;
	border: 1px solid #e8ecf1;
	border-radius: 5px;
	background: #fff;
	object-fit: contain;
	/* The artwork is bitmap at 120x80 and renders at 46x30, so it is always
	   downscaled — force the smooth filter rather than whatever the browser
	   picks, which on some engines is nearest-neighbour and looks ragged. */
	image-rendering: auto;
}

/* Apple's mark carries its own keyline. Ours on top of it reads as a double
   frame, so the tile steps back and lets the artwork supply the edge. */
img.engoory-flitt-mark--apple-pay {
	padding: 0;
	border-color: transparent;
}

/* Desaturating real artwork keeps every letterform and proportion exact while
   dropping the marks out of the page's colour hierarchy — better than
   substituting flat grey shapes that only approximate them. */
.engoory-flitt-marks.is-mono img.engoory-flitt-mark {
	filter: grayscale(1) contrast(0.9) opacity(0.8);
}

.engoory-flitt-marks.is-mono img.engoory-flitt-mark:hover {
	filter: none;
}

/* Type fallback, boxed to the same tile so a missing file does not break the row. */
.engoory-flitt-mark--text {
	width: auto;
	min-width: 46px;
	padding: 0 8px;
	border: 1px solid var(--egf-line);
	border-radius: 5px;
	background: var(--egf-surface);
	color: var(--egf-ink);
	font-size: 11px;
	font-weight: 500;
	white-space: nowrap;
}

.engoory-flitt-marks.is-mono .engoory-flitt-mark--text {
	color: var(--egf-muted);
}

.engoory-flitt-marks--title {
	margin-top: 6px;
}

/* Themes float gateway icons right and cap their height. */
.wc_payment_method label .engoory-flitt-marks,
.wc_payment_method .engoory-flitt-marks {
	float: none;
	max-height: none;
	margin: 10px 0 0;
}

/* WoodMart: `.payment_methods li img` adds 5px side margins and a 40px cap,
   which broke the even 8px rhythm of the row. */
.wc_payment_method label img.engoory-flitt-mark,
.payment_methods li label img.engoory-flitt-mark {
	display: inline-flex;
	width: 46px;
	max-width: 46px;
	height: 30px;
	max-height: 30px;
	margin: 0;
	vertical-align: middle;
}

/* Engoory's selection language: a hairline in the accent colour, no fill. */
body.engoory-checkout-active .engoory-flitt-fields__saved li:has(input:checked) {
	border-color: var(--egf-tint-line);
	background: var(--egf-surface);
}

/* ------------------------------------------------- Block checkout label -- */

.engoory-flitt-blocks-label {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-width: 0;
}

.engoory-flitt-blocks-label__title {
	min-width: 0;
}

.engoory-flitt-blocks-label .engoory-flitt-marks--title {
	gap: 6px;
	margin: 0;
}

.engoory-flitt-blocks-label img.engoory-flitt-mark {
	width: 36px;
	height: 24px;
	margin: 0;
	padding: 1px;
	border-radius: 4px;
}

.engoory-flitt-blocks-label .engoory-flitt-mark--text {
	height: 24px;
	min-width: 36px;
	padding: 0 6px;
}

/* ---------------------------------------------------- Save-card opt-in -- */

.engoory-flitt-save {
	display: flex;
	gap: 12px;
	align-items: center;
	margin: 4px 0 0;
	padding: 14px 16px;
	border: 1px solid var(--egf-line);
	border-radius: var(--egf-radius-sm);
	background: var(--egf-surface);
}

/*
 * The checkbox is the real control, styled directly.
 *
 * The previous pass hid the input and drew a <span> in its place, which is the
 * usual trick — but a span's dimensions are only ever a suggestion once a theme
 * has opinions about `label span`. Woodmart collapsed it to a 2px sliver. An
 * input with appearance:none cannot be collapsed the same way, and the tick is
 * a background image rather than a pseudo-element, because ::after on an input
 * is not reliably rendered.
 */
.engoory-flitt-save__input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	min-width: 18px;
	min-height: 18px;
	margin: 0;
	padding: 0;
	border: 1px solid color-mix(in srgb, var(--egf-ink) 30%, var(--egf-surface));
	border-radius: 4px;
	background: var(--egf-surface) no-repeat center;
	background-size: 11px 11px;
	cursor: pointer;
	transition: border-color 0.14s ease, background-color 0.14s ease;
}

.engoory-flitt-save__input[type="checkbox"]:hover {
	border-color: color-mix(in srgb, var(--egf-ink) 50%, var(--egf-surface));
}

.engoory-flitt-save__input[type="checkbox"]:checked {
	border-color: var(--egf-accent);
	background-color: var(--egf-accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.engoory-flitt-save__input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--egf-accent);
	outline-offset: 2px;
}

/* Inside Engoory Checkout the control is Engoory's own: a native checkbox in
   the Engoory accent, exactly like WooCommerce's save-card row. The browser
   then picks a tick colour that contrasts with the accent — which matters on
   Engoory's dark theme, where the accent inverts to near-white and a fixed
   white tick disappeared. */
body.engoory-checkout-active .engoory-flitt-save__input[type="checkbox"],
body.engoory-checkout-active .engoory-flitt-save__input[type="checkbox"]:checked {
	appearance: auto;
	-webkit-appearance: checkbox;
	border: 0;
	background: none;
	accent-color: var(--egf-accent);
}

.engoory-flitt-save__text {
	display: block;
	min-width: 0;
	margin: 0;
	cursor: pointer;
}

.engoory-flitt-save__title {
	display: block;
	color: var(--egf-ink);
	font-size: 0.98em;
	font-weight: 400;
	line-height: 1.4;
}

.engoory-flitt-save__hint {
	display: block;
	margin-top: 3px;
	color: var(--egf-muted);
	font-size: 0.92em;
	line-height: 1.45;
}

/* ============================================================= Pay page == */

/* The theme repeats order number, date, total and payment method as a bulleted
   list above the widget, left-aligned against a centred form. The summary in
   .engoory-flitt-pay says the same thing in the right place, so the duplicate
   goes — scoped to this page by a body class, never globally. */
.engoory-flitt-pay-page ul.order_details,
.engoory-flitt-pay-page .woocommerce-order-overview {
	display: none;
}

.engoory-flitt-pay-page .woocommerce,
.engoory-flitt-pay-page .entry-content {
	max-width: none;
}


.engoory-flitt-pay {
	max-width: 480px;
	margin: 0 auto;
	padding: 8px 0 40px;
}

.engoory-flitt-pay__summary {
	margin-bottom: 26px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--egf-line);
	text-align: center;
}

.engoory-flitt-pay__eyebrow {
	margin: 0 0 8px;
	color: var(--egf-muted);
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.engoory-flitt-pay__total {
	margin: 0 0 8px;
	color: var(--egf-ink);
	font-size: 2.1em;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

/* WoodMart colours every `.amount` with its primary colour — by default a
   light green at 2.4:1 against white, too faint for the one number on the page
   that matters. The total keeps the text colour. */
.engoory-flitt-pay__total .woocommerce-Price-amount,
.engoory-flitt-pay__total .amount {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

.engoory-flitt-pay__total small,
.engoory-flitt-pay__total .includes_tax {
	display: block;
	margin-top: 6px;
	color: var(--egf-muted);
	font-size: 0.42em;
	font-weight: 400;
	letter-spacing: 0;
}

.engoory-flitt-pay__meta {
	margin: 0;
	color: var(--egf-muted);
	font-size: 0.9em;
}

.engoory-flitt-pay__meta span {
	margin: 0 6px;
	opacity: 0.5;
}

.engoory-flitt-pay__footnote {
	margin: 22px 0 0;
	color: var(--egf-muted);
	font-size: 0.82em;
	line-height: 1.5;
	text-align: center;
}

/* ---------------------------------------------------------------- Widget -- */

.engoory-flitt-widget {
	min-height: 340px;
}

.engoory-flitt-widget__mount {
	transition: opacity 0.2s ease;
}

.engoory-flitt-widget:not(.is-ready) .engoory-flitt-widget__mount {
	opacity: 0;
}

.engoory-flitt-widget.is-ready .engoory-flitt-widget__mount {
	opacity: 1;
}

.engoory-flitt-widget__fallback {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 90px 0;
	color: var(--egf-muted);
	font-size: 0.9em;
	line-height: 1.5;
	text-align: center;
}

.engoory-flitt-widget.is-ready .engoory-flitt-widget__fallback {
	display: none;
}

.engoory-flitt-widget__spinner {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	border: 2px solid var(--egf-tint-line);
	border-top-color: var(--egf-accent);
	border-radius: 50%;
	animation: engoory-flitt-spin 0.7s linear infinite;
}

@keyframes engoory-flitt-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Confirming an earlier saved-card charge: no form will appear, so the box
   does not reserve the form's height. */
.engoory-flitt-widget.is-pending {
	min-height: 0;
}

.engoory-flitt-widget.is-pending .engoory-flitt-widget__fallback {
	padding: 32px 0;
}

.engoory-flitt-widget__message {
	max-width: 36em;
}

/* Error: a message and one way forward. */
.engoory-flitt-widget.has-error {
	min-height: 0;
}

.engoory-flitt-widget.has-error .engoory-flitt-widget__fallback {
	flex-direction: column;
	padding: 32px 20px;
	border: 1px solid var(--egf-line);
	border-radius: var(--egf-radius-sm);
	color: var(--egf-ink);
}

.engoory-flitt-widget.has-error .engoory-flitt-widget__spinner {
	display: none;
}

.engoory-flitt-widget .engoory-flitt-widget__action {
	min-height: 44px;
	padding: 0 22px;
	cursor: pointer;
}

.engoory-flitt-widget .engoory-flitt-widget__action:focus-visible {
	outline: 2px solid var(--egf-accent);
	outline-offset: 2px;
}

.engoory-flitt-widget__noscript {
	margin: 0;
	padding: 24px 0;
	color: var(--egf-critical);
	text-align: center;
}

/* Flitt's widget brings its own layout; only the outer gutter needs correcting
   so it lines up with the summary above rather than sitting in its own column. */
.engoory-flitt-widget .f-container,
.engoory-flitt-widget [class*="f-checkout"] {
	padding-inline: 0;
}

/* ---------------------------------------------------------------- Blocks -- */

.engoory-flitt-blocks__icon {
	max-height: 24px;
	width: auto;
}

.engoory-flitt-blocks__description {
	color: var(--egf-muted);
	font-size: 0.95em;
	line-height: 1.5;
}

/* ------------------------------------------------------------ Responsive -- */

@media (max-width: 600px) {
	.engoory-flitt-marks {
		gap: 5px;
	}

	.engoory-flitt-pay {
		max-width: none;
		padding-bottom: 28px;
	}

	.engoory-flitt-pay__total {
		font-size: 1.7em;
	}

	.engoory-flitt-widget__fallback {
		padding: 70px 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.engoory-flitt-widget__spinner {
		animation-duration: 2s;
	}

	.engoory-flitt-fields *,
	.engoory-flitt-save,
	.engoory-flitt-save * {
		transition: none !important;
	}
}

/* ============================================================ My Account == */

.engoory-flitt-account-hint {
	margin: 0 0 20px;
	padding: 14px 16px;
	border: 1px solid var(--egf-line);
	border-radius: var(--egf-radius-sm);
	background: color-mix(in srgb, var(--egf-ink) 2%, var(--egf-surface));
	color: var(--egf-muted);
	font-size: 0.92em;
	line-height: 1.5;
}

/* On the account and add-method screens the method label is a heading rather
   than a row in a list, so the marks need to sit on the baseline with it
   instead of crowding the text. */
.woocommerce-account .engoory-flitt-marks--title {
	margin-inline-start: 12px;
}

.woocommerce-account .engoory-flitt-mark {
	height: 20px;
}

.woocommerce-account .engoory-flitt-mark--text {
	font-size: 10px;
}

/* ================================================ Payment method card == */

/*
 * One card: radio, method name and the accepted-card marks on a single row,
 * with the save-card option (and any saved cards) inside the same card under
 * a hairline. The layout is declared here in full rather than inherited, so it
 * holds whatever the page around it does: WooCommerce's list, WoodMart's
 * inline labels, Engoory's grid cards, or Engoory's Checkout Block takeover,
 * which centred the label and put the radio on a line of its own.
 *
 * Selectors start at #payment so they outrank theme and checkout rules
 * without !important. The row is a container, so the marks can step under the
 * name only when the card is genuinely too narrow for both.
 */
body #payment ul.wc_payment_methods > li.wc_payment_method.payment_method_engoory_flitt {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	column-gap: 12px;
	row-gap: 0;
	text-align: start;
	container-type: inline-size;
	container-name: egf-method;
}

/* Inside Engoory Checkout the row is an Engoory card in every layout —
   including the Checkout Block takeover, whose page rules dropped the card
   chrome — with Engoory's surface, hairline, radius and selection border. */
body.engoory-checkout-active #payment ul.wc_payment_methods > li.wc_payment_method.payment_method_engoory_flitt {
	padding: 14px 16px;
	border: 1px solid var(--ec-border);
	border-radius: var(--ec-input-radius, 10px);
	background: var(--ec-surface);
	list-style: none;
}

body.engoory-checkout-active #payment ul.wc_payment_methods > li.wc_payment_method.payment_method_engoory_flitt:has(> input[type="radio"]:checked) {
	border-color: color-mix(in oklab, var(--ec-accent) 45%, var(--ec-border));
}

body #payment ul.wc_payment_methods > li.wc_payment_method.payment_method_engoory_flitt > input[type="radio"] {
	grid-column: 1;
	grid-row: 1;
	align-self: start;
	/* Centred on the first line (22px: the tile height), so it stays beside
	   the name when the marks drop underneath. */
	margin: 3px 0 0;
}

body #payment ul.wc_payment_methods > li.wc_payment_method.payment_method_engoory_flitt > label {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	min-width: 0;
	min-height: 22px;
	margin: 0;
	padding: 0;
	font-weight: 500;
	line-height: 1.3;
	text-align: start;
	/* The method name never breaks across lines. */
	white-space: nowrap;
	cursor: pointer;
}

/*
 * All four marks always show. Beside the name when the card is wide enough
 * for both, at the end of the row; otherwise as a full row under the name,
 * aligned with it. (3.3.7 clipped Apple Pay and Google Pay on narrow cards.)
 */
body #payment ul.wc_payment_methods > li.wc_payment_method.payment_method_engoory_flitt > label .engoory-flitt-marks {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-end;
	gap: 4px;
	min-width: 0;
	max-width: 100%;
	height: auto;
	overflow: visible;
	margin: 0 0 0 auto;
	margin-inline-start: auto;
	float: none;
	white-space: normal;
}

/* Tiles like the card schemes' own acceptance marks: white, hairline, small
   radius, artwork inset. White even on a dark checkout — scheme artwork is
   drawn for a light ground. */
body #payment ul.wc_payment_methods > li.wc_payment_method.payment_method_engoory_flitt > label img.engoory-flitt-mark {
	display: block;
	box-sizing: border-box;
	width: 32px;
	max-width: none;
	height: 22px;
	max-height: none;
	margin: 0;
	padding: 2px 3px;
	border: 1px solid #e3e5e8;
	border-radius: 5px;
	background: #fff;
	object-fit: contain;
}

body #payment ul.wc_payment_methods > li.wc_payment_method.payment_method_engoory_flitt > label img.engoory-flitt-mark--apple-pay {
	padding: 0;
	border-color: transparent;
}

body #payment ul.wc_payment_methods > li.wc_payment_method.payment_method_engoory_flitt > label .engoory-flitt-mark--text {
	height: 22px;
	min-width: 32px;
	padding: 0 6px;
	border-radius: 5px;
	font-size: 10px;
	line-height: 1;
}

/* Narrower than the default name plus four tiles (about 420px of card):
   the marks take their own row under the name, starting where it starts,
   rather than wrapping to the far edge. */
@container egf-method (max-width: 430px) {
	body #payment ul.wc_payment_methods > li.wc_payment_method.payment_method_engoory_flitt > label .engoory-flitt-marks {
		flex-basis: 100%;
		justify-content: flex-start;
		margin-inline-start: 0;
	}
}

/* The body of the card: description, saved cards, save option. */
body #payment ul.wc_payment_methods > li.wc_payment_method.payment_method_engoory_flitt > .payment_box {
	grid-column: 1 / -1;
	width: auto;
	margin: 14px 0 0;
	padding: 6px 0 0;
	border: 0;
	border-block-start: 1px solid var(--ec-hairline-soft, var(--egf-line));
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-size: inherit;
	text-align: start;
}

body #payment ul.wc_payment_methods > li.wc_payment_method.payment_method_engoory_flitt > .payment_box::before,
body #payment ul.wc_payment_methods > li.wc_payment_method.payment_method_engoory_flitt > .payment_box::after {
	content: none;
	display: none;
}

body #payment li.payment_method_engoory_flitt .engoory-flitt-fields {
	gap: 10px;
	padding: 0;
}

/* The save option is a line of the card, not a second card inside it. The
   row stays 44px tall, so the whole line is an easy target. */
body #payment li.payment_method_engoory_flitt .payment_box .engoory-flitt-save,
body #payment li.payment_method_engoory_flitt .payment_box .engoory-flitt-save.woocommerce-SavedPaymentMethods-saveNew {
	align-items: center;
	gap: 10px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

body #payment li.payment_method_engoory_flitt .payment_box .engoory-flitt-save__input[type="checkbox"] {
	margin: 0;
}

body #payment li.payment_method_engoory_flitt .payment_box .engoory-flitt-save__text {
	flex: 1 1 auto;
	padding: 12px 0;
}

body #payment li.payment_method_engoory_flitt .payment_box .engoory-flitt-save__title {
	color: var(--egf-ink);
	font-size: var(--ec-fs-sm, 0.9em);
	font-weight: 400;
}

/* Saved cards above the save option: quieter rows inside the card. */
body #payment li.payment_method_engoory_flitt .engoory-flitt-fields__saved li {
	min-height: 44px;
}

/* Native controls on a dark checkout draw dark, not as white squares. */
:is(body.wd-dark, body.global-color-scheme-light) .engoory-flitt-save__input,
:is(body.wd-dark, body.global-color-scheme-light) .engoory-flitt-fields__saved input[type="radio"] {
	color-scheme: dark;
}
