/**
 * Wexofy Checkout — styles for the checkout and the order-received page.
 *
 * Brand system: Ink (#101828) + Cobalt (#2453FF) accent on a light ground,
 * Bricolage Grotesque / Instrument Sans / JetBrains Mono. The accent colour is
 * overridden from the settings via an inline custom property.
 * Everything is scoped to .fc-checkout-page or .fc-thankyou-page.
 */

/* ============================================================ Tokens */

.fc-checkout-page,
.fc-thankyou-page {
	--fc-accent: #2453ff;
	--fc-accent-dark: #1c42cc;
	--fc-accent-tint: rgba( 36, 83, 255, 0.08 );
	--fc-accent-ring: rgba( 36, 83, 255, 0.18 );
	--fc-gold: #e3a017;
	--fc-gold-tint: rgba( 227, 160, 23, 0.1 );
	--fc-ink: #101828;
	--fc-muted: #5a6472;
	--fc-line: rgba( 16, 24, 40, 0.12 );
	--fc-line-soft: rgba( 16, 24, 40, 0.07 );
	--fc-paper: #f6f7f9;
	--fc-card: #ffffff;
	--fc-aside-width: 384px;
	--fc-r: 16px;
	--fc-r-sm: 11px;
	--fc-field-h: 3.35rem;
	--fc-shadow: 0 1px 2px rgba( 16, 24, 40, 0.04 ), 0 18px 40px -22px rgba( 16, 24, 40, 0.22 );
	--fc-shadow-sm: 0 1px 2px rgba( 16, 24, 40, 0.05 ), 0 8px 20px -14px rgba( 16, 24, 40, 0.2 );
	--fc-btn-bg: linear-gradient( 180deg, var( --fc-accent ), var( --fc-accent-dark ) );
	--fc-btn-shadow: 0 10px 24px -10px rgba( 36, 83, 255, 0.45 );
	--fc-btn-shadow-hover: 0 14px 30px -10px rgba( 36, 83, 255, 0.5 );
	--fc-hero-shadow: 0 12px 30px -12px rgba( 36, 83, 255, 0.5 );
	--fc-font-head: 'Bricolage Grotesque', 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--fc-font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--fc-font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* Derive the accent tints from the (possibly customised) accent colour. */
@supports ( color: color-mix( in srgb, red 50%, blue ) ) {
	.fc-checkout-page,
	.fc-thankyou-page {
		--fc-accent-dark: color-mix( in srgb, var( --fc-accent ) 82%, #000 );
		--fc-accent-tint: color-mix( in srgb, var( --fc-accent ) 9%, transparent );
		--fc-accent-ring: color-mix( in srgb, var( --fc-accent ) 16%, transparent );
	}
}

.fc-checkout-page .fc-checkout,
.fc-thankyou-page .fc-thankyou {
	font-family: var( --fc-font-body );
	color: var( --fc-ink );
	-webkit-font-smoothing: antialiased;
}

.fc-checkout-page .fc-checkout h2,
.fc-checkout-page .fc-checkout h3,
.fc-checkout-page #order_review_heading,
.fc-thankyou-page .fc-thankyou h2,
.fc-thankyou-page .fc-thankyou h3 {
	font-family: var( --fc-font-head );
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var( --fc-ink );
}

/* ================================================================ Grid */

/* Many themes turn `form.checkout` into their own grid. Neutralise that —
   our own .fc-checkout-grid does the two-column split. */
body.fc-checkout-page form.fc-checkout {
	display: block !important;
	grid-template-columns: none !important;
	container-type: inline-size;
	container-name: fccheckout;
	width: 100% !important;
	max-width: 1180px;
	margin-inline: auto;
	float: none !important;
}

.fc-checkout-page .woocommerce {
	width: 100%;
}

.fc-checkout-page .fc-checkout-grid {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) minmax( 320px, var( --fc-aside-width ) );
	gap: 2.25rem;
	align-items: start;
	width: 100%;
}

.fc-checkout-page .fc-checkout-grid > .fc-checkout-main {
	grid-column: 1;
	min-width: 0;
	float: none;
	width: auto;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.fc-checkout-page .fc-checkout-grid > .fc-checkout-aside {
	grid-column: 2;
	min-width: 0;
	float: none;
	width: auto;
	margin: 0;
}

.fc-checkout-page .fc-checkout #customer_details,
.fc-checkout-page .fc-checkout #customer_details.col2-set,
.fc-checkout-page .fc-checkout #order_review,
.fc-checkout-page .fc-checkout .woocommerce-checkout-review-order {
	float: none;
	width: auto;
	max-width: 100%;
}

/* The order-review card is not sticky itself — the aside column is. */
.fc-checkout-page .fc-checkout #order_review {
	position: static;
	top: auto;
}

.fc-checkout-page.fc-sticky-summary .fc-checkout-grid > .fc-checkout-aside {
	position: sticky;
	top: 1.25rem;
}

@container fccheckout ( max-width: 900px ) {
	.fc-checkout-page .fc-checkout-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	.fc-checkout-page .fc-checkout-grid > .fc-checkout-main,
	.fc-checkout-page .fc-checkout-grid > .fc-checkout-aside {
		grid-column: 1;
	}
	.fc-checkout-page.fc-sticky-summary .fc-checkout-grid > .fc-checkout-aside {
		position: static;
	}
	.fc-checkout-page .fc-checkout-grid > .fc-checkout-aside {
		order: -1;
	}
}

@media ( max-width: 900px ) {
	.fc-checkout-page .fc-checkout-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	.fc-checkout-page .fc-checkout-grid > .fc-checkout-main,
	.fc-checkout-page .fc-checkout-grid > .fc-checkout-aside {
		grid-column: 1;
	}
	.fc-checkout-page .fc-checkout-grid > .fc-checkout-aside {
		order: -1;
		position: static;
	}
}

/* ============================================================ Cards / sections */

.fc-checkout-page #customer_details.col2-set,
.fc-checkout-page #order_review {
	background: var( --fc-card );
	border: 1px solid var( --fc-line );
	border-radius: var( --fc-r );
	padding: 1.6rem;
	box-shadow: var( --fc-shadow );
}

