/* Electroli Rewards "ELI Coins" section. Lives inside the site's existing mini-cart drawer and on the
   cart page. Namespaced .er-cr*; inherits the theme's font and uses the theme's colours when present
   (Elementor / Lumera variables), with Electroli fallbacks. */
.er-cr {
	--er-blue: var(--e-global-color-primary, #062e63);
	--er-line: var(--t-border-color, #dae0e8);
	--er-ink: var(--t-title-color, #0d0907);
	--er-muted: #4b5563;
	--er-ok: #0b5d37;
	--er-err: #b42318;
	box-sizing: border-box;
	clear: both;
	width: 100%;
	margin: 16px 0;
	padding: 12px;
	border: 1px solid var(--er-line);
	border-radius: 8px;
	background: #fff;
	color: var(--er-ink);
	font-size: 14px;
	line-height: 1.45;
	text-align: left;
	font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Noto Sans", Arial, sans-serif; /* The site font, already loaded by the theme. */
}
.er-cr--mini { margin: 12px 0 0; padding: 10px; }
.er-cr *, .er-cr *::before, .er-cr *::after { box-sizing: border-box; }
.er-cr :where(p, h2, form) { margin: 0; padding: 0; }
.er-cr > * + * { margin-top: 8px; }

.er-cr__head { display: flex; align-items: center; gap: 8px; }
.er-cr .er-cr__coin { flex: none; width: 24px; height: 24px !important; max-width: none; margin: 0; }
.er-cr .er-cr__title { flex: 1 1 auto; margin: 0; color: var(--er-ink); font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.er-cr__balance { color: var(--er-blue); font-size: 13px; font-weight: 500; white-space: nowrap; }
.er-cr__balance strong { font-weight: 600; }

.er-cr__label { display: block; margin: 0 0 6px; color: #374151; font-size: 12.5px; font-weight: 500; }
.er-cr__field { display: flex; gap: 8px; }
.er-cr .er-cr__input {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	height: 44px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid #8a94a6;
	border-radius: 6px;
	background: #fff;
	color: var(--er-ink);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	box-shadow: none;
}
.er-cr .er-cr__input:focus { border-color: var(--er-blue); outline: 2px solid var(--er-blue); outline-offset: 1px; }
.er-cr .er-cr__input.is-error { border: 2px solid var(--er-err); }

.er-cr .er-cr__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: auto;
	min-height: 44px;
	margin: 0;
	padding: 0 22px;
	border: 1px solid var(--er-blue);
	border-radius: 6px;
	background: var(--er-blue);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
.er-cr .er-cr__btn:hover { background: var(--er-ink); border-color: var(--er-ink); color: #fff; }
.er-cr .er-cr__btn--ghost { background: #fff; color: var(--er-blue); padding: 0 14px; font-size: 13px; }
.er-cr .er-cr__btn--ghost:hover { background: var(--er-blue); border-color: var(--er-blue); color: #fff; }
.er-cr .er-cr__btn:disabled { background: #c9ced8; border-color: #c9ced8; color: #3f4654; cursor: not-allowed; }
.er-cr .er-cr__btn:focus-visible, .er-cr .er-cr__link:focus-visible { outline: 2px solid var(--er-blue); outline-offset: 2px; }
.er-cr .is-busy { opacity: .6; pointer-events: none; }

.er-cr .er-cr__preview { min-height: 18px; margin-top: 6px; color: var(--er-ok); font-size: 13px; font-weight: 600; }
.er-cr .er-cr__preview:empty { display: none; }
.er-cr .er-cr__preview.is-error { color: var(--er-err); font-weight: 500; }

.er-cr__notice { font-size: 12.5px; font-weight: 500; line-height: 1.4; }
.er-cr__notice--ok { color: var(--er-ok); }
.er-cr__notice--error { color: var(--er-err); }
.er-cr__text, .er-cr__hint { color: var(--er-muted); font-size: 12px; line-height: 1.4; }

.er-cr__guest { display: flex; align-items: center; gap: 10px; }
.er-cr__guest .er-cr__text { flex: 1 1 auto; }

.er-cr__applied { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #0f7a48; border-radius: 6px; background: #edf9f2; }
.er-cr__applied-main { flex: 1 1 auto; display: flex; flex-direction: column; }
.er-cr__used { color: var(--er-ok); font-size: 14px; font-weight: 600; }
.er-cr .er-cr__link {
	min-height: 44px;
	margin: 0;
	padding: 0 8px;
	border: 0;
	background: none;
	color: var(--er-blue);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
	box-shadow: none;
}
.er-cr__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.er-cr__row--discount strong { color: var(--er-ok); font-weight: 600; }
.er-cr__row--total { font-weight: 600; }
.er-cr__row--total strong { font-size: 16px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
	.er-cr * { transition: none !important; }
}
