/**
 * editd School Lists — Module C, [edsl_pack] (Build Your Own School
 * Stationery Pack). Uses tokens from edsl-tokens.css and prints after
 * edsl-public.css (which supplies the shared modal and search-list styles).
 *
 * Every selector is prefixed edsl-pack. The pack root is .edsl-root, not
 * .edsl-app, so the generic button reset in edsl-public.css does not reach
 * it — the pack's buttons are covered by the doubled-class block at the end
 * of this file instead. The modals are moved to <body> by edsl-modal.js, so
 * nothing they need is scoped under .edsl-pack.
 *
 * Stacking (low to high): page content < the fixed bottom bar (30) < the hero
 * (35), whose search dropdown (40, inside the hero) therefore covers the step
 * bar, the cards and the bar < the theme's own sticky header (it ships a
 * higher z-index and is forced back to auto while a modal is open) < modals
 * (2147483000).
 */

.edsl-pack {
	--edsl-pack-beige: #F3EBDD;
	--edsl-pack-sage: #E6EDE9;
	--edsl-pack-gold-dark: #9E7232;
}

/* An element's own `display` (grid, flex) beats the browser's [hidden] rule;
   this makes the hidden attribute win again inside the pack. */
.edsl-pack [hidden],
.edsl-pack-modal [hidden] {
	display: none !important;
}

/* Elementor-safe: no child may force the page wider than its column. */
.edsl-pack {
	min-width: 0;
	overflow-x: clip;
	box-sizing: border-box;
	font-family: var(--edsl-font-body);
	color: var(--edsl-text);
}
.edsl-pack *,
.edsl-pack *::before,
.edsl-pack *::after,
.edsl-pack-modal *,
.edsl-pack-modal *::before,
.edsl-pack-modal *::after {
	box-sizing: border-box;
}

.edsl-pack__admin-note {
	margin: 0 0 var(--edsl-space-4);
	padding: var(--edsl-space-2) var(--edsl-space-3);
	font-size: 13px;
	background: var(--edsl-surface-3);
	border-left: 3px solid var(--edsl-gold);
	border-radius: var(--edsl-radius-sm);
}

.edsl-pack__empty {
	color: var(--edsl-text-muted);
	font-size: 14px;
}

/* Screen-reader-only live region for total announcements. */
.edsl-pack__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.edsl-pack-btn,
.edsl-pack-primary {
	font-family: var(--edsl-font-body);
	cursor: pointer;
}

/* ==================== Hero ==================== */

.edsl-pack-hero {
	position: relative;
	z-index: 35;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	width: 100%;
	background: var(--edsl-surface-3);
}
.edsl-pack-hero__text {
	min-width: 0;
	padding: clamp(24px, 4vw, 48px);
}
.edsl-pack-hero__title {
	display: flex;
	flex-direction: column;
	margin: 0 0 var(--edsl-space-4);
	padding: 0;
	font-family: var(--edsl-font-display);
	font-size: clamp(32px, 4.2vw, 52px);
	font-weight: 600;
	line-height: 1.08;
	text-transform: none;
}
.edsl-pack-hero__line1 {
	color: #1C3630;
}
.edsl-pack-hero__line2 {
	color: #B6863E;
}
.edsl-pack-hero__intro {
	max-width: 56ch;
	margin: 0 0 var(--edsl-space-6);
	font-family: var(--edsl-font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--edsl-text-body);
}

.edsl-pack-hero__search {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--edsl-space-2) var(--edsl-space-4);
}
.edsl-pack-hero__searchlabel {
	margin: 0;
	font-family: var(--edsl-font-body);
	font-size: 15px;
	font-weight: 600;
	color: var(--edsl-green);
}
.edsl-pack-hero__searchwrap {
	position: relative;
	flex: 1 1 260px;
	max-width: 440px;
	min-width: 0;
}
.edsl-pack-search {
	display: block;
	width: 100%;
	margin: 0;
	padding: 12px 44px 12px 14px;
	border: 1px solid var(--edsl-border-2);
	border-radius: var(--edsl-radius-sm);
	background: var(--edsl-surface);
	color: var(--edsl-text);
	font-family: var(--edsl-font-body);
	font-size: 14px;
	line-height: 1.3;
}
.edsl-pack-hero__searchicon {
	position: absolute;
	top: 50%;
	right: 14px;
	display: flex;
	width: 18px;
	height: 18px;
	color: var(--edsl-green);
	transform: translateY(-50%);
	pointer-events: none;
}
.edsl-pack-hero__searchicon svg {
	width: 18px;
	height: 18px;
}
.edsl-pack-hero__added {
	flex: 1 0 100%;
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--edsl-green);
}

