/* GKFC Shopify-style checkout + thank-you skin (off-white).
 * Loaded on the checkout + order-received pages, after gkfc-woocommerce.
 */

/* ─── Design tokens (inherit the theme's primary/secondary/accent) ─── */
/* Also declared on the full-screen body so the checkout chrome — which sits
 * OUTSIDE .gkfc-checkout — can resolve the same palette. */
.gkfc-checkout,
body.gkfc-checkout-fs {
	--gko-bg: #fafafa;
	--gko-card: #ffffff;
	--gko-line: #d9dde1;
	--gko-line-soft: #e8eaed;
	--gko-ink: #000000;
	--gko-muted: #3f4750;
	--gko-light: #f4f5f7;
	--gko-primary: #5f1216;
	--gko-primary-hover: #420303;
	--gko-primary-active: #2c090c;
	--gko-primary-soft: #ecd3d4;
	--gko-accent: #831d21;
	--gko-green: #112112;
	--gko-red: #420303;
	--gko-radius: 6px;
	--gko-radius-sm: 6px;
	--gko-shadow: 0 1px 2px rgba(0, 0, 0, 0.045), 0 8px 24px rgba(0, 0, 0, 0.045);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	color: var(--gko-ink);
	-webkit-font-smoothing: antialiased;
}

.gkfc-checkout .gkfc-checkout__title,
.gkfc-checkout .gkfc-step__title,
.gkfc-checkout .gkfc-summary__grand {
	font-family: inherit;
}

.gkfc-thankyou {
	--gko-bg: #f6f4ef;
	--gko-card: #ffffff;
	--gko-line: #e7e2d8;
	--gko-line-soft: #f0ece3;
	--gko-ink: #1f2430;
	--gko-muted: #6b7280;
	--gko-light: #faf9f6;
	--gko-primary: var(--gkfc-primary, #831d21);
	--gko-primary-soft: #fbeaea;
	--gko-accent: var(--gkfc-accent, #ff7b2b);
	--gko-green: #1e7e53;
	--gko-red: #b3261e;
	--gko-radius: 12px;
	--gko-radius-sm: 8px;
	--gko-shadow: 0 1px 2px rgba(31, 36, 48, 0.06), 0 8px 24px rgba(31, 36, 48, 0.05);
	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	color: var(--gko-ink);
	-webkit-font-smoothing: antialiased;
}

/* ─── Full-screen shell (template-checkout.php) ─── */
/* No site header/footer on the checkout flow: a slim brand bar on top and a
 * slim assurance strip at the bottom, then the flow fills the viewport. */
body.gkfc-checkout-fs {
	background: var(--gko-bg);
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}

.gkfc-checkout-fs__shell {
	display: flex;
	flex-direction: column;
	flex: 1 0 auto;
	width: 100%;
}

.gkfc-checkout-fs__bar {
	position: sticky;
	top: 0;
	z-index: 70;
	background: var(--gko-card);
	border-bottom: 1px solid var(--gko-line);
}

.gkfc-checkout-fs__bar-inner,
.gkfc-checkout-fs__foot-inner {
	width: 100%;
	max-width: 999px;
	margin: 0 auto;
	padding-left: 20px;
	padding-right: 20px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.gkfc-checkout-fs__bar-inner {
	min-height: 58px;
	justify-content: space-between;
}

.gkfc-checkout-fs__brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--gko-ink);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

/* The bundled crest is a tall 443x640 asset — cap it for a 58px bar. */
.gkfc-checkout-fs__brand .gkfc-site-logo,
.gkfc-checkout-fs__brand .gkfc-mobile-logo,
.gkfc-checkout-fs__brand .custom-logo {
	max-height: 30px;
	width: auto;
	object-fit: contain;
}

.gkfc-checkout-fs__secure {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--gko-muted);
}

/* gkfc_get_svg() returns the icon markup verbatim and ignores $attr, so the
 * lock is targeted by descendant selector; the icon strokes with currentColor. */
.gkfc-checkout-fs__secure svg,
.gkfc-checkout-fs__foot-item svg {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	color: var(--gko-primary);
}

.gkfc-checkout-fs__main {
	flex: 1 0 auto;
	width: 100%;
}

.gkfc-checkout-fs__foot {
	margin-top: auto;
	background: var(--gko-card);
	border-top: 1px solid var(--gko-line);
}

.gkfc-checkout-fs__foot-inner {
	min-height: 52px;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 20px;
	font-size: 12.5px;
	color: var(--gko-muted);
}

.gkfc-checkout-fs__foot-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.gkfc-checkout-fs__foot-link {
	color: var(--gko-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gkfc-checkout-fs__foot-link:hover,
.gkfc-checkout-fs__foot-link:focus {
	color: var(--gko-primary);
}

/* ─── Page shell ─── */
.gkfc-checkout {
	max-width: 999px;
	margin: 0 auto;
	padding: 28px 20px 96px;
}

.gkfc-checkout__head {
	text-align: center;
	margin: 8px auto 28px;
	max-width: 640px;
}

.gkfc-checkout__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--gko-muted);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	margin-bottom: 18px;
}

.gkfc-checkout__back:hover {
	color: var(--gko-primary);
}

.gkfc-checkout__eyebrow,
.gkfc-thankyou__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: 11px;
	font-weight: 700;
	color: var(--gko-primary);
	margin: 0 0 6px;
}

