/* ==========================================================================
   EJR Bulk Order — front-end styles
   White / charcoal / gold. Scoped under .ejr-bo / .ejr-bo-gate so the theme
   (Astra) can't bleed in, and we don't bleed out.
   Fonts intentionally inherit from the theme.
   ========================================================================== */

.ejr-bo,
.ejr-bo-gate {
	--ejr-bo-gold: #D4A12C;
	--ejr-bo-gold-deep: #b8861a;
	--ejr-bo-gold-text: #8a6310; /* AA-contrast gold for text on light surfaces */
	--ejr-bo-ink: #141312;
	--ejr-bo-body: #4b4843;
	--ejr-bo-muted: #8a857d;
	--ejr-bo-surface: #ffffff;
	--ejr-bo-surface-alt: #faf8f4;
	--ejr-bo-line: #ece8e1;
	--ejr-bo-line-strong: #ddd7cc;
	--ejr-bo-gold-tint: #fbf4e3;
	--ejr-bo-green: #2f8f5b;
	--ejr-bo-red: #c0432f;
	--ejr-bo-radius: 14px;
	--ejr-bo-radius-sm: 10px;
	--ejr-bo-shadow: 0 1px 2px rgba(20, 19, 18, .05), 0 8px 24px rgba(20, 19, 18, .06);
	--ejr-bo-shadow-lg: 0 10px 40px rgba(20, 19, 18, .14);

	box-sizing: border-box;
	color: var(--ejr-bo-ink);
	max-width: 100%;
	line-height: 1.45;
}

.ejr-bo *,
.ejr-bo *::before,
.ejr-bo *::after,
.ejr-bo-gate *,
.ejr-bo-gate *::before,
.ejr-bo-gate *::after {
	box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Theme hardening — neutralize Astra / WooCommerce control styles so the
   widget renders identically on any theme. We only force the properties that
   themes routinely clobber (sizing, spacing, typography, decoration).
   -------------------------------------------------------------------------- */
.ejr-bo input,
.ejr-bo select,
.ejr-bo textarea,
.ejr-bo button {
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	margin: 0;
	min-height: 0;
	max-width: none;
	vertical-align: middle;
}
.ejr-bo input,
.ejr-bo textarea {
	text-indent: 0 !important;
	box-shadow: none;
}
.ejr-bo input[type="number"] {
	-moz-appearance: textfield;
	appearance: textfield;
}
.ejr-bo input[type="search"]::-webkit-search-decoration,
.ejr-bo input[type="search"]::-webkit-search-cancel-button,
.ejr-bo input[type="search"]::-webkit-search-results-button { -webkit-appearance: none; appearance: none; }
.ejr-bo button { text-decoration: none; box-shadow: none; }
.ejr-bo__head:focus-within { outline: none; }

/* --------------------------------------------------------------------------
   Header / toolbar
   -------------------------------------------------------------------------- */
.ejr-bo__head {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	padding: 12px;
	margin-bottom: 14px;
	background: var(--ejr-bo-surface);
	border: 1px solid var(--ejr-bo-line);
	border-radius: var(--ejr-bo-radius);
	box-shadow: var(--ejr-bo-shadow);
}

.ejr-bo__search {
	position: relative;
	flex: 1 1 260px;
	display: flex;
	align-items: center;
}

.ejr-bo__search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	color: var(--ejr-bo-muted);
	pointer-events: none;
}

.ejr-bo__search-input {
	width: 100%;
	height: 48px !important;
	padding: 0 44px !important;
	font-size: 15px;
	line-height: 1.2;
	color: var(--ejr-bo-ink);
	background: var(--ejr-bo-surface);
	border: 1px solid var(--ejr-bo-line-strong);
	border-radius: 999px;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none;
	appearance: none;
}

.ejr-bo__search-input::placeholder { color: var(--ejr-bo-muted); }

.ejr-bo__search-input:focus {
	border-color: var(--ejr-bo-gold);
	box-shadow: 0 0 0 3px rgba(212, 161, 44, .18);
}