/* The results float over the step bar and the cards (hero z-index above), under any modal. */
.edsl-pack-search-results {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 40;
	max-height: min(60vh, 360px);
	overflow-y: auto;
	padding: 0 var(--edsl-space-3);
	border: 1px solid var(--edsl-border);
	border-radius: var(--edsl-radius);
	background: var(--edsl-surface);
	box-shadow: 0 8px 24px rgba(28, 54, 48, 0.16);
}
.edsl-pack-search-results:empty {
	display: none;
}
.edsl-pack-search-results .edsl-search-list__name {
	min-width: 0;
	font-size: 14px;
}
.edsl-pack-search-results .edsl-search-noresults {
	margin: var(--edsl-space-3) 0;
}
.edsl-pack-search-add {
	padding: 8px 14px;
	border: 1px solid var(--edsl-green);
	border-radius: var(--edsl-radius-sm);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1.2;
}

@media (min-width: 768px) {
	.edsl-pack-hero.has-image {
		grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
	}
	.edsl-pack-hero__media {
		position: relative;
		min-height: 280px;
		overflow: hidden;
	}
	.edsl-pack-hero__img {
		position: absolute;
		inset: 0;
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: right bottom;
	}
}
/* Below 768px the image would push the heading and the search down the screen, so it is not shown (and, being lazy-loaded, not downloaded). */
@media (max-width: 767px) {
	.edsl-pack-hero__media {
		display: none;
	}
}

/* ==================== Step indicator ==================== */

.edsl-pack-steps {
	padding: var(--edsl-space-5) var(--edsl-space-4);
}
.edsl-pack-steps__list {
	display: flex;
	align-items: center;
	gap: var(--edsl-space-3);
	max-width: 960px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}
.edsl-pack-step {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: var(--edsl-space-3);
	margin: 0;
	padding: 0;
}
.edsl-pack-step__icon {
	display: flex;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	color: var(--edsl-green);
}
.edsl-pack-step__icon svg {
	width: 32px;
	height: 32px;
}
.edsl-pack-step__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.edsl-pack-step__title {
	font-family: var(--edsl-font-body);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--edsl-green);
}
.edsl-pack-step__sub {
	font-size: 12px;
	line-height: 1.3;
	color: var(--edsl-text-soft);
}
.edsl-pack-step.is-active .edsl-pack-step__title {
	color: #B6863E;
}
.edsl-pack-step.is-active .edsl-pack-step__icon,
.edsl-pack-step.is-complete .edsl-pack-step__icon {
	color: #B6863E;
}
.edsl-pack-steps__line {
	flex: 1 1 24px;
	min-width: 16px;
	height: 1px;
	margin: 0;
	padding: 0;
	background: #B6863E;
	list-style: none;
}

@media (max-width: 767px) {
	.edsl-pack-steps {
		padding: var(--edsl-space-3) var(--edsl-space-3);
	}
	.edsl-pack-steps__list {
		gap: var(--edsl-space-2);
	}
	.edsl-pack-step {
		gap: 6px;
	}
	.edsl-pack-step__icon,
	.edsl-pack-step__icon svg {
		width: 22px;
		height: 22px;
	}
	.edsl-pack-step__title {
		font-size: 11px;
	}
	.edsl-pack-step__sub {
		display: none;
	}
	.edsl-pack-steps__line {
		min-width: 8px;
	}
}

/* ==================== Layout ==================== */

.edsl-pack__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--edsl-space-6);
	align-items: start;
	padding: 0 var(--edsl-space-4);
}
.edsl-pack__main,
.edsl-pack__summary {
	min-width: 0;
}

/* The categories live in a white panel. */
.edsl-pack__main {
	padding: var(--edsl-space-4);
	border: 1px solid var(--edsl-border);
	border-radius: var(--edsl-radius-lg);
	background: var(--edsl-surface);
}

/* Desktop (>= 1024px): panel left (~70%), sticky Product Summary right (~30%).
 *
 * The sticky `top` has to clear the theme's sticky header, whose height this
 * stylesheet cannot know. It reads --edsl-pack-header-offset: edsl-pack.js
 * measures the actual fixed/sticky header (and the admin bar) and keeps the
 * variable current. 96px is only the fallback for before/without JS — roughly
 * Astra's default primary header at desktop width — and a site whose header
 * differs can set --edsl-pack-header-offset on :root from Additional CSS. */