.gkfc-checkout__title,
.gkfc-thankyou__title {
	font-family: 'Montserrat', 'Inter', sans-serif;
	font-weight: 800;
	font-size: clamp(26px, 4vw, 34px);
	letter-spacing: -0.02em;
	margin: 0;
	color: var(--gko-ink);
}

.gkfc-checkout__sub,
.gkfc-thankyou__lead {
	color: var(--gko-muted);
	font-size: 15px;
	max-width: 520px;
	margin: 10px auto 0;
	line-height: 1.55;
}

/* ─── Progress nav ─── */
.gkfc-checkout__nav {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: 0 0 30px;
}

.gkfc-checkout__stepnav {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px 8px 8px;
	border: 1px solid var(--gko-line);
	border-radius: 999px;
	background: var(--gko-card);
	color: var(--gko-muted);
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.gkfc-checkout__stepnav:hover:not(:disabled) {
	border-color: var(--gko-primary);
	color: var(--gko-ink);
}

.gkfc-checkout__stepnav.is-active {
	border-color: var(--gko-primary);
	color: var(--gko-ink);
	box-shadow: 0 0 0 3px var(--gko-primary-soft);
}

.gkfc-checkout__stepnav.is-done {
	border-color: var(--gko-green);
	color: var(--gko-green);
}

.gkfc-checkout__stepnav.is-locked {
	opacity: 0.5;
	cursor: not-allowed;
}

.gkfc-checkout__stepdot {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--gko-line-soft);
	color: var(--gko-ink);
	font-size: 12px;
	font-weight: 800;
	flex: none;
}

/* The dot is an inline-grid holding either the step icon or the completion
 * tick, never both — the is-done toggle below removes one, so the grid keeps a
 * single centred item instead of growing a second row. */
.gkfc-checkout__stepicon {
	display: block;
	line-height: 0;
}

.gkfc-checkout__stepicon .gkfc-icon {
	width: 14px;
	height: 14px;
}

.gkfc-checkout__stepmark {
	display: none;
	font-size: 12px;
	line-height: 1;
}

.gkfc-checkout__stepnav.is-done .gkfc-checkout__stepicon {
	display: none;
}

.gkfc-checkout__stepnav.is-done .gkfc-checkout__stepmark {
	display: block;
}

.gkfc-checkout__stepnav.is-active .gkfc-checkout__stepdot,
.gkfc-checkout__stepnav.is-done .gkfc-checkout__stepdot {
	background: var(--gko-primary);
	color: #fff;
}

.gkfc-checkout__stepnav.is-done .gkfc-checkout__stepdot {
	background: var(--gko-green);
}

/* ─── Layout grid ─── */
.gkfc-checkout__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 28px;
	align-items: start;
}

.gkfc-checkout__main {
	min-width: 0;
}

/* ─── Steps ─── */
.gkfc-step {
	display: none;
	background: var(--gko-card);
	border: 1px solid var(--gko-line);
	border-radius: var(--gko-radius);
	box-shadow: var(--gko-shadow);
	padding: 26px 28px;
}

.gkfc-step.is-active {
	display: block;
	animation: gkfcStepIn 0.28s ease;
}

