.local-pos-local-selector {
	margin: 0 auto 22px;
	max-width: 960px;
	padding: 32px;
	border-radius: var(--local-pos-radius-lg);
	background: #ffffff;
	border: 1px solid var(--local-pos-border);
	box-shadow: var(--local-pos-shadow);
}

.local-pos-local-selector-head {
	max-width: 620px;
}

.local-pos-local-selector-head .local-pos-eyebrow {
	margin-bottom: 6px;
}

.local-pos-local-status {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 20px 0 0;
	padding: 14px 16px;
	border-radius: var(--local-pos-radius-md);
	background: var(--local-pos-accent-soft);
	border: 1px solid rgba(139, 92, 246, 0.18);
	color: var(--local-pos-accent-strong);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.5;
}

.local-pos-local-status-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--local-pos-accent);
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	font-style: italic;
	font-family: Georgia, "Times New Roman", serif;
}

.local-pos-local-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, 250px);
	justify-content: center;
	gap: 18px;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--local-pos-border);
}

.local-pos-local-card {
	/* The theme's own button reset (hello-elementor/assets/css/reset.css) sets
	   every <button> to display:inline-block, padding:.5rem 1rem, and
	   center-aligns its text; all three need an explicit, !important override
	   or the layout collapses into a centered inline stack with squashed
	   padding. */
	position: relative;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 18px;
	width: 250px;
	min-height: 270px;
	padding: 68px 20px 28px !important;
	border-radius: var(--local-pos-radius-lg);
	border: 1px solid var(--local-pos-border) !important;
	background: #ffffff !important;
	text-align: center !important;
	color: var(--local-pos-text) !important;
	box-shadow: var(--local-pos-shadow);
	transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}

/* Same theme reset also repaints background/color to a pink accent on
   :hover and :focus - both states need the same explicit override. */
.local-pos-local-card:hover,
.local-pos-local-card:focus-visible {
	background: #ffffff !important;
	color: var(--local-pos-text) !important;
	transform: translateY(-1px);
	box-shadow: var(--local-pos-shadow-md);
}

.local-pos-local-card.is-active,
.local-pos-local-card.is-active:hover,
.local-pos-local-card.is-active:focus-visible {
	border-color: var(--local-pos-accent) !important;
	box-shadow: var(--local-pos-shadow-md);
	background: var(--local-pos-accent-soft) !important;
	color: var(--local-pos-text) !important;
}

.local-pos-local-card-icon {
	width: 84px;
	height: 84px;
	border-radius: var(--local-pos-radius-md);
	overflow: hidden;
	display: grid;
	place-items: center;
	background: #ffffff;
	border: 1px solid var(--local-pos-border);
	box-shadow: var(--local-pos-shadow);
}

/* Paused by default (first frame shown as a static icon); app.js plays it
   on card hover and resets it back to the first frame on hover-out. */
.local-pos-local-card-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

.local-pos-local-card-copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.local-pos-local-card-copy strong {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--local-pos-text);
}

.local-pos-local-card-status {
	position: absolute;
	top: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	width: fit-content;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 5px 12px;
	border-radius: var(--local-pos-radius-full);
	background: var(--local-pos-accent-soft);
	color: var(--local-pos-accent-strong);
}

/* Register state drives the badge color: free, mine, pending close, taken. */
.local-pos-local-card-status.is-available {
	background: var(--local-pos-success-soft);
	color: var(--local-pos-success-ink);
}

.local-pos-local-card-status.is-stale {
	background: var(--local-pos-warn-soft);
	color: var(--local-pos-warn-ink);
}

.local-pos-local-card-status.is-taken {
	background: var(--local-pos-danger-soft);
	color: var(--local-pos-danger-ink);
}

.local-pos-local-card-meta {
	color: var(--local-pos-muted);
	font-size: 13px;
	line-height: 1.5;
}

/* Slim context strip: who is operating where, without eating vertical space. */
.local-pos-hero {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 24px;
	padding: 14px 20px;
	border-radius: var(--local-pos-radius-lg);
	background: #ffffff;
	border: 1px solid var(--local-pos-border);
	border-left: 3px solid var(--local-pos-accent);
	box-shadow: var(--local-pos-shadow);
	margin-bottom: 22px;
}

.local-pos-hero-copy {
	min-width: 0;
}

.local-pos-hero h3 {
	margin: 0 0 2px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.local-pos-hero p {
	margin: 0;
	max-width: 620px;
	color: var(--local-pos-muted);
	font-size: 13px;
}

.local-pos-hero-metrics {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	flex-shrink: 0;
}

.local-pos-metric {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 8px 14px;
	border-radius: var(--local-pos-radius-full);
	background: var(--local-pos-bg);
	border: 1px solid var(--local-pos-border);
}

.local-pos-metric span {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--local-pos-muted);
}

