/* Lipa — M-Pesa for WooCommerce · shopper UI */

.lipa-fields,
.lipa-pay {
	--lipa-accent: #16a34a;
	--lipa-accent-ink: color-mix(in srgb, var(--lipa-accent) 70%, #000);
	--lipa-accent-soft: color-mix(in srgb, var(--lipa-accent) 10%, #fff);
	--lipa-ink: #0f172a;
	--lipa-muted: #64748b;
	--lipa-line: #e2e8f0;
	--lipa-bg: #fff;
	--lipa-danger: #dc2626;
	--lipa-warn: #d97706;
	--lipa-radius: 14px;
	color: var(--lipa-ink);
	font-size: 15px;
	line-height: 1.5;
	box-sizing: border-box;
}
.lipa-fields *,
.lipa-pay * { box-sizing: border-box; }

/* ---------- checkout fields ---------- */
.lipa-fields { position: relative; padding: 4px 0 2px; }
.lipa-fields__desc { margin: 0 0 12px; color: var(--lipa-muted); font-size: 14px; }
.lipa-label { display: block; font-weight: 600; font-size: 13px; margin: 0 0 6px; color: var(--lipa-ink); letter-spacing: .01em; }

.lipa-phone {
	display: flex; align-items: stretch;
	background: var(--lipa-bg);
	border: 1.5px solid var(--lipa-line);
	border-radius: 12px;
	overflow: hidden;
	transition: border-color .15s, box-shadow .15s;
}
.lipa-phone:focus-within { border-color: var(--lipa-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lipa-accent) 18%, transparent); }
.lipa-phone.is-invalid { border-color: var(--lipa-danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lipa-danger) 14%, transparent); }
.lipa-phone__cc {
	display: flex; align-items: center; gap: 8px;
	padding: 0 12px; background: #f8fafc; border-right: 1.5px solid var(--lipa-line);
	font-weight: 600; font-size: 15px; color: #334155; white-space: nowrap;
}
.lipa-flag {
	width: 20px; height: 14px; border-radius: 3px; flex: none;
	background: linear-gradient(#000 0 28%, #fff 28% 34%, #bb0000 34% 66%, #fff 66% 72%, #006600 72%);
	box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.lipa-phone input[type="tel"] {
	flex: 1; min-width: 0;
	border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important;
	padding: 13px 12px !important; margin: 0 !important; height: auto !important;
	font-size: 17px !important; font-weight: 600; letter-spacing: .06em; color: var(--lipa-ink) !important;
	font-variant-numeric: tabular-nums;
}
.lipa-phone input::placeholder { color: #cbd5e1; font-weight: 500; }
.lipa-phone__state { width: 40px; display: grid; place-items: center; }
.lipa-phone.is-valid .lipa-phone__state::after {
	content: ""; width: 20px; height: 20px; border-radius: 50%;
	background: var(--lipa-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
	animation: lipa-pop .25s cubic-bezier(.3,1.6,.6,1);
}
.lipa-hint { margin: 7px 2px 0; font-size: 13px; color: var(--lipa-muted); min-height: 1.4em; }
.lipa-hint.is-ok { color: var(--lipa-accent-ink); }
.lipa-hint.is-warn { color: var(--lipa-warn); }
.lipa-hint.is-error { color: var(--lipa-danger); }

.lipa-mini-steps { display: flex; gap: 6px; list-style: none; margin: 14px 0 2px !important; padding: 0 !important; flex-wrap: wrap; }
.lipa-mini-steps li {
	display: flex; align-items: center; gap: 6px; margin: 0 !important;
	font-size: 12px; font-weight: 500; color: #475569;
	background: #f8fafc; border: 1px solid var(--lipa-line); border-radius: 999px; padding: 4px 10px 4px 4px;
}
.lipa-mini-steps li span {
	width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
	background: var(--lipa-accent); color: #fff; font-size: 11px; font-weight: 700;
}

.lipa-badge {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	padding: 3px 8px; border-radius: 999px;
}
.lipa-badge--test { background: #fef3c7; color: #92400e; }
.lipa-fields .lipa-badge--test { position: absolute; top: -2px; right: 0; }

/* ---------- payment panel ---------- */
.lipa-pay {
	position: relative; overflow: hidden;
	max-width: 520px; margin: 0 auto 32px;
	background: var(--lipa-bg);
	border: 1px solid var(--lipa-line);
	border-radius: 22px;
	box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 12px 40px -12px rgba(15,23,42,.18);
}
.lipa-pay__head {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 18px 22px;
	background:
		radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--lipa-accent) 16%, transparent), transparent 60%),
		linear-gradient(180deg, #f8fafc, #fff);
	border-bottom: 1px solid var(--lipa-line);
}
.lipa-brand { display: flex; align-items: center; gap: 10px; }
.lipa-brand img { display: block; height: 30px; width: auto; }
.lipa-pay__amount { text-align: right; display: grid; line-height: 1.2; }
.lipa-pay__amount span { font-size: 12px; color: var(--lipa-muted); }
.lipa-pay__amount strong { font-size: 22px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.lipa-pay__amount small { font-size: 12px; color: var(--lipa-muted); }

.lipa-pay__body { padding: 28px 26px 22px; text-align: center; }
.lipa-view { display: none; animation: lipa-in .35s ease both; }
.lipa-pay[data-view="pending"] [data-view="pending"],
.lipa-pay[data-view="success"] [data-view="success"],
.lipa-pay[data-view="review"]  [data-view="review"],
.lipa-pay[data-view="retry"]   [data-view="retry"],
.lipa-pay[data-view="manual"]  [data-view="manual"] { display: block; }

.lipa-title { font-size: 22px !important; font-weight: 800 !important; margin: 14px 0 6px !important; letter-spacing: -.015em; color: var(--lipa-ink) !important; line-height: 1.25 !important; }
.lipa-text { margin: 0 auto 18px; color: #475569; max-width: 400px; }
.lipa-text b { color: var(--lipa-ink); white-space: nowrap; }

/* phone illustration */
.lipa-phone-anim { position: relative; width: 132px; height: 150px; margin: 0 auto; display: grid; place-items: center; }
.lipa-ring {
	position: absolute; inset: 14px; border-radius: 50%;
	border: 2px solid color-mix(in srgb, var(--lipa-accent) 45%, transparent);
	animation: lipa-ring 2.4s cubic-bezier(.2,.6,.3,1) infinite;
}
.lipa-ring--2 { animation-delay: 1.2s; }
.lipa-handset {
	position: relative; width: 74px; height: 136px; border-radius: 16px;
	background: #0f172a; padding: 6px;
	box-shadow: 0 14px 30px -10px rgba(15,23,42,.5), inset 0 0 0 1.5px #334155;
	animation: lipa-buzz 2.4s ease-in-out infinite;
}
.lipa-handset::before { content: ""; position: absolute; top: 9px; left: 50%; width: 18px; height: 4px; margin-left: -9px; border-radius: 4px; background: #1e293b; z-index: 2; }
.lipa-handset__screen { width: 100%; height: 100%; border-radius: 11px; background: linear-gradient(160deg, #e2e8f0, #f8fafc); display: grid; place-items: center; padding: 6px; }
.lipa-handset__bubble {
	width: 100%; background: #fff; border-radius: 8px; padding: 6px 5px; text-align: center;
	box-shadow: 0 4px 10px -4px rgba(15,23,42,.35);
	display: grid; gap: 3px; font-size: 7px; line-height: 1.25; color: #334155;
	animation: lipa-bubble 2.4s ease-in-out infinite;
}
.lipa-handset__bubble b { color: var(--lipa-accent-ink); font-size: 8px; letter-spacing: .05em; }
.lipa-handset__bubble i { font-style: normal; letter-spacing: .15em; background: #f1f5f9; border-radius: 4px; padding: 2px 0; color: #94a3b8; }

/* countdown */
.lipa-timer { position: relative; width: 56px; height: 56px; margin: 0 auto 18px; }
.lipa-timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lipa-timer circle { fill: none; stroke-width: 3.5; }
.lipa-timer__track { stroke: #f1f5f9; }
.lipa-timer__bar { stroke: var(--lipa-accent); stroke-linecap: round; stroke-dasharray: 119.4; transition: stroke-dashoffset 1s linear, stroke .3s; }
.lipa-timer.is-low .lipa-timer__bar { stroke: var(--lipa-warn); }
.lipa-timer span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }

/* steps */
.lipa-steps { list-style: none; margin: 0 auto 14px !important; padding: 0 !important; max-width: 290px; text-align: left; display: grid; gap: 2px; }
.lipa-steps li { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px 0; margin: 0 !important; color: #94a3b8; font-size: 14px; }
.lipa-steps li + li::before { content: ""; position: absolute; left: 8px; top: -9px; height: 16px; width: 2px; background: var(--lipa-line); }
.lipa-steps__dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cbd5e1; background: #fff; flex: none; position: relative; z-index: 1; }
.lipa-steps li.is-done { color: #334155; }
.lipa-steps li.is-done .lipa-steps__dot { border-color: var(--lipa-accent); background: var(--lipa-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.lipa-steps li.is-active { color: var(--lipa-ink); font-weight: 600; }
.lipa-steps li.is-active .lipa-steps__dot { border-color: var(--lipa-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lipa-accent) 20%, transparent); animation: lipa-pulse 1.4s ease-in-out infinite; }

/* success */
.lipa-check { width: 84px; height: 84px; margin: 6px auto 0; }
.lipa-check svg { width: 100%; height: 100%; }
.lipa-check circle { fill: var(--lipa-accent); transform-origin: center; animation: lipa-pop .45s cubic-bezier(.3,1.5,.6,1) both; }
.lipa-check path { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: lipa-draw .4s .3s ease forwards; }

.lipa-receipt {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	max-width: 330px; margin: 4px auto 6px; padding: 10px 10px 10px 16px;
	background: var(--lipa-accent-soft); border: 1px dashed color-mix(in srgb, var(--lipa-accent) 45%, transparent); border-radius: 12px;
	font-size: 13px; color: #475569;
}
.lipa-receipt code { font-size: 16px; font-weight: 700; letter-spacing: .08em; color: var(--lipa-ink); background: none; padding: 0; }
.lipa-pay:not([data-has-receipt]) [data-show-if="receipt"] { display: none; }

/* icons */
.lipa-icon { width: 72px; height: 72px; margin: 4px auto 0; border-radius: 50%; display: grid; place-items: center; animation: lipa-pop .4s cubic-bezier(.3,1.5,.6,1) both; }
.lipa-icon::after { content: ""; width: 34px; height: 34px; background: currentColor; -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.lipa-icon--alert { background: #fef2f2; color: var(--lipa-danger); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 8v5m0 3.5v.01M10.3 3.9L2.4 17.6A2 2 0 004.1 20.6h15.8a2 2 0 001.7-3L13.7 3.9a2 2 0 00-3.4 0z' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.lipa-pay[data-state="idle"] .lipa-icon--alert { background: var(--lipa-accent-soft); color: var(--lipa-accent); --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='2' width='12' height='20' rx='2.5' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M11 18h2' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.lipa-pay[data-state="timeout"] .lipa-icon--alert,
.lipa-pay[data-state="cancelled"] .lipa-icon--alert { background: #fffbeb; color: var(--lipa-warn); }
.lipa-icon--review { background: #eff6ff; color: #2563eb; --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M12 7v5l3 2' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* forms */
.lipa-retry, .lipa-code { text-align: left; max-width: 360px; margin: 0 auto; }
.lipa-btn {
	position: relative; display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
	width: 100%; margin-top: 10px !important; padding: 14px 18px !important;
	border: 0 !important; border-radius: 12px !important; cursor: pointer;
	background: var(--lipa-accent) !important; color: #fff !important;
	font-size: 16px !important; font-weight: 700 !important; line-height: 1.2 !important; text-transform: none !important; letter-spacing: 0 !important;
	box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--lipa-accent) 70%, transparent);
	transition: transform .12s, filter .15s, box-shadow .15s;
}
.lipa-btn:hover { filter: brightness(1.06); }
.lipa-btn:active { transform: translateY(1px) scale(.995); }
.lipa-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--lipa-accent) 40%, transparent); outline-offset: 2px; }
.lipa-btn[disabled] { opacity: .75; cursor: progress; }
.lipa-btn--ghost { width: auto; margin-top: 0 !important; background: var(--lipa-ink) !important; box-shadow: none; padding: 0 18px !important; font-size: 15px !important; }
.lipa-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: lipa-spin .7s linear infinite; }
.lipa-btn.is-busy .lipa-spinner { display: inline-block; }
.lipa-error { color: var(--lipa-danger); font-size: 13px; margin: 8px 0 0; min-height: 0; }
.lipa-error:empty { display: none; }

.lipa-link { background: none !important; border: 0 !important; padding: 4px !important; color: var(--lipa-accent-ink) !important; font-weight: 600 !important; font-size: 14px !important; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--lipa-accent) 40%, transparent); box-shadow: none !important; }

/* manual */
.lipa-manual { border-top: 1px solid var(--lipa-line); }
.lipa-manual summary {
	list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
	padding: 16px 24px; font-weight: 600; font-size: 14px; color: #334155;
}
.lipa-manual summary::-webkit-details-marker { display: none; }
.lipa-manual summary:hover { background: #f8fafc; }
.lipa-manual summary i { width: 10px; height: 10px; border-right: 2px solid #94a3b8; border-bottom: 2px solid #94a3b8; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.lipa-manual[open] summary i { transform: rotate(225deg) translate(-2px, -1px); }
.lipa-manual__body { padding: 2px 24px 22px; animation: lipa-in .25s ease both; }
.lipa-howto { counter-reset: s; list-style: none; margin: 0 0 18px !important; padding: 0 !important; display: grid; gap: 8px; }
.lipa-howto li {
	counter-increment: s; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 !important;
	font-size: 14px; color: #334155; min-height: 34px;
}
.lipa-howto li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #f1f5f9; color: #475569; font-size: 12px; font-weight: 700; }
.lipa-howto .lipa-copy { margin-left: auto; }

.lipa-copy {
	display: inline-flex !important; align-items: center; gap: 8px;
	padding: 6px 8px 6px 12px !important; margin: 0 !important;
	background: #fff !important; border: 1px solid var(--lipa-line) !important; border-radius: 9px !important;
	cursor: pointer; color: var(--lipa-ink) !important; box-shadow: none !important; font: inherit !important;
	transition: border-color .15s, background .15s;
}
.lipa-copy:hover { border-color: var(--lipa-accent) !important; }
.lipa-copy code { font-size: 15px; font-weight: 700; letter-spacing: .05em; background: none !important; padding: 0 !important; color: inherit; }
.lipa-copy__icon { width: 16px; height: 16px; background: #94a3b8; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='8' y='8' width='12' height='12' rx='2' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M16 8V6a2 2 0 00-2-2H6a2 2 0 00-2 2v8a2 2 0 002 2h2' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='8' y='8' width='12' height='12' rx='2' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M16 8V6a2 2 0 00-2-2H6a2 2 0 00-2 2v8a2 2 0 002 2h2' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat; }
.lipa-copy.is-copied { border-color: var(--lipa-accent) !important; background: var(--lipa-accent-soft) !important; }
.lipa-copy.is-copied .lipa-copy__icon { background: var(--lipa-accent); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.lipa-code__row { display: flex; gap: 8px; }
.lipa-code__row input {
	flex: 1; min-width: 0; margin: 0 !important;
	padding: 12px 14px !important; border: 1.5px solid var(--lipa-line) !important; border-radius: 12px !important; background: #fff !important;
	font-size: 16px !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; color: var(--lipa-ink) !important;
	box-shadow: none !important; outline: 0 !important;
}
.lipa-code__row input:focus { border-color: var(--lipa-accent) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--lipa-accent) 18%, transparent) !important; }
.lipa-code__row input::placeholder { letter-spacing: .04em; font-weight: 500; color: #cbd5e1; text-transform: none; }

.lipa-pay__foot { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; background: #f8fafc; border-top: 1px solid var(--lipa-line); font-size: 12px; color: var(--lipa-muted); }
.lipa-lock { width: 13px; height: 13px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 018 0v3' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 018 0v3' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3C/svg%3E") center/contain no-repeat; }

.lipa-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.lipa-order-receipt code { font-weight: 700; letter-spacing: .05em; }

/* toast-ish network note */
.lipa-net { position: absolute; top: 76px; left: 50%; transform: translateX(-50%); background: #0f172a; color: #fff; font-size: 12px; padding: 5px 12px; border-radius: 999px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.lipa-net.is-on { opacity: .9; }

@keyframes lipa-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes lipa-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes lipa-draw { to { stroke-dashoffset: 0; } }
@keyframes lipa-spin { to { transform: rotate(360deg); } }
@keyframes lipa-ring { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.15); opacity: 0; } }
@keyframes lipa-buzz { 0%, 60%, 100% { transform: rotate(0); } 64% { transform: rotate(-4deg); } 68% { transform: rotate(4deg); } 72% { transform: rotate(-3deg); } 76% { transform: rotate(2deg); } 80% { transform: rotate(0); } }
@keyframes lipa-bubble { 0%, 8% { transform: translateY(8px); opacity: 0; } 18%, 92% { transform: none; opacity: 1; } 100% { opacity: 0; } }
@keyframes lipa-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--lipa-accent) 8%, transparent); } }

@media (max-width: 480px) {
	.lipa-pay { border-radius: 18px; }
	.lipa-pay__head { padding: 14px 16px; }
	.lipa-pay__body { padding: 22px 16px 18px; }
	.lipa-manual summary, .lipa-manual__body { padding-left: 16px; padding-right: 16px; }
	.lipa-pay__amount strong { font-size: 19px; }
	.lipa-howto .lipa-copy { margin-left: 32px; }
}

@media (prefers-reduced-motion: reduce) {
	.lipa-pay *, .lipa-fields * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* Once paid (or under review) the manual instructions are noise. */
.lipa-pay[data-view="success"] .lipa-manual,
.lipa-pay[data-view="review"] .lipa-manual { display: none; }

/* Classic checkout: keep the gateway logo inline with its label. */
.wc_payment_method.payment_method_lipa_mpesa > label img,
li.payment_method_lipa_mpesa > label img { display: inline-block !important; height: 26px !important; width: auto !important; max-height: 26px; margin: 0 0 0 10px !important; vertical-align: middle; float: none !important; }

/* CheckoutWC thank-you page: sit in the order-review column like its other sections. */
.lipa-cfw-slot:empty { display: none; }
.lipa-cfw-slot { margin: 0 0 1.5em; }
#cfw .lipa-pay { max-width: none; width: 100%; margin: 0; flex: none; }
#cfw .lipa-pay .lipa-title { font-family: inherit; }
#cfw .lipa-pay img { display: inline-block; max-width: none; }
