.gift-builder {
	margin-block: 28px 36px;
	--gift-border: #dcd4c1;
}
.gift-intro {
	display: grid;
	grid-template-columns: 3fr 2fr;
	align-items: center;
	background: #eee8da;
	margin-bottom: 24px;
}
.gift-intro > div { padding: clamp(18px, 4vw, 42px); }
.gift-intro h2 { margin: 0 0 10px; }
.gift-intro img { width: 100%; height: 100%; max-height: 280px; object-fit: cover; }
.gift-sizes {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	border: 0;
	padding: 0;
	margin: 0 0 20px;
}
.gift-sizes legend { font-weight: 700; margin-bottom: 8px; }
.gift-sizes label, .gift-presets button, .gift-product button, .gift-items button {
	border: 1px solid var(--gift-border);
	background: var(--paper);
	color: var(--ink);
	padding: 9px 12px;
	font: inherit;
	cursor: pointer;
}
.gift-sizes label:has(:checked) { border-color: var(--forest); }
.gift-sizes input { accent-color: var(--forest); }
.gift-presets { margin-bottom: 20px; }
.gift-presets strong { display: block; margin-bottom: 8px; }
.gift-presets button { margin: 0 6px 6px 0; }
.gift-layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
	gap: 20px;
	align-items: start;
}
.gift-search {
	display: block;
	width: 100%;
	margin: 6px 0 14px;
	padding: 10px;
	border: 1px solid var(--gift-border);
	font: inherit;
}
.gift-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gift-product {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
	border: 1px solid var(--gift-border);
	overflow-wrap: anywhere;
}
.gift-product[hidden] { display: none; }
.gift-product img { width: 100%; height: 130px; object-fit: contain; }
.gift-product button { margin-top: auto; }
.gift-summary {
	position: sticky;
	top: 16px;
	padding: 18px;
	border: 1px solid var(--gift-border);
	background: #eee8da;
}
.gift-summary h3 { display: flex; justify-content: space-between; gap: 8px; margin-top: 0; }
.gift-count { white-space: nowrap; font-family: sans-serif; font-size: 15px; }
.gift-items { list-style: none; margin: 0; padding: 0; }
.gift-items li { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.gift-items span { overflow-wrap: anywhere; }
.gift-builder button:disabled { opacity: .55; cursor: default; }
@media (max-width: 640px) {
	.gift-intro { grid-template-columns: 1fr; }
	.gift-intro img { max-height: 180px; }
	.gift-layout { grid-template-columns: 1fr; }
	.gift-summary { position: static; }
}
