/* ==========================================================================
   Saifi LMS — Enrollment Popup
   Mirrors saifi_checkout_flow-v3.html exactly, adapted for WP modal overlay.
   ========================================================================== */

/* ─── CSS variables (already defined in --saifi-* from main CSS;
       we add --sp aliases so the flow shell is self-contained) ─── */
.saifi-ep-overlay {
	--sp:    var(--saifi-primary,    #003B5C);
	--sp-l:  var(--saifi-primary-light,  #004E7A);
	--sp-d:  var(--saifi-primary-dark,   #002440);
	--sp-xs: #E8F1F7;
	--sa:    var(--saifi-accent,     #F2A900);
	--sa-l:  var(--saifi-accent-light,   #F5BF40);
	--sa-d:  var(--saifi-accent-dark,    #C98900);
	--sa-xs: #FEF6E0;
	--bg:    #F4F3EF;
	--sw:    #FFFFFF;
	--st:    #1A1A18;
	--sm:    #5C5C58;
	--smt:   #8A8A85;
	--sb:    rgba(0,59,92,.13);
	--sb2:   rgba(0,59,92,.06);
	--ok:    #1A6B3A;
	--ok-bg: #E8F5ED;
	--err:   #C0392B;
	--err-bg:#FDF0F0;
	--r:     10px;
	--r-lg:  14px;
}

/* ─── OVERLAY & MODAL ─── */
/* Default: hidden. JS adds .saifi-ep-open to show. */
.saifi-ep-overlay {
	display: none;
}
.saifi-ep-overlay.saifi-ep-open {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, .55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	backdrop-filter: blur(3px);
	animation: saifi-ep-fadein .18s ease;
}
@keyframes saifi-ep-fadein { from { opacity: 0; } to { opacity: 1; } }

.saifi-ep-modal {
	position: relative;
	width: 100%;
	max-width: 560px;
	min-height: 520px;
	max-height: calc(100vh - 32px);
	background: var(--sw);
	border-radius: var(--r-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(0,0,0,.25);
	animation: saifi-ep-slidein .22s cubic-bezier(.25,.46,.45,.94);
}
/* Auth-only mode (account-button login): no multi-step enrollment flow, so let
   the modal shrink to its content rather than holding the full-flow min-height. */
.saifi-ep-modal.saifi-ep-authonly { min-height: 0; }
.saifi-ep-modal.saifi-ep-authonly .step-body { padding-bottom: 20px; }
@keyframes saifi-ep-slidein {
	from { transform: translateY(20px); opacity: 0; }
	to   { transform: translateY(0);    opacity: 1; }
}

.saifi-ep-close {
	position: absolute;
	top: 12px;
	right: 14px;
	z-index: 100;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--bg);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sm);
	transition: background .15s, color .15s;
}
.saifi-ep-close:hover { background: var(--sb); color: var(--st); }

/* Loading spinner while data fetches */
.saifi-ep-loading {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 24px;
}
.saifi-ep-spinner {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2.5px solid var(--sb);
	border-top-color: var(--sp);
	animation: saifi-spin .7s linear infinite;
}
@keyframes saifi-spin { to { transform: rotate(360deg); } }

/* ─── FLOW SHELL (matches .flow-shell in reference) ─── */
.flow-shell {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--sw);
	font-family: 'Outfit', sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: var(--st);
}
.flow-shell * { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── PROGRESS BAR ─── */
.fp-bar {
	position: sticky;
	top: 0;
	z-index: 10;
	background: var(--sw);
	border-bottom: .5px solid var(--sb);
	padding: 14px 52px 12px 20px;
	flex-shrink: 0;
}
.fp-inner { display: flex; align-items: center; width: 100%; }
.fp-item { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; }
.fp-dot {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 600;
	background: var(--bg);
	border: 1.5px solid var(--sb);
	color: var(--smt);
	transition: all .25s;
}
.fp-item.active .fp-dot  { background: var(--sp); border-color: var(--sp); color: #fff; }
.fp-item.done   .fp-dot  { background: var(--sa); border-color: var(--sa); color: var(--sp-d); }
.fp-lbl { font-size: 10px; color: var(--smt); white-space: nowrap; letter-spacing: .01em; }
.fp-item.active .fp-lbl  { color: var(--sp); font-weight: 500; }
.fp-item.done   .fp-lbl  { color: var(--sa-d); }
.fp-line {
	flex: 1;
	height: 1.5px;
	background: var(--sb);
	margin: 0 6px;
	margin-bottom: 16px;
	transition: background .3s;
}
.fp-line.done { background: var(--sa); }

/* ─── STEP VIEWPORT ─── */
.step-viewport {
	flex: 1;
	min-height: 0;
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
}
.flow-step {
	position: absolute;
	inset: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	opacity: 0;
	pointer-events: none;
	transform: translateX(40px);
	transition: opacity .28s ease, transform .28s cubic-bezier(.25,.46,.45,.94);
}
.flow-step.active {
	position: relative;
	flex: 1;
	min-height: 0;
	opacity: 1;
	pointer-events: all;
	transform: translateX(0);
}
.flow-step.slide-out {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	transform: translateX(-40px);
	transition: opacity .2s ease, transform .2s cubic-bezier(.55,.06,.68,.19);
}

/* ─── STEP HEADER ─── */
.step-header { padding: 20px 20px 0; flex-shrink: 0; }
.step-header-eyebrow {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--smt);
	margin-bottom: 5px;
}
.step-header-title { font-size: 18px; font-weight: 600; color: var(--st); margin-bottom: 3px; }
.step-header-sub   { font-size: 13px; color: var(--sm); margin-bottom: 16px; }

/* ─── STEP BODY ─── */
.step-body { flex: 1; min-height: 0; padding: 0 20px; overflow-y: auto; }

/* ─── STEP FOOTER ─── */
.step-footer {
	flex-shrink: 0;
	padding: 14px 20px;
	background: var(--sw);
	border-top: .5px solid var(--sb);
}
.step-footer-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	font-size: 13px;
}
.step-footer-meta .label  { color: var(--sm); }
.step-footer-meta .amount { font-size: 17px; font-weight: 600; color: var(--sp); }

/* ─── BUTTONS ─── */
.cta-btn {
	width: 100%;
	padding: 12px;
	border-radius: 9px;
	background: var(--sp);
	color: #fff;
	border: none;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: inherit;
	transition: background .15s, transform .1s;
}
.cta-btn:hover    { background: var(--sp-l); }
.cta-btn:active   { transform: scale(.98); }
.cta-btn:disabled { opacity: .6; cursor: not-allowed; }
.cta-btn-outline {
	width: 100%;
	padding: 10px;
	border-radius: 9px;
	background: transparent;
	color: var(--sm);
	border: none;
	font-size: 12px;
	cursor: pointer;
	font-family: inherit;
	margin-top: 8px;
	text-align: center;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color .15s;
}
.cta-btn-outline:hover { color: var(--sp); }
.cta-btn-back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: none;
	color: var(--sm);
	font-size: 12px;
	cursor: pointer;
	font-family: inherit;
	margin-top: 6px;
	padding: 4px 0;
	transition: color .15s;
}
.cta-btn-back:hover { color: var(--sp); }

/* Spinner inside button */
.ep-spinner {
	width: 15px;
	height: 15px;
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,.3);
	border-top-color: #fff;
	animation: saifi-spin .7s linear infinite;
	display: none;
}
.ep-spinner.on { display: block; }

/* ─── ORDER SUMMARY STRIP ─── */
.order-strip {
	background: var(--sp-xs);
	border: .5px solid var(--sb);
	border-radius: var(--r);
	padding: 10px 13px;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	cursor: pointer;
	transition: background .15s;
}
.order-strip:hover { background: #daeaf6; }
.os-badge {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	background: var(--sp);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 9px;
	font-weight: 700;
	flex-shrink: 0;
}
.os-course       { flex: 1; min-width: 0; }
.os-course-name  { font-size: 12px; font-weight: 500; color: var(--st); }
.os-course-meta  { font-size: 11px; color: var(--sm); }
.os-total        { font-size: 15px; font-weight: 600; color: var(--sp); flex-shrink: 0; }
.os-chev         { color: var(--smt); transition: transform .2s; flex-shrink: 0; }
.os-chev.open    { transform: rotate(180deg); }
.order-detail {
	background: var(--bg);
	border: .5px solid var(--sb);
	border-radius: var(--r);
	padding: 11px 13px;
	margin-bottom: 12px;
	display: none;
}
.order-detail.open { display: block; }
.od-row {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: var(--sm);
	padding: 4px 0;
	border-bottom: .5px solid var(--sb2);
}
.od-row:last-child { border-bottom: none; }
.od-row strong { color: var(--st); }
.od-total {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	font-weight: 600;
	color: var(--st);
	padding: 8px 0 0;
}

/* ─── ERROR / NOTICE BOX ─── */
.ep-notice {
	padding: 10px 13px;
	border-radius: 8px;
	font-size: 13px;
	margin-bottom: 12px;
	display: none;
}
.ep-notice.error   { background: var(--err-bg); color: var(--err); display: block; }
.ep-notice.success { background: var(--ok-bg);  color: var(--ok);  display: block; }
.ep-notice.info    { background: var(--sp-xs);  color: var(--sp);  display: block; }

/* ─── STEP 1: ACCOUNT ─── */
.auth-tabs {
	display: flex;
	background: var(--bg);
	border-radius: 8px;
	padding: 3px;
	margin-bottom: 16px;
}
.auth-tab {
	flex: 1;
	padding: 7px 10px;
	font-size: 13px;
	font-weight: 500;
	text-align: center;
	border-radius: 6px;
	cursor: pointer;
	border: none;
	background: transparent;
	color: var(--sm);
	transition: all .18s;
	font-family: inherit;
}
.auth-tab.active { background: var(--sw); color: var(--sp); box-shadow: 0 1px 4px rgba(0,59,92,.09); }

/* Verification OTP screen */
.ep-verify-screen {
	text-align: center;
	padding: 20px 0 8px;
	display: none;
}
.ep-verify-screen.on { display: block; }
.ep-verify-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--sp-xs);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 14px;
}
.ep-verify-title { font-size: 17px; font-weight: 600; color: var(--st); margin-bottom: 6px; }
.ep-verify-sub   { font-size: 13px; color: var(--sm); margin-bottom: 16px; line-height: 1.5; }
.ep-otp-debug {
	margin-top: 12px;
	padding: 8px 12px;
	background: #fff8dc;
	border: 1.5px dashed #e0a800;
	border-radius: 7px;
	font-size: 12px;
	color: #7a5500;
}
.ep-otp-debug code {
	font-family: monospace;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.25em;
	margin-left: 6px;
}
.ep-otp-inp {
	text-align: center;
	font-size: 26px;
	font-weight: 600;
	letter-spacing: 0.35em;
	padding: 14px 12px;
	border-radius: 10px;
	width: 100%;
	box-sizing: border-box;
}

/* ─── FORM FIELDS ─── */
.f-stack  { display: flex; flex-direction: column; gap: 11px; }
.f-row2   { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f-grp    { display: flex; flex-direction: column; gap: 4px; }
.f-lbl    { font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--smt); }
.f-inp {
	width: 100%;
	padding: 9px 12px;
	border-radius: 8px;
	border: .5px solid var(--sb);
	background: var(--bg);
	font-size: 13px;
	color: var(--st);
	font-family: inherit;
	outline: none;
	transition: border-color .15s, background .15s;
}
.f-inp:focus  { border-color: var(--sp); background: var(--sw); }
.f-inp-icon   { position: relative; }
.f-inp-icon svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--smt); pointer-events: none; }
.f-inp-icon .f-inp { padding-left: 34px; }
.link-btn {
	background: transparent;
	border: none;
	color: var(--sp);
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
	padding: 0;
	font-family: inherit;
}
.check-row  { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--sm); margin-top: 6px; }
.check-row input { accent-color: var(--sp); margin-top: 2px; flex-shrink: 0; }
.forgot-row { display: flex; justify-content: flex-end; margin-top: -2px; }
.or-div {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 14px 0;
	font-size: 12px;
	color: var(--smt);
}
.or-div::before, .or-div::after { content: ''; flex: 1; height: .5px; background: var(--sb); }
.switch-txt { text-align: center; font-size: 12px; color: var(--sm); margin-top: 12px; margin-bottom: 12px; }

