/* ==========================================================
   Pay Now — checkout overlay (5starscarrental)
   ========================================================== */

:root {
	--pay-accent: #623823;
	--pay-accent-soft: #8a5433;
	--pay-ink: #101010;
	--pay-muted: #9a938e;
	--pay-line: #ececec;
	--pay-surface: #faf7f5;
}

.pay-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(16, 10, 6, 0.55);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.pay-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.pay-modal {
	position: relative;
	width: 100%;
	max-width: 440px;
	background: #fff;
	border-radius: 28px;
	overflow: hidden;
	box-shadow: 0 40px 90px -30px rgba(40, 20, 8, 0.55);
	transform: translateY(28px) scale(0.97);
	opacity: 0;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.pay-overlay.is-open .pay-modal {
	transform: translateY(0) scale(1);
	opacity: 1;
}

/* Header */
.pay-head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--pay-line);
}

.pay-head__badge,
.pay-back {
	width: 46px;
	height: 46px;
	min-width: 46px;
	border: 0;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--pay-surface);
	color: var(--pay-accent);
	cursor: pointer;
	transition: transform 0.25s ease, background 0.25s ease;
}

.pay-head__badge {
	background: color-mix(in srgb, var(--pay-accent) 12%, #fff);
	cursor: default;
}

.pay-back:hover {
	transform: translateX(-3px);
	background: color-mix(in srgb, var(--pay-accent) 12%, #fff);
}

.pay-head__title {
	flex: 1;
	margin: 0;
	text-align: center;
	font-family: var(--accent-font, "Epilogue", sans-serif);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--pay-muted);
}

.pay-close {
	width: 46px;
	height: 46px;
	min-width: 46px;
	border: 0;
	border-radius: 16px;
	background: transparent;
	color: var(--pay-muted);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: color 0.25s ease, transform 0.25s ease;
}

.pay-close:hover {
	color: var(--pay-ink);
	transform: rotate(90deg);
}

/* Progress */
.pay-progress {
	height: 3px;
	background: var(--pay-line);
}

.pay-progress span {
	display: block;
	height: 100%;
	width: 33%;
	background: linear-gradient(90deg, var(--pay-accent), var(--pay-accent-soft));
	transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Steps */
.pay-body {
	padding: 30px 26px 26px;
}

.pay-step {
	display: none;
}

.pay-step.is-active {
	display: block;
}

.pay-step.is-active > * {
	animation: payRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pay-step.is-active > *:nth-child(2) { animation-delay: 0.06s; }
.pay-step.is-active > *:nth-child(3) { animation-delay: 0.12s; }
.pay-step.is-active > *:nth-child(4) { animation-delay: 0.18s; }
.pay-step.is-active > *:nth-child(5) { animation-delay: 0.24s; }

@keyframes payRise {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Currency toggle */
.pay-toggle {
	position: relative;
	display: flex;
	margin: 0 auto 26px;
	width: 240px;
	padding: 6px;
	border-radius: 999px;
	background: var(--pay-surface);
}

.pay-toggle__pill {
	position: absolute;
	top: 6px;
	left: 6px;
	width: calc(50% - 6px);
	height: calc(100% - 12px);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.35);
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.pay-toggle.is-second .pay-toggle__pill {
	transform: translateX(100%);
}

.pay-toggle button {
	position: relative;
	z-index: 1;
	flex: 1;
	border: 0;
	background: transparent;
	padding: 11px 0;
	font-family: var(--accent-font, "Epilogue", sans-serif);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: var(--pay-muted);
	cursor: pointer;
	transition: color 0.3s ease;
}

.pay-toggle button.is-active {
	color: var(--pay-ink);
}

/* Amount */
.pay-amount {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 10px;
	min-height: 120px;
	margin-bottom: 26px;
}

.pay-amount__sym {
	font-family: var(--accent-font, "Epilogue", sans-serif);
	font-size: 40px;
	font-weight: 700;
	color: #cfc7c2;
	transition: color 0.3s ease;
}

.pay-amount input {
	width: 100%;
	max-width: 260px;
	border: 0;
	outline: 0;
	background: transparent;
	font-family: var(--accent-font, "Epilogue", sans-serif);
	font-size: 64px;
	font-weight: 700;
	color: var(--pay-ink);
	caret-color: var(--pay-accent);
}

.pay-amount input::placeholder {
	color: #dcd5d0;
}

.pay-amount.is-filled .pay-amount__sym {
	color: var(--pay-accent);
}

/* Merchant card */
.pay-merchant {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	border: 1px solid var(--pay-line);
	border-radius: 20px;
	background: var(--pay-surface);
	margin-bottom: 22px;
}

.pay-merchant__label {
	font-family: var(--accent-font, "Epilogue", sans-serif);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--pay-muted);
}

.pay-merchant__to {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	color: var(--pay-ink);
}

.pay-merchant__avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(140deg, var(--pay-accent), var(--pay-accent-soft));
	color: #fff;
	font-weight: 700;
}

/* Inputs */
.pay-field {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 4px 18px;
	margin-bottom: 12px;
	border: 1px solid transparent;
	border-radius: 18px;
	background: var(--pay-surface);
	transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.pay-field:focus-within {
	border-color: var(--pay-accent);
	background: #fff;
	transform: translateY(-2px);
}

.pay-field i {
	color: #c3b9b2;
	font-size: 16px;
	transition: color 0.3s ease;
}

.pay-field:focus-within i {
	color: var(--pay-accent);
}

.pay-field input {
	flex: 1;
	border: 0;
	outline: 0;
	background: transparent;
	padding: 18px 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--pay-ink);
}

.pay-field input::placeholder {
	color: #a9a099;
	font-weight: 600;
}

/* Methods */
.pay-method {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	text-align: left;
	padding: 18px;
	margin-bottom: 14px;
	border: 2px solid var(--pay-line);
	border-radius: 22px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.pay-method:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 34px -22px rgba(60, 30, 10, 0.6);
}

.pay-method.is-active {
	border-color: var(--pay-accent);
}

.pay-method__icon {
	width: 56px;
	height: 56px;
	min-width: 56px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--pay-surface);
	color: var(--pay-muted);
	font-size: 20px;
	transition: background 0.3s ease, color 0.3s ease;
}

.pay-method.is-active .pay-method__icon {
	background: linear-gradient(140deg, var(--pay-accent), var(--pay-accent-soft));
	color: #fff;
}

.pay-method__text strong {
	display: block;
	font-family: var(--accent-font, "Epilogue", sans-serif);
	font-size: 19px;
	color: var(--pay-ink);
}

.pay-method__text span {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--pay-muted);
}