.gkfc-step--locked {
	display: none !important;
}

/* Never start fully transparent: step 1 is pre-rendered as .is-active, so a
 * 0.6 start keeps the first paint solid while later steps still settle in. */
@keyframes gkfcStepIn {
	from { opacity: 0.6; transform: translateY(6px); }
	to   { opacity: 1; transform: none; }
}

.gkfc-step__head {
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--gko-line-soft);
}

/* Numbered circle. The word "Step" lives in a screen-reader-text span, so the
 * badge still announces "Step 1" while showing only the digit. The uppercase and
 * letter-spacing that suited the old text eyebrow would distort the sr text. */
.gkfc-step__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin: 0 0 12px;
	border-radius: 50%;
	background: var(--gko-primary-soft);
	color: var(--gko-primary);
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
}

.gkfc-step__title {
	margin: 0 0 6px;
	font-family: 'Montserrat', 'Inter', sans-serif;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.gkfc-step__sub {
	margin: 0;
	color: var(--gko-muted);
	font-size: 13.5px;
	line-height: 1.55;
}

.gkfc-step__actions {
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid var(--gko-line-soft);
}

/* Relationship to WC field rows in the themed form */
.gkfc-checkout .woocommerce-billing-fields h3,
.gkfc-checkout .woocommerce-additional-fields h3,
.gkfc-checkout .woocommerce-shipping-fields h3:not(#ship-to-different-address) {
	display: none;
}

.gkfc-checkout .woocommerce-additional-fields,
.gkfc-checkout .woocommerce-additional-fields__field-wrapper {
	margin-top: 0;
}

/* ─── Buttons ─── */
.gkfc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 22px;
	border-radius: var(--gko-radius-sm);
	border: 1px solid transparent;
	background: var(--gko-primary);
	color: #fff;
	font: inherit;
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: 0.01em;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
	box-shadow: 0 1px 2px rgba(95, 18, 22, 0.3);
}

.gkfc-btn:hover {
	background: var(--gko-primary-hover);
	color: #fff;
}

.gkfc-btn:active {
	transform: translateY(1px);
}

.gkfc-btn--ghost {
	background: var(--gko-card);
	color: var(--gko-ink);
	border-color: var(--gko-line);
	box-shadow: none;
}

.gkfc-btn--ghost:hover {
	border-color: var(--gko-primary);
	color: var(--gko-primary);
	background: var(--gko-card);
}

.gkfc-btn--block {
	width: 100%;
}

/* ─── Themed fields (light overlay on WC form rows) ─── */
.gkfc-checkout .woocommerce form .form-row,
.gkfc-checkout .form-row {
	padding: 0 0 16px;
	margin: 0;
}

.gkfc-checkout .woocommerce form .form-row label,
.gkfc-checkout .form-row label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--gko-ink);
	margin-bottom: 6px;
	line-height: 1.4;
}

.gkfc-checkout .form-row label .required {
	color: var(--gko-primary);
	border: 0;
}

.gkfc-checkout .input-text,
.gkfc-checkout input.input-text,
.gkfc-checkout input[type='email'],
.gkfc-checkout input[type='number'],
.gkfc-checkout input[type='password'],
.gkfc-checkout input[type='search'],
.gkfc-checkout input[type='tel'],
.gkfc-checkout input[type='text'],
.gkfc-checkout input[type='url'],
.gkfc-checkout textarea.input-text,
.gkfc-checkout select {
	width: 100%;
	height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--gko-line);
	border-radius: var(--gko-radius-sm);
	background: var(--gko-card);
	color: var(--gko-ink);
	font: inherit;
	font-size: 14.5px;
	box-shadow: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.gkfc-checkout textarea.input-text {
	height: auto;
	min-height: 96px;
	resize: vertical;
}

.gkfc-checkout .input-text:focus,
.gkfc-checkout input:focus,
.gkfc-checkout select:focus,
.gkfc-checkout textarea:focus {
	border-color: var(--gko-primary);
	box-shadow: 0 0 0 3px var(--gko-primary-soft);
	outline: none;
}

/* WooCommerce leaves placeholder colour to the UA stylesheet, which renders a
 * mid-grey. Fields such as the coupon box are empty on load, so that grey is the
 * only text the customer sees — pin it to the same black as the real value. */
