/* SHC Build your bundle page. */

.shc-builder-page .entry-header,
.shc-builder-page .ast-archive-description {
	display: none;
}

.shc-builder {
	--shc-ink: #13120D;
	--shc-muted: #6B6152;
	--shc-green: #253716;
	--shc-cream: #FFF9DD;
	--shc-tan: #C4A880;
	--shc-line: #EBE2D0;
	--shc-soft: #FBF8EF;
	--shc-rust: #6A2C13;
	max-width: 1280px;
	margin: 0 auto;
	padding: 32px clamp(16px, 4vw, 40px) 64px;
	color: var(--shc-ink);
	font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}
.shc-builder *,
.shc-builder *::before,
.shc-builder *::after {
	box-sizing: border-box;
}
.shc-builder button {
	font-family: inherit;
}

/* ---- Intro ---- */
.shc-builder__intro {
	max-width: 640px;
	margin: 0 0 32px;
}
.shc-builder__eyebrow {
	margin: 0 0 8px;
	color: #8A5A2B;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.shc-builder .shc-builder__title {
	margin: 0 0 12px;
	color: var(--shc-ink);
	font-size: clamp(32px, 5vw, 48px);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.01em;
}
.shc-builder__lede {
	margin: 0;
	color: var(--shc-muted);
	font-size: 17px;
	line-height: 1.55;
}
.shc-builder__loading {
	color: var(--shc-muted);
}

/* ---- Layout ---- */
.shc-builder__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 40px;
	align-items: start;
}
.shc-builder__main {
	min-width: 0;
}
.shc-builder__step + .shc-builder__step {
	margin-top: 36px;
}
.shc-builder .shc-builder__h2 {
	margin: 0 0 14px;
	color: var(--shc-ink);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

/* ---- Step 1: bundle options ---- */
.shc-builder__options {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}
.shc-builder__option {
	position: relative;
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	grid-template-rows: auto auto;
	gap: 8px 10px;
	margin: 0;
	padding: 16px 14px;
	border: 1px solid var(--shc-tan);
	border-radius: 4px;
	background: #FFFFFF;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.shc-builder__option:hover {
	border-color: var(--shc-green);
}
.shc-builder__option.is-selected {
	border-color: var(--shc-green);
	background: var(--shc-soft);
	box-shadow: inset 0 0 0 1px var(--shc-green);
}
.shc-builder__radio {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: inherit;
}
.shc-builder__dot {
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border: 1.5px solid var(--shc-tan);
	border-radius: 999px;
	background: #FFFFFF;
}
.shc-builder__option.is-selected .shc-builder__dot {
	border-color: var(--shc-green);
	background: radial-gradient(circle, var(--shc-green) 0 5px, #FFFFFF 5.5px);
}
.shc-builder__radio:focus-visible ~ .shc-builder__dot {
	outline: 2px solid var(--shc-green);
	outline-offset: 2px;
}
.shc-builder__optext {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.shc-builder__optlabel {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}
.shc-builder__optsub {
	color: var(--shc-muted);
	font-size: 13px;
	line-height: 1.35;
}
.shc-builder__save {
	grid-column: 2;
	justify-self: start;
	padding: 2px 8px;
	border-radius: 999px;
	background: #F6E7C8;
	color: var(--shc-rust);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
}
.shc-builder__badge {
	position: absolute;
	top: -10px;
	right: 10px;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--shc-green);
	color: var(--shc-cream);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-transform: uppercase;
}

/* ---- Step 2: design grid ---- */
.shc-builder__pickhead {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 16px;
	margin-bottom: 14px;
}
.shc-builder__pickhead .shc-builder__h2 {
	margin: 0;
}
.shc-builder__pickfor {
	color: var(--shc-muted);
	font-size: 14px;
}
.shc-builder__toast {
	margin: 0 0 14px;
	padding: 10px 14px;
	border-radius: 4px;
	background: #EEF2E6;
	color: var(--shc-green);
	font-size: 14px;
	font-weight: 600;
}
.shc-builder__toast::before {
	content: "\2713  ";
}
.shc-builder__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 14px;
}
.shc-builder .shc-builder__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
	margin: 0;
	padding: 8px 8px 12px;
	border: 1px solid var(--shc-line);
	border-radius: 4px;
	background: #FFFFFF;
	color: var(--shc-ink);
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.shc-builder .shc-builder__card:hover,
.shc-builder .shc-builder__card:focus {
	border-color: var(--shc-green);
	background: #FFFFFF;
	color: var(--shc-ink);
}
.shc-builder .shc-builder__card:focus-visible {
	outline: 2px solid var(--shc-green);
	outline-offset: 2px;
}
.shc-builder .shc-builder__card.is-current {
	border-color: var(--shc-green);
	box-shadow: inset 0 0 0 1px var(--shc-green);
}
.shc-builder__card img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 2px;
	background: #F4F1EA;
}
.shc-builder__cardname {
	margin-top: 6px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}
