/**
 * Merchandise shop + cart (FR-090..FR-094).
 * Follows the site's locked design language: soft white cards, tight vertical
 * rhythm, CUET green->blue for primary actions, gold for accents.
 * Tier-3 global styling per .claude/CLAUDE.md — no inline styles anywhere.
 */

.alumni-shop__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.25rem;
}

.alumni-shop__filter {
	padding: 0.35rem 0.85rem;
	border: 1px solid var( --wp--preset--color--accent-7, #d7dee8 );
	border-radius: 999px;
	font-size: 0.9rem;
	text-decoration: none;
	color: inherit;
	background: #fff;
}

.alumni-shop__filter:hover,
.alumni-shop__filter.is-active {
	background: linear-gradient( 112deg, #046a38, #1d4ed8 );
	border-color: transparent;
	color: #fff;
}

.alumni-shop__empty {
	color: var( --wp--preset--color--accent-4, #5d6e85 );
	margin: 0.5rem 0;
}

.alumni-shop-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 15rem, 1fr ) );
	gap: 1.25rem;
}

.alumni-shop-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid rgba( 13, 32, 54, 0.08 );
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba( 13, 32, 54, 0.04 );
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.alumni-shop-card:hover {
	transform: translateY( -3px );
	border-color: rgba( 4, 106, 56, 0.25 );
	box-shadow: 0 12px 28px rgba( 13, 32, 54, 0.12 );
}

.alumni-shop-card__link {
	text-decoration: none;
	color: inherit;
	display: block;
}

/* Fixed ratio keeps the grid tidy whatever shape the admin uploads. */
.alumni-shop-card__image {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f4f6f9;
}

.alumni-shop-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 320ms ease;
}

.alumni-shop-card:hover .alumni-shop-card__image img {
	transform: scale( 1.04 );
}

.alumni-shop-card__image--empty {
	background: linear-gradient( 135deg, rgba( 4, 80, 43, 0.10 ), rgba( 29, 78, 216, 0.10 ) );
}