.fc-checkout-page #customer_details.col2-set {
	display: block;
	gap: 0;
}

.fc-checkout-page #customer_details .col-1,
.fc-checkout-page #customer_details .col-2 {
	width: 100%;
	float: none;
	padding: 0;
}

.fc-checkout-page .col-2 {
	margin-top: 0.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid var( --fc-line-soft );
}

.fc-checkout-page #order_review_heading {
	margin: 0 0 1rem;
	font-size: 1.15rem;
}

.fc-checkout-page .fc-checkout h3 {
	font-size: 1rem;
	margin: 0 0 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.fc-checkout-page .woocommerce-billing-fields h3,
.fc-checkout-page .woocommerce-shipping-fields h3,
.fc-checkout-page .woocommerce-additional-fields h3 {
	padding-bottom: 0.4rem;
}

/* ==================================================================== Fields */

.fc-checkout-page .form-row {
	margin: 0 0 1rem;
	padding: 0;
}

.fc-checkout-page .woocommerce-input-wrapper {
	width: 100%;
}

/* Two-up first / last name (float — reliable across WooCommerce versions) */
.fc-checkout-page .form-row-first {
	float: left;
	width: calc( 50% - 0.5rem );
}
.fc-checkout-page .form-row-last {
	float: right;
	width: calc( 50% - 0.5rem );
}
.fc-checkout-page .form-row-wide {
	clear: both;
}
.fc-checkout-page .woocommerce-billing-fields__field-wrapper::after,
.fc-checkout-page .woocommerce-shipping-fields__field-wrapper::after,
.fc-checkout-page .woocommerce-account-fields::after {
	content: "";
	display: table;
	clear: both;
}

@media ( max-width: 480px ) {
	.fc-checkout-page .form-row-first,
	.fc-checkout-page .form-row-last {
		float: none;
		width: 100%;
	}
}

.fc-checkout-page .form-row > label {
	display: block;
	margin: 0 0 0.4rem;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.005em;
	color: var( --fc-muted );
}

.fc-checkout-page .form-row .required {
	color: var( --fc-accent );
	text-decoration: none;
	border: 0;
}

.fc-checkout-page input.input-text,
.fc-checkout-page textarea,
.fc-checkout-page select,
.fc-checkout-page .select2-container .select2-selection--single {
	width: 100%;
	min-height: var( --fc-field-h );
	border: 1.5px solid var( --fc-line );
	border-radius: var( --fc-r-sm );
	padding: 0.7rem 0.95rem;
	font-size: 1rem;
	font-family: inherit;
	color: var( --fc-ink );
	background: #fff;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	line-height: 1.3;
}

.fc-checkout-page input.input-text::placeholder,
.fc-checkout-page textarea::placeholder {
	color: rgba( 16, 24, 40, 0.35 );
}

.fc-checkout-page textarea {
	min-height: 5rem;
}

.fc-checkout-page input.input-text:hover,
.fc-checkout-page textarea:hover,
.fc-checkout-page select:hover {
	border-color: rgba( 16, 24, 40, 0.28 );
}

.fc-checkout-page input.input-text:focus,
.fc-checkout-page textarea:focus,
.fc-checkout-page select:focus,
.fc-checkout-page .select2-container--focus .select2-selection--single,
.fc-checkout-page .select2-container--open .select2-selection--single {
	outline: none;
	border-color: var( --fc-accent );
	box-shadow: 0 0 0 4px var( --fc-accent-ring );
	background: #fff;
}

.fc-checkout-page .select2-container .select2-selection--single {
	display: flex;
	align-items: center;
}

.fc-checkout-page .select2-container--default .select2-selection--single .select2-selection__arrow {
	top: 50%;
	transform: translateY( -50% );
	right: 0.6rem;
}

.fc-checkout-page .select2-dropdown {
	border-color: var( --fc-accent );
	border-radius: var( --fc-r-sm );
	box-shadow: var( --fc-shadow-sm );
}

.fc-checkout-page .select2-results__option--highlighted {
	background: var( --fc-accent ) !important;
}

/* Floating label — plain text inputs only */

.fc-checkout-page.fc-floating-labels .form-row.fc-float-row {
	position: relative;
}

.fc-checkout-page.fc-floating-labels .form-row.fc-float-row input.input-text {
	padding: 1.25rem 0.95rem 0.4rem;
}

/* The label is the resting hint — hide any real placeholder until the field is
   focused, so the two never overlap. */
.fc-checkout-page.fc-floating-labels .form-row.fc-float-row input.input-text::placeholder {
	color: transparent;
	transition: color 0.1s ease;
}

.fc-checkout-page.fc-floating-labels .form-row.fc-float-row input.input-text:focus::placeholder {
	color: rgba( 16, 24, 40, 0.35 );
}

.fc-checkout-page.fc-floating-labels .form-row.fc-float-row > label {
	position: absolute;
	left: 0.75rem;
	top: 0;
	margin: 0;
	padding: 0 0.3rem;
	line-height: 1;
	transform: translateY( 1.1rem );
	font-size: 1rem;
	font-weight: 400;
	color: var( --fc-muted );
	pointer-events: none;
	background: #fff;
	white-space: nowrap;
	overflow: hidden;
	max-width: calc( 100% - 1.5rem );
	text-overflow: ellipsis;
	transition: transform 0.14s ease, color 0.14s ease, font-size 0.14s ease;
	transform-origin: left center;
}

.fc-checkout-page.fc-floating-labels .form-row.fc-float-row:focus-within > label,
.fc-checkout-page.fc-floating-labels .form-row.fc-float-row.fc-has-value > label {
	transform: translateY( -0.55rem ) scale( 0.78 );
	color: var( --fc-accent );
	font-weight: 600;
}

@supports selector(:has(*)) {
	.fc-checkout-page.fc-floating-labels .form-row.fc-float-row:has( input:not(:placeholder-shown) ) > label {
		transform: translateY( -0.55rem ) scale( 0.78 );
		color: var( --fc-accent );
		font-weight: 600;
	}
}

/* Errors / states */

.fc-checkout-page .fc-field-error {
	display: block;
	margin-top: 0.35rem;
	color: #c0362c;
	font-size: 0.82rem;
	font-weight: 500;
}

.fc-checkout-page .form-row.fc-invalid input.input-text {
	border-color: #c0362c;
	box-shadow: 0 0 0 4px rgba( 192, 54, 44, 0.12 );
}

.fc-checkout-page .form-row.fc-valid input.input-text {
	border-color: var( --fc-accent );
}

.fc-checkout-page .woocommerce-invalid input.input-text {
	border-color: #c0362c;
}

/* Checkboxes */

.fc-checkout-page .form-row.fc-checkbox-row > label,
.fc-checkout-page .woocommerce-form__label-for-checkbox,
.fc-checkout-page #ship-to-different-address label {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: var( --fc-ink );
	margin: 0;
	cursor: pointer;
}