@media (min-width: 1024px) {
	.edsl-pack__body {
		grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr);
		gap: var(--edsl-space-8);
	}
	.edsl-pack__main {
		padding: var(--edsl-space-8);
	}
	.edsl-pack__summary {
		position: sticky;
		top: calc(var(--edsl-pack-header-offset, 96px) + var(--edsl-space-4));
	}
	/* Taller than the window: the item list scrolls, the totals and buttons stay put. */
	.edsl-pack__summary .edsl-pack-summary {
		max-height: calc(100vh - var(--edsl-pack-header-offset, 96px) - var(--edsl-space-8));
		overflow-y: auto;
		overscroll-behavior: contain;
	}
}

/* Tablet (768-1023px): the summary sits below the panel and the fixed bar also
 * shows. Mobile (< 768px): the summary is not shown; the bar's "View pack"
 * opens the Review modal instead. */
@media (max-width: 767px) {
	.edsl-pack__summary {
		display: none;
	}
	.edsl-pack__body {
		padding: 0 var(--edsl-space-3);
	}
}

/* ==================== "We restored your saved pack" ==================== */

.edsl-pack-notice {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--edsl-space-3);
	margin: 0 0 var(--edsl-space-6);
	padding: var(--edsl-space-3) var(--edsl-space-4);
	border-left: 3px solid var(--edsl-gold);
	border-radius: var(--edsl-radius-sm);
	background: var(--edsl-surface-3);
	font-size: 14px;
	line-height: 1.5;
}
.edsl-pack-notice__text {
	margin: 0;
}
.edsl-pack-notice__dismiss {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
}
.edsl-pack-notice__dismiss svg {
	width: 16px;
	height: 16px;
}

/* ==================== Category ==================== */

.edsl-pack-cat {
	margin: 0 0 var(--edsl-space-8);
}
.edsl-pack-cat__title {
	margin: 0 0 var(--edsl-space-4);
	padding: 0 0 var(--edsl-space-2);
	border-bottom: 1px solid #B6863E;
	font-family: var(--edsl-font-display);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--edsl-green);
	scroll-margin-top: calc(var(--edsl-pack-header-offset, 96px) + var(--edsl-space-6));
}
.edsl-pack-cat__title:focus {
	outline: none; /* focus is moved here by script after "Show Remaining Categories"; it is not a control */
}
.edsl-pack-cat__notice {
	margin: 0 0 var(--edsl-space-3);
	padding: var(--edsl-space-2) var(--edsl-space-3);
	border-radius: var(--edsl-radius-sm);
	background: var(--edsl-pack-beige);
	font-size: 13px;
	font-weight: 600;
	color: var(--edsl-green);
}

.edsl-pack-cat__tiers {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--edsl-space-4);
	align-items: stretch;
}
/* A tier keeps its own column even when a neighbour is not shown, so Best
   Value is always the middle option. */
.edsl-pack-tier--budget {
	grid-column: 1;
}
.edsl-pack-tier--value {
	grid-column: 2;
}
.edsl-pack-tier--premium {
	grid-column: 3;
}

/* ---- Show Remaining Categories ---- */

.edsl-pack-more__bar {
	display: flex;
	justify-content: center;
	margin: 0 0 var(--edsl-space-8);
}
.edsl-pack-more__btn {
	display: inline-flex;
	align-items: center;
	gap: var(--edsl-space-2);
	padding: 12px 24px;
	border: 1px solid var(--edsl-green);
	border-radius: var(--edsl-radius-sm);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.03em;
	line-height: 1.2;
}
.edsl-pack-more__btn svg {
	width: 16px;
	height: 16px;
}

/* ---- Info strip ---- */

.edsl-pack-infostrip {
	display: flex;
	align-items: center;
	gap: var(--edsl-space-4);
	margin: var(--edsl-space-4) 0 0;
	padding: var(--edsl-space-4) var(--edsl-space-5);
	border: 1px solid var(--edsl-border);
	border-radius: var(--edsl-radius);
	background: var(--edsl-surface-warm);
}
.edsl-pack-infostrip__icon {
	display: flex;
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	color: var(--edsl-green);
}
.edsl-pack-infostrip__icon svg {
	width: 30px;
	height: 30px;
}
.edsl-pack-infostrip__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--edsl-text-body);
}
.edsl-pack-infostrip__text strong {
	font-weight: 700;
	color: var(--edsl-green);
}

/* ==================== Tier card ==================== */

