/* Purchasing flow: product order controls, current order, review, confirmation. */

.am-m5-main {
	min-width: 0;
}

.am-m5-page-header,
.am-m5-progress,
.am-m5-cart-layout,
.am-m5-review-layout,
.am-m5-error-summary,
.am-m5-notices,
.am-m5-empty-state,
.am-m5-confirmation {
	margin-inline: auto;
	max-width: var(--am-content-max);
	position: relative;
}

/* Page header ---------------------------------------------------------------- */

.am-m5-page-header {
	align-items: flex-end;
	display: flex;
	gap: var(--am-space-6);
	justify-content: space-between;
	margin-bottom: var(--am-space-5);
}

.am-m5-page-header > div {
	max-width: 46rem;
	min-width: 0;
}

.am-m5-page-header h1 {
	margin-bottom: var(--am-space-2);
}

.am-m5-page-header p {
	margin-bottom: 0;
}

.am-m5-page-header > div > p:last-child,
.am-m5-configuration-note,
.am-m5-field__hint,
.am-m5-review-card > p,
.am-m5-empty-state > p,
.am-m5-confirmation > p {
	color: var(--am-text-muted);
}

.am-m5-configuration-note,
.am-m5-field__hint {
	font-size: var(--am-text-sm);
}

/* Environment and data callouts ----------------------------------------------- */

.am-m5-synthetic-notice {
	background: var(--am-status-info-bg);
	border-left: 3px solid var(--am-navy-700);
	border-radius: var(--am-radius-control);
	color: var(--am-text-muted);
	font-size: var(--am-text-sm);
	margin: 0;
	max-width: 24rem;
	padding: var(--am-space-3) var(--am-space-4);
}

.am-m5-synthetic-notice--warning {
	background: var(--am-status-warning-bg);
	border-left-color: var(--am-warning);
	color: var(--am-text);
}

.am-m5-data-warning {
	background: var(--am-status-warning-bg);
	border-left: 3px solid var(--am-warning);
	border-radius: var(--am-radius-control);
	color: var(--am-text);
	font-size: var(--am-text-sm);
	margin: 0 0 var(--am-space-4);
	padding: var(--am-space-3) var(--am-space-4);
}

/* Progress stepper ------------------------------------------------------------- */

.am-m5-progress {
	margin-bottom: var(--am-space-8);
	max-width: 44rem;
}