.gkfc-checkout input::placeholder,
.gkfc-checkout textarea::placeholder {
	color: #000;
	opacity: 1;
}

.gkfc-checkout .select2-container .select2-selection--single {
	height: 46px;
	border: 1px solid var(--gko-line);
	border-radius: var(--gko-radius-sm);
	box-shadow: none;
}

.gkfc-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 44px;
	padding-left: 14px;
	color: var(--gko-ink);
}

.gkfc-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 44px;
}

.gkfc-checkout .input-text.woocommerce-invalid,
.gkfc-checkout input.woocommerce-invalid,
.gkfc-checkout select.woocommerce-invalid,
.gkfc-checkout textarea.woocommerce-invalid {
	border-color: var(--gko-red);
	box-shadow: 0 0 0 3px rgba(66, 3, 3, 0.12);
}

.gkfc-checkout .woocommerce-invalid-required-field {
	background: rgba(66, 3, 3, 0.04);
}

.gkfc-field-error {
	display: block;
	margin-top: 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--gko-red);
}

/* Create-account + ship-to-different toggles */
.gkfc-checkout #ship-to-different-address {
	margin: -4px 0 12px;
	font-size: 13.5px;
}

.gkfc-checkout #ship-to-different-address label,
.gkfc-checkout .gkfc-create-account label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--gko-ink);
}

.gkfc-checkout #ship-to-different-address input,
.gkfc-checkout .gkfc-create-account input {
	width: 18px;
	height: 18px;
	accent-color: var(--gko-primary);
}

.gkfc-checkout .shipping_address {
	padding: 16px;
	border: 1px dashed var(--gko-line);
	border-radius: var(--gko-radius-sm);
	background: var(--gko-light);
}

.gkfc-checkout .gkfc-account-fields {
	padding: 16px;
	border: 1px dashed var(--gko-line);
	border-radius: var(--gko-radius-sm);
	background: var(--gko-light);
	margin-bottom: 20px;
}

/* ─── OTP widget (light) ─── */
.gkfc-otp {
	margin-top: 4px;
	padding: 18px;
	border: 1px solid var(--gko-line);
	border-radius: var(--gko-radius);
	background: var(--gko-light);
}

.gkfc-otp--verified {
	border-color: var(--gko-primary);
	background: rgba(95, 18, 22, 0.05);
}

.gkfc-otp__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 4px;
}

.gkfc-otp__title {
	font-size: 13.5px;
	font-weight: 700;
}

.gkfc-otp__badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11.5px;
	font-weight: 700;
	color: var(--gko-primary-active);
	background: rgba(95, 18, 22, 0.12);
	padding: 3px 10px;
	border-radius: 999px;
}

.gkfc-otp__hint {
	margin: 0 0 12px;
	font-size: 12.5px;
	color: var(--gko-muted);
	line-height: 1.5;
}

/* The widget toggles phases via the hidden attribute, but the author-level
 * display rules below would otherwise beat the UA [hidden] stylesheet. */
.gkfc-otp [hidden] {
	display: none !important;
}

.gkfc-otp__row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.gkfc-otp__code {
	flex: 1 1 120px;
	min-width: 120px;
	height: 44px !important;
	text-align: center;
	letter-spacing: 0.35em;
	font-size: 17px !important;
	font-weight: 700;
}

.gkfc-otp__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 16px;
	border-radius: var(--gko-radius-sm);
	border: 1px solid var(--gko-line);
	background: var(--gko-card);
	color: var(--gko-ink);
	font: inherit;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.18s ease;
}

.gkfc-otp__btn--send {
	background: var(--gko-primary);
	border-color: var(--gko-primary);
	color: #fff;
}

.gkfc-otp__btn--send:hover:not(:disabled) {
	background: var(--gko-primary-hover);
}

.gkfc-otp__btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.gkfc-otp__msg {
	margin: 10px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--gko-muted);
}

.gkfc-otp--verified .gkfc-otp__msg {
	color: var(--gko-green);
}

/* ─── Sidebar summary ─── */
.gkfc-checkout__aside {
	min-width: 0;
}

.gkfc-summary {
	background: var(--gko-card);
	border: 1px solid var(--gko-line);
	border-radius: var(--gko-radius);
	box-shadow: var(--gko-shadow);
	overflow: hidden;
}