.local-pos-metric strong {
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

.local-pos-dashboard {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
	gap: 22px;
	align-items: start;
}

.local-pos-panel {
	background: var(--local-pos-panel);
	border: 1px solid var(--local-pos-border);
	border-radius: var(--local-pos-radius-lg);
	padding: 24px;
	box-shadow: var(--local-pos-shadow);
}

/* Recent sales sit under products + cart, spanning the full row. */
.local-pos-history-panel {
	grid-column: 1 / -1;
}

.local-pos-featured-block,
.local-pos-results-block {
	margin-top: 20px;
}

/* Product tiles: the whole tile is the add-to-cart button. */
.local-pos-featured-grid,
.local-pos-results {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
	align-items: stretch;
}

.local-pos-results {
	margin-top: 18px;
}

.local-pos-featured-grid .local-pos-empty,
.local-pos-results .local-pos-empty {
	grid-column: 1 / -1;
}

.local-pos-product-tile {
	/* Same theme button reset as .local-pos-local-card: display, padding,
	   text-align, and hover/focus repaint all need explicit overrides.
	   white-space too: the reset's nowrap would cut titles mid-word. */
	display: flex !important;
	flex-direction: column;
	align-items: stretch;
	padding: 0 !important;
	text-align: left !important;
	white-space: normal !important;
	border: 1px solid var(--local-pos-border) !important;
	border-radius: var(--local-pos-radius-lg);
	background: #ffffff !important;
	color: var(--local-pos-text) !important;
	overflow: hidden;
	cursor: pointer;
	box-shadow: var(--local-pos-shadow);
	transition: box-shadow 160ms ease, transform 160ms ease;
}

.local-pos-product-tile:hover,
.local-pos-product-tile:focus-visible {
	background: #ffffff !important;
	color: var(--local-pos-text) !important;
	transform: translateY(-2px);
	box-shadow: var(--local-pos-shadow-md);
}

.local-pos-product-tile:focus-visible {
	outline: 2px solid var(--local-pos-accent);
	outline-offset: 2px;
}

.local-pos-product-tile.is-unavailable {
	opacity: 0.6;
}

.local-pos-product-tile-media {
	position: relative;
	aspect-ratio: 1 / 1;
	display: grid;
	place-items: center;
	/* White (not --local-pos-bg) so staff photos shot on white blend in
	   instead of floating as a visible white rectangle. */
	background: #ffffff;
	border-bottom: 1px solid var(--local-pos-border);
	width: 100%;
	overflow: hidden;
}

/* Absolutely positioned so the photo's intrinsic size can never stretch
   the square, and 100% + contain scales every upload (too big or too
   small) to the same visual footprint. */
.local-pos-product-tile-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 14px;
}

.local-pos-product-tile-placeholder {
	font-size: 32px;
	font-weight: 700;
	color: var(--local-pos-accent-strong);
	opacity: 0.45;
}

.local-pos-product-tile-stock {
	position: absolute;
	top: 8px;
	right: 8px;
}

.local-pos-product-tile-stock .local-pos-stock-pill {
	font-size: 11px;
	padding: 3px 9px;
	box-shadow: var(--local-pos-shadow);
}

.local-pos-product-tile-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 12px 12px;
	width: 100%;
	flex: 1;
}

.local-pos-product-tile-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	overflow-wrap: anywhere;
}

.local-pos-product-tile-meta {
	font-size: 11px;
	color: var(--local-pos-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.local-pos-product-tile-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 6px;
}

.local-pos-product-tile-footer .local-pos-price-current {
	font-size: 15px;
	font-variant-numeric: tabular-nums;
}

.local-pos-product-tile-add {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--local-pos-accent-soft);
	color: var(--local-pos-accent-strong);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	flex-shrink: 0;
	transition: background 140ms ease, color 140ms ease;
}

.local-pos-product-tile:hover .local-pos-product-tile-add,
.local-pos-product-tile:focus-visible .local-pos-product-tile-add {
	background: var(--local-pos-accent);
	color: #ffffff;
}

/* Sales history: one ledger row per order, matching the inventory list. */
.local-pos-history-panel .local-pos-history-list {
	display: block;
	margin-top: 4px;
	border: 1px solid var(--local-pos-border);
	border-radius: var(--local-pos-radius-lg);
	overflow: hidden;
}

.local-pos-history-panel .local-pos-history-list.is-empty {
	border: 0;
	overflow: visible;
}

.local-pos-sale-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(90px, auto) auto;
	gap: 16px;
	align-items: center;
	padding: 12px 16px;
	border-bottom: 1px solid var(--local-pos-border);
	transition: background 140ms ease;
}

.local-pos-sale-row:last-child {
	border-bottom: 0;
}

.local-pos-sale-row:hover {
	background: var(--local-pos-bg);
}

.local-pos-sale-id {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.local-pos-sale-id strong {
	font-size: 14px;
}

.local-pos-sale-id .local-pos-history-meta {
	font-size: 12px;
	overflow-wrap: anywhere;
}

.local-pos-sale-total {
	font-size: 15px;
	font-variant-numeric: tabular-nums;
	justify-self: end;
	white-space: nowrap;
}

.local-pos-sale-actions {
	justify-self: end;
	gap: 6px;
}

.local-pos-sale-actions .local-pos-mini-button {
	padding: 6px 12px !important;
	font-size: 13px;
}

@media (max-width: 1100px) {
	.local-pos-dashboard {
		grid-template-columns: 1fr;
	}

	.local-pos-hero {
		flex-direction: column;
		align-items: flex-start;
	}

	.local-pos-local-grid {
		grid-template-columns: 1fr;
	}

	.local-pos-local-card {
		width: 100%;
	}
}

@media (max-width: 720px) {
	.local-pos-sale-row {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.local-pos-sale-total {
		grid-row: 1;
		grid-column: 2;
	}

	.local-pos-sale-row .local-pos-status-badge {
		justify-self: start;
	}

	.local-pos-sale-actions {
		grid-column: 1 / -1;
		justify-self: stretch;
		justify-content: flex-start;
	}
}