.edsl-pack-tier {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--edsl-border);
	border-radius: var(--edsl-radius);
	background: var(--edsl-surface);
	/* When the script scrolls a card into view it must clear a sticky header. */
	scroll-margin-top: calc(var(--edsl-pack-header-offset, 96px) + var(--edsl-space-6));
}

/* In the pack: a 2px gold border (1px border + 1px inset outline, so nothing shifts). */
.edsl-pack-tier.is-selected {
	border-color: #B6863E;
	outline: 1px solid #B6863E;
	outline-offset: -1px;
}

.edsl-pack-tier.is-disabled .edsl-pack-tier__body {
	opacity: 0.55;
}

.edsl-pack-tier__band {
	padding: 8px 12px;
	background: var(--edsl-pack-beige);
	color: #B6863E;
	font-family: var(--edsl-font-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
}
.edsl-pack-tier__band--value {
	background: var(--edsl-pack-sage);
	color: var(--edsl-green);
}

.edsl-pack-tier__body {
	display: grid;
	flex: 1 1 auto;
	grid-template-columns: 80px minmax(0, 1fr);
	gap: var(--edsl-space-3);
	align-items: start;
	padding: var(--edsl-space-3);
}

.edsl-pack-tier__media {
	display: block;
	width: 80px;
	height: 80px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: var(--edsl-radius-sm);
	background: var(--edsl-surface-2);
	line-height: 0;
}
.edsl-pack-tier__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.edsl-pack-tier__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	min-width: 0;
}
.edsl-pack-tier__name {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	text-align: left;
	overflow-wrap: anywhere;
}

.edsl-pack-tier__desc {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	margin: 0;
	overflow: hidden;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--edsl-text-muted);
}

.edsl-pack-tier__price {
	font-family: var(--edsl-font-body);
	font-size: 14px;
	font-weight: 600;
	color: #B6863E;
}
.edsl-pack-tier__price del {
	font-weight: 400;
	color: var(--edsl-text-soft);
}
.edsl-pack-tier__price ins {
	text-decoration: none;
}

/* ---- Variable products: option selects (always shown) ---- */

.edsl-pack-tier__options {
	display: flex;
	flex-direction: column;
	gap: var(--edsl-space-2);
	align-self: stretch;
	padding: var(--edsl-space-2);
	border: 1px dashed transparent;
	border-radius: var(--edsl-radius-sm);
}
.edsl-pack-tier__options.is-incomplete {
	border-color: #B6863E;
	background: rgba(182, 134, 62, 0.08);
}
.edsl-pack-opt {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.edsl-pack-opt__label {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--edsl-text-muted);
}
.edsl-pack-opt__select {
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 8px 10px;
	border: 1px solid var(--edsl-border-2);
	border-radius: var(--edsl-radius-sm);
	background: var(--edsl-surface);
	color: var(--edsl-text);
	font-family: var(--edsl-font-body);
	font-size: 13px;
}
.edsl-pack-tier__incomplete {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--edsl-green-deep);
}

/* ---- Footer: quantity stepper + Add ---- */

.edsl-pack-tier__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--edsl-space-2) var(--edsl-space-3);
	padding: var(--edsl-space-3);
	border-top: 1px solid var(--edsl-border);
}
.edsl-pack-tier__actions {
	display: flex;
	align-items: center;
	gap: var(--edsl-space-3);
	margin-left: auto;
}
.edsl-pack-tier__oos {
	margin-left: auto;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(140, 47, 47, 0.1);
	color: var(--edsl-error);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.edsl-pack-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 18px;
	border: 1px solid #B6863E;
	border-radius: var(--edsl-radius-sm);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.2;
	text-transform: uppercase;
	transition: background-color 0.15s ease;
}
.edsl-pack-add.is-added {
	cursor: default;
}
.edsl-pack-add__icon,
.edsl-pack-add__icon svg {
	display: flex;
	width: 14px;
	height: 14px;
}

.edsl-pack-qty {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.edsl-pack-qty__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--edsl-green);
	border-radius: var(--edsl-radius-sm);
	line-height: 1;
}
.edsl-pack-qty__btn svg {
	width: 14px;
	height: 14px;
}
.edsl-pack-qty__input {
	width: 48px;
	height: 32px;
	margin: 0;
	padding: 0 4px;
	border: 1px solid var(--edsl-border-2);
	border-radius: var(--edsl-radius-sm);
	background: var(--edsl-surface);
	color: var(--edsl-text);
	font-family: var(--edsl-font-body);
	font-size: 14px;
	text-align: center;
	-moz-appearance: textfield;
}
.edsl-pack-qty__input::-webkit-outer-spin-button,
.edsl-pack-qty__input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.edsl-pack-linkbtn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	border-radius: 0;
	font-size: 12px;
	font-weight: 600;
	text-decoration: underline;
	line-height: 1.4;
}
.edsl-pack-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* ==================== Product Summary (sidebar) ==================== */