.gkfc-summary__toggle {
	display: none;
}

.gkfc-summary__panel {
	padding: 20px;
}

.gkfc-summary__items {
	list-style: none;
	margin: 0;
	padding: 0 0 14px;
	border-bottom: 1px solid var(--gko-line-soft);
}

.gkfc-summary__item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 12px 0;
	border-top: 1px solid var(--gko-line-soft);
}

.gkfc-summary__item:first-child {
	border-top: 0;
}

.gkfc-summary__thumb img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: var(--gko-radius-sm);
	border: 1px solid var(--gko-line-soft);
	display: block;
}

.gkfc-summary__meta {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.gkfc-summary__name {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--gko-ink);
	line-height: 1.35;
}

.gkfc-summary__qty {
	font-size: 12.5px;
	color: var(--gko-muted);
}

.gkfc-summary__price {
	font-size: 13.5px;
	font-weight: 700;
	color: var(--gko-ink);
}

.gkfc-summary__totals {
	margin: 14px 0 0;
}

.gkfc-summary__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 5px 0;
	font-size: 14px;
	color: var(--gko-muted);
}

.gkfc-summary__row--discount {
	color: var(--gko-green);
}

.gkfc-summary__row--total {
	margin-top: 8px;
	padding-top: 14px;
	border-top: 1px solid var(--gko-line);
	color: var(--gko-ink);
	font-weight: 700;
}

.gkfc-summary__grand {
	font-family: 'Montserrat', 'Inter', sans-serif;
	font-size: 18px;
	font-weight: 800;
	color: var(--gko-ink);
}

/* Sits outside #gkfc-summary-panel, between the summary toggle and the panel,
 * so the input stays reachable while the panel is collapsed on mobile. */
.gkfc-summary__coupon {
	padding: 14px 20px;
	margin: 0;
	border-top: 0;
	border-bottom: 1px solid var(--gko-line-soft);
}

.gkfc-summary__coupon p {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--gko-ink);
}

.gkfc-summary__coupon-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.gkfc-summary__coupon-input {
	flex: 1;
	min-width: 0;
	height: 42px !important;
	font-size: 13.5px !important;
}

.gkfc-summary__coupon-btn {
	height: 42px;
	padding: 0 14px;
	border-radius: var(--gko-radius-sm);
	border: 1px solid var(--gko-line);
	background: var(--gko-primary);
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

/* WooCommerce appends its coupon error inside the flex row, so force it onto
 * its own full-width line instead of squeezing it beside the Apply button. */
.coupon-error-notice {
	flex: 0 0 100%;
	width: 100%;
	margin: 2px 0 0;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--gko-red, #b3261e);
	text-align: left;
}

.gkfc-summary__coupon .has-error {
	border-color: var(--gko-red, #b3261e);
}

.gkfc-summary__coupon-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.gkfc-summary__coupon-remove {
	font-size: 12px;
	font-weight: 600;
	color: var(--gko-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gkfc-summary__coupon-remove:hover,
.gkfc-summary__coupon-remove:focus {
	color: var(--gko-primary);
}

.gkfc-summary__trust {
	padding-top: 12px;
	margin-top: 12px;
	border-top: 1px solid var(--gko-line-soft);
	font-size: 12.5px;
	color: var(--gko-muted);
}

.gkfc-summary__trust span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.gkfc-summary__trust-icon {
	width: 14px;
	height: 14px;
	fill: var(--gko-green);
}

/* ─── Payment (gateway cards) ─── */
.gkfc-checkout__wcreview {
	display: none;
}

.gkfc-checkout #payment {
	background: transparent;
	border: 0;
	border-radius: 0;
}

.gkfc-checkout #payment ul.payment_methods {
	border: 0;
	padding: 0;
	margin: 0;
	list-style: none;
}

.gkfc-checkout #payment ul.payment_methods li.wc_payment_method {
	border: 1px solid var(--gko-line);
	border-radius: var(--gko-radius-sm);
	background: var(--gko-card);
	padding: 14px 16px;
	margin: 0 0 12px;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.gkfc-checkout #payment ul.payment_methods li.wc_payment_method:hover {
	border-color: var(--gko-primary);
}

.gkfc-checkout #payment ul.payment_methods li.wc_payment_method.payment_method_selected {
	border-color: var(--gko-primary);
	box-shadow: 0 0 0 3px var(--gko-primary-soft);
}