/* Password strength */
.pw-bars { display: flex; gap: 3px; margin-top: 5px; }
.pw-bar  { height: 3px; flex: 1; border-radius: 2px; background: var(--sb); }
.pw-bar.weak   { background: var(--err); }
.pw-bar.fair   { background: var(--sa); }
.pw-bar.strong { background: var(--ok); }
.pw-lbl { font-size: 11px; color: var(--smt); margin-top: 3px; }

/* ─── STEP 2: MATERIALS ─── */
.mat-section     { margin-bottom: 20px; }
.mat-section-lbl {
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--smt);
	margin-bottom: 10px;
}
.mat-card {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 11px 13px;
	background: var(--sw);
	border: .5px solid var(--sb);
	border-radius: var(--r);
	margin-bottom: 8px;
	transition: box-shadow .15s, border-color .15s;
}
.mat-card:hover { box-shadow: 0 2px 10px rgba(0,59,92,.07); border-color: rgba(0,59,92,.2); }
.mat-spine {
	width: 36px;
	height: 48px;
	border-radius: 4px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.mat-spine img    { width: 36px; height: 48px; object-fit: cover; border-radius: 4px; }
.mat-spine-inner  { width: 24px; height: 36px; background: rgba(255,255,255,.15); border-radius: 2px; }
.mat-info  { flex: 1; min-width: 0; }
.mat-title  { font-size: 13px; font-weight: 500; color: var(--st); margin-bottom: 1px; line-height: 1.35; }
.mat-author { font-size: 11px; color: var(--sm); margin-bottom: 4px; }
.mat-tag {
	font-size: 10px;
	padding: 2px 7px;
	border-radius: 20px;
	font-weight: 500;
	display: inline-block;
}
.mat-tag-req { background: rgba(242,169,0,.15); color: var(--sa-d); }
.mat-tag-opt { background: var(--sp-xs); color: var(--sp); }
.mat-tag-inc { background: var(--ok-bg); color: var(--ok); }
.mat-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	flex-shrink: 0;
}
.mat-price     { font-size: 13px; font-weight: 600; color: var(--sp); }
.mat-req-note  { font-size: 10px; color: var(--sa-d); font-weight: 500; }
.mat-req-note-inc { font-size: 10px; color: var(--ok); font-weight: 500; }
.mat-toggle    { position: relative; width: 40px; height: 22px; cursor: pointer; }
.mat-toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; z-index: 1; margin: 0; }
.mat-track { position: absolute; inset: 0; border-radius: 11px; background: rgba(0,59,92,.12); transition: background .2s; }
.mat-toggle input:checked + .mat-track { background: var(--sp); }
.mat-thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; pointer-events: none; }
.mat-toggle input:checked ~ .mat-thumb { transform: translateX(18px); }

