/* Pacchetti: blocco «Nel pacchetto» nella scheda prodotto (inc/bundles.php). Variabili del tema.
   Questo foglio arriva prima di main.css: senza l'ordine dei layer ripetuto qui, «components»
   finirebbe sotto «reset» e «a { color: inherit }» spegnerebbe la pillola della linea. */
@layer reset, base, layout, components, utilities;
@layer components {
	.bundle-box {
		margin-block: .25rem 1.5rem; padding: 1rem 1rem .9rem;
		border: 1px solid var(--line); border-radius: 1rem; background: var(--paper);
	}
	.bundle-box__title {
		margin: 0 0 .75rem; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600;
		line-height: 1; text-transform: uppercase;
	}
	.bundle-box__list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
	.bundle-box__item { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; }
	.bundle-box__img { width: 3.5rem; aspect-ratio: 1; overflow: hidden; border-radius: .75rem; background: var(--white); }
	.bundle-box__img img { width: 100%; height: 100%; object-fit: contain; }
	.bundle-box__name { font-weight: 700; line-height: 1.2; color: var(--ink); }
	.bundle-box__name a { color: inherit; text-decoration: none; }
	.bundle-box__name a:hover, .bundle-box__name a:focus-visible { text-decoration: underline; }
	.bundle-box__out { display: block; font-size: .8125rem; font-weight: 400; color: var(--brand); }
	.bundle-box__qty { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1; white-space: nowrap; }
	.bundle-box__saving { margin: .9rem 0 0; padding-block-start: .75rem; border-block-start: 1px solid var(--line); font-size: .9375rem; color: var(--text-3); }
	.bundle-box__saving strong { color: var(--brand); }

	@media (max-width: 47.99rem) {
		.bundle-box { margin-block: 1.25rem 0; }
		.bundle-box__item { grid-template-columns: 3rem minmax(0, 1fr) auto; }
		.bundle-box__img { width: 3rem; }
	}
}