.edsl-pack-summary {
	display: flex;
	flex-direction: column;
	gap: var(--edsl-space-2);
	padding: var(--edsl-space-6);
	border: 1px solid var(--edsl-border);
	border-radius: var(--edsl-radius-lg);
	background: var(--edsl-surface);
	box-shadow: var(--edsl-shadow-card);
	font-family: var(--edsl-font-body);
	color: var(--edsl-text);
}
.edsl-pack-summary__title {
	margin: 0 0 var(--edsl-space-2);
	padding: 0 0 var(--edsl-space-3);
	border-bottom: 1px solid var(--edsl-border);
	font-family: var(--edsl-font-display);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--edsl-green);
}
.edsl-pack-summary__count {
	margin: 0;
	font-size: 13px;
	color: var(--edsl-text-muted);
}
.edsl-pack-summary__total {
	margin: 0;
	font-family: var(--edsl-font-body);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--edsl-green);
}
.edsl-pack-summary__vat {
	margin: 0 0 var(--edsl-space-2);
	font-size: 12px;
	color: var(--edsl-text-soft);
}
.edsl-pack-summary__savemsg {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--edsl-error);
}
.edsl-pack-summary__empty {
	margin: 0;
	font-size: 14px;
	color: var(--edsl-text-muted);
}
.edsl-pack-summary__list {
	margin-top: var(--edsl-space-3);
	border-top: 1px solid var(--edsl-border);
}
.edsl-pack-summary__full {
	align-self: flex-start;
	margin-top: var(--edsl-space-2);
	font-size: 13px;
	text-decoration: none;
}
.edsl-pack-summary__full svg {
	width: 16px;
	height: 16px;
}

.edsl-pack-addall {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--edsl-space-2);
	width: 100%;
	margin-top: var(--edsl-space-2);
	padding: 15px 24px;
	border: 1px solid #B6863E;
	border-radius: var(--edsl-radius-sm);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	transition: opacity 0.15s ease;
}
.edsl-pack-addall svg {
	width: 18px;
	height: 18px;
}
.edsl-pack-addall[disabled],
.edsl-pack-add[disabled] {
	cursor: not-allowed;
}

.edsl-pack-save {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--edsl-space-2);
	width: 100%;
	padding: 13px 24px;
	border: 1px solid var(--edsl-green);
	border-radius: var(--edsl-radius-sm);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.03em;
	line-height: 1.2;
}
.edsl-pack-save svg {
	width: 18px;
	height: 18px;
}
.edsl-pack-save.is-saved svg {
	fill: currentColor;
}
.edsl-pack-save[disabled] {
	cursor: not-allowed;
}

.edsl-pack-summary__feedback {
	padding: 10px 12px;
	border-left: 3px solid var(--edsl-gold);
	border-radius: var(--edsl-radius-sm);
	background: var(--edsl-surface-3);
	font-size: 13px;
	line-height: 1.45;
	color: var(--edsl-text);
}
.edsl-pack-summary__feedback.is-error {
	border-left-color: var(--edsl-error);
}
.edsl-pack-summary__feedbacklist {
	margin: var(--edsl-space-2) 0 0;
	padding-left: 1.2em;
}
.edsl-pack-summary__cartlink {
	font-weight: 700;
	color: var(--edsl-green);
}

/* ---- Sidebar item rows ---- */

.edsl-pack-sline {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr) auto auto;
	align-items: start;
	gap: var(--edsl-space-2);
	margin: 0;
	padding: var(--edsl-space-3) 0;
	border-bottom: 1px solid var(--edsl-border);
	list-style: none;
}
.edsl-pack-sline.has-error {
	background: rgba(140, 47, 47, 0.05);
}
.edsl-pack-sline.is-more {
	display: block;
	border-bottom: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--edsl-text-muted);
}
.edsl-pack-sline__total {
	font-size: 13px;
	font-weight: 600;
	color: #B6863E;
	white-space: nowrap;
}
.edsl-pack-sline__qty {
	font-size: 12px;
	color: var(--edsl-text-muted);
}
.edsl-pack-summary__lines {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ---- Lines (sidebar and Review modal share these parts) ---- */

.edsl-pack-line__thumb {
	display: block;
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: var(--edsl-radius-sm);
	background: var(--edsl-surface-2);
}
.edsl-pack-line__main {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.edsl-pack-line__name {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	overflow-wrap: anywhere;
}
.edsl-pack-line__variant {
	font-size: 12px;
	color: var(--edsl-text-body);
}
.edsl-pack-line__tier {
	align-self: flex-start;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--edsl-surface-3);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--edsl-text-muted);
}
.edsl-pack-line__note {
	font-size: 12px;
	font-weight: 600;
	color: var(--edsl-green-deep);
}
.edsl-pack-line__error {
	font-size: 12px;
	font-weight: 600;
	color: var(--edsl-error);
}
.edsl-pack-line-remove {
	justify-content: center;
	padding: 6px;
	border: 0;
	border-radius: var(--edsl-radius-sm);
}
.edsl-pack-line-remove svg {
	width: 16px;
	height: 16px;
}

