/* 5th Axis — Configurator Conversions
 * Matches the site: square corners, #dd2828 red, black, SF Pro. */

.a5c {
	--a5c-red: #dd2828;
	--a5c-red-dk: #b81f1f;
	--a5c-ink: #000;
	--a5c-ink-2: #1a1a1a;
	--a5c-mute: #6b6b6b;
	--a5c-line: #e6e6e6;
	--a5c-bg-2: #f5f5f5;
	--a5c-ok: #1f7a3a;
	--a5c-font: sf-pro-text-regular, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--a5c-font-md: sf-pro-text-medium, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--a5c-font-hv: sf-pro-text-heavy, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-family: var(--a5c-font);
	color: var(--a5c-ink-2);
}

.a5c *,
.a5c *::before,
.a5c *::after { box-sizing: border-box; }

html.a5c-lock { overflow: hidden; }
html.a5c-has-bar body { padding-bottom: 76px; }

/* Scrim */
.a5c-scrim {
	position: fixed; inset: 0; z-index: 99998;
	background: rgba(0, 0, 0, .45);
	opacity: 0; transition: opacity .25s ease;
}
.a5c-scrim.is-open { opacity: 1; }

/* Drawer */
.a5c-drawer {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 99999;
	width: min(460px, 100vw);
	background: #fff;
	border-top: 4px solid var(--a5c-red);
	box-shadow: -12px 0 40px rgba(0, 0, 0, .18);
	transform: translateX(105%);
	transition: transform .3s cubic-bezier(.2, .8, .2, 1);
	display: flex; flex-direction: column;
	outline: none;
	visibility: hidden;
}
.a5c-drawer.is-open { transform: none; visibility: visible; }

.a5c-x {
	position: absolute; top: 14px; right: 14px;
	width: 36px; height: 36px; border: 0; background: transparent;
	font-size: 28px; line-height: 1; color: var(--a5c-mute); cursor: pointer;
}
.a5c-x:hover { color: var(--a5c-ink); }

.a5c-body { flex: 1; overflow-y: auto; padding: 28px 28px 20px; }

/* Head */
.a5c-head { padding-right: 32px; margin-bottom: 20px; }
.a5c-eyebrow {
	display: inline-flex; align-items: center; gap: 6px;
	font: 12px/1 var(--a5c-font-md); letter-spacing: .12em; text-transform: uppercase;
	color: var(--a5c-red);
}
.a5c-eyebrow.is-ok { color: var(--a5c-ok); }
.a5c-eyebrow svg { width: 14px; height: 14px; fill: currentColor; }
.a5c-head h2 {
	margin: 10px 0 0; font: 24px/1.2 var(--a5c-font-hv); color: var(--a5c-ink);
	text-transform: none; letter-spacing: -.01em;
}
.a5c-lede { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: var(--a5c-mute); }

