/*!
 * My List Experience 3.0 — universal saved lists chrome
 */
.mlx30-overview {
	display: grid;
	gap: 1rem;
	padding-top: 1.25rem;
	padding-bottom: 0.5rem;
}

.mlx30-header .mlx30-title {
	margin: 0.2rem 0 0;
	font-size: clamp(1.6rem, 3vw, 2.15rem);
	font-weight: 750;
	color: #fff;
}

.mlx30-subtitle {
	max-width: 46rem;
	margin: 0.4rem 0 0;
	line-height: 1.5;
	color: var(--dxp-color-text-secondary, #c7d0e0);
}

.mlx30-summary,
.mlx30-cards,
.mlx30-stats ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

.mlx30-summary {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mlx30-cards {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mlx30-stats ul {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mlx30-summary li,
.mlx30-cards li,
.mlx30-stats li {
	padding: 0.85rem 0.95rem;
	border: 1px solid var(--dxp-color-border-subtle, rgba(255, 255, 255, 0.12));
	border-radius: var(--dxp-radius-lg, 18px);
	background: color-mix(in srgb, var(--dxp-color-background-elevated, #15233b) 82%, transparent);
}

.mlx30-summary span,
.mlx30-cards span,
.mlx30-stats span {
	display: block;
	font-size: 0.78rem;
	color: var(--dxp-color-text-secondary, #c7d0e0);
}

.mlx30-summary strong,
.mlx30-cards strong,
.mlx30-stats strong {
	display: block;
	margin-top: 0.25rem;
	font-size: 1.1rem;
	color: #fff;
	word-break: break-word;
}

.mlx30-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 0;
}

.mlx30-actions .dxp-btn,
.mlx30-sticky .dxp-btn {
	min-height: 2.75rem;
}

.mlx30-actions .dxp-btn:focus-visible,
.mlx30-sticky .dxp-btn:focus-visible,
.mlx30-locations select:focus-visible {
	outline: 2px solid var(--dxp-color-accent, #f59e0b);
	outline-offset: 2px;
}

.mlx30-locations {
	display: grid;
	gap: 0.4rem;
	max-width: 28rem;
}

.mlx30-locations select {
	width: 100%;
	min-height: 2.75rem;
	padding: 0.55rem 0.75rem;
	border-radius: 12px;
	border: 1px solid var(--dxp-color-border-default, #334155);
	background: var(--dxp-color-background-elevated, #0f172a);
	color: inherit;
}

.mlx30-help {
	margin: 0;
	font-size: 0.85rem;
	color: var(--dxp-color-text-secondary, #c7d0e0);
	line-height: 1.45;
}

.mlx30-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1rem;
	background: color-mix(in srgb, #0b1220 92%, transparent);
	border-top: 1px solid var(--dxp-color-border-subtle, rgba(255, 255, 255, 0.14));
	backdrop-filter: blur(8px);
}

.mlx30-sticky strong {
	color: #fff;
	min-width: 5rem;
}

/* Soften fireworks-specific SHX hero when MLX chrome is present */
.dxp-shopping-list[data-mlx30="3.0"] .dxp-shx-stage-shopping-summary .dxp-shx-hero {
	display: none;
}

.dxp-shopping-list[data-mlx30="3.0"] .dxp-shx-list-authority .dxp-shx-section-head h2 {
	font-size: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
	.mlx30-sticky {
		backdrop-filter: none;
	}
}

@media (max-width: 1024px) {
	.mlx30-summary,
	.mlx30-stats ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mlx30-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.mlx30-summary,
	.mlx30-cards,
	.mlx30-stats ul {
		grid-template-columns: 1fr;
	}

	.mlx30-actions {
		flex-direction: column;
	}

	.mlx30-actions .dxp-btn {
		width: 100%;
	}

	.mlx30-sticky {
		padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
	}
}

@media print {
	.mlx30-sticky,
	.mlx30-actions {
		display: none !important;
	}
}