/* ==================== Review modal ==================== */

.edsl-pack-review-modal .edsl-modal__dialog {
	max-width: 680px;
}
.edsl-pack-summary__group {
	margin: 0;
}
.edsl-pack-summary__grouptitle {
	margin: var(--edsl-space-4) 0 var(--edsl-space-1);
	font-family: var(--edsl-font-body);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--edsl-green-deep);
}
.edsl-pack-summary__group:first-child .edsl-pack-summary__grouptitle {
	margin-top: 0;
}

.edsl-pack-line {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	grid-template-areas:
		"thumb main remove"
		"thumb qty total";
	align-items: center;
	gap: 6px var(--edsl-space-3);
	margin: 0;
	padding: var(--edsl-space-3) 0;
	border-bottom: 1px solid var(--edsl-border);
	list-style: none;
}
.edsl-pack-line.has-error {
	background: rgba(140, 47, 47, 0.05);
}
.edsl-pack-line .edsl-pack-line__thumb {
	grid-area: thumb;
	align-self: start;
	width: 48px;
	height: 48px;
}
.edsl-pack-line .edsl-pack-line__main {
	grid-area: main;
}
.edsl-pack-line .edsl-pack-qty {
	grid-area: qty;
}
.edsl-pack-line__total {
	grid-area: total;
	justify-self: end;
	font-size: 13px;
	font-weight: 600;
	color: #B6863E;
	white-space: nowrap;
}
.edsl-pack-line .edsl-pack-line-remove {
	grid-area: remove;
	align-self: start;
	justify-self: end;
}

.edsl-pack-review__footer {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	gap: var(--edsl-space-2);
	padding: var(--edsl-space-4) var(--edsl-space-6) var(--edsl-space-6);
	border-top: 1px solid var(--edsl-border);
	background: var(--edsl-surface);
}
.edsl-pack-review__totalrow {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--edsl-space-3);
	margin: 0;
}

/* ==================== Quick-view modal ==================== */

.edsl-pack-info {
	display: flex;
	flex-direction: column;
	gap: var(--edsl-space-4);
	font-family: var(--edsl-font-body);
}
.edsl-pack-info__media {
	align-self: center;
	width: 100%;
	max-width: 360px;
	overflow: hidden;
	border-radius: var(--edsl-radius);
	background: var(--edsl-surface-2);
}
.edsl-pack-info__img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}
.edsl-pack-info__price {
	font-size: 18px;
	font-weight: 600;
	color: #B6863E;
}
.edsl-pack-info__desc {
	font-size: 14px;
	line-height: 1.6;
	color: var(--edsl-text-body);
}
.edsl-pack-info__desc > :first-child {
	margin-top: 0;
}
.edsl-pack-info__desc > :last-child {
	margin-bottom: 0;
}

/* ==================== Fixed bottom bar (below 1024px) ====================
 *
 * Hidden until edsl-pack.js reveals it (and adds .edsl-pack--has-bar). The
 * root's bottom padding while the bar shows is the bar's own minimum height
 * plus the device's safe-area inset plus a little air, so the last content is
 * never covered. */