/* Lines */
.a5c-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--a5c-line); }
.a5c-line {
	display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center;
	padding: 14px 0; border-bottom: 1px solid var(--a5c-line);
}
.a5c-line__img img,
.a5c-line__ph {
	display: block; width: 64px; height: 64px; object-fit: contain;
	background: var(--a5c-bg-2);
}
.a5c-line__ph {
	display: flex; align-items: center; justify-content: center;
	font: 13px var(--a5c-font-md); color: var(--a5c-mute);
}
.a5c-line__name { font: 14px/1.35 var(--a5c-font-md); color: var(--a5c-ink); }
.a5c-line__name a { color: inherit; text-decoration: none; }
.a5c-line__name a:hover { color: var(--a5c-red); text-decoration: underline; }
.a5c-line__meta {
	display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px;
	font-size: 12px; color: var(--a5c-mute);
}
.a5c-sku { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.a5c-warn { color: var(--a5c-red); }
.a5c-line__price { text-align: right; white-space: nowrap; font-size: 15px; color: var(--a5c-ink); }
.a5c-line__price strong { display: block; font-family: var(--a5c-font-md); font-weight: 500; }
.a5c-line__each { display: block; font-size: 12px; color: var(--a5c-mute); }
.a5c-tag {
	display: inline-block; padding: 4px 8px;
	font: 11px/1.2 var(--a5c-font-md); letter-spacing: .04em; text-transform: uppercase;
	background: #fff1f1; color: var(--a5c-red-dk); border: 1px solid #f4c6c6;
}

/* Totals */
.a5c-total { padding: 16px 0 4px; }
.a5c-total__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.a5c-total__row strong { font: 22px var(--a5c-font-hv); color: var(--a5c-ink); }
.a5c-note {
	margin: 12px 0 0; padding: 12px 14px; font-size: 13px; line-height: 1.45;
	background: var(--a5c-bg-2); border-left: 3px solid var(--a5c-red);
}

/* Buttons */
.a5c-ctas { display: grid; gap: 10px; margin-top: 20px; }
.a5c-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 14px 20px; border: 1px solid transparent; border-radius: 0;
	font: 16px/1.2 var(--a5c-font-md); text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.a5c-btn--block { width: 100%; }
.a5c-btn--primary { background: var(--a5c-red); color: #fff; }
.a5c-btn--primary:hover,
.a5c-btn--primary:focus-visible { background: var(--a5c-red-dk); color: #fff; }
.a5c-btn--dark { background: var(--a5c-ink); color: #fff; }
.a5c-btn--dark:hover { background: #333; color: #fff; }
.a5c-btn--ghost { background: #fff; color: var(--a5c-ink); border-color: var(--a5c-ink); }
.a5c-btn--ghost:hover { background: var(--a5c-ink); color: #fff; }
.a5c-btn:focus-visible { outline: 2px solid var(--a5c-ink); outline-offset: 2px; }
.a5c-btn__amt { font-family: var(--a5c-font); opacity: .9; }
.a5c-btn__amt::before { content: "\00b7"; margin-right: 8px; }

.a5c-alt { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--a5c-line); }
.a5c-alt p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: var(--a5c-mute); }
.a5c-alt p strong { color: var(--a5c-ink); font-family: var(--a5c-font-md); font-weight: 500; }

/* Footer */
.a5c-foot { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--a5c-line); }
.a5c-help { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--a5c-mute); }
.a5c-help a { color: var(--a5c-red); font-family: var(--a5c-font-md); text-decoration: none; }
.a5c-help a:hover { text-decoration: underline; }
.a5c-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; padding: 0; font-size: 12px; color: var(--a5c-mute); }
.a5c-trust li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; background: var(--a5c-red); vertical-align: middle; }

/* Loading */
.a5c-loading { display: flex; align-items: center; gap: 12px; padding: 24px 0; color: var(--a5c-mute); }
.a5c-spin {
	width: 20px; height: 20px; border: 2px solid var(--a5c-line); border-top-color: var(--a5c-red);
	border-radius: 50%; animation: a5c-spin .8s linear infinite;
}
@keyframes a5c-spin { to { transform: rotate(360deg); } }

/* Sticky build bar */
.a5c-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990;
	background: var(--a5c-ink); color: #fff;
	box-shadow: 0 -6px 24px rgba(0, 0, 0, .2);
	animation: a5c-up .3s ease;
}
.a5c-bar[hidden] { display: none; }
.a5c-bar__inner {
	max-width: 1320px; margin: 0 auto; padding: 12px 24px;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.a5c-bar__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.a5c-bar__eyebrow { font: 11px/1 var(--a5c-font-md); letter-spacing: .12em; text-transform: uppercase; color: var(--a5c-red); }
.a5c-bar__sum { font: 16px/1.2 var(--a5c-font-md); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a5c-bar__actions { display: flex; gap: 10px; flex-shrink: 0; }
.a5c-bar .a5c-btn { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.a5c-bar .a5c-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.a5c-bar .a5c-btn--ghost:hover { background: #fff; color: var(--a5c-ink); }
.a5c-bar .a5c-btn[hidden] { display: none; }
@keyframes a5c-up { from { transform: translateY(100%); } }

/* Mobile: drawer becomes a bottom sheet */
@media (max-width: 640px) {
	.a5c-drawer {
		top: auto; left: 0; width: 100vw; max-height: 92vh;
		transform: translateY(105%);
		box-shadow: 0 -12px 40px rgba(0, 0, 0, .2);
	}
	.a5c-drawer.is-open { transform: none; }
	.a5c-body { padding: 24px 20px 20px; }
	.a5c-head h2 { font-size: 21px; }
	.a5c-line { grid-template-columns: 52px 1fr auto; gap: 12px; }
	.a5c-line__img img, .a5c-line__ph { width: 52px; height: 52px; }
	.a5c-bar__inner { padding: 10px 14px; }
	.a5c-bar__quote { display: none; }
	html.a5c-has-bar body { padding-bottom: 68px; }
}

@media (prefers-reduced-motion: reduce) {
	.a5c-drawer, .a5c-scrim { transition: none; }
	.a5c-bar { animation: none; }
}
