/* ELI: every rule is namespaced under .eli-* so nothing leaks into the theme.
   Brand colours are the variables below: the live Electroli site's own values (Elementor global colours
   primary #062E63 and accent #FEA231; Lumera title #0D0907, border #dae0e8 / #98A2B3, background #f9fafb). */

body.eli-page,
.eli-entry,
.eli-launcher {
	--eli-ink: #0d0907;
	--eli-navy: #062e63;
	--eli-brand: #062e63;
	--eli-brand-dark: #0d0907;
	--eli-brand-soft: #eaf1ff;
	--eli-spark: #fea231;
	--eli-spark-soft: #fff5dc;
	--eli-bg: #f9fafb;
	--eli-surface: #ffffff;
	--eli-line: #dae0e8;
	--eli-line-strong: #98a2b3;
	--eli-muted: #5d6169;
	--eli-ok: #1a7f4b;
	--eli-bad: #b3261e;
	--eli-radius-card: 16px;
	--eli-radius-btn: 10px;
	--eli-shadow: 0 1px 2px rgba(20, 35, 60, .05), 0 8px 24px rgba(20, 35, 60, .06);
	--eli-shadow-lift: 0 2px 4px rgba(20, 35, 60, .06), 0 16px 40px rgba(20, 35, 60, .10);
	/* Poppins is the site font; the theme already loads it on every page (its "dynamic-google-fonts" stylesheet),
	   so ELI loads no font of its own. System fonts follow as the fallback and for Urdu. */
	--eli-font: Poppins, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, "Noto Sans", "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
	--eli-width: 1120px;
	--eli-gutter: max(16px, calc((100% - var(--eli-width)) / 2));
	/* Conversation column: thread and docked composer share one width so everything lines up. */
	--eli-chat-width: 860px;
	--eli-chat-gutter: max(16px, calc((100% - var(--eli-chat-width)) / 2));
}

/* ---------- Page shell and theme safety ---------- */

html:has(body.eli-page) { margin-top: 0 !important; scroll-padding-top: 72px; }
body.eli-page #wpadminbar { display: none !important; }
/* The theme's back-to-top control (".to-top", part of its floating bar) is an overlay on the ELI page; hide it here only.
   Scoped to body.eli-page, so every other page keeps it. */
body.eli-page .to-top,
body.eli-page .sticky-dashboard li:has(> .to-top) { display: none !important; }
body.eli-page {
	margin: 0 !important;
	padding: 0 !important;
	background: var(--eli-bg) !important;
	color: var(--eli-ink);
	font-family: var(--eli-font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
}

.eli-app, .eli-app *, .eli-app *::before, .eli-app *::after,
.eli-entry, .eli-entry *, .eli-entry *::before, .eli-entry *::after,
.eli-launcher, .eli-launcher * { box-sizing: border-box; }

/* Neutralise aggressive theme styles on controls and text inside ELI. */
.eli-app button, .eli-app a, .eli-app textarea, .eli-app h1, .eli-app h2, .eli-app h3, .eli-app p, .eli-app ul, .eli-app li,
.eli-entry a, .eli-entry h2, .eli-entry p, .eli-entry summary, .eli-entry ol, .eli-entry li {
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	margin: 0;
	padding: 0;
}
.eli-app button, .eli-app textarea {
	-webkit-appearance: none;
	appearance: none;
	border: 0;
	background: none;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
	box-shadow: none;
	min-height: 0;
	width: auto;
	border-radius: 0;
}
.eli-app a, .eli-entry a { text-decoration: none; box-shadow: none; }
.eli-app svg, .eli-entry svg, .eli-launcher svg { display: block; flex: none; }
.eli-app button:focus-visible, .eli-app a:focus-visible, .eli-entry a:focus-visible, .eli-entry summary:focus-visible, .eli-launcher:focus-visible {
	outline: 2px solid var(--eli-brand);
	outline-offset: 2px;
}

.eli-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.eli-app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

/* ---------- Header ---------- */

.eli-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: #fff;
	box-shadow: 0 0 3px rgba(0, 0, 0, .2); /* Same edge as the Electroli site header. */
}
.eli-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 96px; /* Electroli header: 96px logo row on desktop, 64px on tablet and phone, logo 164x50. */
	padding: 0 var(--eli-gutter);
}
.eli-header__brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.eli-header .custom-logo-link, .eli-logo { display: flex; align-items: center; }
.eli-header .custom-logo { display: block; height: 50px !important; width: auto; max-width: 164px; }
/* Official Electroli logo (900x277): height-driven so it keeps its proportions.
   Every image height in ELI is marked !important: the Lumera theme sets img { height: auto !important },
   which otherwise shows ELI's images at their full file size (logo 900x277, robot 742x1132). */