/* Coupon row in step 2 */
.ep-coupon-row {
	display: flex;
	gap: 8px;
	margin-top: 4px;
	margin-bottom: 16px;
}
.ep-coupon-row .f-inp {
	flex: 1;
	text-transform: uppercase;
	letter-spacing: .05em;
}
.ep-coupon-btn {
	padding: 9px 14px;
	border-radius: 8px;
	background: var(--sp-xs);
	border: .5px solid var(--sb);
	color: var(--sp);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	font-family: inherit;
	transition: background .15s;
}
.ep-coupon-btn:hover { background: #daeaf6; }
.ep-coupon-result { font-size: 12px; margin-top: 2px; margin-bottom: 4px; }
.ep-coupon-result.ok  { color: var(--ok); }
.ep-coupon-result.err { color: var(--err); }

/* ─── STEP 3: PAYMENT ─── */
.co-section {
	background: var(--sw);
	border: .5px solid var(--sb);
	border-radius: var(--r-lg);
	margin-bottom: 12px;
	overflow: hidden;
}
.co-sec-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 15px;
	border-bottom: .5px solid var(--sb);
}
.co-sec-num {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--sp);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 600;
	flex-shrink: 0;
}
.co-sec-title  { font-size: 13px; font-weight: 500; color: var(--st); flex: 1; }
.co-optional   { font-size: 11px; color: var(--smt); }
.co-sec-body   { padding: 13px 15px; }
.co-grid       { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-full       { grid-column: 1 / -1; }
.co-field      { display: flex; flex-direction: column; gap: 4px; }
.co-lbl        { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--smt); }
.co-lbl span   { color: var(--err); }
.co-inp {
	padding: 9px 12px;
	border-radius: 7px;
	border: .5px solid var(--sb);
	background: var(--bg);
	font-size: 13px;
	color: var(--st);
	font-family: inherit;
	outline: none;
	transition: border-color .15s;
	width: 100%;
}
.co-inp:focus    { border-color: var(--sp); background: var(--sw); }
.co-textarea     { resize: vertical; min-height: 68px; }
.chev-btn {
	background: transparent;
	border: none;
	cursor: pointer;
	color: var(--smt);
	display: flex;
	align-items: center;
	transition: transform .2s;
}