.fc-checkout-page .form-row.fc-checkbox-row input[type="checkbox"],
.fc-checkout-page #ship-to-different-address input[type="checkbox"] {
	width: 1.15rem;
	height: 1.15rem;
	margin: 0;
	flex: 0 0 auto;
	accent-color: var( --fc-accent );
}

.fc-checkout-page #ship-to-different-address {
	margin: 0.25rem 0 1rem;
}

.fc-checkout-page [hidden] {
	display: none !important;
}

/* ============================================= Person / Business switch */

.fc-checkout-page .fc-company-field .optional {
	display: none;
}

.fc-checkout-page .form-row.fc-customer-type {
	margin: 0 0 1.35rem;
	position: static;
}

.fc-checkout-page .fc-customer-type > label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect( 0 0 0 0 );
	white-space: nowrap;
	border: 0;
}

.fc-checkout-page .fc-customer-type .woocommerce-input-wrapper {
	display: flex;
	gap: 0.3rem;
	padding: 0.3rem;
	background: var( --fc-paper );
	border-radius: var( --fc-r-sm );
}

.fc-checkout-page .fc-customer-type input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.fc-checkout-page .fc-customer-type label.radio {
	flex: 1 1 0;
	margin: 0;
	padding: 0.7rem 1rem;
	text-align: center;
	font-weight: 600;
	font-size: 0.92rem;
	color: var( --fc-muted );
	background: transparent;
	border-radius: calc( var( --fc-r-sm ) - 3px );
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.fc-checkout-page .fc-customer-type input[type="radio"]:checked + label.radio {
	background: #fff;
	color: var( --fc-ink );
	font-weight: 700;
	box-shadow: var( --fc-shadow-sm );
}

.fc-checkout-page .fc-customer-type input[type="radio"]:focus-visible + label.radio {
	box-shadow: 0 0 0 3px var( --fc-accent-ring );
}

.fc-checkout-page .fc-company-field {
	display: none !important;
	margin-bottom: 1rem;
}

.fc-checkout-page.fc-buyer-company .fc-company-field {
	display: block !important;
	animation: fc-slide-in 0.22s ease;
}

@keyframes fc-slide-in {
	from { opacity: 0; transform: translateY( -4px ); }
	to   { opacity: 1; transform: translateY( 0 ); }
}

/* =============================================== Shipping / payment */

.fc-checkout-page #shipping_method,
.fc-checkout-page .woocommerce-checkout-payment ul.payment_methods {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0 0.35rem;
	display: grid;
	gap: 0.55rem;
	border: 0;
	background: none;
}

.fc-checkout-page .woocommerce-checkout-payment ul.payment_methods {
	margin-top: 1.5rem;
}

.fc-checkout-page #shipping_method li,
.fc-checkout-page ul.payment_methods li.wc_payment_method {
	border: 1.5px solid var( --fc-line );
	border-radius: var( --fc-r-sm );
	padding: 0.9rem 1rem;
	margin: 0;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.fc-checkout-page #shipping_method li:hover,
.fc-checkout-page ul.payment_methods li.wc_payment_method:hover {
	border-color: rgba( 36, 83, 255, 0.5 );
}

@supports selector(:has(*)) {
	.fc-checkout-page #shipping_method li:has( input:checked ),
	.fc-checkout-page ul.payment_methods li.wc_payment_method:has( input:checked ) {
		border-color: var( --fc-accent );
		background: var( --fc-accent-tint );
		box-shadow: 0 0 0 1px var( --fc-accent ) inset;
	}
}

.fc-checkout-page #shipping_method li {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.15rem 0.5rem;
}

.fc-checkout-page #shipping_method li input[type="radio"],
.fc-checkout-page ul.payment_methods li input[type="radio"] {
	accent-color: var( --fc-accent );
	width: 1.1rem;
	height: 1.1rem;
	margin: 0;
	flex: 0 0 auto;
}

.fc-checkout-page #shipping_method li label,
.fc-checkout-page ul.payment_methods li label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0 0.15rem;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
}