.eli-header .eli-logo img { display: block; height: 50px !important; width: auto; max-width: none; }
.eli-logo--text { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--eli-navy); }
.eli-header__eli {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-left: 14px;
	border-left: 1px solid var(--eli-line-strong);
}
.eli-header__label {
	font-size: 14px;
	font-weight: 600;
	color: var(--eli-muted);
	white-space: nowrap;
}
.eli-header__actions { display: flex; align-items: center; gap: 4px; }
.eli-app .eli-hbtn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: var(--eli-radius-btn);
	font-size: 14px;
	font-weight: 500;
	color: var(--eli-ink);
	cursor: pointer;
	transition: background-color .15s ease;
}
.eli-app .eli-hbtn:hover { background: #f1f0ec; color: var(--eli-ink); }
.eli-hbtn svg { width: 19px; height: 19px; }
.eli-header__sep { flex: none; width: 1px; height: 22px; margin: 0 4px; background: var(--eli-line-strong); }

/* ---------- Main column ---------- */

.eli-main { flex: 1; display: flex; flex-direction: column; }

/* ---------- Welcome (hero) ---------- */

.eli-hero {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 48px var(--eli-gutter) 72px;
}
.eli-app.is-chatting .eli-hero { display: none; }

.eli-app .eli-hero__title {
	font-family: var(--eli-font);
	font-size: clamp(36px, 5.6vw, 60px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: 0; /* Poppins is wider than the old system font; tight tracking crowded the heading. */
	text-transform: uppercase;
	color: var(--eli-ink);
}
.eli-hero__mascot { margin: 28px 0 22px; }
.eli-app .eli-hero__lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--eli-ink); }
.eli-hero__slot { width: 100%; max-width: 640px; margin-top: 28px; }

.eli-starters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	max-width: 640px;
	margin-top: 18px;
}
.eli-app .eli-starter {
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--eli-line-strong);
	border-radius: 999px;
	background: rgba(255, 255, 255, .7);
	font-size: 14px;
	color: var(--eli-muted);
	cursor: pointer;
	transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.eli-app .eli-starter:hover { border-color: var(--eli-navy); color: var(--eli-ink); background: #fff; }

/* ---------- Mascot ---------- */

.eli-mascot { display: block; }
img.eli-mascot--hero { width: auto; height: clamp(140px, 22vh, 230px) !important; }
img.eli-mascot--entry { width: auto; height: 100px !important; }
/* Official ELI asset: never stretched, never recoloured. Small uses sit in a light brand circle. */
img.eli-mascot { max-width: none; object-fit: contain; }
img.eli-mascot--avatar { width: 34px; height: 34px !important; border-radius: 50%; background: var(--eli-brand-soft); }
.eli-header__mascot { flex: none; }
.eli-mascot--placeholder {
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--eli-navy);
	color: var(--eli-spark);
}
.eli-mascot--placeholder svg { width: 46%; height: 46%; }
.eli-mascot--hero.eli-mascot--placeholder { width: 132px; height: 132px; }
.eli-mascot--entry.eli-mascot--placeholder { width: 72px; height: 72px; }
.eli-mascot--avatar.eli-mascot--placeholder { width: 28px; height: 28px; }

/* ---------- Composer (hero and docked) ---------- */