.gkfc-checkout #payment ul.payment_methods li label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	color: var(--gko-ink);
	cursor: pointer;
}

.gkfc-checkout #payment ul.payment_methods li input[type='radio'] {
	width: 18px;
	height: 18px;
	accent-color: var(--gko-primary);
	margin: 0;
}

.gkfc-checkout #payment div.payment_box {
	background: var(--gko-light);
	border: 1px solid var(--gko-line-soft);
	border-radius: var(--gko-radius-sm);
	margin: 12px 0 0 28px;
	padding: 14px;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--gko-muted);
}

.gkfc-checkout #payment div.payment_box::before {
	display: none;
}

.gkfc-checkout #payment .place-order {
	padding: 18px 0 0;
}

.gkfc-checkout #payment .woocommerce-privacy-policy-text {
	font-size: 12.5px;
	color: var(--gko-muted);
	line-height: 1.55;
	margin: 0 0 14px;
}

.gkfc-checkout .place-order #place_order {
	width: 100%;
	height: 52px;
	border-radius: var(--gko-radius-sm);
	background: var(--gko-primary);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.02em;
	border: 0;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(95, 18, 22, 0.35), 0 2px 6px rgba(95, 18, 22, 0.25);
	transition: background 0.18s ease, transform 0.18s ease;
}

.gkfc-checkout .place-order #place_order:hover {
	background: var(--gko-primary-hover);
}

.gkfc-checkout .place-order #place_order:disabled {
	opacity: 0.6;
	cursor: wait;
}

/* ─── Notices ─── */
.gkfc-checkout .woocommerce-error,
.gkfc-checkout .woocommerce-message,
.gkfc-checkout .woocommerce-info,
.gkfc-checkout .woocommerce-NoticeGroup {
	border: 1px solid var(--gko-line);
	border-radius: var(--gko-radius-sm);
	background: var(--gko-card);
	color: var(--gko-ink);
	padding: 14px 16px;
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.5;
	list-style: none;
}

.gkfc-checkout .woocommerce-error {
	border-color: rgba(66, 3, 3, 0.2);
	background: rgba(66, 3, 3, 0.05);
	color: var(--gko-red);
}

.gkfc-checkout .woocommerce-error li {
	margin: 0;
}

.gkfc-checkout .woocommerce-message {
	border-color: rgba(17, 33, 18, 0.2);
	background: rgba(17, 33, 18, 0.05);
	color: var(--gko-green);
}

.gkfc-checkout .woocommerce-info {
	border-color: var(--gko-line);
	background: rgba(95, 18, 22, 0.05);
}

/* ─── Sticky mobile action bar ─── */
.gkfc-checkout__sticky {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(10px);
	border-top: 1px solid var(--gko-line);
}

/* ─── Empty-bag panel ─── */
.gkfc-checkout--empty {
	padding-bottom: 96px;
}

.gkfc-checkout__empty {
	background: var(--gko-card);
	border: 1px solid var(--gko-line);
	border-radius: var(--gko-radius);
	box-shadow: var(--gko-shadow);
	padding: 48px 28px;
	text-align: center;
	max-width: 520px;
	margin: 0 auto;
}

.gkfc-checkout__empty-mark {
	display: inline-grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--gko-primary-soft);
	color: var(--gko-primary);
	font-size: 26px;
	line-height: 1;
	margin-bottom: 16px;
}

.gkfc-checkout__empty-lead {
	color: var(--gko-muted);
	font-size: 14.5px;
	line-height: 1.55;
	margin: 0 0 22px;
}

.gkfc-checkout__empty .gkfc-btn {
	text-decoration: none;
}

/* ─── Thank-you page ─── */
.gkfc-thankyou {
	max-width: 1080px;
	margin: 0 auto;
	padding: 40px 20px 80px;
}

.gkfc-thankyou--empty {
	text-align: center;
	max-width: 560px;
}

.gkfc-thankyou__mark {
	display: inline-grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--gko-green);
	color: #fff;
	font-size: 30px;
	font-weight: 800;
	margin-bottom: 18px;
	box-shadow: 0 10px 30px rgba(30, 126, 83, 0.3);
}