.edsl-pack__bar {
	display: none;
}
@media (max-width: 1023px) {
	.edsl-pack__bar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 30;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--edsl-space-3);
		min-height: var(--edsl-pack-bar-height, 72px);
		padding: var(--edsl-space-3) var(--edsl-space-4);
		padding-bottom: calc(var(--edsl-space-3) + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid var(--edsl-border);
		background: var(--edsl-surface);
		box-shadow: 0 -2px 10px rgba(28, 54, 48, 0.08);
	}
	.edsl-pack--has-bar {
		padding-bottom: calc(var(--edsl-pack-bar-height, 72px) + env(safe-area-inset-bottom, 0px) + var(--edsl-space-4));
	}
}
.edsl-pack__bar-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	font-size: 13px;
	color: var(--edsl-text-muted);
}
.edsl-pack__bar-total {
	display: inline-block;
	transform-origin: left center;
	font-family: var(--edsl-font-body);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--edsl-green);
}
.edsl-pack__bar-total.is-pulse {
	animation: edsl-pack-pulse 0.6s ease;
}
@keyframes edsl-pack-pulse {
	0% { transform: scale(1); }
	40% { transform: scale(1.18); color: #B6863E; }
	100% { transform: scale(1); }
}
.edsl-pack-viewbtn {
	flex: 0 0 auto;
	padding: 12px 20px;
	border: 1px solid var(--edsl-green);
	border-radius: var(--edsl-radius-sm);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1.2;
}

/* ==================== Mobile (< 768px) ==================== */

@media (max-width: 767px) {
	.edsl-pack__main {
		padding: var(--edsl-space-3);
	}
	.edsl-pack-cat__tiers {
		grid-template-columns: minmax(0, 1fr);
	}
	.edsl-pack-tier--budget,
	.edsl-pack-tier--value,
	.edsl-pack-tier--premium {
		grid-column: auto;
	}
	.edsl-pack-cat__title {
		font-size: 22px;
	}
	.edsl-pack-hero__searchwrap {
		flex-basis: 100%;
		max-width: none;
	}
	.edsl-pack-review__footer {
		padding: var(--edsl-space-4);
	}
	.edsl-pack-infostrip {
		padding: var(--edsl-space-3) var(--edsl-space-4);
	}
}

/* Respect a reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
	.edsl-pack-add,
	.edsl-pack-addall {
		transition: none;
	}
	.edsl-pack__bar-total.is-pulse {
		animation: none;
	}
}

/* ==================== Theme-proof button, focus and hover overrides ====================
 *
 * Astra, Elementor's Kit and WooCommerce all paint a dark-green background on
 * button:hover (some !important). Doubled-class selectors behind `html body`
 * (the same pattern as .edsl-modal__close in edsl-public.css) out-rank them.
 *
 *  - Primary buttons ("Add" on a card, "Add All Items to Cart") are solid gold
 *    #B6863E with white text in every state; hover only darkens the fill.
 *  - Outline buttons ("Save Pack for Later", "Show Remaining Categories",
 *    "View pack", a search result's "Add") are transparent with a 1px green
 *    border and green text in every state; hover/focus change text, border and
 *    icon to gold and nothing else.
 *  - Icon buttons (quantity steppers, trash, quick-view image, dismiss) and
 *    text buttons (Remove, Clear, View Full Summary, a card's name) are
 *    transparent in every state; hover/focus change the colour to gold.
 *  - Every interactive element gets a 2px gold focus-visible outline.
 *
 * Printed a second time, verbatim, with wp_add_inline_style( 'edsl-pack' ) by
 * edsl_get_pack_hover_override_inline_css() in includes/module-c/shortcode.php,
 * as a guard against a minify/combine plugin reordering the files. The two are
 * identical; change both. */
/* BEGIN edsl-pack hover overrides */
html body .edsl-pack-btn.edsl-pack-btn,
html body .edsl-pack-btn.edsl-pack-btn:hover,
html body .edsl-pack-btn.edsl-pack-btn:focus,
html body .edsl-pack-btn.edsl-pack-btn:focus-visible,
html body .edsl-pack-btn.edsl-pack-btn:active {
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
}
html body .edsl-pack-outline.edsl-pack-outline,
html body .edsl-pack-qty__btn.edsl-pack-qty__btn {
	color: var(--edsl-green) !important;
	border-color: var(--edsl-green) !important;
}
html body .edsl-pack-linkbtn.edsl-pack-linkbtn,
html body .edsl-pack-iconbtn.edsl-pack-iconbtn,
html body .edsl-pack-tier__name.edsl-pack-tier__name {
	color: var(--edsl-green) !important;
}
html body .edsl-pack-outline.edsl-pack-outline:hover,
html body .edsl-pack-outline.edsl-pack-outline:focus,
html body .edsl-pack-outline.edsl-pack-outline:focus-visible,
html body .edsl-pack-outline.edsl-pack-outline:active,
html body .edsl-pack-qty__btn.edsl-pack-qty__btn:hover,
html body .edsl-pack-qty__btn.edsl-pack-qty__btn:focus,
html body .edsl-pack-qty__btn.edsl-pack-qty__btn:focus-visible,
html body .edsl-pack-qty__btn.edsl-pack-qty__btn:active {
	color: var(--edsl-gold) !important;
	border-color: var(--edsl-gold) !important;
}
html body .edsl-pack-linkbtn.edsl-pack-linkbtn:hover,
html body .edsl-pack-linkbtn.edsl-pack-linkbtn:focus,
html body .edsl-pack-linkbtn.edsl-pack-linkbtn:focus-visible,
html body .edsl-pack-linkbtn.edsl-pack-linkbtn:active,
html body .edsl-pack-iconbtn.edsl-pack-iconbtn:hover,
html body .edsl-pack-iconbtn.edsl-pack-iconbtn:focus,
html body .edsl-pack-iconbtn.edsl-pack-iconbtn:focus-visible,
html body .edsl-pack-iconbtn.edsl-pack-iconbtn:active,
html body .edsl-pack-tier__name.edsl-pack-tier__name:hover,
html body .edsl-pack-tier__name.edsl-pack-tier__name:focus,
html body .edsl-pack-tier__name.edsl-pack-tier__name:focus-visible,
html body .edsl-pack-tier__name.edsl-pack-tier__name:active {
	color: var(--edsl-gold) !important;
}
html body .edsl-pack-btn.edsl-pack-btn[disabled],
html body .edsl-pack-btn.edsl-pack-btn[disabled]:hover,
html body .edsl-pack-btn.edsl-pack-btn[disabled]:focus,
html body .edsl-pack-btn.edsl-pack-btn[disabled]:active {
	color: var(--edsl-green) !important;
	opacity: 0.45;
	cursor: not-allowed;
}
html body .edsl-pack-outline.edsl-pack-outline[disabled],
html body .edsl-pack-outline.edsl-pack-outline[disabled]:hover,
html body .edsl-pack-outline.edsl-pack-outline[disabled]:focus,
html body .edsl-pack-outline.edsl-pack-outline[disabled]:active,
html body .edsl-pack-qty__btn.edsl-pack-qty__btn[disabled],
html body .edsl-pack-qty__btn.edsl-pack-qty__btn[disabled]:hover {
	border-color: var(--edsl-green) !important;
}
html body .edsl-pack-primary.edsl-pack-primary,
html body .edsl-pack-primary.edsl-pack-primary:visited {
	background-color: var(--edsl-gold) !important;
	background-image: none !important;
	border-color: var(--edsl-gold) !important;
	box-shadow: none !important;
	text-shadow: none !important;
	color: var(--edsl-text-invert) !important;
}
html body .edsl-pack-primary.edsl-pack-primary:hover,
html body .edsl-pack-primary.edsl-pack-primary:focus,
html body .edsl-pack-primary.edsl-pack-primary:focus-visible,
html body .edsl-pack-primary.edsl-pack-primary:active {
	background-color: #9E7232 !important;
	background-image: none !important;
	border-color: #9E7232 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	color: var(--edsl-text-invert) !important;
}
html body .edsl-pack-primary.edsl-pack-primary.is-added,
html body .edsl-pack-primary.edsl-pack-primary.is-added:hover,
html body .edsl-pack-primary.edsl-pack-primary.is-added:focus,
html body .edsl-pack-primary.edsl-pack-primary.is-added:active {
	background-color: var(--edsl-gold) !important;
	border-color: var(--edsl-gold) !important;
	color: var(--edsl-text-invert) !important;
}
html body .edsl-pack-primary.edsl-pack-primary[disabled],
html body .edsl-pack-primary.edsl-pack-primary[disabled]:hover,
html body .edsl-pack-primary.edsl-pack-primary[disabled]:focus,
html body .edsl-pack-primary.edsl-pack-primary[disabled]:active {
	background-color: var(--edsl-gold) !important;
	border-color: var(--edsl-gold) !important;
	color: var(--edsl-text-invert) !important;
	opacity: 0.5;
}
html body .edsl-pack-btn.edsl-pack-btn:focus-visible,
html body .edsl-pack-primary.edsl-pack-primary:focus-visible,
html body .edsl-pack select:focus-visible,
html body .edsl-pack input:focus-visible,
html body .edsl-pack a:focus-visible,
html body .edsl-pack-modal button:focus-visible,
html body .edsl-pack-modal select:focus-visible,
html body .edsl-pack-modal input:focus-visible,
html body .edsl-pack-modal a:focus-visible {
	outline: 2px solid var(--edsl-gold) !important;
	outline-offset: 2px;
}
/* END edsl-pack hover overrides */