.alumni-shop-card__title {
	margin: 0.85rem 1rem 0.3rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: -0.01em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.alumni-shop-card__price {
	margin: 0 1rem 0.9rem;
	font-weight: 700;
	font-size: 1.05rem;
	color: #04502b;
	letter-spacing: -0.01em;
}

.alumni-shop-card .alumni-btn,
.alumni-shop-card__choose {
	margin: auto 1rem 1rem;
}

/* ---- single product buy box ---- */

.alumni-product-buy {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 1.25rem 0;
}

.alumni-product-buy__price {
	margin: 0;
	font-size: 1.4rem;
	font-weight: 700;
	color: #046a38;
}

.alumni-related {
	margin-top: 2rem;
}

.alumni-related__title {
	font-size: 1.25rem;
	margin: 0 0 1rem;
}

/* ---- cart ---- */

.alumni-cart__lines {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var( --wp--preset--color--accent-7, #d7dee8 );
}

.alumni-cart__line {
	display: grid;
	grid-template-columns: 1fr auto 4.5rem auto auto;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid var( --wp--preset--color--accent-7, #d7dee8 );
}

.alumni-cart__label {
	font-weight: 600;
}

.alumni-cart__unit,
.alumni-cart__qty-fixed {
	color: var( --wp--preset--color--accent-4, #5d6e85 );
	font-size: 0.9rem;
}

.alumni-cart__qty {
	width: 4rem;
	padding: 0.3rem 0.4rem;
	border: 1px solid var( --wp--preset--color--accent-7, #d7dee8 );
	border-radius: 8px;
}

.alumni-cart__subtotal {
	font-weight: 700;
}

.alumni-cart__remove {
	background: none;
	border: 0;
	color: #b42318;
	cursor: pointer;
	font-size: 0.85rem;
	padding: 0.25rem;
}

.alumni-cart__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin: 1rem 0 0.75rem;
	font-size: 1.15rem;
}

.alumni-cart__total-value {
	font-weight: 700;
	color: #046a38;
}

.alumni-cart__status {
	margin: 0.75rem 0 0;
	color: var( --wp--preset--color--accent-4, #5d6e85 );
	font-size: 0.9rem;
}

.alumni-cart__empty,
.alumni-cart__loading {
	color: var( --wp--preset--color--accent-4, #5d6e85 );
}

@media ( max-width: 40rem ) {
	.alumni-cart__line {
		grid-template-columns: 1fr auto;
		row-gap: 0.35rem;
	}
}

/* ---- size / colour pickers on the product page ---- */

.alumni-product-buy {
	display: block;
}


.alumni-product-buy__actions {
	display: flex;
	align-items: flex-end;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.alumni-product-buy__qty {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	font-weight: 600;
	font-size: 0.9rem;
}

.alumni-product-buy__qty input {
	width: 5rem;
	padding: 0.55rem 0.7rem;
	border: 1px solid var( --wp--preset--color--accent-7, #d7dee8 );
	border-radius: 8px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 400;
}

.alumni-product-buy__message {
	margin: 0.6rem 0 0;
	font-size: 0.9rem;
	min-height: 1.2em;
}

.alumni-product-buy__message.is-error {
	color: #b42318;
}

.alumni-shop-card__choose {
	display: block;
	text-align: center;
	text-decoration: none;
}

/* ---- buttons -----------------------------------------------------------
   .alumni-btn is defined in admin.css, which is only enqueued in wp-admin —
   so on the front end these classes had no styling at all and Add to cart
   rendered as a bare browser button. Scoped to shop surfaces so this never
   fights the theme's own buttons elsewhere. */

.alumni-shop .alumni-btn,
.alumni-shop-card .alumni-btn,
.alumni-product-buy .alumni-btn,
.alumni-related .alumni-btn,
.alumni-cart .alumni-btn {
	display: inline-block;
	padding: 0.6rem 1.2rem;
	border: 1px solid transparent;
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: filter 150ms ease, background-color 150ms ease;
}

.alumni-shop .alumni-btn--primary,
.alumni-shop-card .alumni-btn--primary,
.alumni-product-buy .alumni-btn--primary,
.alumni-related .alumni-btn--primary,
.alumni-cart .alumni-btn--primary {
	background: linear-gradient( 112deg, #046a38, #1d4ed8 );
	color: #fff;
}

.alumni-shop .alumni-btn--primary:hover,
.alumni-shop-card .alumni-btn--primary:hover,
.alumni-product-buy .alumni-btn--primary:hover,
.alumni-related .alumni-btn--primary:hover,
.alumni-cart .alumni-btn--primary:hover {
	filter: brightness( 1.08 );
	color: #fff;
}

.alumni-shop .alumni-btn:disabled,
.alumni-shop-card .alumni-btn:disabled,
.alumni-product-buy .alumni-btn:disabled,
.alumni-cart .alumni-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.alumni-shop .alumni-btn:focus-visible,
.alumni-shop-card .alumni-btn:focus-visible,
.alumni-product-buy .alumni-btn:focus-visible,
.alumni-cart .alumni-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba( 4, 106, 56, 0.3 );
}

/* ---- checkout: delivery details + payment ---- */

.alumni-checkout {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var( --wp--preset--color--accent-7, #d7dee8 );
}

.alumni-checkout__title {
	margin: 0 0 0.75rem;
	font-size: 1.1rem;
}

.alumni-checkout__modes {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin-bottom: 1rem;
}

.alumni-checkout__mode {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	cursor: pointer;
	font-size: 0.95rem;
}

.alumni-checkout__mode input {
	width: 1rem;
	height: 1rem;
	margin: 0;
	accent-color: #046a38;
}

.alumni-checkout__fields {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 13rem, 1fr ) );
	gap: 0.85rem;
	margin-bottom: 1rem;
}

.alumni-checkout__field {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	font-weight: 600;
	font-size: 0.9rem;
}

.alumni-checkout__field input,
.alumni-checkout__field textarea {
	padding: 0.55rem 0.7rem;
	border: 1px solid var( --wp--preset--color--accent-7, #d7dee8 );
	border-radius: 8px;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 400;
	background: #fff;
}

.alumni-checkout__field textarea {
	min-height: 4.5rem;
	resize: vertical;
}

.alumni-checkout__field input:focus,
.alumni-checkout__field textarea:focus {
	outline: none;
	border-color: #046a38;
	box-shadow: 0 0 0 3px rgba( 4, 106, 56, 0.15 );
}

/* The address is the one field that deserves the full row. */
.alumni-checkout__field:nth-child(3) {
	grid-column: 1 / -1;
}

.alumni-checkout__payment {
	margin-top: 1.25rem;
}

.alumni-checkout__paytitle {
	margin: 0 0 0.6rem;
	font-size: 1rem;
}

.alumni-checkout__card {
	padding: 0.75rem;
	border: 1px solid var( --wp--preset--color--accent-7, #d7dee8 );
	border-radius: 8px;
	background: #fff;
	margin-bottom: 0.85rem;
	max-width: 26rem;
}

.alumni-checkout__paypal {
	margin-top: 0.85rem;
	max-width: 26rem;
}


/* ---- variant chips & colour swatches ---------------------------------- */

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect( 0 0 0 0 );
	white-space: nowrap;
	border: 0;
}

.alumni-variant {
	border: 0;
	padding: 0;
	margin: 0 0 1rem;
}

.alumni-variant__legend {
	padding: 0;
	margin: 0 0 0.5rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var( --wp--preset--color--accent-4, #5d6e85 );
}

.alumni-variant__chosen {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 600;
	color: #04502b;
}

.alumni-variant__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* The real radio stays in the DOM for keyboard and screen-reader users; the
   label is what you see. Never display:none — that removes it from the
   accessibility tree and kills tab focus. */
.alumni-variant__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.alumni-variant__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	padding: 0.45rem 0.85rem;
	border: 1.5px solid rgba( 13, 32, 54, 0.15 );
	border-radius: 999px;
	background: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.alumni-variant__chip:hover {
	border-color: rgba( 4, 106, 56, 0.55 );
}

.alumni-variant__input:checked + .alumni-variant__chip {
	background: linear-gradient( 112deg, #046a38, #1d4ed8 );
	border-color: transparent;
	color: #fff;
}

.alumni-variant__input:focus-visible + .alumni-variant__chip,
.alumni-variant__input:focus-visible + .alumni-variant__swatch {
	outline: none;
	box-shadow: 0 0 0 3px rgba( 4, 106, 56, 0.3 );
}

.alumni-variant__swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 999px;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: border-color 150ms ease;
}

.alumni-variant__swatch:hover {
	border-color: rgba( 4, 106, 56, 0.45 );
}

.alumni-variant__input:checked + .alumni-variant__swatch {
	border-color: #046a38;
}

.alumni-variant__dot {
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px rgba( 13, 32, 54, 0.18 );
}

/* Fixed palette — one rule per recognised colour name, so the markup never
   needs a style attribute. */
.alumni-variant__dot--white     { background: #ffffff; }
.alumni-variant__dot--black     { background: #111111; }
.alumni-variant__dot--navy      { background: #1b2a4a; }
.alumni-variant__dot--blue      { background: #1d4ed8; }
.alumni-variant__dot--sky       { background: #38bdf8; }
.alumni-variant__dot--teal      { background: #0d9488; }
.alumni-variant__dot--green     { background: #046a38; }
.alumni-variant__dot--olive     { background: #5d6b32; }
.alumni-variant__dot--maroon    { background: #7b1e2b; }
.alumni-variant__dot--red       { background: #c62828; }
.alumni-variant__dot--orange    { background: #ea7317; }
.alumni-variant__dot--yellow    { background: #f2c744; }
.alumni-variant__dot--gold      { background: #c9a227; }
.alumni-variant__dot--cream     { background: #f4ecd8; }
.alumni-variant__dot--beige     { background: #e3d5c0; }
.alumni-variant__dot--brown     { background: #6b4a2f; }
.alumni-variant__dot--grey,
.alumni-variant__dot--gray      { background: #8b93a1; }
.alumni-variant__dot--charcoal  { background: #36393f; }
.alumni-variant__dot--silver    { background: #c9ced6; }
.alumni-variant__dot--pink      { background: #e56b9f; }
.alumni-variant__dot--purple    { background: #6d28d9; }

/* ---- stock ---- */

.alumni-stock {
	margin: 0 0 0.85rem;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.alumni-stock--in    { color: #046a38; }
.alumni-stock--low   { color: #b45309; }
.alumni-stock--out   { color: #b42318; }

.alumni-shop-card__badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	background: rgba( 180, 35, 24, 0.95 );
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.alumni-shop-card:has( .alumni-shop-card__badge ) .alumni-shop-card__image {
	opacity: 0.55;
}

.alumni-checkout__quote {
	margin: 0 0 1rem;
	padding: 0.6rem 0.85rem;
	border-radius: 10px;
	background: rgba( 4, 106, 56, 0.07 );
	color: #04502b;
	font-size: 0.92rem;
	font-weight: 600;
	min-height: 1.2em;
}

/* ====================================================================== */
/* Single product page — two-column store layout (FR-090/FR-094)          */
/* Replaces Divi's full-bleed featured image with a gallery + buy panel.   */
/* ====================================================================== */

.alumni-product-page {
	max-width: 1180px;
	margin: 0 auto;
	padding: 2.5rem 1.25rem 3.5rem;
}

.alumni-product {
	display: grid;
	grid-template-columns: minmax( 0, 440px ) 1fr;
	gap: 2.5rem;
	align-items: start;
}

/* ---- gallery ---- */

.alumni-product__gallery {
	position: sticky;
	top: 1.5rem;
}

.alumni-product__main {
	aspect-ratio: 1 / 1;
	border-radius: 18px;
	overflow: hidden;
	background: #f4f6f9;
	border: 1px solid rgba( 13, 32, 54, 0.08 );
	display: flex;
	align-items: center;
	justify-content: center;
}

.alumni-product__main-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.alumni-product__main--empty {
	background: linear-gradient( 135deg, rgba( 4, 80, 43, 0.10 ), rgba( 29, 78, 216, 0.10 ) );
}

.alumni-product__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 0.85rem 0 0;
	padding: 0;
	list-style: none;
}

.alumni-product__thumb {
	width: 68px;
	height: 68px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 10px;
	overflow: hidden;
	background: #f4f6f9;
	cursor: pointer;
	transition: border-color 150ms ease;
}

.alumni-product__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.alumni-product__thumb:hover {
	border-color: rgba( 4, 106, 56, 0.4 );
}

.alumni-product__thumb.is-active {
	border-color: #046a38;
}

.alumni-product__thumb:focus-visible {
	outline: none;
	border-color: #046a38;
	box-shadow: 0 0 0 3px rgba( 4, 106, 56, 0.25 );
}

/* ---- details column ---- */

.alumni-product__details {
	padding-top: 0.25rem;
}

.alumni-product__title {
	margin: 0 0 0.6rem;
	font-size: clamp( 1.6rem, 3vw, 2.15rem );
	line-height: 1.2;
	letter-spacing: -0.02em;
	font-weight: 700;
}

.alumni-product__price {
	margin: 0 0 1rem;
	font-size: 1.6rem;
	font-weight: 700;
	color: #046a38;
	letter-spacing: -0.01em;
}

.alumni-product__short {
	margin: 0 0 1.4rem;
	color: var( --wp--preset--color--accent-4, #5d6e85 );
	font-size: 1.02rem;
	line-height: 1.6;
	/* Honour the line breaks the admin typed in the Short description box. */
	white-space: pre-line;
}

/* The buy actions get more room on the product page than in the fallback. */
.alumni-product__details .alumni-product-buy__actions {
	margin-top: 0.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var( --wp--preset--color--accent-7, #d7dee8 );
}

.alumni-product__details .alumni-shop-add {
	flex: 1 1 auto;
	min-width: 12rem;
	font-size: 1.05rem;
	padding: 0.8rem 1.4rem;
}

/* ---- long description ---- */

.alumni-product__description {
	max-width: 860px;
	margin: 2.5rem 0 0;
	padding-top: 1.75rem;
	border-top: 1px solid var( --wp--preset--color--accent-7, #d7dee8 );
}

.alumni-product__description-title {
	font-size: 1.35rem;
	margin: 0 0 1rem;
	letter-spacing: -0.01em;
}

.alumni-product__description p {
	line-height: 1.7;
	color: #2b3a4d;
}

/* related sits below, full width of the page container */
.alumni-product-page .alumni-related {
	margin-top: 3.5rem;
}

@media ( max-width: 60rem ) {
	.alumni-product {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	.alumni-product__gallery {
		position: static;
	}

	.alumni-product__main {
		aspect-ratio: 4 / 3;
	}
}

/* ====================================================================== */
/* Floating cart button + slide-in drawer (FR-092)                        */
/* ====================================================================== */

.alumni-cart-fab {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 99990;
	width: 58px;
	height: 58px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 999px;
	background: linear-gradient( 135deg, #046a38, #1d4ed8 );
	color: #fff;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba( 4, 40, 90, 0.28 );
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.alumni-cart-fab:hover {
	transform: translateY( -2px ) scale( 1.04 );
	box-shadow: 0 14px 30px rgba( 4, 40, 90, 0.34 );
}

.alumni-cart-fab:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px rgba( 4, 106, 56, 0.35 );
}

.alumni-cart-fab__icon {
	display: block;
}

.alumni-cart-fab__badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #C9A227;
	color: #17324d;
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1;
	border: 2px solid #fff;
	transform: scale( 1 );
	transition: transform 180ms cubic-bezier( 0.34, 1.56, 0.64, 1 );
}

.alumni-cart-fab.is-empty .alumni-cart-fab__badge {
	display: none;
}

/* A little pop when the count changes. */
.alumni-cart-fab.just-added .alumni-cart-fab__badge {
	transform: scale( 1.35 );
}

/* ---- drawer ---- */

.alumni-cart-drawer {
	position: fixed;
	inset: 0;
	z-index: 100000;
	pointer-events: none;
}

.alumni-cart-drawer__scrim {
	position: absolute;
	inset: 0;
	background: rgba( 8, 20, 38, 0.42 );
	opacity: 0;
	transition: opacity 240ms ease;
}

.alumni-cart-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min( 400px, 92vw );
	background: #fff;
	box-shadow: -14px 0 40px rgba( 8, 20, 38, 0.18 );
	display: flex;
	flex-direction: column;
	transform: translateX( 100% );
	transition: transform 340ms cubic-bezier( 0.22, 1, 0.36, 1 );
	will-change: transform;
}

.alumni-cart-drawer.is-open {
	pointer-events: auto;
}

.alumni-cart-drawer.is-open .alumni-cart-drawer__scrim {
	opacity: 1;
}

.alumni-cart-drawer.is-open .alumni-cart-drawer__panel {
	transform: translateX( 0 );
}

.alumni-cart-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.15rem 1.35rem;
	border-bottom: 1px solid #eef1f5;
}

.alumni-cart-drawer__title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.alumni-cart-drawer__close {
	border: 0;
	background: none;
	font-size: 1.7rem;
	line-height: 1;
	color: #5d6e85;
	cursor: pointer;
	padding: 0 0.25rem;
}

.alumni-cart-drawer__close:hover {
	color: #17324d;
}

.alumni-cart-drawer__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 0.5rem 1.35rem;
}

.alumni-cart-drawer__lines {
	list-style: none;
	margin: 0;
	padding: 0;
}

.alumni-cart-drawer__line {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 0.75rem;
	padding: 0.9rem 0;
	border-bottom: 1px solid #eef1f5;
}

.alumni-cart-drawer__line-main {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.alumni-cart-drawer__line-label {
	font-weight: 600;
	color: #17324d;
	line-height: 1.3;
}

.alumni-cart-drawer__line-meta {
	font-size: 0.82rem;
	color: #5d6e85;
}

.alumni-cart-drawer__line-sub {
	font-weight: 700;
	color: #046a38;
	white-space: nowrap;
}

.alumni-cart-drawer__line-remove {
	border: 0;
	background: none;
	color: #b42318;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	padding: 0 0.15rem;
}

.alumni-cart-drawer__line-remove:hover {
	color: #7f130c;
}

.alumni-cart-drawer__foot {
	border-top: 1px solid #eef1f5;
	padding: 1.15rem 1.35rem calc( 1.15rem + env( safe-area-inset-bottom, 0px ) );
	background: #fbfcfe;
}

.alumni-cart-drawer__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 0.9rem;
	font-size: 1.1rem;
	font-weight: 700;
}

.alumni-cart-drawer__total span:last-child {
	color: #046a38;
}

/* Self-styled: the drawer sits outside the .alumni-shop/.alumni-cart scopes
   the other shop buttons rely on, so it carries its own primary-button look. */
.alumni-cart-drawer__checkout,
.alumni-cart-fab {
	font-family: inherit;
}

.alumni-cart-drawer__checkout {
	display: block;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	font-size: 1.02rem;
	font-weight: 600;
	padding: 0.8rem 1.2rem;
	border: 1px solid transparent;
	border-radius: 8px;
	text-decoration: none;
	color: #fff;
	background: linear-gradient( 112deg, #046a38, #1d4ed8 );
	transition: filter 150ms ease;
}

.alumni-cart-drawer__checkout:hover {
	filter: brightness( 1.08 );
	color: #fff;
}

.alumni-cart-drawer__checkout:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba( 4, 106, 56, 0.3 );
}

@media ( prefers-reduced-motion: reduce ) {
	.alumni-cart-drawer__panel,
	.alumni-cart-drawer__scrim {
		transition: none;
	}
}

/* Admin bar: the drawer panel must start below it, or the "Your cart" header
   is hidden under the toolbar for logged-in users. */
body.admin-bar .alumni-cart-drawer__panel {
	top: 32px;
	height: calc( 100% - 32px );
}

@media screen and ( max-width: 782px ) {
	body.admin-bar .alumni-cart-drawer__panel {
		top: 46px;
		height: calc( 100% - 46px );
	}
}

/* Minimize handle on the drawer's left border — a second way to slide it shut,
   sitting on the edge that faces the page. */
.alumni-cart-drawer__handle {
	position: absolute;
	left: -38px;
	top: 50%;
	transform: translateY( -50% );
	width: 38px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 12px 0 0 12px;
	background: #fff;
	color: #17324d;
	cursor: pointer;
	box-shadow: -8px 0 18px rgba( 8, 20, 38, 0.12 );
	transition: color 150ms ease, background 150ms ease;
}

.alumni-cart-drawer__handle:hover {
	background: #f3f6fb;
	color: #046a38;
}

.alumni-cart-drawer__handle:focus-visible {
	outline: none;
	box-shadow: -8px 0 18px rgba( 8, 20, 38, 0.12 ), 0 0 0 3px rgba( 4, 106, 56, 0.3 );
}

@media ( max-width: 480px ) {
	/* On a phone the panel is near full-width; tuck the handle just inside. */
	.alumni-cart-drawer__handle {
		left: 0;
		border-radius: 0 0 0 12px;
		box-shadow: none;
	}
}

/* --- fixes 2026-08-27b --- */

/* The minimize handle is only a way to CLOSE the drawer, so it must not linger
   on the screen edge when the drawer is already closed (the floating cart
   button is how you open it). */
.alumni-cart-drawer:not( .is-open ) .alumni-cart-drawer__handle {
	display: none;
}

/* Shop card title sat flush against the card's left edge: the theme's
   `.entry-content h3 { margin-left:auto }` (higher specificity) was overriding
   the card title's 1rem margin. Win it back with a more specific selector and a
   touch more breathing room. */
.alumni-shop-grid .alumni-shop-card__title {
	margin: 0.85rem 1.1rem 0.3rem;
}

/* Cross-sell cards (event / membership) in the suggested row carry a small kind
   label so a mixed grid of products + events + membership reads clearly. */
.alumni-shop-card__kind {
	display: block;
	margin: 0.8rem 1.1rem 0;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: #1d4ed8;
}

.alumni-shop-card__kind + .alumni-shop-card__title,
.alumni-shop-grid .alumni-shop-card__kind + .alumni-shop-card__title {
	margin-top: 0.15rem;
}

.alumni-shop-card--membership .alumni-shop-card__image--empty {
	background: linear-gradient( 135deg, rgba( 184, 134, 59, 0.16 ), rgba( 29, 78, 216, 0.14 ) );
}

/* Order confirmation (shown in the cart area once an order is placed). */
.alumni-order-confirmation{
	max-width:560px;margin:1.5rem auto;text-align:center;
	padding:2.25rem 1.75rem;background:#fff;
	border:1px solid rgba(13,32,54,.08);border-radius:18px;
	box-shadow:0 12px 30px rgba(13,32,54,.08);
}
.alumni-order-confirmation__icon{
	width:58px;height:58px;margin:0 auto 1.1rem;border-radius:999px;
	display:flex;align-items:center;justify-content:center;
	background:linear-gradient(135deg,#046a38,#1d4ed8);color:#fff;font-size:1.9rem;font-weight:700;
}
.alumni-order-confirmation__title{margin:0 0 .5rem;font-size:1.55rem;letter-spacing:-0.02em}
.alumni-order-confirmation__id{margin:0 0 1rem;color:#17324d;font-size:1.05rem}
.alumni-order-confirmation__id strong{color:#046a38}
.alumni-order-confirmation__msg{margin:0 auto .9rem;max-width:44ch;color:var(--wp--preset--color--accent-4,#5d6e85);line-height:1.6}
.alumni-order-confirmation__track{margin:0;font-size:.95rem}
.alumni-order-confirmation__actions{display:flex;gap:.75rem;justify-content:center;flex-wrap:wrap;margin-top:1.5rem}
.alumni-order-confirmation__actions .alumni-btn{text-decoration:none}
