:root {
	--fivea-blue: #50a5d6;
	--fivea-ink: #183047;
	--fivea-orange: #f28b3c;
	--fivea-cream: #fffaf2;
}

body.fivea-byob-page .uicore-page-title,
body.fivea-byob-page .entry-title {
	display: none !important;
}

body.fivea-byob-page #primary,
body.fivea-byob-page main.entry-content {
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Builder subjects are distinct products, each with quantity fixed at one. */
.fivea-byob-cart-item .quantity button,
.fivea-byob-cart-item .quantity .plus,
.fivea-byob-cart-item .quantity .minus,
.cart_item:has(.fivea-byob-cart-name) .quantity button,
.cart_item:has(.fivea-byob-cart-name) .quantity .plus,
.cart_item:has(.fivea-byob-cart-name) .quantity .minus {
	display: none !important;
}

.fivea-byob-cart-item .quantity input.qty,
.cart_item:has(.fivea-byob-cart-name) .quantity input.qty {
	pointer-events: none;
	-moz-appearance: textfield;
}

.fivea-byob-cart-item .quantity input.qty::-webkit-inner-spin-button,
.fivea-byob-cart-item .quantity input.qty::-webkit-outer-spin-button,
.cart_item:has(.fivea-byob-cart-name) .quantity input.qty::-webkit-inner-spin-button,
.cart_item:has(.fivea-byob-cart-name) .quantity input.qty::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.fivea-byob,
.fivea-byob * {
	box-sizing: border-box;
}

.fivea-byob {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	color: var(--fivea-ink);
	background: #f6f9fc;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fivea-byob__hero {
	position: relative;
	overflow: hidden;
	padding: 82px 24px 72px;
	color: #fff;
	background:
		radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .22) 0 4%, transparent 4.5%),
		radial-gradient(circle at 92% 72%, rgba(255, 255, 255, .12) 0 11%, transparent 11.5%),
		linear-gradient(135deg, #338fc7 0%, #50a5d6 55%, #70bbdf 100%);
}

.fivea-byob__hero-inner {
	position: relative;
	z-index: 1;
	max-width: 1180px;
	margin: 0 auto;
}

.fivea-byob__eyebrow {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 7px 14px;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	font-size: 12px;
	font-weight: 850;
	letter-spacing: .13em;
}

.fivea-byob__hero h1 {
	max-width: 800px;
	margin: 22px 0 16px;
	color: #fff;
	font-size: clamp(38px, 5.2vw, 72px);
	line-height: 1.01;
	letter-spacing: -.045em;
}

.fivea-byob__hero h1 em {
	color: #fff0bf;
	font-style: normal;
}

.fivea-byob__hero p {
	max-width: 700px;
	margin: 0;
	color: rgba(255, 255, 255, .92);
	font-size: clamp(17px, 2vw, 21px);
	line-height: 1.55;
}

.fivea-byob__content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 40px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 56px 24px 80px;
}

.fivea-byob__main {
	min-width: 0;
}

.fivea-byob__step {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 20px;
}

.fivea-byob__step--subjects {
	margin-top: 52px;
}

.fivea-byob__step-number {
	display: grid;
	place-items: center;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	color: #fff;
	background: var(--fivea-blue);
	font-weight: 900;
	box-shadow: 0 7px 18px rgba(49, 139, 194, .24);
}

.fivea-byob__step h2 {
	margin: 1px 0 4px;
	color: var(--fivea-ink);
	font-size: 25px;
	letter-spacing: -.025em;
}

.fivea-byob__step p {
	margin: 0;
	color: #687b8e;
	font-size: 14px;
}

