.local-pos-panel-cart .local-pos-button {
	width: 100%;
}

.local-pos-cart-items {
	display: block;
}

/* One product per entry: photo + name with the remove icon top-right,
   controls row underneath spanning the full width. Dividers instead of
   nested cards. */
.local-pos-cart-item {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 22px;
	grid-template-areas:
		"thumb copy remove"
		"controls controls controls";
	column-gap: 12px;
	row-gap: 10px;
	align-items: start;
	padding: 12px 0;
	border-bottom: 1px solid var(--local-pos-border);
}

.local-pos-cart-item:first-child {
	padding-top: 2px;
}

.local-pos-cart-item:last-child {
	border-bottom: 0;
}

/* White + contain (not cover) so staff uploads show whole, never cropped,
   matching the product tiles. */
.local-pos-cart-thumb {
	grid-area: thumb;
	width: 44px;
	height: 44px;
	border-radius: var(--local-pos-radius);
	overflow: hidden;
	background: #ffffff;
	border: 1px solid var(--local-pos-border);
	color: var(--local-pos-accent-strong);
	font-weight: 700;
	display: grid;
	place-items: center;
}

.local-pos-cart-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 3px;
}

.local-pos-cart-copy {
	grid-area: copy;
	min-width: 0;
	display: grid;
	gap: 2px;
}

.local-pos-cart-copy strong {
	display: block;
	font-size: 14px;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.local-pos-cart-unit {
	font-size: 12px;
	color: var(--local-pos-muted);
	font-variant-numeric: tabular-nums;
}

/* Stepper on the left, line total on the right. */
.local-pos-cart-controls {
	grid-area: controls;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

/* Plain row of the app's standard mini-buttons with the quantity between
   them - same controls as the inventory adjustments. Every dimension is
   locked with !important under a two-class selector because Elementor's
   kit CSS (.elementor-kit-N button) outranks a single class and was
   stretching these into tall pills. */
.local-pos-cart-stepper {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.local-pos-cart-stepper .local-pos-cart-step {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	width: 34px !important;
	height: 34px !important;
	min-width: 34px !important;
	min-height: 34px !important;
	max-width: 34px !important;
	max-height: 34px !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: var(--local-pos-radius) !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
}

.local-pos-cart-stepper .local-pos-cart-qty {
	min-width: 26px;
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.local-pos-cart-line-total {
	font-size: 14px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	text-align: right;
}

/* Bare icon pinned top-right: no box in any state (the theme repaints
   button backgrounds on :hover and :focus, so every state needs the
   override, and the two-class selector outranks Elementor's kit CSS).
   Only the color reacts, going red on hover/focus. */
.local-pos-cart-item .local-pos-cart-remove,
.local-pos-cart-item .local-pos-cart-remove:hover,
.local-pos-cart-item .local-pos-cart-remove:focus,
.local-pos-cart-item .local-pos-cart-remove:focus-visible {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
}

.local-pos-cart-item .local-pos-cart-remove {
	grid-area: remove;
	justify-self: end;
	align-self: start;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 22px !important;
	height: 22px !important;
	color: var(--local-pos-muted) !important;
	font-size: 16px !important;
	line-height: 1 !important;
	cursor: pointer;
	transition: color 140ms ease;
}

.local-pos-cart-item .local-pos-cart-remove:hover,
.local-pos-cart-item .local-pos-cart-remove:focus-visible {
	color: var(--local-pos-danger) !important;
}

.local-pos-cart-summary {
	margin: 16px 0 20px;
	padding-top: 16px;
	border-top: 1px solid var(--local-pos-border);
}

.local-pos-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.local-pos-summary-row span {
	font-size: 13px;
	font-weight: 600;
	color: var(--local-pos-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.local-pos-summary-row strong {
	font-size: 22px;
	font-weight: 700;
	color: var(--local-pos-text);
}