.am-m5-progress ol {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.am-m5-progress li {
	border-top: 2px solid var(--am-border-strong);
	color: var(--am-text-subtle);
	font-size: var(--am-text-sm);
	font-weight: 600;
	overflow-wrap: break-word;
	padding: var(--am-space-4) var(--am-space-1) 0;
	position: relative;
	text-align: center;
}

.am-m5-progress li::before {
	background: var(--am-white);
	border: 2px solid var(--am-border-strong);
	border-radius: 50%;
	content: "";
	height: 1rem;
	left: 50%;
	position: absolute;
	top: -0.58rem;
	transform: translateX(-50%);
	width: 1rem;
}

/* Completed steps: any step that precedes the current one. */
.am-m5-progress li:has(~ li[aria-current="step"]) {
	border-top-color: var(--am-navy-900);
	color: var(--am-text-muted);
}

.am-m5-progress li:has(~ li[aria-current="step"])::before {
	background: var(--am-navy-900);
	border-color: var(--am-navy-900);
}

.am-m5-progress li[aria-current="step"] {
	border-top-color: var(--am-brand);
	color: var(--am-navy-950);
	font-weight: 700;
}

.am-m5-progress li[aria-current="step"]::before {
	background: var(--am-brand);
	border-color: var(--am-brand);
	box-shadow: inset 0 0 0 3px var(--am-white);
}

/* Cards --------------------------------------------------------------------------- */

.am-m5-order-controls,
.am-m5-cart-items,
.am-m5-summary,
.am-m5-review-card,
.am-m5-empty-state,
.am-m5-confirmation {
	background: var(--am-white);
	border: 1px solid var(--am-border-strong);
	border-radius: var(--am-radius-card);
}

.am-m5-order-controls,
.am-m5-cart-items,
.am-m5-summary,
.am-m5-review-card,
.am-m5-empty-state {
	padding: var(--am-space-5);
}

.am-m5-order-controls h2,
.am-m5-cart-items > h2,
.am-m5-summary > h2,
.am-m5-review-card > h2,
.am-m5-review-card > legend {
	font-size: var(--am-text-md);
	font-weight: 700;
	margin-bottom: var(--am-space-4);
}

/* Product order controls (detail page) --------------------------------------- */

.am-m5-order-controls {
	margin-top: 0;
}

.am-m5-product-order-form {
	align-items: end;
	display: flex;
	flex-wrap: wrap;
	gap: var(--am-space-4);
}

.am-m5-product-order-form .am-m5-field--quantity {
	flex: 0 0 auto;
}

.am-m5-product-order-form__status {
	align-content: center;
	display: grid;
	flex: 1 1 10rem;
	font-size: var(--am-text-sm);
	gap: var(--am-space-1);
	min-height: 2.75rem;
	min-width: 0;
}

.am-m5-product-order-form__status span:first-child {
	color: var(--am-text);
	font-weight: 600;
}

.am-m5-product-order-form__status span + span {
	color: var(--am-text-subtle);
}

.am-m5-product-order-form .am-button--primary {
	flex: 0 0 auto;
	min-height: 3rem;
}

.am-m5-order-controls__cart-link {
	display: flex;
	justify-content: flex-end;
	margin: var(--am-space-4) 0 0;
}

.am-m5-order-controls__cart-link .am-button {
	min-height: 2.5rem;
	padding-inline: var(--am-space-3);
}

/* Fields ----------------------------------------------------------------------------- */

.am-m5-field {
	display: grid;
	gap: var(--am-space-1);
	min-width: 0;
}

.am-m5-field label {
	color: var(--am-text-subtle);
	font-size: var(--am-text-xs);
	font-weight: 600;
	letter-spacing: 0.02em;
}

.am-m5-field input,
.am-m5-field select,
.am-m5-field textarea {
	background: var(--am-white);
	border: 1px solid var(--am-border-strong);
	border-radius: var(--am-radius-control);
	color: var(--am-text);
	font: inherit;
	min-height: 2.75rem;
	min-width: 0;
	padding: var(--am-space-2) var(--am-space-3);
	width: 100%;
}

.am-m5-field input:hover,
.am-m5-field select:hover,
.am-m5-field textarea:hover {
	border-color: var(--am-silver-500);
}

.am-m5-field textarea {
	line-height: var(--am-leading-normal);
	min-height: 7rem;
	resize: vertical;
}

.am-m5-field input[aria-invalid="true"],
.am-m5-field select[aria-invalid="true"],
.am-m5-field textarea[aria-invalid="true"] {
	border-color: var(--am-danger);
}

.am-m5-field__hint,
.am-m5-field__error {
	font-size: var(--am-text-xs);
}

.am-m5-field__error {
	color: var(--am-danger);
	font-weight: 700;
}

/* Quantity stepper: the number input stays the real control; buttons are a
   mouse convenience outside the tab order and are shown only when JS runs. */
.am-stepper {
	align-items: stretch;
	display: inline-flex;
	max-width: 100%;
}

.am-stepper input[type="number"] {
	border-radius: var(--am-radius-control);
	font-variant-numeric: var(--am-tnum);
	max-width: 6rem;
	min-width: 4.5rem;
	text-align: center;
	width: 6rem;
}

.am-stepper__quantity {
	display: none;
}

.am-stepper__button {
	align-items: center;
	background: var(--am-white);
	border: 1px solid var(--am-border-strong);
	color: var(--am-navy-900);
	cursor: pointer;
	display: none;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0;
	width: 2.75rem;
}

.am-js .am-stepper__button {
	display: inline-flex;
}

.am-stepper__button:hover {
	background: var(--am-surface-2);
}

.am-stepper__button--decrease {
	border-radius: var(--am-radius-control) 0 0 var(--am-radius-control);
	border-right: 0;
	order: -1;
}

.am-stepper__button--increase {
	border-left: 0;
	border-radius: 0 var(--am-radius-control) var(--am-radius-control) 0;
}

.am-js .am-stepper input[type="number"] {
	appearance: textfield;
	border-radius: 0;
}

.am-js .am-stepper input[type="number"]::-webkit-inner-spin-button,
.am-js .am-stepper input[type="number"]::-webkit-outer-spin-button {
	appearance: none;
	margin: 0;
}

/* Notices and error summaries ----------------------------------------------------- */

.am-m5-error-summary,
.am-m5-notices {
	border-radius: var(--am-radius-control);
	margin-bottom: var(--am-space-5);
	padding: var(--am-space-4) var(--am-space-5);
}

.am-m5-error-summary {
	background: var(--am-status-danger-bg);
	border-left: 3px solid var(--am-danger);
}

.am-m5-error-summary h2,
.am-m5-error-summary h3,
.am-m5-error-summary p,
.am-m5-error-summary ul,
.am-m5-notices p {
	margin-bottom: 0;
}

.am-m5-error-summary h2,
.am-m5-error-summary h3 {
	font-size: var(--am-text-md);
}

.am-m5-error-summary ul {
	margin-top: var(--am-space-2);
	padding-left: var(--am-space-5);
}

.am-m5-notices {
	background: var(--am-status-success-bg);
	border-left: 3px solid var(--am-success);
}

.am-m5-inline-state {
	background: var(--am-status-warning-bg);
	border-left: 3px solid var(--am-warning);
	border-radius: var(--am-radius-control);
	padding: var(--am-space-4);
}

.am-m5-inline-state--error,
.am-m5-inline-state--unavailable {
	background: var(--am-status-danger-bg);
	border-left-color: var(--am-danger);
}

.am-m5-inline-state p {
	margin: var(--am-space-1) 0 0;
}

/* Cart and review layout ----------------------------------------------------------- */

.am-m5-cart-layout,
.am-m5-review-layout {
	align-items: start;
	display: grid;
	gap: var(--am-space-6);
	grid-template-columns: minmax(0, 1.55fr) minmax(19rem, 0.78fr);
}

.am-m5-cart-items > ul,
.am-m5-summary-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.am-m5-cart-items__heading {
	align-items: baseline;
	border-bottom: 1px solid var(--am-border);
	display: flex;
	gap: var(--am-space-4);
	justify-content: space-between;
	margin-bottom: var(--am-space-2);
	padding-bottom: var(--am-space-3);
}

.am-m5-cart-items__heading h2 {
	margin-bottom: 0;
}

.am-m5-cart-items__heading p {
	color: var(--am-text-subtle);
	font-size: var(--am-text-sm);
	font-variant-numeric: var(--am-tnum);
	margin: 0;
	white-space: nowrap;
}

/* Line item. Default (summary beside a narrow items panel): compact, stacked facts.
   The single-row layout is enabled only from 90rem, where the panel is wide enough. */
.am-m5-cart-item {
	align-items: center;
	display: grid;
	gap: var(--am-space-4);
	grid-template-columns: 4rem minmax(0, 1fr) 2.75rem;
	padding-block: var(--am-space-4);
}

.am-m5-cart-item__visual {
	grid-row: 1 / span 2;
}

.am-m5-cart-item__identity {
	grid-column: 2;
	grid-row: 1;
}

.am-m5-cart-item__remove {
	grid-column: 3;
	grid-row: 1;
}

.am-m5-cart-item__price {
	grid-column: 2;
	grid-row: 2;
}

.am-m5-cart-item__quantity {
	grid-column: 2 / -1;
	grid-row: 3;
}

.am-m5-cart-item__total {
	grid-column: 2 / -1;
	grid-row: 4;
}

@media (min-width: 90rem) {
	.am-m5-cart-item {
		grid-template-columns: 4rem minmax(9rem, 1.4fr) minmax(5.5rem, 0.6fr) max-content minmax(6rem, 0.7fr) 2.75rem;
	}

	.am-m5-cart-item__visual,
	.am-m5-cart-item__identity,
	.am-m5-cart-item__price,
	.am-m5-cart-item__quantity,
	.am-m5-cart-item__total,
	.am-m5-cart-item__remove {
		grid-column: auto;
		grid-row: auto;
	}

	.am-m5-cart-item__total {
		justify-self: end;
		text-align: right;
	}
}

.am-m5-cart-item + .am-m5-cart-item {
	border-top: 1px solid var(--am-border);
}

.am-m5-cart-item__visual {
	align-items: center;
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: var(--am-radius-control);
	display: flex;
	height: 4rem;
	justify-content: center;
	overflow: hidden;
	width: 4rem;
}

.am-m5-cart-item__visual img {
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.am-m5-cart-item__visual .am-icon {
	color: var(--am-silver-500);
}

.am-m5-cart-item__identity,
.am-m5-cart-item__price,
.am-m5-cart-item__total {
	min-width: 0;
}

.am-m5-cart-item__identity h3 {
	font-size: var(--am-text-base);
	margin-bottom: var(--am-space-1);
	overflow-wrap: anywhere;
}

.am-m5-cart-item__identity p {
	color: var(--am-text-subtle);
	font-size: var(--am-text-xs);
	font-variant-numeric: var(--am-tnum);
	margin: 0 0 var(--am-space-1);
	overflow-wrap: anywhere;
}

.am-m5-cart-item__identity p > span {
	font-weight: 600;
}

.am-m5-cart-item__badges {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--am-space-2);
	margin-top: var(--am-space-2);
}

.am-m5-status-text {
	color: var(--am-text-subtle);
	font-size: var(--am-text-xs);
	margin: 0;
}

.am-m5-cart-item__price,
.am-m5-cart-item__total {
	display: grid;
	font-size: var(--am-text-xs);
	gap: 0;
}

.am-m5-cart-item__price > span,
.am-m5-cart-item__total > span {
	color: var(--am-text-subtle);
}

.am-m5-cart-item__price strong,
.am-m5-cart-item__total strong {
	font-size: var(--am-text-base);
	font-variant-numeric: var(--am-tnum);
	overflow-wrap: anywhere;
}

.am-m5-cart-item__total strong {
	font-size: var(--am-text-md);
}

.am-m5-cart-item__quantity {
	display: grid;
	gap: var(--am-space-2);
	justify-items: start;
}

.am-m5-cart-item__quantity .am-button {
	min-height: 2.25rem;
	padding-inline: var(--am-space-3);
	white-space: nowrap;
}

.am-m5-cart-item__remove {
	color: var(--am-text-subtle);
}

.am-m5-cart-item__remove:hover {
	background: var(--am-status-danger-bg);
	border-color: var(--am-danger);
	color: var(--am-danger);
}

.am-m5-text-button {
	background: transparent;
	border: 0;
	color: var(--am-danger);
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	min-height: 2.75rem;
	padding: var(--am-space-2);
	text-decoration: underline;
}

/* Summary panel ----------------------------------------------------------------------- */

.am-m5-summary {
	position: sticky;
	top: calc(var(--am-topbar-height) + var(--am-space-4));
}

.am-m5-summary dl,
.am-m5-confirmation__details {
	margin: 0 0 var(--am-space-4);
}

.am-m5-summary dl > div,
.am-m5-confirmation__details > div {
	display: flex;
	gap: var(--am-space-4);
	justify-content: space-between;
	padding-block: var(--am-space-3);
}

.am-m5-summary dl > div + div,
.am-m5-confirmation__details > div + div {
	border-top: 1px solid var(--am-border);
}

.am-m5-summary dt,
.am-m5-summary dd,
.am-m5-confirmation__details dt,
.am-m5-confirmation__details dd {
	margin: 0;
	overflow-wrap: anywhere;
}

/* Labels never break mid-word; values take the remaining width. */
.am-m5-summary dt,
.am-m5-confirmation__details dt {
	color: var(--am-text-muted);
	flex: 0 0 auto;
	white-space: nowrap;
}

.am-m5-summary dd,
.am-m5-confirmation__details dd {
	flex: 1 1 auto;
	font-variant-numeric: var(--am-tnum);
	min-width: 0;
	text-align: right;
}

.am-m5-summary dd.is-muted,
.am-m5-confirmation__details dd.is-muted {
	color: var(--am-text-subtle);
	font-size: var(--am-text-sm);
}

.am-m5-summary .am-button {
	margin-top: var(--am-space-3);
	width: 100%;
}

.am-m5-summary-items {
	border-bottom: 1px solid var(--am-border);
	margin-bottom: var(--am-space-3);
	padding-bottom: var(--am-space-3);
}

.am-m5-summary-items li {
	align-items: center;
	display: grid;
	gap: var(--am-space-3);
	grid-template-columns: auto minmax(0, 1fr) auto;
	padding-block: var(--am-space-2);
}

.am-m5-summary-items li > img {
	background: var(--am-surface);
	border: 1px solid var(--am-border);
	border-radius: var(--am-radius-control);
	height: 3.5rem;
	object-fit: contain;
	width: 3.5rem;
}

.am-m5-summary-items li > strong {
	font-variant-numeric: var(--am-tnum);
	white-space: nowrap;
}

.am-m5-summary-items span,
.am-m5-summary-items small {
	display: block;
	min-width: 0;
	overflow-wrap: anywhere;
}

.am-m5-summary-items small {
	color: var(--am-text-subtle);
	font-size: var(--am-text-xs);
	font-variant-numeric: var(--am-tnum);
}

.am-m5-summary__subtotal {
	align-items: center;
	border-bottom: 1px solid var(--am-border);
	border-top: 1px solid var(--am-border);
	display: flex;
	gap: var(--am-space-4);
	justify-content: space-between;
	margin-bottom: var(--am-space-4);
	padding-block: var(--am-space-4);
}

.am-m5-summary__subtotal span {
	font-weight: 700;
}

.am-m5-summary__subtotal strong {
	font-size: var(--am-text-lg);
	font-variant-numeric: var(--am-tnum);
}

/* Review sections --------------------------------------------------------------------- */

.am-m5-review-sections {
	display: grid;
	gap: var(--am-space-4);
}

.am-m5-review-card {
	min-width: 0;
	position: relative;
}

.am-m5-review-card__heading {
	align-items: center;
	display: flex;
	gap: var(--am-space-3);
	margin-bottom: var(--am-space-4);
}

.am-m5-review-card__heading .am-icon {
	background: var(--am-surface-2);
	border-radius: var(--am-radius-control);
	color: var(--am-navy-900);
	height: 2.25rem;
	padding: 0.5rem;
	width: 2.25rem;
}

.am-m5-review-card__heading h2,
.am-m5-review-card__heading legend {
	margin-bottom: 0;
}

fieldset.am-m5-review-card {
	margin: 0;
	min-width: 0;
}

/* The fieldset legend renders as an in-card heading instead of floating on the border. */
.am-m5-review-card > legend {
	float: left;
	padding: 0;
	width: 100%;
}

.am-m5-review-card > legend + * {
	clear: both;
}

.am-m5-location-options > p {
	margin-bottom: var(--am-space-4);
}

.am-m5-location-option {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
}

.am-m5-location-option + .am-m5-location-option {
	margin-top: var(--am-space-3);
}

.am-m5-location-option input {
	accent-color: var(--am-navy-900);
	height: 1.25rem;
	margin: var(--am-space-4) 0 0 var(--am-space-4);
	width: 1.25rem;
	z-index: 1;
}

.am-m5-location-option label {
	border: 1px solid var(--am-border-strong);
	border-radius: var(--am-radius-control);
	cursor: pointer;
	display: grid;
	gap: var(--am-space-1);
	margin-left: calc(-1.25rem - var(--am-space-4));
	min-height: 4.5rem;
	overflow-wrap: anywhere;
	padding: var(--am-space-4) var(--am-space-4) var(--am-space-4) calc(1.25rem + var(--am-space-8));
	transition: border-color var(--am-duration) var(--am-ease), box-shadow var(--am-duration) var(--am-ease);
}

.am-m5-location-option label:hover {
	border-color: var(--am-silver-500);
}

.am-m5-location-option input:checked + label {
	background: var(--am-brand-soft);
	border-color: var(--am-brand);
	box-shadow: inset 0 0 0 1px var(--am-brand);
}

.am-m5-location-option label span {
	color: var(--am-text-muted);
	font-size: var(--am-text-sm);
}

.am-m5-terms {
	display: grid;
	gap: var(--am-space-1);
}

.am-m5-terms-label {
	color: var(--am-text);
	font-size: var(--am-text-md);
	font-weight: 700;
	margin: 0;
}

.am-m5-review-card--note textarea {
	min-height: 5.5rem;
}

/* Empty state and confirmation ----------------------------------------------------- */

.am-m5-empty-state,
.am-m5-confirmation {
	padding: var(--am-space-10);
	text-align: center;
}

.am-m5-empty-state {
	background: var(--am-surface);
	border-style: dashed;
}

.am-m5-empty-state .am-icon,
.am-m5-confirmation__mark {
	margin: 0 auto var(--am-space-3);
}

.am-m5-empty-state .am-icon {
	color: var(--am-text-subtle);
}

.am-m5-empty-state > p,
.am-m5-confirmation > p {
	margin-inline: auto;
	max-width: 42rem;
}

.am-m5-confirmation {
	max-width: 48rem;
}

.am-m5-confirmation__mark {
	align-items: center;
	background: var(--am-status-success-bg);
	border-radius: 50%;
	color: var(--am-success-strong);
	display: inline-flex;
	height: 3.5rem;
	justify-content: center;
	width: 3.5rem;
}

.am-m5-confirmation__mark .am-icon {
	height: 1.75rem;
	width: 1.75rem;
}

.am-m5-confirmation__status {
	margin-bottom: var(--am-space-3);
}

.am-m5-confirmation h1 {
	margin-bottom: var(--am-space-2);
}

.am-m5-confirmation__details {
	background: var(--am-surface);
	border-radius: var(--am-radius-control);
	margin-top: var(--am-space-6);
	padding: var(--am-space-3) var(--am-space-5);
	text-align: left;
}

.am-m5-confirmation__details dd span {
	display: block;
}

.am-m5-confirmation__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--am-space-3);
	justify-content: center;
	margin-top: var(--am-space-5);
}