.fc-checkout-page #shipping_method li label img,
.fc-checkout-page ul.payment_methods li label img {
	max-height: 22px;
	width: auto;
	display: inline-block;
	vertical-align: middle;
}

.fc-checkout-page ul.payment_methods li .payment_box {
	background: #fff;
	border: 1px solid var( --fc-line-soft );
	border-radius: 9px;
	margin-top: 0.75rem;
	padding: 0.85rem 1rem;
	font-size: 0.88rem;
	color: var( --fc-muted );
}

.fc-checkout-page ul.payment_methods li .payment_box::before {
	display: none;
}

.fc-checkout-page .fc-eta {
	flex-basis: 100%;
	margin: 0.3rem 0 0 1.75rem;
	font-size: 0.83rem;
	color: var( --fc-accent-dark );
	font-weight: 700;
}

/* ====================================================== Order summary */

.fc-checkout-page .fc-review-table {
	width: 100%;
	border: 0;
	margin: 0;
	border-collapse: collapse;
}

.fc-checkout-page .fc-review-table thead {
	display: none;
}

.fc-checkout-page .fc-review-table td,
.fc-checkout-page .fc-review-table th {
	border: 0;
	padding: 0.7rem 0.9rem;
	vertical-align: top;
	background: none;
}

.fc-checkout-page .fc-review-table td:first-child,
.fc-checkout-page .fc-review-table th:first-child {
	padding-left: 1.1rem;
}

.fc-checkout-page .fc-review-table td:last-child,
.fc-checkout-page .fc-review-table th:last-child {
	padding-right: 1.1rem;
}

.fc-checkout-page .fc-review-table tbody tr {
	border-bottom: 1px solid var( --fc-line-soft );
}

.fc-checkout-page .fc-line {
	display: flex;
	gap: 0.8rem;
	align-items: flex-start;
	min-width: 0;
}

.fc-checkout-page .fc-line__thumb img {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 9px;
	display: block;
	border: 1px solid var( --fc-line-soft );
}

.fc-checkout-page .fc-line__body {
	display: block;
	min-width: 0;
	font-size: 0.9rem;
	line-height: 1.4;
}

.fc-checkout-page .fc-line__name {
	display: block;
	font-weight: 700;
	color: var( --fc-ink );
	overflow-wrap: break-word;
}

.fc-checkout-page .product-total {
	text-align: right;
	font-weight: 700;
	white-space: nowrap;
	font-size: 0.9rem;
	font-family: var( --fc-font-mono );
}

.fc-checkout-page .product-quantity {
	color: var( --fc-muted );
	font-weight: 600;
}

.fc-checkout-page .fc-qty {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 0.5rem;
}