.eli-composer {
	position: relative;
	display: flex;
	align-items: flex-end;
	gap: 8px;
	width: 100%;
	padding: 8px 8px 8px 24px;
	background: var(--eli-surface);
	border: 1px solid var(--eli-line-strong);
	border-radius: 32px;
	box-shadow: 0 1px 2px rgba(20, 35, 60, .04), 0 10px 30px rgba(20, 35, 60, .08);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.eli-composer:focus-within { border-color: var(--eli-navy); box-shadow: 0 0 0 3px rgba(31, 79, 174, .12), 0 10px 30px rgba(20, 35, 60, .08); }
.eli-app .eli-composer textarea {
	flex: 1;
	min-width: 0;
	min-height: 44px;
	max-height: 132px;
	padding: 10px 0;
	font-size: 18px;
	line-height: 24px;
	color: var(--eli-ink);
	resize: none;
	outline: none;
	overflow-y: auto;
	text-align: start;
}
.eli-app .eli-composer textarea::placeholder { color: #7d8088; opacity: 1; }
.eli-app .eli-send {
	display: grid;
	place-items: center;
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--eli-navy);
	color: #fff;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.eli-send svg { width: 22px; height: 22px; }
.eli-app .eli-send:hover { background: var(--eli-brand); color: #fff; }
.eli-app .eli-send:disabled { cursor: default; opacity: .45; background: var(--eli-navy); color: #fff; }

/* Docked composer (conversation state) */
.eli-dock { display: none; }
.eli-app.is-chatting .eli-dock {
	display: block;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 20;
	padding: 12px var(--eli-chat-gutter) calc(12px + env(safe-area-inset-bottom));
	background: linear-gradient(to top, var(--eli-bg) 70%, rgba(246, 245, 241, 0));
}
.eli-dock__inner { max-width: var(--eli-chat-width); margin: 0 auto; }
.eli-app.is-chatting .eli-composer { padding-left: 20px; border-radius: 28px; }
.eli-app.is-chatting .eli-composer textarea { font-size: 16px; }
.eli-app.is-chatting .eli-send { width: 44px; height: 44px; }

/* ---------- Thread ---------- */

.eli-thread { display: none; }
.eli-app.is-chatting .eli-thread {
	display: flex;
	flex-direction: column;
	gap: 28px;
	width: 100%;
	padding: 32px var(--eli-chat-gutter) 140px;
}

.eli-row { display: flex; gap: 12px; animation: eli-in .25s ease both; }
.eli-row--user { justify-content: flex-end; }
.eli-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.eli-avatar {
	flex: none;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin-top: -2px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--eli-brand-soft);
	border: 1px solid var(--eli-line);
}
.eli-avatar img { display: block; width: 100%; height: 100% !important; max-width: none; object-fit: contain; }
.eli-avatar--placeholder { background: var(--eli-navy); border-color: var(--eli-navy); color: var(--eli-spark); }
.eli-avatar--placeholder svg { width: 16px; height: 16px; }

.eli-app .eli-text {
	max-width: 720px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--eli-ink);
	white-space: pre-line;
	overflow-wrap: anywhere;
}
.eli-app .eli-bubble {
	max-width: min(78%, 560px);
	padding: 10px 16px;
	border-radius: 20px 20px 6px 20px;
	background: var(--eli-navy);
	color: #fff;
	font-size: 16px;
	line-height: 1.5;
	white-space: pre-line;
	overflow-wrap: anywhere;
}
.eli-app .eli-row--error .eli-text {
	align-self: flex-start;
	padding: 10px 14px;
	border: 1px solid #f1d4d1;
	border-radius: 4px 14px 14px 14px;
	background: #fdf3f2;
	color: var(--eli-ink);
}

/* Typing / loading */
.eli-typing { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.eli-typing__dots { display: inline-flex; gap: 5px; padding: 10px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--eli-line); }
.eli-typing__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--eli-muted); animation: eli-dot 1.2s infinite ease-in-out; }
.eli-typing__dots i:nth-child(2) { animation-delay: .15s; }
.eli-typing__dots i:nth-child(3) { animation-delay: .3s; }
.eli-typing__note { font-size: 14px; color: var(--eli-muted); }

/* ---------- Suggested next questions ---------- */