/* Responsive ----------------------------------------------------------------------------- */

@media (max-width: 70rem) {
	.am-m5-cart-layout,
	.am-m5-review-layout {
		grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.7fr);
	}
}

/* Single column: items get the full width again, so the quantity returns to the right. */
@media (max-width: 58rem) {
	.am-m5-cart-layout,
	.am-m5-review-layout {
		grid-template-columns: 1fr;
	}

	.am-m5-summary {
		position: static;
	}

	.am-m5-cart-item {
		grid-template-columns: 4rem minmax(0, 1fr) auto 2.75rem;
	}

	.am-m5-cart-item__visual {
		grid-row: 1 / span 3;
	}

	.am-m5-cart-item__price {
		grid-column: 2;
		grid-row: 2;
	}

	.am-m5-cart-item__total {
		grid-column: 2;
		grid-row: 3;
	}

	.am-m5-cart-item__quantity {
		grid-column: 3;
		grid-row: 1 / span 3;
	}

	.am-m5-cart-item__remove {
		grid-column: 4;
		grid-row: 1;
	}
}

@media (max-width: 50rem) {
	.am-m5-page-header {
		align-items: stretch;
		flex-direction: column;
		gap: var(--am-space-4);
	}

	.am-m5-synthetic-notice {
		max-width: none;
	}

	.am-m5-product-order-form .am-button--primary {
		flex-basis: 100%;
	}

	.am-m5-order-controls__cart-link {
		justify-content: stretch;
	}

	.am-m5-order-controls__cart-link .am-button {
		width: 100%;
	}
}