.fc-checkout-page .fc-qty__btn {
	width: 1.75rem;
	height: 1.75rem;
	border: 1.5px solid var( --fc-line );
	border-radius: 7px;
	background: #fff;
	color: var( --fc-ink );
	cursor: pointer;
	line-height: 1;
	font-size: 1rem;
	padding: 0;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.fc-checkout-page .fc-qty__btn:hover {
	border-color: var( --fc-accent );
	background: var( --fc-accent-tint );
}

.fc-checkout-page .fc-qty__val {
	min-width: 1.6rem;
	text-align: center;
	font-weight: 700;
	font-family: var( --fc-font-mono );
}

.fc-checkout-page .fc-qty__remove {
	border: 0;
	background: none;
	color: var( --fc-muted );
	cursor: pointer;
	font-size: 0.78rem;
	text-decoration: underline;
	padding: 0 0 0 0.4rem;
}

.fc-checkout-page .fc-qty__remove:hover {
	color: #c0362c;
}

.fc-checkout-page .fc-review-table tfoot {
	position: relative;
}

.fc-checkout-page .fc-review-table tfoot tr:first-child th,
.fc-checkout-page .fc-review-table tfoot tr:first-child td {
	padding-top: 1rem;
}

.fc-checkout-page .fc-review-table tfoot th,
.fc-checkout-page .fc-review-table tfoot td {
	padding: 0.4rem 0.9rem;
	font-size: 0.92rem;
	color: var( --fc-muted );
	font-weight: 500;
}

.fc-checkout-page .fc-review-table tfoot th:first-child {
	padding-left: 1.1rem;
}

.fc-checkout-page .fc-review-table tfoot td:last-child {
	padding-right: 1.1rem;
}

.fc-checkout-page .fc-review-table tfoot td {
	text-align: right;
	font-family: var( --fc-font-mono );
	color: var( --fc-ink );
	white-space: nowrap;
}

.fc-checkout-page .fc-review-table tfoot .cart-discount th,
.fc-checkout-page .fc-review-table tfoot .cart-discount td,
.fc-checkout-page .fc-review-table tfoot .fee th,
.fc-checkout-page .fc-review-table tfoot .fee td {
	color: var( --fc-accent-dark );
}

.fc-checkout-page .fc-review-table tfoot .order-total th,
.fc-checkout-page .fc-review-table tfoot .order-total td {
	font-size: 1.25rem;
	font-weight: 800;
	color: var( --fc-ink );
	padding-top: 0.9rem;
	border-top: 1.5px solid var( --fc-line );
}

.fc-checkout-page .fc-review-table tfoot .order-total th {
	font-family: var( --fc-font-head );
}

.fc-checkout-page .fc-review-table tfoot .order-total td {
	font-family: var( --fc-font-mono );
}

/* Cross-sell */

.fc-checkout-page .fc-cross-sell {
	background: var( --fc-paper );
	border-radius: var( --fc-r-sm );
	padding: 0.9rem 1rem;
	margin: 0.85rem 0;
}

.fc-checkout-page .fc-cross-sell__heading {
	margin: 0 0 0.65rem;
	font-weight: 700;
	font-size: 0.85rem;
	font-family: var( --fc-font-head );
	color: var( --fc-ink );
}

.fc-checkout-page .fc-cross-sell__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.6rem;
}

.fc-checkout-page .fc-cross-sell__item {
	display: flex;
	gap: 0.65rem;
	align-items: center;
}

.fc-checkout-page .fc-cross-sell__thumb img {
	width: 42px;
	height: 42px;
	object-fit: cover;
	border-radius: 7px;
	display: block;
}

.fc-checkout-page .fc-cross-sell__info {
	flex: 1;
	font-size: 0.85rem;
	line-height: 1.3;
}

.fc-checkout-page .fc-cross-sell__name {
	display: block;
	font-weight: 700;
}

.fc-checkout-page .fc-cross-sell__price {
	color: var( --fc-muted );
	font-family: var( --fc-font-mono );
	font-size: 0.8rem;
}

.fc-checkout-page .fc-cross-sell__add {
	flex: 0 0 auto;
	border: 1.5px solid var( --fc-accent );
	color: var( --fc-accent-dark );
	background: #fff;
	border-radius: 8px;
	padding: 0.4rem 0.75rem;
	font-size: 0.78rem;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

.fc-checkout-page .fc-cross-sell__add:hover {
	background: var( --fc-accent );
	color: #fff;
}

.fc-checkout-page .fc-cross-sell__add[disabled] {
	opacity: 0.6;
	cursor: default;
}

/* ==================================================== Trust bar */

.fc-checkout-page .fc-trust {
	margin: 0;
}

.fc-checkout-page .fc-trust--top {
	background: var( --fc-card );
	border: 1px solid var( --fc-line );
	border-radius: var( --fc-r );
	padding: 1.1rem 1.35rem;
	box-shadow: var( --fc-shadow );
}

.fc-checkout-page .fc-trust__reviews {
	margin-bottom: 0.85rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid var( --fc-line-soft );
}

.fc-checkout-page .fc-trust__reviews .frw-stars,
.fc-checkout-page .fc-trust__reviews .star-rating,
.fc-checkout-page .fc-trust__reviews [class*="star"] {
	color: var( --fc-gold );
}

.fc-checkout-page .fc-trust__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.5rem;
	font-size: 0.86rem;
	font-weight: 500;
	color: var( --fc-ink );
}