.fivea-byob__edition {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.fivea-byob__edition label {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 102px;
	padding: 17px;
	border: 2px solid #dce6ef;
	border-radius: 18px;
	background: #fff;
	cursor: pointer;
	transition: .2s ease;
}

.fivea-byob__edition label:has(input:checked) {
	border-color: var(--fivea-blue);
	box-shadow: 0 10px 28px rgba(29, 104, 150, .13);
	transform: translateY(-1px);
}

.fivea-byob__edition input,
.fivea-byob__subject input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.fivea-byob__size-icon {
	display: grid;
	place-items: center;
	flex: 0 0 46px;
	width: 46px;
	height: 64px;
	border: 3px solid currentColor;
	border-radius: 5px;
	color: var(--fivea-blue);
	font-size: 14px;
	font-weight: 900;
}

.fivea-byob__size-icon--large {
	flex-basis: 55px;
	width: 55px;
	height: 72px;
}

.fivea-byob__edition strong,
.fivea-byob__edition small {
	display: block;
}

.fivea-byob__edition strong {
	font-size: 16px;
}

.fivea-byob__edition small {
	margin-top: 5px;
	color: #718294;
	font-size: 12px;
}

.fivea-byob__popular {
	position: absolute;
	right: 12px;
	top: -10px;
	padding: 5px 8px;
	border-radius: 999px;
	color: #fff;
	background: var(--fivea-orange);
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .055em;
}

.fivea-byob__subjects {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.fivea-byob__subject {
	position: relative;
	display: grid;
	grid-template-columns: 118px minmax(0, 1fr);
	min-height: 158px;
	overflow: hidden;
	border: 2px solid #e0e8ef;
	border-radius: 20px;
	background: #fff;
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.fivea-byob__subject:hover {
	transform: translateY(-3px);
	box-shadow: 0 13px 28px rgba(31, 66, 91, .11);
}

.fivea-byob__subject:has(input:checked) {
	border-color: var(--subject-color);
	box-shadow: 0 13px 28px color-mix(in srgb, var(--subject-color) 22%, transparent);
}

.fivea-byob__check {
	position: absolute;
	z-index: 2;
	right: 12px;
	top: 12px;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border: 2px solid #d5e0e9;
	border-radius: 50%;
	color: transparent;
	background: #fff;
	font-size: 14px;
	font-weight: 900;
	transition: .2s ease;
}

.fivea-byob__subject:has(input:checked) .fivea-byob__check {
	border-color: var(--subject-color);
	color: #fff;
	background: var(--subject-color);
}

.fivea-byob__subject-image {
	position: relative;
	overflow: hidden;
	background: color-mix(in srgb, var(--subject-color) 14%, white);
}

.fivea-byob__subject-image::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 5px;
	background: var(--subject-color);
}

.fivea-byob__subject-image img {
	width: 100%;
	height: 100%;
	min-height: 158px;
	object-fit: contain;
	transition: transform .3s ease;
}

.fivea-byob__subject:hover img {
	transform: scale(1.035);
}

.fivea-byob__subject-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 23px 40px 20px 18px;
}

.fivea-byob__subject-copy > strong {
	color: var(--fivea-ink);
	font-size: 19px;
	letter-spacing: -.02em;
}

.fivea-byob__subject-copy > small {
	min-height: 36px;
	margin: 7px 0 12px;
	color: #6f8191;
	font-size: 12px;
	line-height: 1.45;
}

.fivea-byob__subject-price {
	color: var(--subject-color);
	font-size: 15px;
	font-weight: 900;
}

.fivea-byob__tiers {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
	margin-top: 20px;
}

.fivea-byob__tiers span {
	padding: 11px 8px;
	border: 1px solid #dde6ed;
	border-radius: 12px;
	color: #82909d;
	background: rgba(255, 255, 255, .7);
	text-align: center;
	font-size: 10px;
	line-height: 1.35;
}

.fivea-byob__tiers strong,
.fivea-byob__tiers b {
	display: block;
}

.fivea-byob__tiers strong {
	color: #607486;
	font-size: 15px;
}

.fivea-byob__tiers b {
	color: var(--fivea-orange);
}

.fivea-byob__tiers .is-unlocked {
	border-color: #b9daed;
	color: #3e789b;
	background: #edf8fe;
}

.fivea-byob__tiers .is-active {
	border-color: var(--fivea-blue);
	box-shadow: 0 5px 15px rgba(80, 165, 214, .17);
}

.fivea-byob__summary {
	min-width: 0;
}

.fivea-byob__summary-card {
	position: sticky;
	top: 105px;
	overflow: hidden;
	border: 1px solid #dce5ec;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 20px 52px rgba(27, 62, 89, .13);
}

.fivea-byob__summary-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 22px;
	color: #fff;
	background: var(--fivea-ink);
}

.fivea-byob__summary-head span {
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .11em;
}

.fivea-byob__summary-head b {
	padding: 5px 9px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .13);
	font-size: 11px;
}

.fivea-byob__empty {
	padding: 31px 24px 22px;
	text-align: center;
}

.fivea-byob__empty[hidden] {
	display: none;
}

.fivea-byob__empty div {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	margin: 0 auto 12px;
	border: 2px dashed #bbcad5;
	border-radius: 17px;
	color: #8da0ae;
	font-size: 25px;
}

.fivea-byob__empty p {
	margin: 0;
	color: #7b8b99;
	font-size: 13px;
	line-height: 1.45;
}

.fivea-byob__selected {
	max-height: 210px;
	overflow: auto;
	margin: 0;
	padding: 13px 22px 5px;
	list-style: none;
}

.fivea-byob__selected:empty {
	display: none;
}

.fivea-byob__selected li {
	display: grid;
	grid-template-columns: 10px 1fr auto;
	align-items: center;
	gap: 9px;
	padding: 8px 0;
	border-bottom: 1px solid #edf1f4;
	font-size: 12px;
}

.fivea-byob__selected li > span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--dot);
}

.fivea-byob__selected li small {
	color: #6c7e8e;
}

.fivea-byob__unlock {
	margin: 16px 22px 0;
	padding: 10px 12px;
	border-radius: 11px;
	color: #28769e;
	background: #e9f6fc;
	font-size: 11px;
	font-weight: 750;
	text-align: center;
}