.pay-method__check {
	margin-left: auto;
	color: var(--pay-accent);
	opacity: 0;
	transform: scale(0.6);
	transition: all 0.3s ease;
}

.pay-method.is-active .pay-method__check {
	opacity: 1;
	transform: scale(1);
}

/* Total */
.pay-total {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	padding: 20px 4px 22px;
	margin-top: 6px;
	border-top: 1px solid var(--pay-line);
}

.pay-total__label {
	font-weight: 700;
	color: #5c534d;
}

.pay-total__value {
	text-align: right;
	font-family: var(--accent-font, "Epilogue", sans-serif);
	font-size: 34px;
	font-weight: 700;
	line-height: 1;
	color: var(--pay-ink);
}

.pay-total__note {
	display: block;
	margin-top: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pay-muted);
}

/* CTA */
.pay-cta {
	position: relative;
	width: 100%;
	border: 0;
	border-radius: 999px;
	padding: 22px;
	font-family: var(--accent-font, "Epilogue", sans-serif);
	font-size: 19px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(120deg, var(--pay-accent), var(--pay-accent-soft));
	cursor: pointer;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
	box-shadow: 0 22px 40px -20px rgba(98, 56, 35, 0.9);
}

.pay-cta:hover:not(:disabled) {
	transform: translateY(-3px);
	box-shadow: 0 28px 50px -18px rgba(98, 56, 35, 0.95);
}

.pay-cta:disabled {
	cursor: not-allowed;
	opacity: 0.32;
	box-shadow: none;
	filter: grayscale(0.4);
}

/* Footer */
.pay-foot {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	padding: 18px;
	border-top: 1px solid var(--pay-line);
	background: #fff;
}

.pay-foot span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #bdb5af;
}

/* Payment screens */
.pay-screen-note {
	margin: 0 0 18px;
	font-size: 14px;
	color: #6d6560;
}

.pay-card-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.pay-card-grid .pay-field {
	margin-bottom: 0;
}

.pay-card-grid .pay-field.full {
	grid-column: 1 / -1;
}

.pay-success {
	text-align: center;
	padding: 16px 0 8px;
}

.pay-success__ring {
	width: 92px;
	height: 92px;
	margin: 0 auto 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 34px;
	color: #fff;
	background: linear-gradient(140deg, var(--pay-accent), var(--pay-accent-soft));
	animation: payPulse 1.8s ease-in-out infinite;
}

@keyframes payPulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(98, 56, 35, 0.35); }
	50% { box-shadow: 0 0 0 18px rgba(98, 56, 35, 0); }
}