.ejr-bo__search-clear {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	font-size: 20px;
	line-height: 1;
	color: var(--ejr-bo-muted);
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}
.ejr-bo__search-clear:hover { color: var(--ejr-bo-ink); background: var(--ejr-bo-surface-alt); }

.ejr-bo__filters { display: flex; gap: 8px; flex: 0 1 auto; }

.ejr-bo__filter {
	height: 48px !important;
	max-width: 220px;
	padding: 0 38px 0 16px !important;
	font-size: 14px;
	line-height: 1.2;
	color: var(--ejr-bo-ink);
	background: var(--ejr-bo-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%238a857d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center !important;
	border: 1px solid var(--ejr-bo-line-strong);
	border-radius: 999px;
	cursor: pointer;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	transition: border-color .15s;
}
.ejr-bo__filter:focus { outline: none; border-color: var(--ejr-bo-gold); }
.ejr-bo__filter:focus-visible { box-shadow: 0 0 0 3px rgba(212, 161, 44, .18); }

.ejr-bo__tools { display: flex; gap: 8px; margin-left: auto; }

.ejr-bo__tool {
	height: 48px;
	padding: 0 20px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ejr-bo-ink);
	background: var(--ejr-bo-surface);
	border: 1px solid var(--ejr-bo-line-strong);
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	transition: border-color .15s, background .15s, color .15s;
}
.ejr-bo__tool:hover { border-color: var(--ejr-bo-gold); color: var(--ejr-bo-gold-text); }
.ejr-bo__tool[aria-expanded="true"] {
	background: var(--ejr-bo-ink);
	border-color: var(--ejr-bo-ink);
	color: #fff;
}

.ejr-bo__preview-note {
	padding: 8px 14px;
	margin-bottom: 12px;
	font-size: 13px;
	color: var(--ejr-bo-gold-text);
	background: var(--ejr-bo-gold-tint);
	border: 1px dashed var(--ejr-bo-gold);
	border-radius: var(--ejr-bo-radius-sm);
}

.ejr-bo__wholesale-flag {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ejr-bo-gold-text);
	background: var(--ejr-bo-gold-tint);
	border: 1px solid #f0e2bd;
	border-radius: var(--ejr-bo-radius-sm);
}
.ejr-bo__wholesale-flag svg { flex: 0 0 auto; color: var(--ejr-bo-gold-deep); }
.ejr-bo__wholesale-flag strong { font-weight: 700; }

/* --------------------------------------------------------------------------
   Panels (quick order / lists)
   -------------------------------------------------------------------------- */
.ejr-bo__panel {
	padding: 18px;
	margin-bottom: 14px;
	background: var(--ejr-bo-surface-alt);
	border: 1px solid var(--ejr-bo-line);
	border-radius: var(--ejr-bo-radius);
	animation: ejr-bo-slide .2s ease;
}
@keyframes ejr-bo-slide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.ejr-bo__panel-title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--ejr-bo-ink); }
.ejr-bo__panel-hint { margin: 0 0 12px; font-size: 13px; color: var(--ejr-bo-muted); }

.ejr-bo__paste-input {
	width: 100%;
	padding: 12px 14px;
	font-size: 14px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color: var(--ejr-bo-ink);
	background: var(--ejr-bo-surface);
	border: 1px solid var(--ejr-bo-line-strong);
	border-radius: var(--ejr-bo-radius-sm);
	resize: vertical;
}
.ejr-bo__paste-input:focus { outline: none; border-color: var(--ejr-bo-gold); box-shadow: 0 0 0 3px rgba(212, 161, 44, .15); }

.ejr-bo__panel-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 12px; }
.ejr-bo__upload { display: inline-flex; cursor: pointer; }
.ejr-bo__upload span { font-size: 13px; color: var(--ejr-bo-gold-text); text-decoration: underline; text-underline-offset: 3px; }