.fivea-byob__exact {
	margin: 8px 22px 0;
	padding: 9px 12px;
	border-radius: 11px;
	color: #8a540f;
	background: #fff2cf;
	font-size: 11px;
	font-weight: 850;
	text-align: center;
}

.fivea-byob__totals {
	padding: 18px 22px 9px;
}

.fivea-byob__totals > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
	color: #6a7c8c;
	font-size: 12px;
}

.fivea-byob__totals del {
	color: #8b99a4;
}

.fivea-byob__totals [data-summary-discount] {
	color: var(--fivea-orange);
}

.fivea-byob__totals .fivea-byob__total {
	margin: 15px 0 3px;
	padding-top: 14px;
	border-top: 1px solid #e6ecf0;
	color: var(--fivea-ink);
	font-size: 15px;
}

.fivea-byob__total strong {
	font-size: 27px;
	letter-spacing: -.035em;
}

.fivea-byob__totals .fivea-byob__savings {
	justify-content: flex-end;
	color: #3f9361;
	font-weight: 850;
}

.fivea-byob__add {
	display: block;
	width: calc(100% - 44px);
	min-height: 66px;
	margin: 8px 22px 22px;
	padding: 13px 18px;
	border: 0;
	border-radius: 15px;
	color: #fff;
	background: linear-gradient(135deg, #ee7b2f, #f49a4d);
	box-shadow: 0 12px 25px rgba(223, 104, 35, .27);
	cursor: pointer;
	transition: .2s ease;
}

.fivea-byob__add:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 16px 30px rgba(223, 104, 35, .32);
}

.fivea-byob__add:disabled {
	cursor: not-allowed;
	filter: grayscale(.65);
	opacity: .55;
}

.fivea-byob__add span,
.fivea-byob__add small {
	display: block;
}

.fivea-byob__add span {
	font-size: 15px;
	font-weight: 900;
}

.fivea-byob__add small {
	margin-top: 4px;
	color: rgba(255, 255, 255, .84);
	font-size: 10px;
}

.fivea-byob__add.is-loading {
	animation: fivea-byob-pulse 1s ease-in-out infinite alternate;
}

.fivea-byob__error {
	margin: -10px 22px 20px;
	color: #b33d34;
	font-size: 12px;
	text-align: center;
}

@keyframes fivea-byob-pulse {
	to { opacity: .7; }
}

@media (max-width: 980px) {
	.fivea-byob__content {
		grid-template-columns: 1fr;
	}

	.fivea-byob__summary-card {
		position: static;
		max-width: 620px;
		margin: 0 auto;
	}
}

@media (max-width: 680px) {
	.fivea-byob__hero {
		padding: 56px 20px 48px;
	}

	.fivea-byob__content {
		gap: 28px;
		padding: 38px 16px 58px;
	}

	.fivea-byob__edition,
	.fivea-byob__subjects {
		grid-template-columns: 1fr;
	}

	.fivea-byob__subject {
		grid-template-columns: 108px minmax(0, 1fr);
		min-height: 145px;
	}

	.fivea-byob__subject-image img {
		min-height: 145px;
	}

	.fivea-byob__tiers {
		grid-template-columns: repeat(5, 92px);
		overflow-x: auto;
		padding-bottom: 5px;
		scroll-snap-type: x proximity;
	}

	.fivea-byob__tiers span {
		scroll-snap-align: start;
	}
}

@media (max-width: 390px) {
	.fivea-byob__edition label {
		padding: 14px;
	}

	.fivea-byob__popular {
		right: 8px;
		font-size: 8px;
	}

	.fivea-byob__subject {
		grid-template-columns: 96px minmax(0, 1fr);
	}

	.fivea-byob__subject-copy {
		padding-left: 14px;
	}
}

/* Virtual catalog entry linking to the builder; it is intentionally not a product. */
.fivea-byob-catalog-card .eael-product-wrap {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.fivea-byob-catalog-card {
	position: relative;
}

.fivea-byob-catalog-card__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.fivea-byob-catalog-card__badge {
	position: absolute;
	z-index: 2;
	top: 12px;
	left: 12px;
	padding: 7px 10px;
	border-radius: 999px;
	color: #fff;
	background: #f28b3c;
	box-shadow: 0 6px 16px rgba(107, 56, 14, .2);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .07em;
	line-height: 1;
}

.fivea-byob-catalog-card__title {
	margin-top: 2px;
}

.fivea-byob-catalog-card__price > span:first-child {
	margin-right: 3px;
	color: #708293;
	font-size: .82em;
	font-weight: 700;
}

.fivea-byob-catalog-card__price .woocommerce-Price-amount {
	color: #183047;
	font-weight: 900;
}

.fivea-byob-catalog-card__button {
	margin-top: auto !important;
}

@media (max-width: 680px) {
	.fivea-byob-catalog-card__badge {
		top: 9px;
		left: 9px;
		font-size: 9px;
	}
}