/* Nav button */
.nav-pay-now {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

@media (max-width: 480px) {
	.pay-body { padding: 24px 18px 20px; }
	.pay-amount input { font-size: 48px; }
	.pay-card-grid { grid-template-columns: 1fr; }
}

.pay-overlay, .pay-overlay * { box-sizing: border-box; }
.pay-card-grid { width: 100%; }
.pay-card-grid .pay-field { min-width: 0; }
.pay-field input { min-width: 0; width: 100%; }

/* ==========================================================
   Enhancements: visible icons + mobile bottom sheet
   ========================================================== */

/* Icons — always readable, brand tinted */
.pay-field i {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 11px;
	background: color-mix(in srgb, var(--pay-accent) 10%, #fff);
	color: var(--pay-accent);
	font-size: 15px;
	flex: 0 0 34px;
}

.pay-field:focus-within i {
	background: linear-gradient(140deg, var(--pay-accent), var(--pay-accent-soft));
	color: #fff;
}

.pay-method__icon {
	background: color-mix(in srgb, var(--pay-accent) 12%, #fff);
	color: var(--pay-accent);
}

.pay-head__badge i { color: var(--pay-accent); font-size: 17px; }
.pay-back i { color: var(--pay-accent); }
.pay-foot span i { color: var(--pay-accent); }
.pay-foot span { color: #8b8079; }

/* Richer modal surface */
.pay-modal {
	background:
		radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, var(--pay-accent) 9%, #fff) 0%, #fff 60%);
	border: 1px solid color-mix(in srgb, var(--pay-accent) 10%, #fff);
}

.pay-method {
	background: #fff;
	border-color: #efe9e5;
}

.pay-method.is-active {
	background: color-mix(in srgb, var(--pay-accent) 5%, #fff);
	box-shadow: 0 20px 38px -26px rgba(98, 56, 35, 0.7);
}

.pay-cta::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.28) 45%, transparent 70%);
	transform: translateX(-120%);
	transition: transform 0.7s ease;
}

.pay-cta:hover:not(:disabled)::after { transform: translateX(120%); }

/* ===== Mobile: slide-up bottom sheet ===== */
@media only screen and (max-width: 767px) {
	.pay-overlay {
		align-items: flex-end;
		padding: 0;
	}

	.pay-modal {
		max-width: 100%;
		border-radius: 30px 30px 0 0;
		max-height: 94vh;
		overflow-y: auto;
		transform: translateY(100%) scale(1);
		transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
		padding-bottom: env(safe-area-inset-bottom);
	}

	.pay-overlay.is-open .pay-modal {
		transform: translateY(0);
	}

	.pay-modal::before {
		content: "";
		display: block;
		width: 46px;
		height: 5px;
		margin: 10px auto 2px;
		border-radius: 999px;
		background: #e3dbd5;
	}

	.pay-head { padding: 12px 16px 14px; }
	.pay-body { padding: 22px 18px 26px; }
	.pay-amount { min-height: 96px; margin-bottom: 20px; }
	.pay-cta { padding: 19px; font-size: 17px; }
	.pay-foot { position: sticky; bottom: 0; }
}

/* ==========================================================
   Enhancements v2: logo merchant mark, framed close, richer polish
   ========================================================== */

/* Merchant avatar — brand logo in a framed white circle */
.pay-merchant__avatar {
	width: 42px;
	height: 42px;
	background: #fff;
	border: 1.5px solid color-mix(in srgb, var(--pay-accent) 22%, #fff);
	box-shadow: 0 8px 18px -10px rgba(98, 56, 35, 0.55);
	overflow: hidden;
}

.pay-merchant__avatar img {
	width: 22px;
	height: auto;
	display: block;
}

.pay-merchant {
	box-shadow: 0 14px 30px -24px rgba(60, 30, 10, 0.55);
	border-color: #efe7e1;
}

.pay-merchant__to { font-size: 15px; }

/* Close button — dark framed, larger */
.pay-close {
	width: 52px;
	height: 52px;
	min-width: 52px;
	border-radius: 18px;
	background: #12182b;
	color: #fff;
	font-size: 24px;
	font-weight: 300;
	box-shadow: 0 14px 26px -14px rgba(18, 24, 43, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.14);
	transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.pay-close:hover {
	background: linear-gradient(140deg, var(--pay-accent), var(--pay-accent-soft));
	color: #fff;
	transform: rotate(90deg) scale(1.04);
	box-shadow: 0 18px 32px -14px rgba(98, 56, 35, 0.85);
}

/* Header polish */
.pay-head { padding: 20px 22px; gap: 16px; }

.pay-head__badge {
	background: linear-gradient(140deg, var(--pay-accent), var(--pay-accent-soft));
	box-shadow: 0 12px 24px -12px rgba(98, 56, 35, 0.8);
}

.pay-head__badge i { color: #fff; }

.pay-head__title {
	font-size: 15px;
	color: #4a423c;
	letter-spacing: 0.26em;
}

.pay-back {
	background: #fff;
	border: 1.5px solid #efe7e1;
	box-shadow: 0 10px 20px -14px rgba(60, 30, 10, 0.6);
}

/* Footer with Terms & Conditions */
.pay-foot {
	gap: 18px;
	padding: 16px 18px;
	background: linear-gradient(180deg, #fff, var(--pay-surface));
}

.pay-foot span {
	font-size: 10px;
	letter-spacing: 0.14em;
	white-space: nowrap;
}

.pay-foot__terms {
	padding: 7px 14px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--pay-accent) 8%, #fff);
	border: 1px solid color-mix(in srgb, var(--pay-accent) 16%, #fff);
	color: var(--pay-accent) !important;
	cursor: pointer;
	transition: background 0.25s ease, transform 0.25s ease;
}

.pay-foot__terms i { color: var(--pay-accent); }

.pay-foot__terms:hover {
	background: color-mix(in srgb, var(--pay-accent) 14%, #fff);
	transform: translateY(-1px);
}

/* Body & typography polish */
.pay-body { padding: 32px 28px 28px; }

.pay-screen-note {
	font-size: 15px;
	line-height: 1.55;
}

.pay-screen-note strong { color: var(--pay-accent); }

.pay-success h3 {
	font-family: var(--accent-font, "Epilogue", sans-serif);
	font-size: 26px;
	font-weight: 700;
	color: var(--pay-ink);
	margin: 0 0 10px;
}

.pay-success__ring { box-shadow: 0 20px 40px -16px rgba(98, 56, 35, 0.7); }

.pay-amount {
	border-bottom: 2px dashed #ece5e0;
	padding-bottom: 18px;
}

.pay-amount.is-filled { border-bottom-color: color-mix(in srgb, var(--pay-accent) 35%, #fff); }

.pay-toggle { box-shadow: inset 0 2px 6px rgba(60, 30, 10, 0.08); }

.pay-field { border-color: #f0e9e4; box-shadow: 0 8px 18px -16px rgba(60, 30, 10, 0.5); }

.pay-field:focus-within { box-shadow: 0 14px 26px -16px rgba(98, 56, 35, 0.55); }

.pay-cta { letter-spacing: 0.04em; }

@media only screen and (max-width: 767px) {
	.pay-close { width: 48px; height: 48px; min-width: 48px; border-radius: 16px; font-size: 22px; }
	.pay-head { padding: 12px 16px 14px; }
	.pay-body { padding: 24px 20px 26px; }
	.pay-foot { gap: 10px; flex-wrap: wrap; justify-content: center; }
}

/* ==========================================================
   v3: strokes instead of shadows (0.5px, accent @ 50% opacity)
   ========================================================== */

:root { --pay-stroke: color-mix(in srgb, var(--pay-accent) 50%, transparent); }

.pay-modal,
.pay-toggle__pill,
.pay-toggle,
.pay-merchant,
.pay-merchant__avatar,
.pay-field,
.pay-method,
.pay-cta,
.pay-close,
.pay-back,
.pay-head__badge,
.pay-success__ring,
.pay-foot__terms,
.pay-privacy__card {
	box-shadow: none !important;
}

.pay-modal { border: 0.5px solid var(--pay-stroke) !important; }
.pay-toggle__pill { border: 0.5px solid var(--pay-stroke); }
.pay-merchant { border: 0.5px solid var(--pay-stroke) !important; }
.pay-merchant__avatar { border: 0.5px solid var(--pay-stroke) !important; }
.pay-field { border: 0.5px solid var(--pay-stroke) !important; }
.pay-method { border: 0.5px solid var(--pay-stroke) !important; }
.pay-cta { border: 0.5px solid color-mix(in srgb, #fff 35%, transparent) !important; }
.pay-close { border: 0.5px solid var(--pay-stroke) !important; }
.pay-back { border: 0.5px solid var(--pay-stroke) !important; }
.pay-head__badge { border: 0.5px solid color-mix(in srgb, #fff 30%, transparent) !important; }
.pay-foot__terms { border: 0.5px solid var(--pay-stroke) !important; background: transparent; font-family: inherit; }
.pay-success__ring { border: 0.5px solid color-mix(in srgb, #fff 35%, transparent) !important; animation: none; }

.pay-method:hover { transform: none; }
.pay-field:focus-within { border-color: var(--pay-accent) !important; }
.pay-method.is-active { border-color: var(--pay-accent) !important; }
.pay-cta:disabled { border-color: var(--pay-stroke) !important; }

/* ==========================================================
   Privacy popup — appears below the payment sheet
   ========================================================== */

.pay-privacy {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0 20px calc(6vh + env(safe-area-inset-bottom));
	background: rgba(16, 10, 6, 0.35);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pay-privacy.is-open {
	opacity: 1;
	visibility: visible;
}

.pay-privacy__card {
	width: 100%;
	max-width: 420px;
	background: #fff;
	border: 0.5px solid var(--pay-stroke);
	border-radius: 24px;
	overflow: hidden;
	transform: translateY(30px);
	opacity: 0;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.pay-privacy.is-open .pay-privacy__card {
	transform: translateY(0);
	opacity: 1;
}

.pay-privacy__head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
	border-bottom: 0.5px solid var(--pay-stroke);
}

.pay-privacy__head .pay-close {
	width: 44px;
	height: 44px;
	min-width: 44px;
	font-size: 20px;
}

.pay-privacy__body {
	padding: 24px 24px 26px;
}

.pay-privacy__body p {
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.6;
	color: #4a423c;
}

.pay-privacy__body p strong { color: var(--pay-ink); }

.pay-privacy__body ul {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
}

.pay-privacy__body li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	font-size: 14px;
	font-weight: 600;
	color: #4a423c;
	border-bottom: 0.5px solid color-mix(in srgb, var(--pay-accent) 20%, transparent);
}

.pay-privacy__body li:last-child { border-bottom: 0; }

.pay-privacy__body li i {
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	border: 0.5px solid var(--pay-stroke);
	color: var(--pay-accent);
	font-size: 13px;
	flex: 0 0 30px;
}

.pay-privacy__ok { padding: 17px; font-size: 16px; }

/* ---- Live exchange rate note (v4) ---- */
.pay-rate {
	margin: 10px 0 2px;
	font-family: 'DM Sans', sans-serif;
	font-size: 12.5px;
	line-height: 1.5;
	letter-spacing: 0.01em;
	text-align: center;
	color: rgba(4, 4, 1, 0.62);
	padding: 8px 12px;
	border: 0.5px solid rgba(98, 56, 35, 0.5);
	border-radius: 14px;
	background: rgba(98, 56, 35, 0.04);
}
.pay-rate.is-error {
	color: #8a2b12;
	border-color: rgba(138, 43, 18, 0.5);
	background: rgba(138, 43, 18, 0.06);
}
@media (max-width: 767px) {
	.pay-rate { font-size: 12px; padding: 8px 10px; }
}

/* ---- PesaPal hosted checkout ---- */
.pay-sandbox-help {
	display: grid;
	gap: 4px;
	margin: 0 0 14px;
	padding: 12px 14px;
	border: 0.5px solid rgba(98, 56, 35, 0.5);
	border-radius: 8px;
	background: rgba(98, 56, 35, 0.04);
	color: var(--pay-ink);
	font-size: 12px;
	line-height: 1.5;
}

.pay-sandbox-help strong {
	color: var(--pay-accent);
	font-family: var(--accent-font, "Epilogue", sans-serif);
}

.pay-sandbox-help b {
	font-weight: 800;
}

.pay-frame {
	width: 100%;
	height: 460px;
	margin: 14px 0 16px;
	border: 0.5px solid rgba(98, 56, 35, 0.5);
	border-radius: 18px;
	overflow: hidden;
	background: #fff;
}

.pay-frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.pay-cta--link {
	display: block;
	text-align: center;
	text-decoration: none;
	line-height: 52px;
}

.pay-error {
	color: #9b2c2c;
	font-weight: 600;
}

@media only screen and (max-width: 767px) {
	.pay-frame { height: 62vh; }
}

/* ==========================================================
   Secure-checkout hand-off screen + Mobile Money popup
   ========================================================== */
.pay-redirect { text-align: center; padding: 26px 8px 10px; }
.pay-redirect__ring {
	display: block; width: 58px; height: 58px; margin: 0 auto 22px;
	border-radius: 50%; border: 3px solid var(--pay-line);
	border-top-color: var(--pay-accent); animation: payspin 0.9s linear infinite;
}
@keyframes payspin { to { transform: rotate(360deg); } }
.pay-redirect__title { font-size: 20px; margin: 0 0 10px; color: var(--pay-ink); }
.pay-redirect__text { font-size: 14px; line-height: 1.6; color: var(--pay-muted); margin: 0 0 18px; }
.pay-redirect__amount { display: inline-block; font-size: 26px; font-weight: 700; color: var(--pay-accent); }
.pay-momo__link { display: block; text-align: center; text-decoration: none; margin-top: 12px; padding: 17px; font-size: 16px; }
.pay-momo__link i { margin-right: 8px; }
.pay-momo__link--ghost {
	background: transparent !important; color: var(--pay-accent) !important;
	border: 0.5px solid var(--pay-accent) !important;
}
@media (prefers-reduced-motion: reduce) { .pay-redirect__ring { animation-duration: 2.4s; } }

/* ==========================================================
   Payments page (/payments) — navigation bar + centered form only
   ========================================================== */
body:has(.pay-page--solo) { background: var(--secondary-color, #fff8f6); }

.pay-page--solo {
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(70% 55% at 50% 0%, color-mix(in srgb, var(--pay-accent) 13%, transparent), transparent 70%),
		radial-gradient(60% 50% at 100% 100%, color-mix(in srgb, var(--pay-accent) 8%, transparent), transparent 70%),
		var(--secondary-color, #fff8f6);
}



/* The form is part of the page here, not a popup */
.pay-overlay.pay-overlay--inline {
	position: static; inset: auto; z-index: auto; display: block; padding: 0;
	background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
	opacity: 1; visibility: visible;
}
.pay-overlay--inline .pay-modal {
	max-width: none; max-height: none; overflow: hidden;
	border-radius: 30px; transform: none !important; opacity: 1; padding-bottom: 0;
	box-shadow: 0 50px 100px -50px rgba(60, 30, 10, 0.55), 0 0 0 1px rgba(98, 56, 35, 0.07);
}
.pay-overlay--inline .pay-modal::before { display: none; }
.pay-overlay--inline .pay-close { visibility: hidden; pointer-events: none; }
.pay-overlay--inline .pay-foot { position: static; }




/* ==========================================================
   Currency conversion line, live-rate chip, compact merchant row
   ========================================================== */
.pay-amount__conv {
	min-height: 26px; margin: 4px 0 6px; text-align: center;
	font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--pay-muted);
}
.pay-amount__conv b { color: var(--pay-accent); font-size: 19px; font-weight: 700; }

.pay-modal .pay-rate {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	margin: 6px 0 10px; padding: 8px 12px; border-radius: 12px;
	font-size: 12.5px; line-height: 1.3;
}
.pay-rate b { color: var(--pay-accent); font-weight: 700; }
.pay-rate__dot {
	flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%;
	background: #2fa35a; animation: payPulse 2.2s ease-out infinite;
}
.pay-rate__dot.is-stale { background: #d19a3a; animation: none; }
@keyframes payPulse {
	0% { box-shadow: 0 0 0 0 rgba(47, 163, 90, 0.55); }
	70% { box-shadow: 0 0 0 7px rgba(47, 163, 90, 0); }
	100% { box-shadow: 0 0 0 0 rgba(47, 163, 90, 0); }
}

.pay-modal .pay-merchant {
	justify-content: flex-start; gap: 11px;
	padding: 9px 14px !important; margin-bottom: 16px; border-radius: 16px;
	background: linear-gradient(180deg, #fff, var(--pay-surface));
}
.pay-modal .pay-merchant__avatar { width: 32px !important; height: 32px !important; flex: 0 0 32px; background: #fff; }
.pay-modal .pay-merchant__avatar img { width: 20px; height: auto; }
.pay-merchant__info { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.pay-merchant__info small {
	font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
	text-transform: uppercase; color: var(--pay-muted);
}
.pay-merchant__info strong { font-size: 15px; color: var(--pay-ink); }
.pay-merchant__ok { margin-left: auto; font-size: 17px; color: var(--pay-accent); }

/* ==========================================================
   Mobile Money details — popup (computer) / bottom sheet (phone)
   ========================================================== */
body.pay-sheet-open { overflow: hidden; }
.pay-sheet {
	position: fixed; inset: 0; z-index: 100020;
	display: flex; align-items: center; justify-content: center; padding: 20px;
	background: rgba(16, 10, 6, 0.55);
	backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
	opacity: 0; visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
.pay-sheet.is-open { opacity: 1; visibility: visible; }
.pay-sheet__panel {
	position: relative; width: 100%; max-width: 420px;
	max-height: calc(100vh - 40px); overflow-y: auto; outline: 0;
	padding: 22px; border-radius: 28px; background: #fff;
	font-family: 'DM Sans', sans-serif; color: var(--pay-ink);
	box-shadow: 0 40px 90px -30px rgba(40, 20, 8, 0.6);
	transform: translateY(18px) scale(0.97); opacity: 0;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.pay-sheet.is-open .pay-sheet__panel { transform: none; opacity: 1; }
.pay-sheet__grab { display: none; }
.pay-sheet__close {
	position: absolute; top: 16px; right: 16px; width: 38px; height: 38px;
	border-radius: 12px; border: 0.5px solid var(--pay-stroke, #e6dbd3);
	background: #fff; color: var(--pay-ink); font-size: 22px; line-height: 1; cursor: pointer;
	transition: background 0.25s ease, transform 0.25s ease;
}
.pay-sheet__close:hover { background: var(--pay-surface); transform: rotate(90deg); }
.pay-sheet__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-right: 46px; }
.pay-sheet__badge {
	flex: 0 0 46px; height: 46px; display: grid; place-items: center;
	border-radius: 15px; color: #fff; font-size: 19px;
	background: linear-gradient(140deg, var(--pay-accent), var(--pay-accent-soft));
	box-shadow: 0 14px 24px -14px rgba(98, 56, 35, 0.9);
}
.pay-sheet__head h4 { margin: 0; font-family: var(--accent-font, inherit); font-size: 19px; line-height: 1.2; color: var(--pay-ink); }
.pay-sheet__head p { margin: 4px 0 0; font-size: 14px; line-height: 1.4; color: #6b625c; }
.pay-sheet__card { border: 1px solid #efe4dc; border-radius: 20px; background: var(--pay-surface); }
.pay-sheet__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.pay-sheet__row + .pay-sheet__row { border-top: 1px dashed #e4d7cc; }
.pay-sheet__label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #9a8f87; }
.pay-sheet__number {
	display: block; margin-top: 4px; font-size: 25px; font-weight: 700; letter-spacing: 0.04em;
	color: var(--pay-accent); font-variant-numeric: tabular-nums;
}
.pay-sheet__value { text-align: right; font-size: 17px; font-weight: 700; color: var(--pay-ink); }
.pay-sheet__approx { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: #8a7f77; }
.pay-sheet__copy {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 18px; border: 0; border-radius: 100px; cursor: pointer;
	font: 700 14px 'DM Sans', sans-serif; color: #fff;
	background: linear-gradient(130deg, var(--pay-accent), var(--pay-accent-soft));
	box-shadow: 0 14px 24px -14px rgba(98, 56, 35, 0.9);
	transition: background 0.3s ease, transform 0.2s ease;
}
.pay-sheet__copy:active { transform: scale(0.95); }
.pay-sheet__copy.is-done { background: #2f8a4c; }
.pay-sheet__note { margin: 16px 2px 18px; font-size: 14.5px; line-height: 1.6; color: #5b534d; }
.pay-sheet__wa {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	padding: 15px; border-radius: 100px; background: #25d366; color: #fff !important;
	font-size: 16px; font-weight: 700; text-decoration: none;
	box-shadow: 0 16px 28px -16px rgba(37, 211, 102, 0.9);
}
.pay-sheet__wa i { font-size: 20px; }
.pay-sheet__done {
	display: block; width: 100%; margin-top: 10px; padding: 14px;
	border: 1px solid #e3d6cc; border-radius: 100px; background: #fff;
	font: 600 15px 'DM Sans', sans-serif; color: var(--pay-ink); cursor: pointer;
}

@media (max-width: 767px) {
	.pay-sheet { align-items: flex-end; padding: 0; }
	.pay-sheet__panel {
		max-width: none; max-height: 92vh;
		padding: 8px 20px calc(22px + env(safe-area-inset-bottom));
		border-radius: 28px 28px 0 0;
		transform: translateY(100%); opacity: 1;
		transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
	}
	.pay-sheet.is-open .pay-sheet__panel { transform: translateY(0); }
	.pay-sheet__drag { padding: 6px 0 12px; touch-action: none; }
	.pay-sheet__grab { display: block; width: 46px; height: 5px; margin: 0 auto; border-radius: 5px; background: #ddd2c9; }
	.pay-sheet__close { top: 22px; }
	.pay-sheet__number { font-size: 23px; }
}

/* ==========================================================
   Payments page: slimmer navigation bar
   ========================================================== */
body:has(.pay-page--solo) .navbar { padding: 12px 0; }
body:has(.pay-page--solo) .navbar-brand img { height: 48px; width: auto; }
/* Tighter amount block (the conversion line now sits right under it) */
.pay-modal .pay-amount { min-height: 84px; margin-bottom: 8px; padding-bottom: 12px; align-items: center; }
.pay-sheet__value { line-height: 1.25; }
.pay-sheet__approx { margin-top: 3px; line-height: 1.2; }


/* ==========================================================
   Payments page — size, layout and polish
   The form is scaled by paynow.js so it is as large as the screen allows, always fully visible.
   ========================================================== */
.pay-page--solo {
	min-height: calc(100vh - 80px);
	min-height: calc(100dvh - 80px);
	padding: 26px 24px;
}
.pay-page__form { width: 100%; max-width: 400px; margin-inline: auto; }
@media (max-width: 991px) {
	.pay-page--solo { min-height: calc(100vh - 73px); min-height: calc(100dvh - 73px); }
}
@media (max-width: 767px) {
	.pay-page--solo { align-items: flex-start; min-height: 0; padding: 14px 14px 16px; }
}

/* every step has the same height, with the main button anchored at the bottom (no jumping) */
.pay-overlay--inline .pay-modal { display: flex; flex-direction: column; border-radius: 30px; }
.pay-overlay--inline .pay-body { flex: 1; display: flex; flex-direction: column; }
.pay-overlay--inline .pay-step.is-active { display: flex; flex-direction: column; flex: 1; }
.pay-overlay--inline .pay-step.is-active > .pay-cta { margin-top: auto; }
.pay-overlay--inline .pay-redirect { margin: auto; }

/* header: title + step label */
.pay-head__titles { flex: 1; min-width: 0; text-align: center; }
.pay-head__titles .pay-head__title { margin: 0; flex: none; }
.pay-head__step {
	display: block; margin-top: 4px; font-size: 11px; font-weight: 600;
	letter-spacing: 0.14em; text-transform: uppercase; color: var(--pay-muted);
}

/* details step: inline hints + reassurance */
.pay-overlay--inline .pay-field { margin-bottom: 22px; }
.pay-field__hint {
	position: absolute; left: 16px; top: 100%; margin-top: 4px;
	font-size: 12px; line-height: 1.2; color: #b3321b;
}
.pay-field.is-invalid { border-color: #d9755e !important; background: #fff6f3; }
.pay-note {
	display: flex; gap: 9px; align-items: flex-start; margin: 4px 4px 18px;
	font-size: 13px; line-height: 1.5; color: #8b8079;
}
.pay-note i { margin-top: 3px; color: var(--pay-accent); }

/* Compact vertical rhythm so the card can be shown larger on every screen */
.pay-overlay--inline .pay-head { padding: 13px 20px; }
.pay-overlay--inline .pay-body { padding: 20px 26px; }
.pay-overlay--inline .pay-toggle { margin-bottom: 12px; }
.pay-modal .pay-amount { min-height: 76px; }
.pay-overlay--inline .pay-cta { padding-top: 19px; padding-bottom: 19px; }
.pay-overlay--inline .pay-foot { padding: 10px 16px; }
.pay-overlay--inline .pay-method { padding-top: 13px; padding-bottom: 13px; }
.pay-modal .pay-merchant { margin-bottom: 14px; }

/* Phones: keep the floating WhatsApp bubble off the payment card (help is in the Mobile Money popup) */
@media (max-width: 767px) { body:has(.pay-page--solo) .whatsapp-widget { display: none !important; } }

/* Balanced step heights (all three steps now fill the same card evenly) */
.pay-overlay--inline .pay-amount { min-height: 100px; }
.pay-overlay--inline .pay-total { padding: 14px 4px 14px; margin-top: 2px; }
.pay-overlay--inline .pay-method { padding-top: 11px; padding-bottom: 11px; }
.pay-overlay--inline .pay-error { margin: 0 0 10px; font-size: 13px; line-height: 1.4; }


/* ==========================================================
   PORTRAIT CARD (about 2:3) — compact type, buttons and fields.
   Designed at 400px wide; paynow.js scales the whole card up/down to fit the screen.
   ========================================================== */
.pay-overlay--inline .pay-modal { border-radius: 26px !important; }

/* header */
.pay-overlay--inline .pay-head { padding: 11px 16px !important; gap: 10px !important; }
.pay-overlay--inline .pay-head__badge,
.pay-overlay--inline .pay-back,
.pay-overlay--inline .pay-close { width: 38px !important; height: 38px !important; border-radius: 12px !important; font-size: 14px !important; }
.pay-overlay--inline .pay-close { font-size: 20px !important; }
.pay-overlay--inline .pay-head__title { font-size: 12.5px !important; letter-spacing: 0.22em !important; }
.pay-overlay--inline .pay-head__step { font-size: 9.5px !important; margin-top: 3px !important; }
.pay-overlay--inline .pay-progress { height: 3px !important; }
.pay-overlay--inline .pay-body { padding: 16px 20px !important; }

/* step 1 */
.pay-overlay--inline .pay-toggle { width: 200px !important; margin: 0 auto 8px !important; }
.pay-overlay--inline .pay-toggle button { padding: 8px 0 !important; font-size: 11.5px !important; }
.pay-overlay--inline .pay-amount { min-height: 78px !important; margin-bottom: 4px !important; padding-bottom: 8px !important; gap: 8px !important; }
.pay-overlay--inline .pay-amount input { font-size: 46px !important; height: auto !important; }
.pay-overlay--inline .pay-amount__sym { font-size: 28px !important; }
.pay-overlay--inline .pay-amount__conv { min-height: 22px !important; margin: 4px 0 8px !important; font-size: 13px !important; }
.pay-overlay--inline .pay-amount__conv b { font-size: 16px !important; }
.pay-overlay--inline .pay-rate { margin: 4px 0 8px !important; padding: 6px 10px !important; font-size: 11.5px !important; border-radius: 11px !important; }
.pay-overlay--inline .pay-merchant { padding: 7px 12px !important; margin-bottom: 12px !important; border-radius: 14px !important; gap: 10px !important; }
.pay-overlay--inline .pay-merchant__avatar { width: 28px !important; height: 28px !important; flex-basis: 28px !important; }
.pay-overlay--inline .pay-merchant__avatar img { width: 17px !important; }
.pay-overlay--inline .pay-merchant__info small { font-size: 9px !important; }
.pay-overlay--inline .pay-merchant__info strong { font-size: 13.5px !important; }
.pay-overlay--inline .pay-merchant__ok { font-size: 15px !important; }

/* main buttons */
.pay-overlay--inline .pay-cta { font-size: 15px !important; padding: 15px 20px !important; letter-spacing: 0.02em !important; }

/* step 2 */
.pay-overlay--inline .pay-field { padding: 2px 14px !important; margin-bottom: 18px !important; gap: 11px !important; border-radius: 15px !important; }
.pay-overlay--inline .pay-field input { padding: 14px 0 !important; font-size: 14.5px !important; }
.pay-overlay--inline .pay-field i { width: 30px !important; height: 30px !important; font-size: 13px !important; border-radius: 10px !important; }
.pay-overlay--inline .pay-field__hint { font-size: 11px !important; left: 14px !important; }
.pay-overlay--inline .pay-note { font-size: 12px !important; margin: 0 2px 12px !important; }

/* step 3 */
.pay-overlay--inline .pay-method { padding: 9px 14px !important; gap: 12px !important; border-radius: 16px !important; margin-bottom: 10px !important; }
.pay-overlay--inline .pay-method__icon { width: 42px !important; height: 42px !important; font-size: 16px !important; border-radius: 13px !important; }
.pay-overlay--inline .pay-method__text strong { font-size: 15px !important; }
.pay-overlay--inline .pay-method__text span { font-size: 9.5px !important; }
.pay-overlay--inline .pay-method__check { font-size: 15px !important; }
.pay-overlay--inline .pay-total { padding: 10px 4px 10px !important; }
.pay-overlay--inline .pay-total__label { font-size: 13px !important; }
.pay-overlay--inline .pay-total__value { font-size: 27px !important; }
.pay-overlay--inline .pay-total__note { font-size: 9.5px !important; }
.pay-overlay--inline .pay-error { font-size: 12px !important; margin: 0 0 8px !important; }

/* step 4 */
.pay-overlay--inline .pay-redirect__ring { width: 46px !important; height: 46px !important; margin-bottom: 16px !important; }
.pay-overlay--inline .pay-redirect__title { font-size: 17px !important; }
.pay-overlay--inline .pay-redirect__text { font-size: 13px !important; }
.pay-overlay--inline .pay-redirect__amount { font-size: 22px !important; }

/* footer */
.pay-overlay--inline .pay-foot { padding: 8px 14px !important; gap: 12px !important; }
.pay-overlay--inline .pay-foot span { font-size: 9px !important; }
.pay-overlay--inline .pay-foot__terms { padding: 5px 12px !important; font-size: 11.5px !important; }

/* Balance the spare height inside the portrait card */
.pay-overlay--inline .pay-step.is-active > .pay-cta { margin-top: 0 !important; }
.pay-overlay--inline .pay-step[data-step="1"] .pay-amount { flex: 1 1 auto; align-items: center !important; justify-content: center; }
.pay-overlay--inline .pay-step[data-step="1"] .pay-amount input { font-size: 52px !important; }
.pay-overlay--inline .pay-step[data-step="2"] .pay-field:first-child { margin-top: auto; }
.pay-overlay--inline .pay-step[data-step="2"] .pay-note { margin-bottom: auto !important; }
.pay-overlay--inline .pay-step[data-step="3"] .pay-method:first-child { margin-top: auto; }
.pay-overlay--inline .pay-step[data-step="3"] .pay-total { margin-bottom: auto !important; }


/* ==========================================================
   PHONES ONLY (max-width: 767px) — /payments as a large bottom sheet
   - slides up from the bottom, fills the screen under the header bar
   - no bottom navigation bar on this page
   - close button (top right) returns to the home page
   - live market rate shown as plain text (no frame)
   Desktop/tablet layout is untouched.
   ========================================================== */
@keyframes paySheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes paySheetDown { from { transform: translateY(0); } to { transform: translateY(100%); } }

@media only screen and (max-width: 767px) {
	/* hide the bottom navigation and its reserved space */
	body:has(.pay-page--solo) .mn-bottom { display: none !important; }
	body:has(.pay-page--solo) { padding-bottom: 0 !important; }

	.pay-page--solo { padding: 0 !important; min-height: 0 !important; display: block; background: none; }

	/* the sheet */
	.pay-page--solo .pay-page__form {
		position: fixed; left: 0; right: 0;
		bottom: var(--pay-bottom, 0px);
		top: var(--pay-top, 84px);
		width: 100%; max-width: none; margin: 0;
		z-index: 900;
		display: flex; flex-direction: column;
		overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
		border-radius: 30px 30px 0 0;
		box-shadow: 0 -24px 60px -20px rgba(60, 30, 10, 0.45);
		animation: paySheetUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
	}
	.pay-page--solo .pay-page__form.is-leaving { animation: paySheetDown 0.28s ease-in both; }

	body .pay-overlay.pay-overlay--inline { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
	body .pay-overlay--inline .pay-modal {
		flex: 1 1 auto; min-height: 100% !important; height: auto;
		border-radius: 30px 30px 0 0 !important; border-bottom: 0 !important; box-shadow: none;
	}

	/* close button visible, larger touch targets */
	body .pay-overlay--inline .pay-close { visibility: visible !important; pointer-events: auto !important; }
	body .pay-overlay--inline .pay-head { padding: 16px 20px !important; gap: 12px !important; }
	body .pay-overlay--inline .pay-head__badge,
	body .pay-overlay--inline .pay-back,
	body .pay-overlay--inline .pay-close { width: 46px !important; height: 46px !important; min-width: 46px !important; border-radius: 15px !important; font-size: 16px !important; }
	body .pay-overlay--inline .pay-close { font-size: 26px !important; }
	body .pay-overlay--inline .pay-head__title { font-size: 14.5px !important; }
	body .pay-overlay--inline .pay-head__step { font-size: 11px !important; }
	body .pay-overlay--inline .pay-progress { height: 4px !important; }
	body .pay-overlay--inline .pay-body { padding: 24px 22px 18px !important; }

	/* step 1 — larger */
	body .pay-overlay--inline .pay-toggle { width: 240px !important; margin: 0 auto 14px !important; }
	body .pay-overlay--inline .pay-toggle button { padding: 11px 0 !important; font-size: 13.5px !important; }
	body .pay-overlay--inline .pay-amount__sym { font-size: 36px !important; }
	body .pay-overlay--inline .pay-step[data-step="1"] .pay-amount input,
	body .pay-overlay--inline .pay-amount input { font-size: 64px !important; }
	body .pay-overlay--inline .pay-amount__conv { font-size: 15px !important; min-height: 26px !important; }
	body .pay-overlay--inline .pay-amount__conv b { font-size: 19px !important; }
	body .pay-overlay--inline .pay-merchant { padding: 11px 16px !important; border-radius: 18px !important; margin-bottom: 16px !important; }
	body .pay-overlay--inline .pay-merchant__avatar { width: 36px !important; height: 36px !important; flex-basis: 36px !important; }
	body .pay-overlay--inline .pay-merchant__avatar img { width: 22px !important; }
	body .pay-overlay--inline .pay-merchant__info small { font-size: 10.5px !important; }
	body .pay-overlay--inline .pay-merchant__info strong { font-size: 16px !important; }
	body .pay-overlay--inline .pay-merchant__ok { font-size: 18px !important; }

	/* live market rate: text only, no frame */
	body .pay-modal .pay-rate,
	body .pay-overlay--inline .pay-rate,
	body .pay-modal .pay-rate.is-error {
		border: 0 !important; background: none !important; box-shadow: none !important;
		border-radius: 0 !important; padding: 0 !important;
		margin: 8px 0 14px !important; font-size: 13.5px !important;
	}

	/* main buttons */
	body .pay-overlay--inline .pay-cta { font-size: 17px !important; padding: 19px 20px !important; }

	/* step 2 (16px inputs also stop iOS from zooming in) */
	body .pay-overlay--inline .pay-field { padding: 3px 16px !important; margin-bottom: 22px !important; gap: 13px !important; border-radius: 18px !important; }
	body .pay-overlay--inline .pay-field input { padding: 17px 0 !important; font-size: 16px !important; }
	body .pay-overlay--inline .pay-field i { width: 36px !important; height: 36px !important; font-size: 15px !important; border-radius: 12px !important; }
	body .pay-overlay--inline .pay-field__hint { font-size: 12px !important; }
	body .pay-overlay--inline .pay-note { font-size: 13.5px !important; }

	/* step 3 */
	body .pay-overlay--inline .pay-method { padding: 13px 16px !important; gap: 14px !important; border-radius: 18px !important; margin-bottom: 12px !important; }
	body .pay-overlay--inline .pay-method__icon { width: 50px !important; height: 50px !important; font-size: 19px !important; border-radius: 15px !important; }
	body .pay-overlay--inline .pay-method__text strong { font-size: 17px !important; }
	body .pay-overlay--inline .pay-method__text span { font-size: 11px !important; }
	body .pay-overlay--inline .pay-method__check { font-size: 18px !important; }
	body .pay-overlay--inline .pay-total { padding: 14px 4px !important; }
	body .pay-overlay--inline .pay-total__label { font-size: 15px !important; }
	body .pay-overlay--inline .pay-total__value { font-size: 32px !important; }
	body .pay-overlay--inline .pay-total__note { font-size: 11px !important; }
	body .pay-overlay--inline .pay-error { font-size: 13.5px !important; }

	/* step 4 */
	body .pay-overlay--inline .pay-redirect__title { font-size: 20px !important; }
	body .pay-overlay--inline .pay-redirect__text { font-size: 15px !important; }
	body .pay-overlay--inline .pay-redirect__amount { font-size: 26px !important; }

	/* footer */
	body .pay-overlay--inline .pay-foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)) !important; gap: 14px !important; }
	body .pay-overlay--inline .pay-foot span { font-size: 10.5px !important; }
	body .pay-overlay--inline .pay-foot__terms { padding: 7px 14px !important; font-size: 13px !important; }
}

@media (prefers-reduced-motion: reduce) {
	.pay-page--solo .pay-page__form, .pay-page--solo .pay-page__form.is-leaving { animation-duration: 0.01s; }
}


/* ----------------------------------------------------------
   Phones: keyboard open — compact layout so the main button stays visible above the keyboard
   ---------------------------------------------------------- */
@media only screen and (max-width: 767px) {
	/* the main button is always reachable, even if the sheet has to scroll */
	body .pay-overlay--inline .pay-step.is-active > .pay-cta { position: sticky; bottom: 0; z-index: 3; }

	/* header bar is hidden while typing so the sheet can use the whole visible area */
	body.pay-kbd header { visibility: hidden !important; }

	.pay-page__form.is-kbd { border-radius: 22px 22px 0 0; box-shadow: none; animation: none; }
	.pay-page__form.is-kbd .pay-modal { border-radius: 22px 22px 0 0 !important; }
	.pay-page__form.is-kbd .pay-foot,
	.pay-page__form.is-kbd .pay-note { display: none !important; }

	body .pay-page__form.is-kbd .pay-head { padding: 10px 16px !important; }
	body .pay-page__form.is-kbd .pay-head__badge,
	body .pay-page__form.is-kbd .pay-back,
	body .pay-page__form.is-kbd .pay-close { width: 40px !important; height: 40px !important; min-width: 40px !important; }
	body .pay-page__form.is-kbd .pay-body { padding: 12px 20px 12px !important; }
	body .pay-page__form.is-kbd .pay-toggle { margin: 0 auto 6px !important; }
	body .pay-page__form.is-kbd .pay-toggle button { padding: 8px 0 !important; }
	body .pay-page__form.is-kbd .pay-amount { min-height: 0 !important; flex: 0 0 auto !important; margin-bottom: 2px !important; padding-bottom: 6px !important; }
	body .pay-page__form.is-kbd .pay-amount__sym { font-size: 30px !important; }
	body .pay-page__form.is-kbd .pay-amount__conv { min-height: 20px !important; margin: 2px 0 2px !important; }
	body .pay-page__form.is-kbd .pay-modal .pay-rate { margin: 4px 0 8px !important; }
	body .pay-page__form.is-kbd .pay-merchant { padding: 7px 14px !important; margin-bottom: 10px !important; }
	body .pay-page__form.is-kbd .pay-cta { padding: 15px 20px !important; }
	body .pay-page__form.is-kbd .pay-field { margin-bottom: 14px !important; }
	body .pay-page__form.is-kbd .pay-field input { padding: 13px 0 !important; }
	body .pay-page__form.is-kbd .pay-step[data-step="2"] .pay-field:first-child { margin-top: 4px; }
}