.shc-builder__cardprice {
	color: var(--shc-muted);
	font-size: 13px;
}
.shc-builder__tag {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 3px 8px;
	border-radius: 999px;
	background: var(--shc-green);
	color: var(--shc-cream);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
}

/* ---- Summary ---- */
.shc-builder__summary {
	position: sticky;
	top: 24px;
	padding: 22px 20px;
	border: 1px solid var(--shc-line);
	border-radius: 6px;
	background: var(--shc-soft);
}
.admin-bar .shc-builder__summary {
	top: 56px;
}
.shc-builder__slots {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.shc-builder__slot {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px;
	border: 1px solid var(--shc-line);
	border-radius: 4px;
	background: #FFFFFF;
}
.shc-builder__slot.is-active {
	border-color: var(--shc-green);
}
.shc-builder__slot.is-empty {
	flex-direction: column;
	padding: 0;
	border-style: dashed;
	border-color: var(--shc-tan);
	background: transparent;
}
.shc-builder__slot.is-empty.is-active {
	border-color: var(--shc-green);
	background: #FFFFFF;
}
.shc-builder__slot.is-nudged {
	border-color: var(--shc-rust);
}
.shc-builder .shc-builder__slotempty {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 10px;
	border: 0;
	background: transparent;
	color: var(--shc-ink);
	text-align: left;
	cursor: pointer;
}
.shc-builder .shc-builder__slotempty:hover,
.shc-builder .shc-builder__slotempty:focus {
	background: transparent;
	color: var(--shc-ink);
}
.shc-builder__slotph {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 4px;
	background: #F4F1EA;
	color: var(--shc-tan);
	font-size: 26px;
	font-weight: 300;
}
.shc-builder__slottext {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.shc-builder__slotkind {
	font-weight: 700;
}
.shc-builder__slothint {
	color: var(--shc-muted);
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.shc-builder__slotimg {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 4px;
	background: #F4F1EA;
}
.shc-builder__slotbody {
	flex: 1 1 auto;
	min-width: 0;
}
.shc-builder__slotname {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 6px;
	margin: 0;
	font-size: 14px;
	line-height: 1.35;
}
.shc-builder .shc-builder__change {
	margin-left: auto;
	padding: 0;
	border: 0;
	background: none;
	color: var(--shc-green);
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}
.shc-builder .shc-builder__change:hover,
.shc-builder .shc-builder__change:focus {
	background: none;
	color: var(--shc-ink);
}
.shc-builder__slotprice {
	flex: 0 0 auto;
	font-size: 13px;
	color: var(--shc-muted);
}
.shc-builder__fields {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}
.shc-builder .shc-builder__select {
	flex: 1 1 100px;
	min-width: 0;
	height: 38px;
	margin: 0;
	padding: 0 28px 0 8px;
	border: 1px solid var(--shc-tan);
	border-radius: 2px;
	background-color: #FFFFFF;
	color: var(--shc-ink);
	font-family: inherit;
	font-size: 14px;
}
.shc-builder .shc-builder__select.is-empty {
	color: var(--shc-muted);
}
.shc-builder__slot.is-nudged .shc-builder__select.is-empty {
	border-color: var(--shc-rust);
}
.shc-builder .shc-builder__select:focus {
	outline: 2px solid var(--shc-green);
	outline-offset: 1px;
}
.shc-builder__muted {
	color: var(--shc-muted);
	font-size: 13px;
}
.shc-builder__nudge,
.shc-builder__error {
	margin: 8px 0 0;
	color: var(--shc-rust);
	font-size: 13px;
	font-weight: 600;
}
.shc-builder__slot.is-empty .shc-builder__nudge {
	margin: 0 10px 10px;
}

.shc-builder__totals {
	margin: 18px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--shc-line);
}
.shc-builder__line {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 3px 0;
	font-size: 14px;
}
.shc-builder__line dt,
.shc-builder__line dd {
	margin: 0;
	font-weight: 400;
}
.shc-builder__line.is-full dd {
	color: var(--shc-muted);
	text-decoration: line-through;
}
.shc-builder__line.is-save {
	color: var(--shc-rust);
	font-weight: 600;
}
.shc-builder__line.is-save dt,
.shc-builder__line.is-save dd {
	font-weight: 600;
}
.shc-builder__line.is-total {
	margin-top: 6px;
	font-size: 18px;
}
.shc-builder__line.is-total dt,
.shc-builder__line.is-total dd {
	font-weight: 700;
}
.shc-builder__status {
	margin: 12px 0 10px;
	color: var(--shc-muted);
	font-size: 13px;
}
.shc-builder__status.is-ready {
	color: var(--shc-green);
	font-weight: 600;
}
.shc-builder .shc-builder__add,
.shc-builder__bar .shc-builder__baradd {
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: 2px;
	background: var(--shc-green);
	color: var(--shc-cream);
	font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.shc-builder .shc-builder__add:hover,
.shc-builder .shc-builder__add:focus,
.shc-builder__bar .shc-builder__baradd:hover,
.shc-builder__bar .shc-builder__baradd:focus {
	background: #1A2810;
	color: var(--shc-cream);
}
.shc-builder .shc-builder__add.is-waiting,
.shc-builder__bar .shc-builder__baradd.is-waiting {
	opacity: 0.6;
}
.shc-builder__note {
	margin: 12px 0 0;
}

/* ---- Phone bar (outside .shc-builder, so it carries its own colours) ---- */
.shc-builder__bar {
	--shc-green: #253716;
	--shc-cream: #FFF9DD;
	display: none;
}

@media (max-width: 900px) {
	.shc-builder__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
	.shc-builder__summary {
		position: static;
	}
	.shc-builder__options {
		grid-template-columns: minmax(0, 1fr);
	}
	.shc-builder__option {
		grid-template-columns: 20px minmax(0, 1fr) auto;
		grid-template-rows: auto;
		align-items: center;
	}
	.shc-builder__save {
		grid-column: auto;
	}
	.shc-builder__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.shc-builder-page {
		padding-bottom: 84px;
	}
	.shc-builder__bar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 999;
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		border-top: 1px solid #EBE2D0;
		background: #FFFFFF;
		box-shadow: 0 -6px 18px rgba(19, 18, 13, 0.08);
		font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
	}
	.shc-builder__bar .shc-builder__barmeta {
		display: flex;
		flex: 0 0 auto;
		align-items: center;
		gap: 8px;
		margin: 0;
		padding: 0;
		border: 0;
		background: none;
		color: #13120D;
		cursor: pointer;
	}
	.shc-builder__barthumbs {
		display: flex;
	}
	.shc-builder__barthumbs img,
	.shc-builder__barph {
		width: 32px;
		height: 32px;
		border: 2px solid #FFFFFF;
		border-radius: 4px;
		background: #F4F1EA;
		object-fit: cover;
	}
	.shc-builder__barph {
		display: flex;
		align-items: center;
		justify-content: center;
		color: #C4A880;
		font-size: 16px;
	}
	.shc-builder__barthumbs > * + * {
		margin-left: -10px;
	}
	.shc-builder__barprice {
		display: flex;
		flex-direction: column;
		line-height: 1.15;
		text-align: left;
	}
	.shc-builder__barprice del {
		color: #8A7F6E;
		font-size: 12px;
	}
	.shc-builder__barprice strong {
		font-size: 16px;
	}
	.shc-builder__bar .shc-builder__baradd {
		flex: 1 1 auto;
		min-height: 48px;
		font-size: 14px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.shc-builder__option,
	.shc-builder .shc-builder__card {
		transition: none;
	}
}