.ejr-bo__paste-results { margin-top: 14px; }
.ejr-bo__rline {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 7px 12px;
	font-size: 13px;
	border-radius: 8px;
	margin-bottom: 4px;
}
.ejr-bo__rline--added { background: #eef7f0; color: var(--ejr-bo-green); }
.ejr-bo__rline--not_found,
.ejr-bo__rline--error { background: #fbeeec; color: var(--ejr-bo-red); }
.ejr-bo__rline--out_of_stock { background: #fdf4e6; color: #9a6a12; }
.ejr-bo__rline code { font-weight: 700; }

/* lists */
.ejr-bo__lists { display: flex; flex-direction: column; gap: 8px; }
.ejr-bo__list-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background: var(--ejr-bo-surface);
	border: 1px solid var(--ejr-bo-line);
	border-radius: var(--ejr-bo-radius-sm);
}
.ejr-bo__list-meta { flex: 1; min-width: 0; }
.ejr-bo__list-title { font-weight: 600; color: var(--ejr-bo-ink); }
.ejr-bo__list-sub { font-size: 12px; color: var(--ejr-bo-muted); }
.ejr-bo__lists-empty, .ejr-bo__list-name { font-size: 14px; }
.ejr-bo__list-name {
	flex: 1 1 200px;
	height: 42px;
	padding: 0 14px;
	color: var(--ejr-bo-ink);
	background: var(--ejr-bo-surface);
	border: 1px solid var(--ejr-bo-line-strong);
	border-radius: 999px;
}
.ejr-bo__list-name:focus { outline: none; border-color: var(--ejr-bo-gold); }
.ejr-bo__list-name:focus-visible { box-shadow: 0 0 0 3px rgba(212, 161, 44, .18); }

/* --------------------------------------------------------------------------
   Meta count
   -------------------------------------------------------------------------- */
.ejr-bo__meta { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 8px; }
.ejr-bo__count { font-size: 13px; font-weight: 600; color: var(--ejr-bo-muted); letter-spacing: .01em; }

/* --------------------------------------------------------------------------
   Table / rows
   -------------------------------------------------------------------------- */
.ejr-bo__table {
	background: var(--ejr-bo-surface);
	border: 1px solid var(--ejr-bo-line);
	border-radius: var(--ejr-bo-radius);
	overflow: hidden;
	box-shadow: var(--ejr-bo-shadow);
}

.ejr-bo__row-grid,
.ejr-bo__thead,
.ejr-bo__row {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) 130px 120px 230px;
	align-items: center;
	gap: 14px;
}

.ejr-bo__thead {
	padding: 12px 18px;
	background: var(--ejr-bo-surface-alt);
	border-bottom: 1px solid var(--ejr-bo-line);
}
.ejr-bo__th { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ejr-bo-muted); }
.ejr-bo__th--price, .ejr-bo__th--stock { text-align: left; }
.ejr-bo__th--action { text-align: right; }

.ejr-bo__row {
	padding: 12px 18px;
	border-bottom: 1px solid var(--ejr-bo-line);
	transition: background .12s;
}
.ejr-bo__row:last-child { border-bottom: 0; }
.ejr-bo__row:hover { background: var(--ejr-bo-surface-alt); }