.fc-checkout-page .fc-trust__item {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.fc-checkout-page .fc-trust__ico {
	font-size: 1rem;
	line-height: 1;
}

.fc-checkout-page .fc-trust__payments {
	margin-top: 0.85rem;
	padding-top: 0.85rem;
	border-top: 1px solid var( --fc-line-soft );
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
}

.fc-checkout-page .fc-trust__payments img {
	max-height: 24px;
	width: auto;
}

.fc-checkout-page .fc-pay-name {
	font-size: 0.72rem;
	font-weight: 600;
	color: var( --fc-muted );
	border: 1px solid var( --fc-line );
	border-radius: 5px;
	padding: 0.15rem 0.45rem;
}

.fc-checkout-page .fc-trust-mini {
	margin: 0.85rem 0 0;
	text-align: center;
	font-size: 0.8rem;
	color: var( --fc-muted );
}

/* ==================================================== Upsell reminder button */

.fc-checkout-page .fc-nudge {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	text-align: left;
	border: 1.5px dashed var( --fc-gold );
	background: var( --fc-gold-tint );
	color: var( --fc-ink );
	border-radius: var( --fc-r-sm );
	padding: 0.75rem 0.95rem;
	margin: 0 0 1rem;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 600;
	transition: background 0.15s ease;
}

.fc-checkout-page .fc-nudge:hover {
	background: rgba( 227, 160, 23, 0.16 );
}

.fc-checkout-page .fc-nudge__mark {
	font-size: 1.1rem;
}

/* Upsell / order-bump plugin — match the checkout */

.fc-checkout-page .fp-bump,
.fc-checkout-page .wxu-bump {
	margin: 0 0 1.1rem;
	border-width: 2px;
	border-radius: var( --fc-r-sm );
}

.fc-checkout-page .fp-bump.fc-flash,
.fc-checkout-page .wxu-bump.fc-flash {
	animation: fc-flash 0.9s ease;
}

@keyframes fc-flash {
	0%, 100% { box-shadow: 0 0 0 0 transparent; }
	30% { box-shadow: 0 0 0 4px var( --fc-accent-ring ); }
}

/* ==================================================== WooCommerce notices */

/*
 * Force readable text on the error / message / info notice boxes. Left to
 * the theme, these often inherit a light (or transparent) global text colour
 * meant for a dark page background, which is invisible on WooCommerce's own
 * white notice background.
 */

.fc-checkout-page .woocommerce-error,
.fc-checkout-page .woocommerce-message,
.fc-checkout-page .woocommerce-info {
	background: var( --fc-card );
	border: 1px solid var( --fc-line );
	border-radius: var( --fc-r-sm );
	box-shadow: var( --fc-shadow-sm );
	padding: 1rem 1.15rem 1rem 1.15rem;
	margin: 0 0 1.25rem;
	list-style: none;
}

.fc-checkout-page .woocommerce-error,
.fc-checkout-page .woocommerce-error li,
.fc-checkout-page .woocommerce-message,
.fc-checkout-page .woocommerce-message li,
.fc-checkout-page .woocommerce-info,
.fc-checkout-page .woocommerce-info li {
	color: var( --fc-ink ) !important;
	font-size: 0.92rem;
}

.fc-checkout-page .woocommerce-error {
	border-left: 3px solid #c0362c;
}

.fc-checkout-page .woocommerce-message {
	border-left: 3px solid var( --fc-accent );
}

.fc-checkout-page .woocommerce-info {
	border-left: 3px solid var( --fc-gold );
}

.fc-checkout-page .woocommerce-error a,
.fc-checkout-page .woocommerce-message a,
.fc-checkout-page .woocommerce-info a {
	color: var( --fc-accent-dark );
}

/* ================================================================ Coupon */

.fc-checkout-page .woocommerce-form-coupon-toggle .woocommerce-info,
.fc-checkout-page .checkout_coupon.woocommerce-form-coupon {
	background: var( --fc-paper );
	border: 1px solid var( --fc-line-soft );
	border-left: 3px solid var( --fc-accent );
	border-radius: var( --fc-r-sm );
	font-size: 0.88rem;
	padding: 0.85rem 1rem;
}

.fc-checkout-page .woocommerce-form-coupon-toggle .woocommerce-info::before,
.fc-checkout-page .checkout_coupon .woocommerce-info::before {
	display: none;
}

.fc-checkout-page .checkout_coupon .button {
	background: var( --fc-ink );
	color: #fff;
	border-radius: 9px;
	min-height: 3rem;
}

/* =========================================================== Place order button */

.fc-checkout-page #place_order {
	width: calc( 100% - 0.7rem );
	margin-inline: 0.35rem;
	min-height: 3.5rem;
	font-family: var( --fc-font-head );
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	border-radius: var( --fc-r-sm );
	background: var( --fc-btn-bg );
	border: 0;
	color: #fff;
	cursor: pointer;
	box-shadow: var( --fc-btn-shadow );
	transition: transform 0.12s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.fc-checkout-page #place_order:hover {
	filter: brightness( 1.05 );
	transform: translateY( -1px );
	box-shadow: var( --fc-btn-shadow-hover );
}

.fc-checkout-page #place_order:active {
	transform: translateY( 0 );
}

.fc-checkout-page .woocommerce-terms-and-conditions-wrapper {
	margin: 1rem 0;
	font-size: 0.85rem;
	color: var( --fc-muted );
}

/* ================================================================ Order-received page */

.fc-thankyou-page .fc-thankyou {
	max-width: 780px;
	margin-inline: auto;
	font-family: var( --fc-font-body );
	color: var( --fc-ink );
}

.fc-thankyou-page .fc-ty-hero {
	text-align: center;
	padding: 1.75rem 1rem 0.5rem;
	animation: fc-rise 0.4s ease;
}

.fc-thankyou-page .fc-ty-hero__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background: var( --fc-accent );
	color: #fff;
	font-size: 1.8rem;
	line-height: 1;
	margin-bottom: 1rem;
	box-shadow: 0 0 0 8px var( --fc-accent-tint ), var( --fc-hero-shadow );
}

.fc-thankyou-page .fc-ty-hero--failed .fc-ty-hero__icon {
	background: #c0362c;
	box-shadow: 0 0 0 8px rgba( 192, 54, 44, 0.1 );
}