.gkfc-thankyou__hero {
	text-align: center;
	padding: 20px 0 34px;
}

.gkfc-thankyou__kpis {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 26px;
}

.gkfc-thankyou__kpi {
	background: var(--gko-card);
	border: 1px solid var(--gko-line);
	border-radius: var(--gko-radius-sm);
	padding: 14px 22px;
	min-width: 150px;
	box-shadow: var(--gko-shadow);
}

.gkfc-thankyou__kpi-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--gko-muted);
	margin-bottom: 4px;
}

.gkfc-thankyou__kpi-value {
	font-size: 15px;
	font-weight: 800;
	color: var(--gko-ink);
}

.gkfc-thankyou__email-note {
	margin: 18px 0 0;
	font-size: 13.5px;
	color: var(--gko-muted);
}

/* Timeline */
.gkfc-thankyou__timeline {
	background: var(--gko-card);
	border: 1px solid var(--gko-line);
	border-radius: var(--gko-radius);
	box-shadow: var(--gko-shadow);
	padding: 22px 26px;
	margin-bottom: 26px;
	overflow-x: auto;
}

.gkfc-thankyou__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-width: 620px;
}

.gkfc-thankyou__step {
	flex: 1;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 8px;
}

.gkfc-thankyou__step + .gkfc-thankyou__step::before {
	content: '';
	position: absolute;
	top: 18px;
	left: -12px;
	right: calc(50% + 12px);
	height: 2px;
	background: var(--gko-line);
}

.gkfc-thankyou__step.is-done + .gkfc-thankyou__step::before,
.gkfc-thankyou__step.is-done::before,
.gkfc-thankyou__step + .gkfc-thankyou__step.is-done::before {
	background: var(--gko-green);
}

.gkfc-thankyou__stepmark {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid var(--gko-line);
	background: var(--gko-card);
	color: var(--gko-muted);
	font-size: 13px;
	font-weight: 800;
}

.gkfc-thankyou__step.is-done .gkfc-thankyou__stepmark {
	background: var(--gko-green);
	border-color: var(--gko-green);
	color: #fff;
}

.gkfc-thankyou__steplabel {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--gko-ink);
}

.gkfc-thankyou__stephint {
	display: block;
	font-size: 12px;
	color: var(--gko-muted);
}

/* Panels */
.gkfc-thankyou__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 26px;
	align-items: start;
}

.gkfc-thankyou__panel {
	background: var(--gko-card);
	border: 1px solid var(--gko-line);
	border-radius: var(--gko-radius);
	box-shadow: var(--gko-shadow);
	padding: 24px;
	margin: 0 0 26px;
}

.gkfc-thankyou__panel-title {
	font-family: 'Montserrat', 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 800;
	margin: 0 0 16px;
	color: var(--gko-ink);
}

.gkfc-thankyou__items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gkfc-thankyou__item {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 12px 0;
	border-top: 1px solid var(--gko-line-soft);
}

.gkfc-thankyou__item:first-child {
	border-top: 0;
}

.gkfc-thankyou__thumb img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: var(--gko-radius-sm);
	border: 1px solid var(--gko-line-soft);
}

.gkfc-thankyou__itemmeta {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.gkfc-thankyou__itemname {
	font-size: 14px;
	font-weight: 600;
	color: var(--gko-ink);
}

.gkfc-thankyou__itemqty {
	font-size: 12.5px;
	color: var(--gko-muted);
}

.gkfc-thankyou__itemprice {
	font-size: 14px;
	font-weight: 700;
	color: var(--gko-ink);
}

.gkfc-thankyou__totals {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--gko-line);
}

.gkfc-thankyou__total-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 5px 0;
	font-size: 14px;
	color: var(--gko-muted);
}

.gkfc-thankyou__total-row--discount {
	color: var(--gko-green);
}

.gkfc-thankyou__total-row--grand {
	margin-top: 8px;
	padding-top: 14px;
	border-top: 1px solid var(--gko-line);
	color: var(--gko-ink);
	font-weight: 700;
	font-size: 16px;
}

.gkfc-thankyou__payment-note,
.gkfc-thankyou__download {
	margin: 16px 0 0;
	font-size: 13.5px;
	color: var(--gko-muted);
}