.eli-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.eli-app .eli-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 12px 0 16px;
	border: 1px solid var(--eli-line-strong);
	border-radius: 999px;
	background: var(--eli-surface);
	font-size: 14px;
	font-weight: 500;
	color: var(--eli-ink);
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.eli-chip svg { width: 15px; height: 15px; color: var(--eli-muted); transition: transform .15s ease, color .15s ease; }
[dir="rtl"] .eli-chip svg { transform: scaleX(-1); }
.eli-app .eli-chip:hover { border-color: var(--eli-brand); background: var(--eli-brand-soft); color: var(--eli-brand-dark); }
.eli-chip:hover svg { color: var(--eli-brand); transform: translateX(2px); }
.eli-app a.eli-chip { padding-right: 16px; }
.eli-app .eli-chip--strong { background: var(--eli-navy); border-color: var(--eli-navy); color: #fff; padding-right: 16px; }
.eli-app .eli-chip--strong:hover { background: var(--eli-brand); border-color: var(--eli-brand); color: #fff; }

/* ---------- Product cards ---------- */

.eli-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
	max-width: 100%;
}
.eli-cards.is-single { grid-template-columns: minmax(240px, 320px); }

.eli-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--eli-surface);
	border: 1px solid var(--eli-line);
	border-radius: var(--eli-radius-card);
	box-shadow: var(--eli-shadow);
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}
.eli-card:hover { box-shadow: var(--eli-shadow-lift); }

.eli-card__media {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
	padding: 16px 20px;
	background: #f7f7f5;
}
.eli-card__media img { width: 100%; height: 100% !important; object-fit: contain; mix-blend-mode: multiply; }
.eli-card__noimg { color: #b9bac0; }
.eli-card__noimg svg { width: 44px; height: 44px; }
.eli-card.is-out .eli-card__media img { opacity: .55; }

.eli-card__badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 6px; pointer-events: none; }
.eli-badge { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.eli-badge--sample { background: rgba(255, 255, 255, .92); border: 1px solid var(--eli-line-strong); color: var(--eli-muted); }
.eli-badge--deal { margin-left: auto; background: var(--eli-spark); color: var(--eli-navy); }

.eli-card__body { flex: 1; display: flex; flex-direction: column; gap: 7px; padding: 14px 16px 12px; }
.eli-app .eli-card__brand { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--eli-muted); }
.eli-app .eli-card__name {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--eli-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.eli-app .eli-card__rating { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--eli-muted); }
.eli-card__rating svg { width: 15px; height: 15px; color: var(--eli-spark); }
.eli-card__rating strong { color: var(--eli-ink); font-weight: 600; }

.eli-app .eli-card__specs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.eli-app .eli-card__specs li {
	padding: 3px 9px;
	border-radius: 6px;
	background: #f2f1ed;
	font-size: 13px;
	line-height: 1.4;
	color: #3a3d44;
}

.eli-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-top: 2px; }
.eli-card__price strong { font-size: 20px; font-weight: 700; letter-spacing: -.01em; color: var(--eli-ink); white-space: nowrap; }
.eli-card__price s { font-size: 13px; color: var(--eli-muted); white-space: nowrap; }