/* Payment gateway container */
.co-pay-panel       { display: none; }
.co-pay-panel.active { display: block; }
.co-terms-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--sm); margin-top: 12px; }
.co-terms-row input { accent-color: var(--sp); margin-top: 2px; flex-shrink: 0; }
.co-terms-row a { color: var(--sp); }
.co-badges {
	display: flex;
	justify-content: center;
	gap: 14px;
	font-size: 11px;
	color: var(--smt);
	margin-top: 10px;
}
.co-badge-item { display: flex; align-items: center; gap: 4px; }

/* Close confirmation overlay */
.ep-close-confirm {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 20;
	background: rgba(255,255,255,.92);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	align-items: center;
	justify-content: center;
	border-radius: inherit;
}
.ep-close-confirm.on { display: flex; }
.ep-cc-box {
	text-align: center;
	padding: 36px 32px;
}
.ep-cc-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--st);
	margin-bottom: 6px;
}
.ep-cc-sub {
	font-size: 13px;
	color: var(--sm);
	margin-bottom: 26px;
}
.ep-cc-btns {
	display: flex;
	gap: 10px;
	justify-content: center;
}
.ep-cc-stay {
	padding: 10px 28px;
	border-radius: 8px;
	border: 1px solid var(--sb);
	background: var(--bg);
	color: var(--st);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	font-family: inherit;
	transition: background .15s;
}
.ep-cc-stay:hover { background: #f0f0f0; }
.ep-cc-leave {
	padding: 10px 28px;
	border-radius: 8px;
	border: none;
	background: #c0392b;
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	font-family: inherit;
	transition: background .15s;
}
.ep-cc-leave:hover { background: #a93226; }

/* Payment methods */
.ep-payment-methods { display: grid; gap: 10px; }
.ep-payment-method {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 14px;
	border: 1px solid var(--sb);
	border-radius: 8px;
	background: var(--bg);
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.ep-payment-method.active {
	border-color: var(--sp);
	background: var(--sw);
}
.ep-payment-method.muted {
	cursor: not-allowed;
	opacity: .62;
}
.ep-payment-method input { position: absolute; opacity: 0; pointer-events: none; }
.ep-payment-radio {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 1.5px solid var(--sb);
	background: var(--sw);
	flex: 0 0 auto;
	position: relative;
}
.ep-payment-method input:checked + .ep-payment-radio { border-color: var(--sp); }
.ep-payment-method input:checked + .ep-payment-radio::after {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: var(--sp);
}
.ep-payment-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ep-payment-copy strong {
	font-size: 14px;
	font-weight: 700;
	color: var(--st);
}
.ep-payment-copy small {
	font-size: 12px;
	color: var(--sm);
	line-height: 1.35;
}

/* Payment iframe */
.ep-pay-iframe-wrap {
	border-radius: 8px;
	overflow: hidden;
	border: .5px solid var(--sb);
	background: var(--bg);
	margin-top: 12px;
}
.ep-pay-iframe-wrap iframe {
	width: 100%;
	min-height: 360px;
	border: none;
	display: block;
}
.ep-pay-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	gap: 10px;
	font-size: 13px;
	color: var(--sm);
}

/* ─── STEP 4: CONFIRMATION ─── */
.conf-hero { text-align: center; padding: 24px 0 18px; }
.conf-check {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--ok-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 12px;
}
.conf-title { font-size: 21px; font-weight: 600; color: var(--st); margin-bottom: 4px; }
.conf-sub   { font-size: 13px; color: var(--sm); }
.conf-card  {
	background: var(--sw);
	border: .5px solid var(--sb);
	border-radius: var(--r-lg);
	margin-bottom: 12px;
	overflow: hidden;
}
.conf-card-head {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 13px 17px;
	background: var(--sp);
}
.conf-card-badge {
	width: 30px;
	height: 30px;
	border-radius: 7px;
	background: rgba(255,255,255,.15);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	flex-shrink: 0;
}
.conf-card-title { font-size: 13px; font-weight: 500; color: #fff; }
.conf-card-sub   { font-size: 11px; color: rgba(255,255,255,.6); }
.conf-status {
	background: var(--sa);
	color: var(--sp-d);
	font-size: 10px;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: 20px;
	margin-left: auto;
	flex-shrink: 0;
}
.conf-card-body  { padding: 13px 17px; display: flex; flex-direction: column; gap: 10px; }
.conf-dr         { display: flex; align-items: flex-start; gap: 9px; }
.conf-dr-lbl     { font-size: 10px; color: var(--smt); text-transform: uppercase; letter-spacing: .07em; }
.conf-dr-val     { font-size: 13px; font-weight: 500; color: var(--st); }
.conf-dr-val a   { color: var(--sp); text-decoration: underline; text-underline-offset: 2px; }
.conf-mats       { background: var(--sw); border: .5px solid var(--sb); border-radius: var(--r-lg); margin-bottom: 12px; }
.conf-mats-head  { padding: 11px 17px; border-bottom: .5px solid var(--sb); font-size: 13px; font-weight: 500; color: var(--st); }
.conf-mat-row    { display: flex; align-items: center; gap: 10px; padding: 9px 17px; border-bottom: .5px solid var(--sb2); }
.conf-mat-row:last-of-type { border-bottom: none; }
.conf-mat-spine  { width: 28px; height: 38px; border-radius: 3px; flex-shrink: 0; }
.conf-mat-name   { font-size: 13px; font-weight: 500; color: var(--st); flex: 1; }
.conf-mat-price  { font-size: 13px; font-weight: 500; color: var(--sp); flex-shrink: 0; }
.conf-mats-note  { padding: 9px 17px; font-size: 11px; color: var(--sm); background: var(--bg); }

.conf-next       { background: var(--sw); border: .5px solid var(--sb); border-radius: var(--r-lg); padding: 14px 17px; margin-bottom: 14px; }
.conf-next-head  { font-size: 13px; font-weight: 500; color: var(--st); margin-bottom: 11px; }
.conf-nsteps     { display: flex; flex-direction: column; gap: 10px; }
.conf-nstep      { display: flex; align-items: flex-start; gap: 10px; }
.conf-ndot       { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; flex-shrink: 0; }
.nd-done         { background: var(--ok-bg); color: var(--ok); }
.nd-pend         { background: var(--bg); border: 1.5px solid var(--sb); color: var(--smt); }
.conf-ntitle     { font-size: 13px; font-weight: 500; color: var(--st); }
.conf-nsub       { font-size: 12px; color: var(--sm); }

.conf-ctas       { display: flex; gap: 10px; padding-bottom: 8px; }
.conf-cta-p {
	flex: 1;
	padding: 11px;
	background: var(--sp);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	transition: background .15s;
	font-family: inherit;
}
.conf-cta-p:hover { background: var(--sp-l); }
.conf-cta-s {
	flex: 1;
	padding: 11px;
	background: transparent;
	color: var(--sp);
	border: 1px solid var(--sp);
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all .15s;
	font-family: inherit;
}
.conf-cta-s:hover { background: var(--sp); color: #fff; }

/* Spacer */
.sb { height: 20px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 480px) {
	.saifi-ep-overlay.saifi-ep-open { padding: 12px; align-items: center; }
	.saifi-ep-modal   { max-height: 96vh; border-radius: var(--r-lg); }
	.f-row2, .co-grid { grid-template-columns: 1fr; }
	.co-full          { grid-column: 1; }
	.conf-ctas        { flex-direction: column; }
}