.gkfc-thankyou__block {
	margin-bottom: 22px;
}

.gkfc-thankyou__block-title {
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--gko-muted);
	margin: 0 0 10px;
}

.gkfc-thankyou__address {
	font-style: normal;
	font-size: 14px;
	line-height: 1.6;
	color: var(--gko-ink);
}

.gkfc-thankyou__meta {
	margin: 0;
}

.gkfc-thankyou__meta-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-top: 1px solid var(--gko-line-soft);
	font-size: 13.5px;
}

.gkfc-thankyou__meta-row dt {
	font-weight: 600;
	color: var(--gko-muted);
}

.gkfc-thankyou__meta-row dd {
	margin: 0;
	font-weight: 700;
	color: var(--gko-ink);
	text-align: right;
}

.gkfc-thankyou__note {
	font-size: 14px;
	line-height: 1.6;
	color: var(--gko-ink);
	background: var(--gko-light);
	border: 1px solid var(--gko-line-soft);
	border-radius: var(--gko-radius-sm);
	padding: 12px 14px;
}

.gkfc-thankyou__foot {
	text-align: center;
	margin-top: 8px;
}

.gkfc-thankyou .gkfc-btn {
	text-decoration: none;
}

/* ─── Responsive ─── */
@media ( max-width: 960px ) {
	.gkfc-checkout__grid,
	.gkfc-thankyou__grid {
		grid-template-columns: 1fr;
	}

	.gkfc-thankyou__panel {
		margin-bottom: 20px;
	}

	/* Summary collapses into a header bar on mobile (still sticky via JS) */
	.gkfc-checkout__aside {
		position: sticky;
		top: 12px;
		z-index: 40;
	}

	.gkfc-summary__toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		width: 100%;
		padding: 16px 18px;
		background: var(--gko-card);
		border: 0;
		border-bottom: 1px solid var(--gko-line);
		font: inherit;
		font-weight: 700;
		font-size: 15px;
		color: var(--gko-ink);
		cursor: pointer;
	}

	.gkfc-summary__toggle-value {
		color: var(--gko-ink);
		font-weight: 800;
		font-size: 15px;
	}

	.gkfc-summary__toggle-caret {
		color: var(--gko-muted);
		transform: rotate(180deg);
		transition: transform 0.2s ease;
	}

	.gkfc-summary__toggle[aria-expanded='false'] .gkfc-summary__toggle-caret {
		transform: rotate(0deg);
	}

	.gkfc-summary__panel {
		display: block;
	}

	.gkfc-summary__panel:not(.is-open) {
		display: none;
	}

	.gkfc-step {
		padding: 22px 18px;
	}

	.gkfc-step__actions {
		padding-bottom: 8px;
	}

	/* Hide the inline actions on mobile (sticky bar drives navigation). */
	.gkfc-checkout {
		padding-bottom: 140px;
	}

	.gkfc-checkout__sticky {
		display: block;
	}
}

@media ( min-width: 961px ) {
	.gkfc-checkout__sticky {
		display: none !important;
	}

	/* CFW-style pinned summary rail. Clears the 58px brand bar by 20px. */
	body.gkfc-checkout-fs .gkfc-checkout__aside {
		position: sticky;
		top: 78px;
		align-self: start;
	}

	/* No mobile action bar on desktop, so reclaim its reserved space. */
	body.gkfc-checkout-fs .gkfc-checkout {
		padding-top: 32px;
		padding-bottom: 48px;
	}
}

@media ( max-width: 960px ) {
	/* The brand bar is sticky here too, so the collapsible summary header
	 * has to start below it rather than underneath. */
	body.gkfc-checkout-fs .gkfc-checkout__aside {
		top: 70px;
	}
}

@media ( max-width: 560px ) {
	.gkfc-checkout,
	.gkfc-thankyou {
		padding-left: 14px;
		padding-right: 14px;
	}

	.gkfc-checkout__nav {
		gap: 6px;
	}

	.gkfc-checkout__stepnav {
		padding: 6px 10px 6px 6px;
		font-size: 12px;
	}

	.gkfc-thankyou__steps {
		min-width: 520px;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.gkfc-step.is-active {
		animation: none;
	}
}