.eli-app .eli-card__stock { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.eli-card__stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.eli-card__stock.is-in { color: var(--eli-ok); }
.eli-card__stock.is-out { color: var(--eli-bad); }


.eli-card__actions { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 16px; }
.eli-card__sub { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 8px; } /* Two buttons side by side; stacked when the card is too narrow (small phones). */
.eli-app .eli-card__sub .eli-btn { padding: 0 8px; white-space: nowrap; font-size: 14px; }

/* Buttons */
.eli-app .eli-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 44px;
	padding: 0 14px;
	border-radius: var(--eli-radius-btn);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.eli-btn svg { width: 17px; height: 17px; }
.eli-app .eli-btn--block { width: 100%; }
.eli-app .eli-btn--primary { background: var(--eli-brand); color: #fff; }
.eli-app .eli-btn--primary:hover { background: var(--eli-brand-dark); color: #fff; }
.eli-app .eli-btn--quiet { border: 1px solid var(--eli-line-strong); background: #fff; color: var(--eli-ink); font-size: 14px; font-weight: 500; }
.eli-app .eli-btn--quiet:hover { border-color: var(--eli-navy); color: var(--eli-ink); }
.eli-app .eli-btn:disabled { cursor: not-allowed; opacity: 1; }
.eli-app .eli-btn--primary:disabled { background: #e7e6e1; color: #8a8c92; }
.eli-app .eli-btn--quiet:disabled { color: #a3a5ab; border-color: var(--eli-line); background: #fafaf8; }

/* ---------- Empty (no results) ---------- */

.eli-empty {
	display: flex;
	gap: 14px;
	max-width: 520px;
	padding: 16px 18px;
	border: 1px dashed var(--eli-line-strong);
	border-radius: var(--eli-radius-card);
	background: #fff;
}
.eli-empty > svg { width: 22px; height: 22px; margin-top: 1px; color: var(--eli-muted); }
.eli-app .eli-empty__title { font-weight: 600; }
.eli-app .eli-empty__text { margin-top: 2px; font-size: 14px; color: var(--eli-muted); }
.eli-app .eli-empty__link { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--eli-brand); }
.eli-app .eli-empty__link:hover { text-decoration: underline; }

/* ---------- Toast ---------- */

.eli-toast {
	position: fixed;
	left: 50%;
	bottom: 108px;
	z-index: 30;
	max-width: calc(100% - 32px);
	padding: 11px 18px;
	border-radius: 12px;
	background: var(--eli-navy);
	color: #fff;
	font-size: 14px;
	box-shadow: var(--eli-shadow-lift);
	opacity: 0;
	transform: translate(-50%, 8px);
	transition: opacity .2s ease, transform .2s ease;
}
.eli-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Added-to-cart confirmation (fixed, above the composer) ---------- */

.eli-cartbar {
	position: fixed;
	left: 50%;
	bottom: 108px;
	z-index: 31;
	display: flex;
	align-items: center;
	gap: 16px;
	width: min(560px, calc(100% - 32px));
	padding: 14px 16px;
	border: 1px solid var(--eli-line);
	border-radius: var(--eli-radius-card);
	background: #fff;
	box-shadow: var(--eli-shadow-lift);
	opacity: 0;
	transform: translate(-50%, 8px);
	transition: opacity .2s ease, transform .2s ease;
}
.eli-cartbar.is-on { opacity: 1; transform: translate(-50%, 0); }
.eli-cartbar[hidden] { display: none; }
.eli-cartbar__info { flex: 1; min-width: 0; }
.eli-app .eli-cartbar__title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--eli-ok); }
.eli-cartbar__title svg { width: 16px; height: 16px; }
.eli-app .eli-cartbar__name { margin-top: 2px; font-size: 15px; font-weight: 600; color: var(--eli-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eli-app .eli-cartbar__count { font-size: 13px; color: var(--eli-muted); }
.eli-cartbar__actions { display: flex; gap: 8px; flex: none; }

/* ---------- Entry screen: [eli_entry] ---------- */

.eli-entry {
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	padding: 40px 0;
	color: var(--eli-ink);
	font-family: var(--eli-font);
	text-align: center;
}
.eli-entry__head { display: flex; align-items: center; justify-content: center; gap: 16px; }

.eli-entry .eli-entry__title {
	font-family: var(--eli-font);
	font-size: clamp(28px, 4.2vw, 44px);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: 0;
	color: var(--eli-ink);
}
.eli-entry .eli-entry__sub { margin-top: 10px; font-size: 18px; color: #3a3d44; text-align: center; }
@media (min-width: 641px) { .eli-entry .eli-entry__title { white-space: nowrap; } }

.eli-entry__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; text-align: center; }

.eli-entry__option--eli {
	display: flex;
	flex-direction: column;
	border-radius: 28px;
	background: #fff;
	box-shadow: var(--eli-shadow-lift);
	overflow: hidden;
}
.eli-entry .eli-entry__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-height: 240px;
	padding: 32px 24px;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.eli-entry .eli-entry__card--eli { flex: 1; border-radius: 28px; background: var(--eli-brand); color: #fff; }
.eli-entry .eli-entry__card--eli:hover { background: var(--eli-brand-dark); color: #fff; }
.eli-entry__option--eli { transition: transform .2s ease, box-shadow .2s ease; }
.eli-entry__option--eli:has(.eli-entry__card--eli:hover) { transform: translateY(-2px); }
.eli-entry .eli-entry__card--manual {
	border: 2px solid var(--eli-navy);
	border-radius: 28px;
	background: #f7f9fc;
	color: var(--eli-ink);
	box-shadow: var(--eli-shadow);
}
.eli-entry .eli-entry__card--manual:hover { background: #fff; box-shadow: var(--eli-shadow-lift); transform: translateY(-2px); color: var(--eli-ink); }

.eli-entry__icon {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin-bottom: 18px;
	border-radius: 18px;
}
.eli-entry__icon svg { width: 44px; height: 44px; }
.eli-entry__card--eli .eli-entry__icon { background: #fff; color: var(--eli-navy); }
.eli-entry__card--manual .eli-entry__icon { background: var(--eli-brand); color: #fff; }
.eli-entry__card--manual .eli-entry__icon svg circle { fill: var(--eli-brand); }
/* Official ELI mascot on the "Shop with ELI" card: same tile as the manual card, mascot fills it. */
.eli-entry__icon--mascot { overflow: hidden; box-shadow: 0 2px 8px rgba(20, 35, 60, .18); }
.eli-entry__icon--mascot img.eli-entry__icon-mascot { width: 62px; height: 62px !important; margin-top: 6px; border-radius: 0; background: transparent; }
.eli-entry__icon--mascot .eli-mascot--placeholder { width: 44px; height: 44px; }

.eli-entry__name { font-size: clamp(26px, 3vw, 32px); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.eli-entry__desc { font-size: 18px; opacity: .9; }

.eli-entry__steps { font-size: 14px; text-align: left; }
.eli-entry .eli-entry__steps summary {
	display: block;
	min-height: 44px;
	padding: 12px 20px;
	text-align: center;
	cursor: pointer;
	list-style: none;
	color: var(--eli-ink);
}
.eli-entry__steps summary::-webkit-details-marker { display: none; }
.eli-entry__steps summary::after { content: " \203A"; display: inline-block; margin-left: 4px; transition: transform .15s ease; }
.eli-entry__steps[open] summary::after { transform: rotate(90deg); }
.eli-entry .eli-entry__steps ol { margin: 0 0 16px; padding: 0 24px 0 44px; color: #3a3d44; line-height: 1.8; }

/* ---------- Account control (right end of the header): the site header's 40px ring and user icon ---------- */

.eli-app .eli-account { display: flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; margin-left: 6px; color: var(--eli-navy); text-decoration: none; }
.eli-account__ring { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--eli-navy); border-radius: 40px; transition: background-color .2s ease, color .2s ease; }
.eli-account__ring svg, .eli-account__ring .eli-ticon { width: 16px; height: 16px; }
.eli-app .eli-account:hover .eli-account__ring { background: var(--eli-navy); color: #fff; }
.eli-header__inner > .eli-account { margin-left: auto; }

/* ---------- Theme icons and the header cart count ---------- */

.eli-ticon { display: block; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--eli-ticon) center / contain no-repeat; mask: var(--eli-ticon) center / contain no-repeat; }
.eli-app .eli-hbtn--cart { position: relative; }
.eli-hbtn__count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--e-global-color-accent, #fea231); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.eli-hbtn__count[hidden] { display: none; }

/* ---------- Touch devices: 44px minimum tap targets ---------- */

@media (pointer: coarse) {
	.eli-app .eli-chip, .eli-app .eli-starter { min-height: 44px; }
}

/* ---------- Mobile ---------- */

@media (max-width: 1024px) {
	.eli-header__inner { height: 64px; }
}
@media (max-width: 640px) {
	.eli-header .custom-logo { height: 36px !important; }
	.eli-header .eli-logo img { height: 36px !important; } /* The header also holds four controls here, so the logo is 118x36. */
	.eli-header__brand { gap: 10px; }
	.eli-header__eli { gap: 8px; }
	.eli-header__actions { gap: 0; }
	.eli-header__sep { margin: 0 2px; }
	.eli-header__brand .eli-header__sep { margin-left: 0; }
	.eli-logo--text { font-size: 20px; }
	.eli-header__label { display: none; }
	.eli-header__eli { padding-left: 12px; }
	img.eli-header__mascot { width: 32px; height: 32px !important; }
	.eli-hbtn__text { display: none; }
	.eli-app .eli-hbtn { width: 44px; padding: 0; justify-content: center; }
	.eli-hbtn__count { position: absolute; top: 2px; right: 0; }
	.eli-app .eli-account { margin-left: 0; }
	.eli-header .eli-hbtn, .eli-header .eli-rewards-btn { flex: none; } /* Header controls keep their tap size. */

	.eli-hero { justify-content: flex-start; padding-top: 36px; padding-bottom: 40px; }
	.eli-hero__mascot { margin: 20px 0 16px; }
	img.eli-mascot--hero { height: clamp(110px, 17vh, 140px) !important; }
	.eli-hero__slot { margin-top: 22px; }
	.eli-composer { padding-left: 18px; }
	.eli-app .eli-composer textarea { font-size: 16px; }
	.eli-starters { margin-top: 14px; }
	.eli-app .eli-starter { font-size: 13px; }

	.eli-app.is-chatting .eli-thread { gap: 22px; padding-top: 20px; padding-bottom: 120px; }
	.eli-row { gap: 10px; }
	.eli-avatar { width: 30px; height: 30px; }
	.eli-row--eli .eli-row__body { margin-right: calc(-1 * var(--eli-chat-gutter)); }
	.eli-row--eli .eli-text, .eli-row--eli .eli-chips, .eli-row--eli .eli-empty { margin-right: var(--eli-chat-gutter); }

	/* Cards scroll sideways on phones. */
	.eli-cards, .eli-cards.is-single {
		display: flex;
		gap: 12px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		overscroll-behavior-x: contain;
		padding: 2px var(--eli-chat-gutter) 8px 0;
		scrollbar-width: none;
	}
	.eli-cards::-webkit-scrollbar { display: none; }
	.eli-card { flex: 0 0 78%; max-width: 300px; scroll-snap-align: start; }
	.eli-card__body { padding: 14px 14px 10px; }
	.eli-card__actions { padding: 0 14px 14px; }

	.eli-toast { bottom: 96px; }
	.eli-cartbar { bottom: 96px; flex-direction: column; align-items: stretch; gap: 12px; }
	.eli-cartbar__actions .eli-btn { flex: 1; }

	.eli-entry { padding: 24px 0; }
	.eli-entry__head { flex-direction: column; gap: 10px; }
	.eli-entry .eli-entry__title { text-align: center; }
	.eli-entry .eli-entry__sub { font-size: 16px; }
	.eli-entry__grid { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
	.eli-entry .eli-entry__card { min-height: 0; padding: 26px 20px; }
	.eli-entry__icon { width: 60px; height: 60px; margin-bottom: 12px; }
	.eli-entry__icon svg { width: 38px; height: 38px; }
	.eli-entry__icon--mascot img.eli-entry__icon-mascot { width: 52px; height: 52px !important; margin-top: 5px; }
	.eli-entry__desc { font-size: 16px; }
}

/* Small phones: make room in the header without shrinking any control. */
@media (max-width: 400px) {
	.eli-header__inner { gap: 6px; }
	.eli-header__brand { gap: 2px; }
	.eli-header .eli-header__sep { display: none; }
	.eli-header .eli-logo img { height: 30px !important; }
}
@media (max-width: 374px) { /* Six header items on a narrow phone: tighter gutter and gaps, smaller logo. */
	.eli-header__inner { gap: 2px; padding: 0 8px; }
	.eli-header .eli-logo img { height: 26px !important; }
}
@media (max-width: 340px) {
	.eli-header__inner { gap: 0; padding: 0 4px; }
	.eli-header__brand, .eli-header__actions { gap: 0; }
	.eli-card__price strong { font-size: 18px; white-space: normal; } /* Long prices ("From Rs. ...") stay inside the card. */
}

/* ---------- Motion ---------- */

/* Section reveal on the welcome screen and the Shop with ELI / Shop Manually page: the same feel
   as the Rewards page (fade + 18px rise, .7s, 70ms stagger). CSS only; content is never left hidden. */
.eli-reveal { animation: eli-reveal .7s cubic-bezier(.22, .61, .36, 1) backwards; animation-delay: calc(var(--eli-d, 0) * 70ms); }
.eli-reveal--1 { --eli-d: 1; }
.eli-reveal--2 { --eli-d: 2; }
.eli-reveal--3 { --eli-d: 3; }
.eli-reveal--4 { --eli-d: 4; }
@keyframes eli-reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes eli-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes eli-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

@media (prefers-reduced-motion: reduce) {
	.eli-app *, .eli-entry *, .eli-launcher { animation: none !important; transition: none !important; }
}
