.aesw-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 5;
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 58px;
	padding: 0 max(48px, env(safe-area-inset-left, 0px));
	border-bottom: 1px solid var(--line);
	background: transparent;
	color: var(--white);
}
/* Waitlist chrome only — solid pigment blur (Apply/waitlist.html). */
.aesw-header-waitlist {
	background: rgba(0, 47, 167, .35);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
/* Product/Moss chrome — gradient fade (Apply/moss.html). */
.aesw-header-product {
	background: linear-gradient(rgba(0, 30, 120, .5), rgba(0, 30, 120, 0));
	border-bottom-color: var(--line);
}
.aesw-header.is-editor,
.elementor-editor-active .aesw-header {
	position: relative;
	inset: auto;
}
.aesw-word,
.aesw-mark,
.aesw-bag,
.aesw-back {
	font: 500 13px var(--mono);
	letter-spacing: var(--aesw-word-track, .62em);
	color: var(--white);
	text-decoration: none;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}
.aesw-header-end { display: flex; align-items: center; gap: 22px; }
.aesw-mark {
	font: 700 var(--aesw-mark-size, 29px)/1 var(--head);
	letter-spacing: -.02em;
}
.aesw-back {
	font: 500 11px var(--mono);
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--mist);
	text-decoration: none;
}
.aesw-back:hover,
.aesw-back:focus,
.aesw-back:focus-visible {
	color: var(--white);
	text-shadow: none;
	filter: none;
}
button.aesw-mark:hover,
button.aesw-mark:focus,
button.aesw-mark:focus-visible,
a.aesw-mark:hover,
a.aesw-mark:focus,
a.aesw-mark:focus-visible {
	background: none;
	background-color: transparent;
	box-shadow: none;
	color: var(--white);
	text-decoration: none;
	text-shadow:
		0 0 8px rgba(255, 255, 255, .9),
		0 0 18px rgba(214, 224, 255, .55);
	filter: drop-shadow(0 0 6px rgba(255, 255, 255, .7));
}
.aesw-header-product,
.aesw-header-waitlist {
	z-index: 30;
}
.aesw-header-product {
	display: block;
	height: auto;
	padding: 0;
}
.aesw-header-product .aesw-header-wrap {
	max-width: none;
	margin: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 58px;
	padding-left: max(24px, env(safe-area-inset-left, 0px));
	padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.aesw-header-waitlist {
	padding: 0 max(24px, env(safe-area-inset-left, 0px));
}
/* home stays transparent (Apply/index.html) — blur/gradient only on waitlist/product above */
.aesw-header-product .aesw-word { font: 500 13px var(--mono); letter-spacing: var(--aesw-word-track, .62em); }
.aesw-header-product .aesw-mark { font-weight: 800; font-size: var(--aesw-mark-size, 28px); letter-spacing: -.02em; }
.aesw-bag {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	letter-spacing: .3em;
	font: 400 12px var(--mono);
	padding: 8px 0;
}
.aesw-bag-count {
	min-width: 22px;
	height: 22px;
	background: var(--white);
	color: var(--pigment);
	font: 500 11px var(--mono);
	letter-spacing: 0;
	display: inline-grid;
	place-items: center;
	padding: 0 5px;
}
.aesw-bag-drawer[hidden],
.aesw-bag-scrim[hidden] { display: none !important; }
.aesw-bag-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 2147483002; }
.aesw-bag-drawer {
	position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100%); z-index: 2147483003;
	background: var(--deep); color: var(--white); display: flex; flex-direction: column;
	border-left: 1px solid var(--line);
	padding-top: env(safe-area-inset-top, 0px);
	padding-bottom: env(safe-area-inset-bottom, 0px);
	padding-right: env(safe-area-inset-right, 0px);
}
.aesw-bag-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.aesw-bag-drawer-head h3 { font: 400 13px var(--mono); letter-spacing: .36em; margin: 0; }
.aesw-x { border: 0; background: transparent; font: 400 26px var(--mono); color: var(--white); width: 40px; height: 40px; cursor: pointer; }
.aesw-bag-drawer-body { flex: 1; overflow: auto; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.aesw-mist { color: var(--mist); margin: 0; }
.aesw-bag-subtotal {
	display: flex;
	justify-content: space-between;
	font: 500 13px var(--mono);
	letter-spacing: .2em;
	color: var(--mist);
}
.aesw-bag-checkout-btn {
	border: 0;
	background: var(--white);
	color: var(--pigment);
	font: 500 12px var(--mono);
	letter-spacing: .3em;
	text-transform: uppercase;
	padding: 18px 34px;
	cursor: pointer;
	align-self: stretch;
}
.aesw-bag-checkout-btn:hover { background: #dfe5ff; }
@media (max-width: 767px) {
	.aesw-header-home,
	.aesw-header-waitlist { padding: 0 20px; }
	.aesw-header-product .aesw-header-wrap { padding-left: 20px; padding-right: 20px; }
}

/* Bag drawer lines (reference: moss.html .line, .thumb, .qty) */
.aesw-bag-items { display: flex; flex-direction: column; gap: 16px; }
.aesw-bag-line {
	display: flex;
	gap: 16px;
	align-items: center;
	padding: 16px 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.aesw-bag-line-info { flex: 1; min-width: 0; }
.aesw-bag-thumb {
	width: 60px;
	height: 60px;
	background: rgba(255, 255, 255, .07);
	display: grid;
	place-items: center;
	overflow: hidden;
}
.aesw-bag-thumb img { max-height: 48px; width: auto; }
.aesw-bag-thumb-placeholder { font: 700 18px var(--head); color: var(--mist); }
.aesw-bag-line-title { font: 500 14px var(--head); color: var(--white); }
.aesw-bag-line-meta { font: 400 13px var(--mono); color: var(--mist); }
.aesw-bag-qty {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	margin-left: auto;
	border: 1px solid rgba(255, 255, 255, .5);
	box-shadow: none;
}
.aesw-bag-qty-btn {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--white);
	font: 400 18px var(--mono);
	cursor: pointer;
	touch-action: manipulation;
}
body.aesw-v2 .aesw-bag-qty-btn:hover,
body.aesw-v2 .aesw-bag-qty-btn:focus,
body.aesw-v2 .aesw-bag-qty-btn:focus-visible {
	background: rgba(255, 255, 255, .06);
	color: var(--white);
	text-shadow: none;
	filter: none;
	box-shadow: none;
}
.aesw-bag-qty-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .06); }
.aesw-bag-qty-btn:disabled { opacity: .35; cursor: default; }
.aesw-bag-qty-val { min-width: 18px; text-align: center; font-size: 13px; }
.aesw-bag-line-total { font: 500 13px var(--mono); color: var(--white); white-space: nowrap; }
.aesw-bag-remove {
	color: var(--mist);
	text-decoration: none;
	font-size: 20px;
	line-height: 1;
}
.aesw-bag-remove:hover { color: var(--white); }