.fc-thankyou-page .fc-ty-hero__title {
	margin: 0 0 0.45rem;
	font-family: var( --fc-font-head );
	font-size: 1.7rem;
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

.fc-thankyou-page .fc-ty-hero__sub {
	margin: 0;
	color: var( --fc-muted );
	font-size: 0.98rem;
}

.fc-thankyou-page .fc-ty-overview {
	list-style: none;
	margin: 1.75rem 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 150px, 1fr ) );
	gap: 0.75rem;
}

.fc-thankyou-page .fc-ty-overview li {
	background: var( --fc-card );
	border: 1px solid var( --fc-line );
	border-radius: var( --fc-r-sm );
	padding: 0.85rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	box-shadow: var( --fc-shadow-sm );
}

.fc-thankyou-page .fc-ty-overview span {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 600;
	color: var( --fc-muted );
}

.fc-thankyou-page .fc-ty-overview strong {
	font-size: 1rem;
	font-weight: 700;
}

.fc-thankyou-page .fc-ty-overview li:nth-child(3) strong {
	font-family: var( --fc-font-mono );
}

.fc-thankyou-page .fc-ty-card {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	border: 1px solid var( --fc-line );
	border-radius: var( --fc-r-sm );
	padding: 1rem 1.15rem;
	margin: 1rem 0;
	background: var( --fc-paper );
}

.fc-thankyou-page .fc-ty-card__icon {
	font-size: 1.6rem;
	line-height: 1;
	flex: 0 0 auto;
}

.fc-thankyou-page .fc-ty-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.fc-thankyou-page .fc-ty-card__title {
	font-weight: 700;
	font-size: 0.98rem;
}

.fc-thankyou-page .fc-ty-card__meta {
	font-size: 0.86rem;
	color: var( --fc-muted );
}

/* Eigos juosta */

.fc-thankyou-page .fc-ty-timeline {
	list-style: none;
	margin: 1.75rem 0;
	padding: 0;
	display: flex;
}

.fc-thankyou-page .fc-ty-timeline__step {
	flex: 1;
	position: relative;
	text-align: center;
	padding-top: 2.35rem;
	font-size: 0.82rem;
	color: var( --fc-muted );
}

