.f2f-express,
.f2f-express * { box-sizing: border-box; }
.f2f-express[hidden] { display: none !important; }

.f2f-express {
	position: fixed;
	z-index: 2147483000;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 22px;
	font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

.f2f-express__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: rgba(8, 28, 18, 0.62);
	backdrop-filter: blur(10px);
	opacity: 0;
	transition: opacity 0.22s ease;
}

.f2f-express__dialog {
	position: relative;
	display: grid;
	grid-template-rows: auto auto minmax(0, 1fr);
	width: min(1120px, 100%);
	height: min(900px, calc(100dvh - 44px));
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 28px;
	background: #fffdf8;
	box-shadow: 0 32px 90px rgba(5, 30, 17, 0.3);
	opacity: 0;
	transform: translateY(18px) scale(0.985);
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.f2f-express.is-open .f2f-express__backdrop,
.f2f-express.is-open .f2f-express__dialog { opacity: 1; }
.f2f-express.is-open .f2f-express__dialog { transform: none; }

.f2f-express__header {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 13px;
	min-height: 76px;
	padding: 12px 17px 12px 20px;
	border-bottom: 1px solid rgba(36, 91, 51, 0.12);
	background: linear-gradient(120deg, #fffdf8 0%, #f4f8f0 100%);
}

.f2f-express__brand {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 14px;
	background: #275f36;
	box-shadow: 0 10px 22px rgba(39, 95, 54, 0.2);
}

.f2f-express__brand svg {
	width: 25px;
	fill: none;
	stroke: #fff;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.f2f-express__header span {
	display: block;
	margin-bottom: 2px;
	color: #69806e;
	font-size: 10px;
	font-weight: 750;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.f2f-express__header h2 {
	margin: 0;
	color: #173b28;
	font-size: 20px;
	font-weight: 750;
	letter-spacing: -0.025em;
	line-height: 1.2;
}

.f2f-express__header-actions { display: flex; align-items: center; gap: 10px; }
.f2f-express__external { color: #315f3c; font-size: 12px; font-weight: 700; text-decoration: none; }
.f2f-express__external:hover { color: #173b28; text-decoration: underline; }

.f2f-express__close {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	padding: 0;
	border: 1px solid rgba(36, 91, 51, 0.15);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.86);
	color: #173b28;
	cursor: pointer;
	transition: background 0.18s ease, transform 0.18s ease;
}

.f2f-express__close:hover { background: #fff; transform: rotate(5deg); }
.f2f-express__close svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8; }

.f2f-express__payment-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	min-height: 46px;
	padding: 7px 20px;
	border-bottom: 1px solid rgba(36, 91, 51, 0.1);
	background: #fbfcf8;
}

.f2f-express__powered {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #49644f;
	font-size: 11px;
	font-weight: 700;
}

.f2f-express__powered svg {
	width: 18px;
	fill: none;
	stroke: #2f6639;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.f2f-express__payment-brands {
	display: flex;
	align-items: center;
	gap: 7px;
}

.f2f-express__payment-brands span {
	display: inline-flex;
	min-height: 25px;
	align-items: center;
	padding: 3px 8px;
	border: 1px solid #e0e6df;
	border-radius: 7px;
	background: #fff;
	box-shadow: 0 3px 9px rgba(24, 60, 38, 0.05);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.f2f-express__payment-brands .is-gpay { color: #3168cf; }
.f2f-express__payment-brands .is-phonepe { color: #5f259f; }
.f2f-express__payment-brands .is-upi { color: #138a45; }
.f2f-express__payment-brands .is-qr { gap: 4px; color: #173b28; }
.f2f-express__payment-brands .is-qr svg { width: 12px; height: 12px; fill: currentColor; }
.f2f-express__stage { position: relative; min-height: 0; background: #f8faf6; }
.f2f-express__frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }

.f2f-express__error {
	position: absolute;
	z-index: 4;
	top: 16px;
	left: 50%;
	width: min(620px, calc(100% - 32px));
	padding: 12px 15px;
	transform: translateX(-50%);
	border: 1px solid #e8b7ad;
	border-radius: 12px;
	background: #fff4f1;
	box-shadow: 0 12px 30px rgba(92, 38, 29, 0.12);
	color: #842d21;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.45;
	text-align: center;
}

.f2f-express__error[hidden] { display: none !important; }

.single-product form.cart .f2f-single-buy-now {
	display: inline-grid;
	min-height: 52px;
	align-content: center;
	gap: 1px;
	margin-left: 9px;
	padding: 8px 22px;
	border: 1px solid #235b34;
	border-radius: 14px;
	background: linear-gradient(135deg, #2f6e3f, #194b2b);
	box-shadow: 0 10px 22px rgba(32, 91, 49, 0.2);
	color: #fff;
	font: inherit;
	text-align: center;
	text-transform: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.single-product form.cart .f2f-single-buy-now span { font-size: 14px; font-weight: 800; line-height: 1.15; }
.single-product form.cart .f2f-single-buy-now small { color: rgba(255, 255, 255, 0.78); font-size: 9px; font-weight: 650; letter-spacing: 0.03em; line-height: 1.15; }
.single-product form.cart .f2f-single-buy-now:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(32, 91, 49, 0.26); }
.single-product form.cart .f2f-single-buy-now:disabled { cursor: wait; opacity: 0.62; transform: none; }

.f2f-express__loader {
	position: absolute;
	z-index: 2;
	inset: 0;
	display: block;
	padding: clamp(22px, 3vw, 36px);
	background: radial-gradient(circle at 50% 40%, #fff 0%, #f4f8f0 72%);
	color: #173b28;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.18s ease;
}

.f2f-express.is-loading .f2f-express__loader { opacity: 1; pointer-events: auto; }
.f2f-express__skeleton { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.85fr); gap: clamp(22px, 3vw, 38px); max-width: 1040px; margin: 0 auto; }
.f2f-express__skeleton-main,
.f2f-express__skeleton-summary { display: flex; flex-direction: column; gap: 13px; }
.f2f-express__skeleton-summary { align-self: start; padding: 22px; border: 1px solid rgba(47, 102, 57, 0.09); border-radius: 14px; background: #fff; }
.f2f-express__skeleton-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f2f-express__skeleton span { display: block; overflow: hidden; border-radius: 9px; background: #e8eee6; }
.f2f-express__skeleton span::after { content: ""; display: block; width: 45%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.82), transparent); animation: f2f-express-shimmer 1.05s ease-in-out infinite; }
.f2f-express__skeleton .is-title { width: 36%; height: 24px; margin-bottom: 3px; }
.f2f-express__skeleton .is-title.is-short { width: 27%; margin-top: 14px; }
.f2f-express__skeleton .is-field { height: 53px; }
.f2f-express__skeleton .is-payment { height: 86px; margin-top: 15px; }
.f2f-express__skeleton .is-product { height: 82px; }
.f2f-express__skeleton .is-line { height: 17px; margin-top: 7px; }
.f2f-express__skeleton .is-line.is-short { width: 72%; }

.f2f-express.is-payment-loading .f2f-express__loader {
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 13px;
	text-align: center;
}

.f2f-express.is-payment-loading .f2f-express__skeleton { display: none; }

.f2f-express.is-payment-loading .f2f-express__loader::before {
	content: "";
	display: block;
	width: 46px;
	height: 46px;
	border: 4px solid rgba(47, 102, 57, 0.14);
	border-top-color: #2f6639;
	border-radius: 50%;
	animation: f2f-express-spin 0.7s linear infinite;
}

.f2f-express.is-payment-loading .f2f-express__loader::after {
	content: "Opening Razorpay secure payment…";
	color: #173b28;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

html.f2f-express-is-open,
body.f2f-express-is-open { overflow: hidden !important; }

body.f2f-express-is-open #okapi-wasb-button,
body.f2f-express-is-open .sticky-cart-container,
body.f2f-express-is-open .btn-back-to-top,
body.f2f-express-is-open [class*="skyity"],
body.f2f-express-is-open [id*="skyity"] { display: none !important; }

body.f2f-express-document { min-width: 0 !important; background: #f8faf6 !important; }
.f2f-express-document main {
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	background: #f8faf6;
}

.f2f-express-document main > h2:first-child,
.f2f-express-document main > .wp-block-heading:first-of-type {
	display: none !important;
}

.f2f-express-document .header-v1,
.f2f-express-document > .sec-subscribe,
.f2f-express-document > footer,
.f2f-express-document #okapi-wasb-button,
.f2f-express-document .sticky-cart-container,
.f2f-express-document .btn-back-to-top,
.f2f-express-document [class*="skyity"],
.f2f-express-document [id*="skyity"] { display: none !important; }

.f2f-express-document .woocommerce,
.f2f-express-document .wp-block-woocommerce-checkout {
	width: min(1040px, calc(100% - 36px));
	margin: 0 auto !important;
	padding: 24px 0 12px;
}

.f2f-express-document form.checkout { margin-top: 0; }
.f2f-express-document .wc-block-components-sidebar-layout,
.f2f-express-document .wc-block-checkout__actions,
.f2f-express-document .wc-block-checkout__actions_row {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

.f2f-express-document .woocommerce-order {
	min-height: calc(100vh - 60px);
	padding: 28px;
	border: 1px solid rgba(47, 102, 57, 0.12);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 18px 55px rgba(36, 91, 51, 0.09);
}

/* Razorpay's official receipt document is only a technical handoff. Keep its
   order summary/header invisible while the gateway opens automatically. */
body.f2f-express-payment-handoff main {
	opacity: 0 !important;
	pointer-events: none !important;
}

body.f2f-express-payment-handoff .razorpay-container,
body.f2f-express-payment-handoff .razorpay-checkout-frame,
body.f2f-express-payment-handoff iframe[src*="razorpay"] {
	opacity: 1 !important;
	pointer-events: auto !important;
}

@keyframes f2f-express-spin { to { transform: rotate(360deg); } }
@keyframes f2f-express-shimmer { from { transform: translateX(-160%); } to { transform: translateX(290%); } }

@media (max-width: 767px) {
	.single-product form.cart .f2f-single-buy-now {
		width: 100%;
		margin: 10px 0 0;
	}
	.f2f-express { align-items: end; padding: 0; }
	.f2f-express__dialog {
		width: 100%;
		height: 100dvh;
		max-height: none;
		border: 0;
		border-radius: 0;
		transform: translateY(28px);
	}
	.f2f-express__header { min-height: 66px; padding: max(10px, env(safe-area-inset-top)) 12px 10px 14px; gap: 10px; }
	.f2f-express__brand { width: 38px; height: 38px; border-radius: 12px; }
	.f2f-express__header h2 { font-size: 17px; }
	.f2f-express__external { display: none; }
	.f2f-express__close { width: 40px; height: 40px; }
	.f2f-express__payment-bar { min-height: 42px; padding: 6px 12px; }
	.f2f-express__powered { font-size: 10px; }
	.f2f-express__payment-brands { gap: 4px; }
	.f2f-express__payment-brands span { min-height: 23px; padding: 2px 5px; font-size: 9px; }
	.f2f-express__loader { padding: 18px 12px; }
	.f2f-express__skeleton { grid-template-columns: 1fr; gap: 18px; }
	.f2f-express__skeleton-summary { display: none; }
	.f2f-express__skeleton-row { grid-template-columns: 1fr; }
	.f2f-express-document .woocommerce,
	.f2f-express-document .wp-block-woocommerce-checkout {
		width: min(calc(100% - 24px), 680px);
		padding: 12px 0 calc(8px + env(safe-area-inset-bottom));
	}
	.f2f-express-document .wc-block-checkout__actions_row {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}
	.f2f-express-document .wc-block-components-checkout-place-order-button {
		width: 100% !important;
		max-width: 100%;
		margin: 0 !important;
	}
	.f2f-express-document .woocommerce-order { padding: 18px; border-radius: 18px; }
}

@media (max-width: 480px) {
	.f2f-express__payment-bar { justify-content: center; }
	.f2f-express__powered { display: none; }
	.f2f-express__payment-brands { width: 100%; justify-content: center; }
	.f2f-express-document .wc-block-components-address-form {
		display: block !important;
	}

	.f2f-express-document .wc-block-components-address-form > div,
	.f2f-express-document .wc-block-components-address-form .wc-block-components-text-input,
	.f2f-express-document .wc-block-components-address-form .wc-block-components-select-input,
	.f2f-express-document .wc-block-components-address-form .wc-block-components-state-input {
		width: 100% !important;
		max-width: 100% !important;
		margin-inline: 0 !important;
	}
}

@media (max-width: 360px) {
	.f2f-express__powered {
		gap: 0;
		font-size: 0;
	}
	.f2f-express__payment-brands .is-upi { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.f2f-express__backdrop,
	.f2f-express__dialog,
	.f2f-express__loader { transition: none; }
	.f2f-express__spinner { animation-duration: 1.5s; }
}