/* Drawer checkout (reference: moss.html .sec, .row2, .sum) */
.aesw-drawer-checkout { display: flex; flex-direction: column; gap: 12px; }
.aesw-co { display: flex; flex-direction: column; gap: 14px; }
.aesw-co .aesw-sec {
	font: 400 11px var(--mono);
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--mist);
	margin-top: 6px;
}
.aesw-co .aesw-row2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.aesw-co .form-row { float: none; width: 100%; margin: 0; padding: 0; }
.aesw-co label {
	font: 400 11px var(--mono);
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--mist);
}
.aesw-co input.input-text,
.aesw-co select,
.aesw-co textarea {
	width: 100%;
	background: rgba(255, 255, 255, .05);
	color: var(--white);
	border: 1px solid var(--line);
	border-radius: 0;
	padding: 13px 14px;
	font: 400 16px var(--head);
}
.aesw-sum {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
	font-size: 14px;
	color: var(--mist);
}
.aesw-sum-line,
.aesw-ship-opt {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
}
.aesw-sum-line.is-total {
	font: 700 18px var(--head);
	color: var(--white);
	padding-top: 6px;
}
.aesw-ship { display: flex; flex-direction: column; gap: 8px; }
.aesw-back-bag {
	border: 0;
	background: none;
	color: var(--mist);
	font: 400 11px var(--mono);
	letter-spacing: .24em;
	text-transform: uppercase;
	cursor: pointer;
	align-self: flex-start;
}
.aesw-err { font-size: 13px; color: #ff8a80; margin: 0; }
.aesw-co #payment { background: transparent; border-radius: 0; }
.aesw-co #payment ul.payment_methods { border: 1px solid var(--line); padding: 12px; }
.aesw-co #place_order {
	width: 100%;
	background: var(--white);
	color: var(--pigment);
	border: 1px solid var(--white);
	border-radius: 0;
	font: 500 11px var(--mono);
	letter-spacing: .24em;
	text-transform: uppercase;
}
@media (max-width: 520px) {
	.aesw-co .aesw-row2 { grid-template-columns: 1fr; }
}