@media (max-width: 40rem) {
	.am-m5-cart-item {
		grid-template-columns: 4rem minmax(0, 1fr) 2.75rem;
	}

	.am-m5-cart-item__visual {
		grid-row: 1 / span 2;
	}

	.am-m5-cart-item__remove {
		grid-column: 3;
		grid-row: 1;
	}

	.am-m5-cart-item__price,
	.am-m5-cart-item__total {
		grid-column: 2;
		grid-row: auto;
		justify-self: start;
		text-align: left;
	}

	.am-m5-cart-item__quantity {
		grid-column: 1 / -1;
		grid-row: auto;
		justify-items: stretch;
	}

	.am-m5-cart-item__quantity .am-stepper,
	.am-m5-cart-item__quantity .am-stepper input[type="number"] {
		max-width: none;
		width: 100%;
	}

	.am-m5-cart-item__quantity .am-button {
		width: 100%;
	}

	.am-m5-cart-item__total {
		grid-column: 1 / -1;
	}

	.am-m5-summary-items li {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.am-m5-summary-items li > strong {
		grid-column: 2;
	}

	.am-m5-summary__subtotal {
		align-items: flex-start;
		flex-direction: column;
		gap: var(--am-space-1);
	}

	.am-m5-empty-state .am-button,
	.am-m5-confirmation__actions .am-button,
	.am-m5-confirmation .am-m6-next-step .am-button {
		width: 100%;
	}

	.am-m5-summary dl > div,
	.am-m5-confirmation__details > div {
		align-items: flex-start;
		flex-direction: column;
		gap: var(--am-space-1);
	}

	.am-m5-summary dd,
	.am-m5-confirmation__details dd {
		text-align: left;
	}

	.am-m5-empty-state,
	.am-m5-confirmation {
		padding: var(--am-space-6) var(--am-space-4);
	}

	.am-m5-product-order-form .am-m5-field--quantity,
	.am-m5-product-order-form .am-stepper,
	.am-m5-product-order-form .am-stepper input[type="number"] {
		max-width: none;
		width: 100%;
	}
}

@media (max-width: 30rem) {
	.am-m5-progress li {
		font-size: var(--am-text-xs);
	}
}

@media (max-width: 22rem) {
	.am-m5-order-controls,
	.am-m5-cart-items,
	.am-m5-summary,
	.am-m5-review-card {
		padding: var(--am-space-4);
	}

	.am-m5-cart-item {
		grid-template-columns: minmax(0, 1fr) 2.75rem;
	}

	.am-m5-cart-item__visual {
		display: none;
	}

	.am-m5-cart-item__identity,
	.am-m5-cart-item__price,
	.am-m5-cart-item__total {
		grid-column: 1;
	}

	.am-m5-cart-item__remove {
		grid-column: 2;
	}

	.am-m5-cart-item__quantity {
		grid-column: 1 / -1;
	}

	.am-m5-summary-items li > strong {
		grid-column: 1 / -1;
		justify-self: start;
	}
}