.ejr-bo__cell--media { width: 64px; }
.ejr-bo__img {
	width: 56px;
	height: 56px;
	object-fit: contain;
	border-radius: var(--ejr-bo-radius-sm);
	background: var(--ejr-bo-surface-alt);
	border: 1px solid var(--ejr-bo-line);
}
.ejr-bo__cell--info { min-width: 0; }
.ejr-bo__name {
	display: block;
	font-weight: 600;
	color: var(--ejr-bo-ink);
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.ejr-bo__sku { display: block; margin-top: 2px; font-size: 12px; color: var(--ejr-bo-muted); }

.ejr-bo__cell--price { font-weight: 600; color: var(--ejr-bo-ink); }
.ejr-bo__cell--price del { color: var(--ejr-bo-muted); font-weight: 400; opacity: .7; }
.ejr-bo__cell--price ins { text-decoration: none; color: var(--ejr-bo-gold-text); }
.ejr-bo__cell--price .amount { white-space: nowrap; }

/* stock badge */
.ejr-bo__badge {
	display: inline-block;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 999px;
	white-space: nowrap;
}
.ejr-bo__badge--in { color: var(--ejr-bo-green); background: #eef7f0; }
.ejr-bo__badge--low { color: #9a6a12; background: #fdf4e6; }
.ejr-bo__badge--out { color: var(--ejr-bo-red); background: #fbeeec; }

/* action cell */
.ejr-bo__cell--action { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

/* qty stepper */
.ejr-bo__qty {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	height: 40px;
	background: var(--ejr-bo-surface);
	border: 1px solid var(--ejr-bo-line-strong);
	border-radius: 999px;
	overflow: hidden;
}
.ejr-bo__qty:focus-within { border-color: var(--ejr-bo-gold); box-shadow: 0 0 0 3px rgba(212, 161, 44, .15); }
.ejr-bo__step {
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	padding: 0 !important;
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	color: var(--ejr-bo-ink);
	background: transparent;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: color .12s, background .12s;
}
.ejr-bo__step:hover { color: var(--ejr-bo-gold-text); background: var(--ejr-bo-gold-tint); }
.ejr-bo__qty-input {
	flex: 0 0 50px;
	width: 50px !important;
	min-width: 50px;
	max-width: 50px;
	height: 38px !important;
	padding: 0 !important;
	text-align: center !important;
	font-size: 15px;
	font-weight: 600;
	color: var(--ejr-bo-ink);
	background: transparent !important;
	border: 0 !important;
	border-radius: 0;
	-moz-appearance: textfield;
	appearance: textfield;
}
.ejr-bo__qty-input::-webkit-outer-spin-button,
.ejr-bo__qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ejr-bo__qty-input:focus { outline: none; }
.ejr-bo__qty.has-qty { border-color: var(--ejr-bo-gold); }

/* add button */
.ejr-bo__add {
	height: 40px;
	padding: 0 20px;
	font-size: 14px;
	font-weight: 700;
	color: var(--ejr-bo-ink);
	background: var(--ejr-bo-gold);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	transition: transform .08s, box-shadow .15s, background .15s;
}
.ejr-bo__add:hover { background: var(--ejr-bo-gold-deep); color: #fff; box-shadow: 0 6px 16px rgba(212, 161, 44, .3); }
.ejr-bo__add:active { transform: translateY(1px); }
.ejr-bo__add.is-busy { opacity: .65; pointer-events: none; }
.ejr-bo__add.is-done { background: var(--ejr-bo-green); color: #fff; }

.ejr-bo__view {
	font-size: 13px;
	font-weight: 600;
	color: var(--ejr-bo-gold-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.ejr-bo__view:hover { color: var(--ejr-bo-ink); }

/* expand toggle */
.ejr-bo__expand {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ejr-bo-ink);
	background: var(--ejr-bo-surface);
	border: 1px solid var(--ejr-bo-line-strong);
	border-radius: 999px;
	cursor: pointer;
	transition: border-color .15s, color .15s;
}
.ejr-bo__expand:hover { border-color: var(--ejr-bo-gold); color: var(--ejr-bo-gold-text); }
.ejr-bo__chev { transition: transform .2s; }
.ejr-bo__row.is-open .ejr-bo__chev { transform: rotate(180deg); }
.ejr-bo__row.is-open .ejr-bo__expand { background: var(--ejr-bo-ink); border-color: var(--ejr-bo-ink); color: #fff; }

/* variations */
.ejr-bo__variations { grid-column: 1 / -1; }
.ejr-bo__variations-inner {
	margin-top: 6px;
	padding: 6px;
	background: var(--ejr-bo-surface-alt);
	border: 1px solid var(--ejr-bo-line);
	border-radius: var(--ejr-bo-radius-sm);
}
.ejr-bo__vgrid { display: flex; flex-direction: column; }
.ejr-bo__vrow {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 110px 110px 160px;
	align-items: center;
	gap: 12px;
	padding: 9px 12px;
	border-bottom: 1px solid var(--ejr-bo-line);
}
.ejr-bo__vrow:last-child { border-bottom: 0; }
.ejr-bo__vrow.is-disabled { opacity: .55; }
.ejr-bo__vlabel { font-weight: 600; color: var(--ejr-bo-ink); }
.ejr-bo__vprice { font-size: 14px; color: var(--ejr-bo-body); }
.ejr-bo__vstock { font-size: 12px; }
.ejr-bo__vrow .ejr-bo__qty { height: 36px; justify-self: end; }
.ejr-bo__vrow .ejr-bo__step { height: 34px; }
.ejr-bo__vrow .ejr-bo__qty-input { height: 34px; }
.ejr-bo__vunavail { justify-self: end; font-size: 12px; color: var(--ejr-bo-muted); }

.ejr-bo__vfooter { display: flex; justify-content: flex-end; padding: 12px 12px 6px; }
.ejr-bo__add--all { background: var(--ejr-bo-ink); color: #fff; }
.ejr-bo__add--all:hover { background: #000; color: #fff; }

.ejr-bo__empty {
	padding: 48px 20px;
	text-align: center;
	color: var(--ejr-bo-muted);
	background: var(--ejr-bo-surface);
	border: 1px dashed var(--ejr-bo-line-strong);
	border-radius: var(--ejr-bo-radius);
}

/* --------------------------------------------------------------------------
   Buttons (shared)
   -------------------------------------------------------------------------- */
.ejr-bo__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 0 22px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 999px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .08s, box-shadow .15s, background .15s, color .15s, border-color .15s;
}
.ejr-bo__btn:active { transform: translateY(1px); }
.ejr-bo__btn--primary { background: var(--ejr-bo-gold); color: var(--ejr-bo-ink); }
.ejr-bo__btn--primary:hover { background: var(--ejr-bo-gold-deep); color: #fff; box-shadow: 0 6px 16px rgba(212, 161, 44, .3); }
.ejr-bo__btn--ghost { background: var(--ejr-bo-surface); color: var(--ejr-bo-ink); border-color: var(--ejr-bo-line-strong); }
.ejr-bo__btn--ghost:hover { border-color: var(--ejr-bo-gold); color: var(--ejr-bo-gold-text); }
.ejr-bo__btn.is-busy { opacity: .65; pointer-events: none; }

/* --------------------------------------------------------------------------
   Keyboard focus visibility (scoped — never leaks into the theme)
   -------------------------------------------------------------------------- */
.ejr-bo button:focus-visible,
.ejr-bo a:focus-visible,
.ejr-bo select:focus-visible,
.ejr-bo input:focus-visible,
.ejr-bo textarea:focus-visible,
.ejr-bo-gate a:focus-visible,
.ejr-bo-gate button:focus-visible {
	outline: 2px solid var(--ejr-bo-gold-text);
	outline-offset: 2px;
}
.ejr-bo__step:focus-visible {
	outline: 2px solid var(--ejr-bo-gold-text);
	outline-offset: -2px;
	border-radius: 999px;
}

/* --------------------------------------------------------------------------
   Load more
   -------------------------------------------------------------------------- */
.ejr-bo__loadmore-wrap { display: flex; justify-content: center; padding: 20px 0 4px; }
.ejr-bo__loadmore {
	height: 46px;
	padding: 0 30px;
	font-size: 14px;
	font-weight: 700;
	color: var(--ejr-bo-ink);
	background: var(--ejr-bo-surface);
	border: 1px solid var(--ejr-bo-line-strong);
	border-radius: 999px;
	cursor: pointer;
	transition: border-color .15s, color .15s;
}
.ejr-bo__loadmore:hover { border-color: var(--ejr-bo-gold); color: var(--ejr-bo-gold-text); }
.ejr-bo__loadmore.is-busy { opacity: .6; pointer-events: none; }

/* --------------------------------------------------------------------------
   Sticky cart bar
   -------------------------------------------------------------------------- */
.ejr-bo__bar {
	position: sticky;
	bottom: 14px;
	z-index: 30;
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 18px;
	padding: 12px 16px;
	background: var(--ejr-bo-ink);
	color: #fff;
	border-radius: 999px;
	box-shadow: var(--ejr-bo-shadow-lg);
	animation: ejr-bo-rise .25s ease;
}
@keyframes ejr-bo-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.ejr-bo__addall {
	height: 44px;
	padding: 0 24px;
	font-size: 14px;
	font-weight: 700;
	color: var(--ejr-bo-ink);
	background: var(--ejr-bo-gold);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background .15s, box-shadow .15s;
}
.ejr-bo__addall:hover { background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.ejr-bo__addall.is-busy { opacity: .6; pointer-events: none; }
.ejr-bo__addall:disabled { opacity: .4; pointer-events: none; }

.ejr-bo__bar-cart { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.ejr-bo__bar-count { font-weight: 700; }
.ejr-bo__bar-sep { opacity: .4; }
.ejr-bo__bar-subtotal { font-weight: 700; color: var(--ejr-bo-gold); }
.ejr-bo__bar-subtotal .amount { color: var(--ejr-bo-gold); }
.ejr-bo__bar-actions { display: flex; gap: 10px; margin-left: auto; }
.ejr-bo__bar .ejr-bo__btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.ejr-bo__bar .ejr-bo__btn--ghost:hover { border-color: #fff; color: #fff; }

/* --------------------------------------------------------------------------
   Toasts
   -------------------------------------------------------------------------- */
.ejr-bo__toasts {
	position: fixed;
	right: 18px;
	bottom: 84px; /* clear the sticky cart bar on desktop */
	z-index: 99999;
	display: flex;
	flex-direction: column;
	gap: 10px;
	pointer-events: none;
}
.ejr-bo__toast {
	min-width: 220px;
	max-width: 340px;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: var(--ejr-bo-ink);
	border-radius: 12px;
	box-shadow: var(--ejr-bo-shadow-lg);
	border-left: 3px solid var(--ejr-bo-gold);
	animation: ejr-bo-toast-in .22s ease;
}
.ejr-bo__toast--success { border-left-color: var(--ejr-bo-green); }
.ejr-bo__toast--error { border-left-color: var(--ejr-bo-red); }
.ejr-bo__toast.is-out { animation: ejr-bo-toast-out .25s ease forwards; }
@keyframes ejr-bo-toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes ejr-bo-toast-out { to { opacity: 0; transform: translateX(20px); } }

/* --------------------------------------------------------------------------
   Loading / skeleton
   -------------------------------------------------------------------------- */
.ejr-bo__rows.is-loading { position: relative; min-height: 120px; opacity: .5; pointer-events: none; }
.ejr-bo__skeleton {
	height: 80px;
	margin: 0;
	border-bottom: 1px solid var(--ejr-bo-line);
	background: linear-gradient(90deg, var(--ejr-bo-surface-alt) 25%, #f2efe9 37%, var(--ejr-bo-surface-alt) 63%);
	background-size: 400% 100%;
	animation: ejr-bo-shimmer 1.3s ease-in-out infinite;
}
@keyframes ejr-bo-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* --------------------------------------------------------------------------
   Gate card
   -------------------------------------------------------------------------- */
.ejr-bo-gate { display: flex; justify-content: center; padding: 28px 0; }
.ejr-bo-gate__card {
	position: relative;
	max-width: 540px;
	width: 100%;
	padding: 40px 36px 36px;
	text-align: center;
	background: var(--ejr-bo-surface);
	border: 1px solid var(--ejr-bo-line);
	border-radius: 20px;
	box-shadow: var(--ejr-bo-shadow-lg);
	overflow: hidden;
}
.ejr-bo-gate__card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: linear-gradient(90deg, var(--ejr-bo-gold), #f0d27a, var(--ejr-bo-gold));
}
.ejr-bo-gate__badge {
	display: inline-block;
	margin-bottom: 18px;
	padding: 5px 14px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ejr-bo-gold-text);
	background: var(--ejr-bo-gold-tint);
	border-radius: 999px;
}
.ejr-bo-gate__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	margin: 0 auto 18px;
	color: var(--ejr-bo-gold-text);
	background: var(--ejr-bo-gold-tint);
	border-radius: 50%;
}
.ejr-bo-gate__title { margin: 0 0 10px; font-size: 24px; font-weight: 800; color: var(--ejr-bo-ink); }
.ejr-bo-gate__text { margin: 0 auto 22px; max-width: 420px; font-size: 15px; color: var(--ejr-bo-body); }
.ejr-bo-gate__perks {
	display: inline-flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 auto 26px;
	padding: 0;
	text-align: left;
	list-style: none;
}
.ejr-bo-gate__perks li {
	position: relative;
	padding-left: 28px;
	font-size: 14px;
	color: var(--ejr-bo-ink);
}
.ejr-bo-gate__perks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--ejr-bo-gold-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12l5 5 9-10' stroke='%23b8861a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}
.ejr-bo-gate__actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ejr-bo-gate__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 280px;
	height: 52px;
	padding: 0 30px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	color: var(--ejr-bo-ink);
	background: var(--ejr-bo-gold);
	border-radius: 999px;
	transition: transform .08s, box-shadow .18s, background .18s, color .18s;
}
.ejr-bo-gate__cta:hover { background: var(--ejr-bo-gold-deep); color: #fff; box-shadow: 0 10px 26px rgba(212, 161, 44, .35); }
.ejr-bo-gate__cta:active { transform: translateY(1px); }
.ejr-bo-gate__link { font-size: 14px; font-weight: 600; color: var(--ejr-bo-body); text-decoration: none; }
.ejr-bo-gate__link:hover { color: var(--ejr-bo-gold-text); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
	.ejr-bo__thead { display: none; }

	.ejr-bo__row {
		grid-template-columns: 56px 1fr auto;
		grid-template-areas:
			"media info  info"
			"media price stock"
			"action action action";
		gap: 6px 12px;
		padding: 14px;
	}
	.ejr-bo__cell--media { grid-area: media; align-self: start; }
	.ejr-bo__cell--info { grid-area: info; }
	.ejr-bo__cell--price { grid-area: price; align-self: center; font-size: 15px; }
	.ejr-bo__cell--stock { grid-area: stock; justify-self: end; align-self: center; }
	.ejr-bo__cell--action { grid-area: action; justify-content: stretch; margin-top: 6px; }
	.ejr-bo__cell--action .ejr-bo__qty { flex: 0 0 auto; }
	.ejr-bo__add, .ejr-bo__expand { flex: 1; justify-content: center; }

	.ejr-bo__vrow {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"label price"
			"stock qty";
		gap: 6px 12px;
	}
	.ejr-bo__vlabel { grid-area: label; }
	.ejr-bo__vprice { grid-area: price; justify-self: end; }
	.ejr-bo__vstock { grid-area: stock; align-self: center; }
	.ejr-bo__vrow .ejr-bo__qty, .ejr-bo__vunavail { grid-area: qty; justify-self: end; }

	.ejr-bo__head { position: static; }
	.ejr-bo__tools { margin-left: 0; width: 100%; }
	.ejr-bo__tool { flex: 1; }
	.ejr-bo__filters { width: 100%; }
	.ejr-bo__filter { flex: 1; max-width: none; }

	.ejr-bo__bar {
		flex-wrap: wrap;
		border-radius: 18px;
		bottom: 8px;
	}
	.ejr-bo__bar-actions { width: 100%; margin-left: 0; }
	.ejr-bo__bar-actions .ejr-bo__btn { flex: 1; }
	.ejr-bo__addall { width: 100%; }

	.ejr-bo__toasts { left: 12px; right: 12px; bottom: 90px; }
	.ejr-bo__toast { max-width: none; }

	.ejr-bo-gate__card { padding: 32px 22px; }
	.ejr-bo-gate__cta { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.ejr-bo *, .ejr-bo-gate * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