.fc-thankyou-page .fc-ty-timeline__dot {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX( -50% );
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var( --fc-line );
	z-index: 1;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.fc-thankyou-page .fc-ty-timeline__step::before {
	content: "";
	position: absolute;
	top: 0.6rem;
	right: 50%;
	width: 100%;
	height: 2px;
	background: var( --fc-line );
}

.fc-thankyou-page .fc-ty-timeline__step:first-child::before {
	display: none;
}

.fc-thankyou-page .fc-ty-timeline__step.is-done .fc-ty-timeline__dot,
.fc-thankyou-page .fc-ty-timeline__step.is-active .fc-ty-timeline__dot {
	background: var( --fc-accent );
	border-color: var( --fc-accent );
}

.fc-thankyou-page .fc-ty-timeline__step.is-done::before,
.fc-thankyou-page .fc-ty-timeline__step.is-active::before {
	background: var( --fc-accent );
}

.fc-thankyou-page .fc-ty-timeline__step.is-done .fc-ty-timeline__label,
.fc-thankyou-page .fc-ty-timeline__step.is-active .fc-ty-timeline__label {
	color: var( --fc-ink );
	font-weight: 700;
}

.fc-thankyou-page .fc-ty-timeline__step.is-active .fc-ty-timeline__dot {
	box-shadow: 0 0 0 5px var( --fc-accent-ring );
	animation: fc-pulse 2s ease-in-out infinite;
}

.fc-thankyou-page .fc-ty-timeline__step.is-done .fc-ty-timeline__dot::after {
	content: "\2713";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
}

/* WooCommerce order details — receipt card */

.fc-thankyou-page .woocommerce-order-details,
.fc-thankyou-page .woocommerce-customer-details {
	margin-top: 1.75rem;
}

.fc-thankyou-page .woocommerce-order-details__title,
.fc-thankyou-page .woocommerce-column__title {
	font-family: var( --fc-font-head );
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 0.85rem;
}

.fc-thankyou-page .woocommerce-table--order-details {
	border: 1px solid var( --fc-line );
	border-radius: var( --fc-r );
	overflow: hidden;
	width: 100%;
	box-shadow: var( --fc-shadow-sm );
	background: var( --fc-card );
}

.fc-thankyou-page .woocommerce-table--order-details th,
.fc-thankyou-page .woocommerce-table--order-details td {
	padding: 0.75rem 1rem;
	border-color: var( --fc-line-soft );
}

.fc-thankyou-page .woocommerce-table--order-details tfoot th,
.fc-thankyou-page .woocommerce-table--order-details .amount {
	font-family: var( --fc-font-mono );
}

.fc-thankyou-page .woocommerce-table--order-details tfoot tr:last-child th,
.fc-thankyou-page .woocommerce-table--order-details tfoot tr:last-child td {
	font-size: 1.1rem;
	font-weight: 800;
	color: var( --fc-ink );
}

.fc-thankyou-page .woocommerce-customer-details address {
	border: 1px solid var( --fc-line );
	border-radius: var( --fc-r-sm );
	padding: 1rem 1.15rem;
	font-style: normal;
	line-height: 1.6;
}

.fc-thankyou-page .fc-ty-support {
	margin: 2rem 0 0;
	text-align: center;
	font-size: 0.9rem;
	color: var( --fc-muted );
}

.fc-thankyou-page .fp-thankyou {
	margin-top: 1.75rem;
}

/* ============================================================ Animations */

@keyframes fc-rise {
	from { opacity: 0; transform: translateY( 8px ); }
	to   { opacity: 1; transform: translateY( 0 ); }
}

@keyframes fc-pulse {
	0%, 100% { box-shadow: 0 0 0 5px var( --fc-accent-ring ); }
	50%      { box-shadow: 0 0 0 9px rgba( 36, 83, 255, 0.05 ); }
}

@media ( prefers-reduced-motion: reduce ) {
	.fc-checkout-page *,
	.fc-thankyou-page * {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

/* ============================================================ Responsive */

@media ( max-width: 520px ) {
	.fc-checkout-page .col2-set,
	.fc-checkout-page #order_review {
		padding: 1.15rem;
	}
	.fc-thankyou-page .fc-ty-timeline {
		flex-direction: column;
		gap: 0.85rem;
	}
	.fc-thankyou-page .fc-ty-timeline__step {
		text-align: left;
		padding: 0 0 0 2.1rem;
	}
	.fc-thankyou-page .fc-ty-timeline__dot {
		left: 0;
		transform: none;
	}
	.fc-thankyou-page .fc-ty-timeline__step::before {
		top: 0;
		left: 0.6rem;
		right: auto;
		width: 2px;
		height: 100%;
	}
	.fc-thankyou-page .fc-ty-hero__title {
		font-size: 1.4rem;
	}
}

/* ============================================================ Style presets */

/*
 * A preset only redefines the shape / surface tokens (radius, shadow, paper,
 * font-head, button treatment). --fc-accent is never touched here, so the
 * "Accent colour" setting keeps working the same way under every style.
 */

/* ---- Minimal: flat, sharp corners, no shadows, no display font, flat button */

body.fc-style-minimal.fc-checkout-page,
body.fc-style-minimal.fc-thankyou-page {
	--fc-r: 6px;
	--fc-r-sm: 4px;
	--fc-shadow: none;
	--fc-shadow-sm: none;
	--fc-line: rgba( 16, 24, 40, 0.18 );
	--fc-line-soft: rgba( 16, 24, 40, 0.1 );
	--fc-paper: #ffffff;
	--fc-card: #ffffff;
	--fc-font-head: var( --fc-font-body );
	--fc-btn-bg: var( --fc-accent );
	--fc-btn-shadow: none;
	--fc-btn-shadow-hover: none;
	--fc-hero-shadow: none;
}

/* Cards lose their shadow entirely and rely on the (now darker) hairline border. */
body.fc-style-minimal #customer_details.col2-set,
body.fc-style-minimal #order_review,
body.fc-style-minimal .fc-trust--top,
body.fc-style-minimal .fc-ty-overview li,
body.fc-style-minimal .fc-ty-card,
body.fc-style-minimal .woocommerce-table--order-details {
	box-shadow: none;
}

body.fc-style-minimal .fc-ty-card {
	background: #ffffff;
	border-color: var( --fc-line );
}

body.fc-style-minimal .fc-customer-type .woocommerce-input-wrapper {
	background: #ffffff;
	border: 1px solid var( --fc-line );
}

body.fc-style-minimal .fc-customer-type input[type="radio"]:checked + label.radio {
	box-shadow: none;
	border: 1px solid var( --fc-ink );
}

/* ---- Boutique: warm cream ground, generous rounding, warm-tinted shadows */

body.fc-style-boutique.fc-checkout-page,
body.fc-style-boutique.fc-thankyou-page {
	--fc-ink: #2b241c;
	--fc-muted: #7a6f5f;
	--fc-paper: #faf6ef;
	--fc-card: #fffdf9;
	--fc-line: rgba( 43, 36, 28, 0.14 );
	--fc-line-soft: rgba( 43, 36, 28, 0.08 );
	--fc-gold: #b8863b;
	--fc-gold-tint: rgba( 184, 134, 59, 0.12 );
	--fc-r: 20px;
	--fc-r-sm: 14px;
	--fc-shadow: 0 2px 4px rgba( 43, 36, 28, 0.05 ), 0 22px 48px -24px rgba( 43, 36, 28, 0.24 );
	--fc-shadow-sm: 0 1px 3px rgba( 43, 36, 28, 0.06 ), 0 10px 22px -16px rgba( 43, 36, 28, 0.22 );
	--fc-btn-shadow: 0 10px 24px -10px rgba( 184, 134, 59, 0.4 );
	--fc-btn-shadow-hover: 0 14px 30px -10px rgba( 184, 134, 59, 0.45 );
	--fc-hero-shadow: 0 12px 30px -12px rgba( 184, 134, 59, 0.45 );
	--fc-font-head: 'Bricolage Grotesque', Georgia, 'Times New Roman', serif;
}

body.fc-style-boutique {
	background-color: var( --fc-paper );
}

/* Browsers without color-mix() / :has() still get the base styling. */
