:root {
	--pos-red: #A03532;
	--pos-red-dark: #7D2220;
	--pos-dark: #3C292C;
	--pos-gold: #C8A96E;
	--pos-gold-light: #F1DBB6;
	--pos-copper: #CD9D7A;
	--pos-brown: #A2735F;
	--pos-bg: #F0EBE3;
	--pos-surface: #FFFFFF;
	--pos-border: #E8D5C0;
	--pos-shadow: rgba(60, 41, 44, 0.12);
	--pos-success: #16A34A;
	--pos-error: #DC2626;
	--pos-sidebar-w: 200px;
	--pos-register-w: 440px;
	--pos-topbar-h: 56px;
	--pos-radius: 14px;
	--pos-radius-sm: 10px;
	--pos-panel-header-h: 68px;
}

/* Theme isolation */
.pos-order-form-wrap {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--pos-dark);
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	line-height: 1.4;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
}

[x-cloak] {
	display: none !important;
}

.pos-order-form-wrap:not(.pos-hydrated) .pos-boot-overlay {
	display: flex !important;
}

.pos-order-form-wrap.pos-hydrated .pos-boot-overlay {
	display: none !important;
}

.pos-global-overlay {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(60, 41, 44, 0.72);
	backdrop-filter: blur(6px);
}

.pos-global-overlay.is-active {
	display: flex;
}

.pos-checkout-overlay {
	z-index: 2100;
}

.pos-global-loading-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	min-width: 220px;
	padding: 32px 40px;
	background: var(--pos-surface);
	border-radius: var(--pos-radius);
	box-shadow: 0 24px 64px rgba(60, 41, 44, 0.28);
	text-align: center;
}

.pos-global-loading-text {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--pos-dark);
}

.pos-spinner-lg {
	width: 44px;
	height: 44px;
	border-width: 4px;
}

.pos-order-form-wrap *,
.pos-order-form-wrap *::before,
.pos-order-form-wrap *::after {
	box-sizing: border-box;
}

/* Reset theme / WooCommerce — aggressive isolation */
.pos-order-form-wrap button,
.pos-order-form-wrap input[type="submit"],
.pos-order-form-wrap input[type="button"],
.pos-order-form-wrap input[type="search"],
.pos-order-form-wrap input[type="text"],
.pos-order-form-wrap input[type="email"],
.pos-order-form-wrap select,
.pos-order-form-wrap .button,
.pos-order-form-wrap a.button,
.pos-order-form-wrap .woocommerce-button {
	appearance: none !important;
	-webkit-appearance: none !important;
	background-image: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	font-family: inherit !important;
	line-height: normal !important;
	float: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.pos-order-form-wrap input[type="text"],
.pos-order-form-wrap input[type="email"],
.pos-order-form-wrap input[type="search"],
.pos-order-form-wrap select {
	border: 1.5px solid var(--pos-border) !important;
	border-radius: 9px !important;
	background-color: var(--pos-surface) !important;
	color: var(--pos-dark) !important;
}

.pos-order-form-wrap .button.alt,
.pos-order-form-wrap .woocommerce a.button,
.pos-order-form-wrap .woocommerce button.button,
.pos-order-form-wrap .woocommerce input.button {
	all: unset;
	box-sizing: border-box;
	font-family: inherit;
}

#pos-root {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 100vh;
	min-height: 100dvh;
	max-height: 100dvh;
	overflow: hidden;
	background: var(--pos-bg);
	margin: 0;
	max-width: none;
}

/* ── Top bar ── */
#pos-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--pos-topbar-h);
	padding: 0 24px;
	background: linear-gradient(180deg, var(--pos-dark) 0%, #2f1f21 100%);
	color: var(--pos-gold-light);
	flex-shrink: 0;
	z-index: 10;
	box-shadow: 0 2px 12px rgba(60, 41, 44, 0.2);
}

.pos-brand {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.pos-user-info {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	white-space: nowrap;
	color: var(--pos-gold-light);
}

.pos-user-guest {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: inherit;
}

.pos-user-sep {
	opacity: 0.45;
	user-select: none;
}

.pos-order-form-wrap .pos-topbar-link {
	display: inline;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	font-family: inherit;
	font-size: inherit;
	font-weight: 600;
	line-height: inherit;
	color: var(--pos-gold-light) !important;
	text-decoration: none;
	text-transform: none !important;
	letter-spacing: normal !important;
	min-height: 0 !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	transition: color 0.15s;
}

.pos-order-form-wrap .pos-topbar-link:hover,
.pos-order-form-wrap .pos-topbar-link:focus-visible {
	color: var(--pos-gold) !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.pos-order-form-wrap .pos-topbar-link:focus-visible {
	outline: 2px solid var(--pos-gold);
	outline-offset: 2px;
}

.pos-user-name {
	font-weight: 500;
	color: inherit;
}

/* ── Main 3-column layout ── */
#pos-main {
	display: flex;
	flex: 1;
	overflow: hidden;
	min-height: 0;
}

/* ── Category sidebar ── */
#pos-sidebar {
	width: var(--pos-sidebar-w);
	flex-shrink: 0;
	background: var(--pos-surface);
	border-right: 1px solid var(--pos-border);
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

.pos-sidebar-label {
	padding: 16px 16px 8px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--pos-brown);
}

.pos-category-nav {
	display: flex;
	flex-direction: column;
	padding: 0 10px 16px;
	gap: 2px;
}

.pos-order-form-wrap button.pos-category-btn {
	display: block !important;
	width: 100% !important;
	padding: 11px 14px !important;
	border: none !important;
	border-radius: var(--pos-radius-sm) !important;
	background: transparent !important;
	color: var(--pos-dark) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	text-align: left !important;
	cursor: pointer !important;
	line-height: 1.35 !important;
	transition: background 0.15s, color 0.15s !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-height: 44px;
	box-shadow: none !important;
}

.pos-order-form-wrap button.pos-category-btn:hover {
	background: var(--pos-bg) !important;
	color: var(--pos-red) !important;
}

.pos-order-form-wrap button.pos-category-btn.active {
	background: var(--pos-red) !important;
	color: #fff !important;
	font-weight: 600 !important;
	box-shadow: 0 2px 8px rgba(160, 53, 50, 0.25) !important;
}

/* ── Catalog area ── */
#pos-catalog {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	min-width: 0;
	min-height: 0;
	background: var(--pos-bg);
}

.pos-catalog-toolbar {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: var(--pos-panel-header-h);
	height: var(--pos-panel-header-h);
	padding: 0 16px;
	background: var(--pos-surface);
	border-bottom: 1px solid var(--pos-border);
	flex-shrink: 0;
	box-shadow: 0 1px 4px var(--pos-shadow);
	box-sizing: border-box;
}

.pos-catalog-scroll {
	flex: 1 1 0;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--pos-border) transparent;
}

.pos-catalog-scroll::-webkit-scrollbar {
	width: 8px;
}

.pos-catalog-scroll::-webkit-scrollbar-thumb {
	background: var(--pos-border);
	border-radius: 999px;
}

.pos-search-wrap {
	flex: 1;
	position: relative;
	max-width: 480px;
}

.pos-search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--pos-copper);
	pointer-events: none;
}

#pos-search {
	width: 100%;
	padding: 10px 14px 10px 40px;
	border: 1.5px solid var(--pos-border) !important;
	border-radius: 10px;
	background: var(--pos-bg) !important;
	background-color: var(--pos-bg) !important;
	font-size: 14px;
	font-family: inherit;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
	min-height: 44px;
	color: var(--pos-dark) !important;
	box-shadow: none !important;
}

#pos-search:focus {
	border-color: var(--pos-red) !important;
	box-shadow: 0 0 0 3px rgba(160, 53, 50, 0.12) !important;
}

.pos-product-count {
	font-size: 12px;
	color: var(--pos-brown);
	white-space: nowrap;
	font-weight: 500;
}

/* ── Smart Grid ── */
#pos-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
	gap: 16px;
	padding: 20px;
	align-content: start;
}

.pos-product-tile {
	display: flex;
	flex-direction: column;
	background: var(--pos-surface);
	border-radius: var(--pos-radius);
	border: 1px solid var(--pos-border);
	overflow: hidden;
	cursor: default;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	box-shadow: 0 1px 3px rgba(60, 41, 44, 0.06);
}

.pos-product-tile:hover .pos-tile-image-wrap img {
	transform: scale(1.04);
}

.pos-product-tile:hover {
	border-color: rgba(160, 53, 50, 0.45);
	box-shadow: 0 8px 24px var(--pos-shadow);
	transform: translateY(-3px);
}

.pos-product-tile.in-cart {
	border-color: var(--pos-red);
	box-shadow: 0 0 0 2px rgba(160, 53, 50, 0.15), 0 4px 12px var(--pos-shadow);
}

.pos-tile-image-wrap {
	position: relative;
	aspect-ratio: 1 / 1;
	width: 100%;
	min-height: 120px;
	overflow: hidden;
	background: linear-gradient(145deg, var(--pos-bg) 0%, #faf6f0 100%);
	flex-shrink: 0;
}

.pos-tile-image-wrap.pos-no-image,
.pos-cart-item-thumb-wrap.pos-no-image,
.pos-variation-image-wrap.pos-no-image {
	background: linear-gradient(145deg, #e8dfd3 0%, #f3ece4 100%);
}

.pos-tile-image-wrap.pos-no-image::before,
.pos-cart-item-thumb-wrap.pos-no-image::before,
.pos-variation-image-wrap.pos-no-image::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%23A2735F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 42%;
	opacity: 0.45;
	pointer-events: none;
}

.pos-order-form-wrap .pos-tile-image-wrap img,
.pos-order-form-wrap .pos-cart-item-thumb-wrap img,
.pos-order-form-wrap .pos-cart-item-thumb,
.pos-order-form-wrap .pos-variation-image-wrap img,
.pos-order-form-wrap .pos-variation-image {
	max-width: none !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.pos-tile-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	background: var(--pos-bg);
	opacity: 0;
	transition: opacity 0.2s ease, transform 0.25s ease;
}

.pos-tile-image-wrap img.is-loaded {
	opacity: 1;
}

.pos-tile-image-wrap img.is-error,
.pos-tile-image-wrap.pos-no-image img {
	display: none !important;
}

.pos-tile-body {
	padding: 12px 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.pos-tile-name {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--pos-dark);
	min-height: 2.7em;
}

.pos-tile-price {
	margin: 0;
	color: var(--pos-red);
	font-weight: 700;
	font-size: 16px;
	letter-spacing: -0.02em;
}

.pos-tile-actions {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 8px;
	padding: 10px;
	background: linear-gradient(180deg, rgba(60, 41, 44, 0) 30%, rgba(60, 41, 44, 0.55) 100%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.pos-product-tile:hover .pos-tile-actions,
.pos-product-tile:focus-within .pos-tile-actions {
	opacity: 1;
	pointer-events: auto;
}

.pos-order-form-wrap .pos-tile-action {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 36px;
	padding: 8px 12px;
	border: none !important;
	border-radius: 8px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	text-transform: none !important;
	letter-spacing: 0.01em;
	box-shadow: 0 4px 12px rgba(60, 41, 44, 0.18);
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pos-tile-action-detail {
	background: rgba(255, 255, 255, 0.96) !important;
	color: var(--pos-dark) !important;
}

.pos-tile-action-detail:hover {
	background: #fff !important;
	transform: translateY(-1px);
}

.pos-tile-action-add {
	background: var(--pos-red) !important;
	color: #fff !important;
}

.pos-tile-action-add:hover {
	background: var(--pos-red-dark) !important;
	transform: translateY(-1px);
}

.pos-detail-meta {
	margin-bottom: 4px;
}

.pos-detail-price {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	color: var(--pos-red);
}

.pos-detail-sku {
	margin: 0;
	font-size: 12px;
	color: var(--pos-brown);
}

.pos-detail-description-wrap {
	margin: 0 0 14px;
}

.pos-detail-description {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--pos-brown);
	white-space: pre-wrap;
}

.pos-detail-description.is-collapsed {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	white-space: normal;
}

.pos-order-form-wrap .pos-detail-read-more {
	display: inline-flex;
	align-items: center;
	margin-top: 6px;
	padding: 0 !important;
	border: none !important;
	border-radius: 0;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--pos-accent) !important;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
	text-transform: none !important;
	letter-spacing: normal !important;
	min-height: 0 !important;
	min-width: 0;
	appearance: none !important;
	-webkit-appearance: none !important;
	transition: color 0.15s;
}

.pos-order-form-wrap .pos-detail-read-more:hover,
.pos-order-form-wrap .pos-detail-read-more:focus-visible {
	color: var(--pos-dark) !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	text-decoration: underline;
}

.pos-order-form-wrap .pos-detail-read-more:focus-visible {
	outline: 2px solid var(--pos-accent);
	outline-offset: 2px;
}

.pos-tile-sku {
	display: none;
}

.pos-product-tile.out-of-stock {
	opacity: 0.7;
	cursor: not-allowed;
}

.pos-product-tile.out-of-stock:hover {
	transform: none;
	box-shadow: 0 1px 3px rgba(60, 41, 44, 0.06);
	border-color: var(--pos-border);
}

.pos-tile-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 4;
	background: var(--pos-red);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 4px 9px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	box-shadow: 0 2px 6px rgba(160, 53, 50, 0.35);
}

.pos-tile-options {
	position: absolute;
	bottom: 10px;
	left: 10px;
	z-index: 2;
	background: var(--pos-dark);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 4px 9px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: opacity 0.2s ease;
}

.pos-product-tile:hover .pos-tile-options {
	opacity: 0;
}

.pos-tile-oos {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(60, 41, 44, 0.6);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	backdrop-filter: blur(2px);
}

.pos-loading,
.pos-empty {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 60px 20px;
	color: var(--pos-brown);
	text-align: center;
}

.pos-spinner {
	width: 32px;
	height: 32px;
	border: 3px solid var(--pos-border);
	border-top-color: var(--pos-red);
	border-radius: 50%;
	animation: pos-spin 0.7s linear infinite;
}

@keyframes pos-spin {
	to { transform: rotate(360deg); }
}

.pos-empty svg {
	color: var(--pos-copper);
	opacity: 0.6;
}

.pos-empty p {
	margin: 0;
	font-size: 14px;
}

.pos-load-more-wrap {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	padding: 8px 0 16px;
}

.pos-load-more-btn {
	min-width: 220px;
	min-height: 48px !important;
}

/* ── Register panel ── */
#pos-register {
	width: var(--pos-register-w);
	flex-shrink: 0;
	background: var(--pos-surface);
	border-left: 1px solid var(--pos-border);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: -8px 0 32px rgba(60, 41, 44, 0.08);
	position: relative;
}

.pos-register-inner {
	position: relative;
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
}

.pos-cart-phase {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
}

.pos-register-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: var(--pos-panel-header-h);
	height: var(--pos-panel-header-h);
	padding: 0 20px;
	background: var(--pos-surface);
	border-bottom: 1px solid var(--pos-border);
	flex-shrink: 0;
	box-sizing: border-box;
}

.pos-register-title {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.pos-register-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--pos-red) 0%, var(--pos-red-dark) 100%);
	color: #fff;
	flex-shrink: 0;
}

.pos-register-header h2 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--pos-dark);
	letter-spacing: -0.02em;
}

.pos-cart-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--pos-red);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.pos-clear-btn {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	color: var(--pos-brown);
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	min-height: 32px;
	transition: color 0.15s, background 0.15s;
	flex-shrink: 0;
	text-transform: none !important;
	letter-spacing: normal !important;
}

.pos-clear-btn:hover {
	color: var(--pos-red) !important;
	background: rgba(160, 53, 50, 0.08) !important;
	border: none !important;
}

.pos-register-actions {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

.pos-hold-btn {
	background: rgba(200, 169, 110, 0.18) !important;
	border: 1px solid rgba(200, 169, 110, 0.45) !important;
	box-shadow: none !important;
	color: var(--pos-dark);
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	min-height: 32px;
	transition: color 0.15s, background 0.15s, border-color 0.15s;
	flex-shrink: 0;
	text-transform: none !important;
	letter-spacing: normal !important;
}

.pos-hold-btn:hover {
	color: var(--pos-red-dark) !important;
	background: var(--pos-gold-light) !important;
	border-color: var(--pos-gold) !important;
}

.pos-held-bar {
	flex-shrink: 0;
	border-bottom: 1px solid var(--pos-border);
	background: rgba(241, 219, 182, 0.35);
}

.pos-held-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 10px 20px;
	border: 0;
	background: transparent;
	color: var(--pos-dark);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
}

.pos-held-toggle svg {
	margin-left: auto;
	transition: transform 0.15s ease;
	flex-shrink: 0;
}

.pos-held-toggle svg.is-open {
	transform: rotate(180deg);
}

.pos-held-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--pos-red);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.pos-held-list {
	padding: 0 12px 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pos-held-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--pos-border);
	border-radius: 10px;
	background: var(--pos-surface);
}

.pos-held-item-main {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.pos-held-item-main strong {
	font-size: 13px;
	color: var(--pos-dark);
}

.pos-held-item-main span {
	font-size: 12px;
	color: var(--pos-brown);
}

.pos-held-item-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.pos-held-resume-btn {
	padding: 7px 10px;
	border: 0;
	border-radius: 8px;
	background: var(--pos-red);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
}

.pos-held-resume-btn:hover {
	background: var(--pos-red-dark);
}

.pos-held-delete-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--pos-border);
	border-radius: 8px;
	background: var(--pos-surface);
	color: var(--pos-brown);
	cursor: pointer;
	padding: 0;
}

.pos-held-delete-btn:hover {
	border-color: var(--pos-error);
	color: var(--pos-error);
}

/* Cart body */
.pos-cart-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	background: #f9f7f4;
}

.pos-cart-list {
	flex: 1;
	overflow-y: auto;
	padding: 14px 16px;
	min-height: 120px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	scrollbar-width: thin;
	scrollbar-color: var(--pos-border) transparent;
}

.pos-cart-list::-webkit-scrollbar {
	width: 5px;
}

.pos-cart-list::-webkit-scrollbar-thumb {
	background: var(--pos-border);
	border-radius: 999px;
}

.pos-cart-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 40px 24px;
	text-align: center;
	flex: 1;
}

.pos-cart-empty-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--pos-surface);
	color: var(--pos-copper);
	box-shadow: 0 2px 12px rgba(60, 41, 44, 0.06);
	margin-bottom: 4px;
}

.pos-cart-empty-title {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--pos-dark);
}

.pos-cart-empty-hint {
	margin: 0;
	font-size: 13px;
	color: var(--pos-brown);
	max-width: 200px;
	line-height: 1.45;
}

/* Cart item cards */
.pos-cart-item {
	display: flex;
	gap: 14px;
	padding: 14px;
	background: var(--pos-surface);
	border-radius: var(--pos-radius-sm);
	border: 1px solid rgba(232, 213, 192, 0.7);
	box-shadow: 0 2px 8px rgba(60, 41, 44, 0.04);
	transition: box-shadow 0.15s, border-color 0.15s;
}

.pos-cart-item:hover {
	border-color: rgba(160, 53, 50, 0.25);
	box-shadow: 0 4px 14px rgba(60, 41, 44, 0.08);
}

.pos-cart-item-thumb-wrap {
	position: relative;
	width: 56px;
	height: 56px;
	border-radius: 10px;
	flex-shrink: 0;
	overflow: hidden;
	background: var(--pos-bg);
}

.pos-cart-item-thumb {
	width: 100%;
	height: 100%;
	border-radius: 10px;
	object-fit: cover;
	flex-shrink: 0;
	background: var(--pos-bg);
	opacity: 1;
}

.pos-cart-item-thumb-wrap img.is-error,
.pos-cart-item-thumb-wrap.pos-no-image img {
	display: none !important;
}

.pos-cart-item-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pos-cart-item-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.pos-cart-item-name {
	flex: 1;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--pos-dark);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pos-cart-item-remove {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border: none !important;
	border-radius: 6px;
	background: #f3f0eb !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--pos-brown) !important;
	cursor: pointer;
	padding: 0 !important;
	flex-shrink: 0;
	transition: color 0.15s, background 0.15s;
	text-transform: none !important;
	min-height: 26px !important;
	margin: 0 !important;
}

.pos-cart-item-remove:hover {
	color: var(--pos-red) !important;
	background: rgba(160, 53, 50, 0.12) !important;
	border: none !important;
}

.pos-cart-item-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.pos-qty-stepper {
	display: inline-flex;
	align-items: stretch;
	height: 36px;
	border-radius: 8px;
	overflow: hidden;
	background: #f0ebe4;
	border: none;
	flex-shrink: 0;
}

.pos-order-form-wrap #pos-register .pos-qty-btn {
	width: 36px;
	height: 36px;
	min-height: 36px !important;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	cursor: pointer;
	font-size: 17px;
	font-weight: 500;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.12s, color 0.12s;
	font-family: inherit;
	color: var(--pos-dark) !important;
	flex-shrink: 0;
	padding: 0 !important;
	margin: 0 !important;
	text-transform: none !important;
}

.pos-order-form-wrap #pos-register .pos-qty-btn:hover {
	background: rgba(160, 53, 50, 0.14) !important;
	color: var(--pos-red) !important;
	border: none !important;
	box-shadow: none !important;
}

.pos-order-form-wrap #pos-register .pos-qty-btn:active {
	background: rgba(160, 53, 50, 0.22) !important;
}

.pos-qty-value {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	min-width: 36px;
	padding: 0 4px;
	text-align: center;
	color: var(--pos-dark);
	background: var(--pos-surface);
	border-left: 1px solid rgba(60, 41, 44, 0.08);
	border-right: 1px solid rgba(60, 41, 44, 0.08);
	user-select: none;
}

.pos-cart-item-pricing {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	flex-shrink: 0;
	min-width: 72px;
}

.pos-cart-item-unit {
	font-size: 11px;
	color: var(--pos-brown);
	white-space: nowrap;
}

.pos-cart-item-total {
	font-weight: 700;
	font-size: 15px;
	color: var(--pos-red);
	white-space: nowrap;
}

/* Totals receipt */
.pos-totals {
	background: var(--pos-surface);
	border-top: 1px solid var(--pos-border);
	padding: 16px 20px;
	flex-shrink: 0;
}

.pos-totals.is-loading {
	opacity: 0.72;
}

.pos-email-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--pos-dark);
	cursor: pointer;
}

.pos-email-toggle input {
	width: 16px;
	height: 16px;
	accent-color: var(--pos-red);
}

.pos-total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	margin-bottom: 8px;
	color: var(--pos-brown);
}

.pos-total-row span:last-child {
	color: var(--pos-dark);
	font-weight: 500;
}

.pos-total-grand {
	font-size: 16px;
	font-weight: 700;
	border-top: 1px dashed var(--pos-border);
	padding-top: 12px;
	margin-top: 4px;
	margin-bottom: 0;
	color: var(--pos-dark);
}

.pos-total-grand span:first-child {
	color: var(--pos-dark);
	font-weight: 700;
}

.pos-total-amount {
	font-size: 20px;
	font-weight: 800;
	color: var(--pos-red) !important;
	letter-spacing: -0.02em;
}

.pos-discount-amount {
	color: #16A34A !important;
	font-weight: 600;
}

/* ── POS button system (override WC/theme) ── */
.pos-order-form-wrap .pos-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: inherit;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: background 0.15s, transform 0.15s, border-color 0.15s, color 0.15s;
	text-decoration: none;
	box-shadow: none;
	background-image: none;
	text-transform: none;
	letter-spacing: normal;
	-webkit-appearance: none;
	appearance: none;
}

.pos-order-form-wrap .pos-btn-primary,
.pos-order-form-wrap .pos-btn-pay,
.pos-order-form-wrap #pos-charge-btn {
	background: var(--pos-red) !important;
	color: #fff !important;
	width: 100%;
	height: 54px;
	font-size: 17px;
	font-weight: 700;
	border: none !important;
	border-radius: var(--pos-radius-sm);
	min-height: 54px;
	box-shadow: 0 4px 14px rgba(160, 53, 50, 0.35) !important;
}

.pos-order-form-wrap .pos-btn-primary:hover:not(:disabled),
.pos-order-form-wrap .pos-btn-pay:hover:not(:disabled),
.pos-order-form-wrap #pos-charge-btn:hover:not(:disabled) {
	background: var(--pos-red-dark) !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(160, 53, 50, 0.4) !important;
}

.pos-order-form-wrap .pos-btn-primary:disabled,
.pos-order-form-wrap .pos-btn-pay:disabled,
.pos-order-form-wrap #pos-charge-btn:disabled {
	background: #d4c4b8 !important;
	color: #fff !important;
	cursor: not-allowed;
	transform: none;
	box-shadow: none !important;
	opacity: 1;
}

.pos-order-form-wrap .pos-btn-ghost {
	background: transparent;
	border: 1px solid var(--pos-gold);
	color: var(--pos-gold-light);
}

.pos-order-form-wrap .pos-btn-ghost:hover {
	background: var(--pos-red);
	border-color: var(--pos-red);
	color: #fff;
}

.pos-order-form-wrap .pos-btn-secondary {
	background: var(--pos-surface) !important;
	color: var(--pos-dark) !important;
	border: 1.5px solid var(--pos-border) !important;
	border-radius: var(--pos-radius-sm);
	min-height: 48px;
	padding: 0 20px;
	font-size: 14px;
	font-weight: 600;
	box-shadow: none !important;
}

.pos-order-form-wrap .pos-btn-secondary:hover {
	border-color: var(--pos-red) !important;
	color: var(--pos-red) !important;
	background: #fff !important;
}

.pos-order-form-wrap .pos-btn-pay .pos-pay-label {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	gap: 12px;
}

.pos-order-form-wrap .pos-btn-pay.has-total .pos-pay-label {
	justify-content: space-between;
}

.pos-pay-text {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.pos-pay-amount {
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.pos-order-form-wrap .pos-btn-checkout {
	width: 100%;
	margin: 0;
}

/* ── Checkout drawer (phase 2) ── */
.pos-checkout-drawer {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	flex-direction: column;
	background: var(--pos-surface);
	transform: translateX(100%);
	transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.32s;
	visibility: hidden;
}

.pos-checkout-drawer.open {
	transform: translateX(0);
	visibility: visible;
	box-shadow: -12px 0 40px rgba(60, 41, 44, 0.18);
}

.pos-checkout-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--pos-border);
	flex-shrink: 0;
	background: var(--pos-surface);
}

.pos-checkout-back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	color: var(--pos-brown) !important;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 6px 8px 6px 0;
	font-family: inherit;
	flex-shrink: 0;
	min-height: auto !important;
}

.pos-checkout-back:hover {
	color: var(--pos-red) !important;
}

.pos-checkout-header h2 {
	flex: 1;
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--pos-dark);
	letter-spacing: -0.02em;
}

.pos-checkout-header-total {
	font-size: 15px;
	font-weight: 800;
	color: var(--pos-red);
	white-space: nowrap;
	flex-shrink: 0;
}

.pos-checkout-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	min-height: 0;
	background: #f9f7f4;
	scrollbar-width: thin;
}

.pos-checkout-summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 14px;
	background: var(--pos-surface);
	border: 1px solid var(--pos-border);
	border-radius: var(--pos-radius-sm);
	font-size: 13px;
	font-weight: 600;
	color: var(--pos-dark);
	margin-bottom: 16px;
}

.pos-checkout-summary span:last-child {
	color: var(--pos-red);
	font-weight: 700;
}

.pos-checkout-section {
	background: var(--pos-surface);
	border: 1px solid var(--pos-border);
	border-radius: var(--pos-radius-sm);
	padding: 14px;
	margin-bottom: 12px;
}

.pos-checkout-section:last-child {
	margin-bottom: 0;
}

.pos-checkout-section-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	color: var(--pos-dark);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.pos-checkout-section-title svg {
	color: var(--pos-red);
	flex-shrink: 0;
}

.pos-checkout-section .pos-input {
	margin-bottom: 8px;
}

.pos-checkout-section .pos-form-row {
	margin-bottom: 8px;
}

.pos-checkout-section .pos-form-row .pos-input {
	margin-bottom: 0;
}

.pos-checkout-section .pos-input:last-child,
.pos-checkout-section .pos-form-row:last-child .pos-input {
	margin-bottom: 0;
}

.pos-checkout-footer {
	flex-shrink: 0;
	padding: 14px 16px 18px;
	background: var(--pos-surface);
	border-top: 1px solid var(--pos-border);
	box-shadow: 0 -8px 24px rgba(60, 41, 44, 0.06);
}

.pos-checkout-footer .pos-btn-pay,
.pos-checkout-footer #pos-charge-btn {
	width: 100%;
	margin: 0;
}

/* ── Variation picker ── */
.pos-variation-overlay {
	position: fixed;
	inset: 0;
	z-index: 1100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(60, 41, 44, 0.55);
	backdrop-filter: blur(4px);
}

.pos-variation-modal {
	width: 100%;
	max-width: 540px;
	max-height: calc(100vh - 48px);
	display: flex;
	flex-direction: column;
	background: var(--pos-surface);
	border-radius: var(--pos-radius);
	box-shadow: 0 24px 64px rgba(60, 41, 44, 0.25);
	overflow: hidden;
}

.pos-variation-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--pos-border);
}

.pos-variation-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--pos-dark);
}

.pos-variation-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: none !important;
	background: #f3f0eb !important;
	border-radius: 8px;
	cursor: pointer;
	color: var(--pos-brown);
	flex-shrink: 0;
}

.pos-variation-body {
	padding: 16px 20px;
	overflow-y: auto;
}

.pos-variation-image-wrap {
	position: relative;
	width: 100%;
	min-height: 280px;
	height: 280px;
	margin-bottom: 14px;
	border-radius: var(--pos-radius-sm);
	overflow: hidden;
	background-color: var(--pos-bg);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: contain;
}

.pos-variation-image-wrap.has-detail-image {
	background-color: #fff;
}

.pos-variation-image-wrap.has-detail-image::before {
	display: none !important;
	content: none !important;
}

.pos-variation-label {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--pos-brown);
}

.pos-variation-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	border: 1px solid var(--pos-border);
	border-radius: var(--pos-radius-sm);
	overflow: hidden;
	background: var(--pos-surface);
}

.pos-variation-option {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	margin: 0;
	border: none;
	border-bottom: 1px solid var(--pos-border);
	border-radius: 0;
	background: transparent;
	cursor: pointer;
	font-family: inherit;
	text-align: left;
	transition: background 0.15s;
}

.pos-variation-option:last-child {
	border-bottom: none;
}

.pos-variation-option.selected {
	background: rgba(160, 53, 50, 0.05);
}

.pos-variation-option.out-of-stock {
	opacity: 0.45;
	cursor: not-allowed;
}

.pos-variation-radio-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pos-variation-option-radio {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border: 2px solid var(--pos-copper);
	border-radius: 50%;
	flex-shrink: 0;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.pos-variation-option.selected .pos-variation-option-radio {
	border-color: var(--pos-red);
	box-shadow: inset 0 0 0 4px var(--pos-red);
}

.pos-variation-option-label {
	flex: 1;
	min-width: 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--pos-dark);
}

.pos-variation-option.selected .pos-variation-option-label {
	font-weight: 600;
	color: var(--pos-red-dark);
}

.pos-variation-option-price {
	font-size: 14px;
	font-weight: 700;
	color: var(--pos-red);
	white-space: nowrap;
	margin-left: auto;
}

.pos-variation-footer {
	display: flex;
	gap: 10px;
	padding: 16px 20px;
	border-top: 1px solid var(--pos-border);
}

.pos-variation-footer .pos-btn {
	flex: 1;
	min-height: 48px;
}

/* ── Coupon ── */
.pos-coupon-form {
	display: flex;
	gap: 8px;
}

.pos-coupon-form .pos-input {
	flex: 1;
	margin-bottom: 0;
}

.pos-coupon-apply {
	flex-shrink: 0;
	min-width: 88px;
	min-height: 44px !important;
	padding: 0 16px !important;
}

.pos-coupon-applied {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	padding: 10px 12px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: var(--pos-radius-sm);
}

.pos-coupon-tag {
	font-size: 13px;
	font-weight: 700;
	color: var(--pos-dark);
	text-transform: uppercase;
}

.pos-coupon-saved {
	font-size: 13px;
	font-weight: 700;
	color: #16A34A;
}

.pos-coupon-remove {
	background: none !important;
	border: none !important;
	color: var(--pos-brown) !important;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	margin-left: auto;
	padding: 4px 8px;
}

.pos-coupon-remove:hover {
	color: var(--pos-red) !important;
}

.pos-coupon-error {
	margin: 8px 0 0;
	font-size: 12px;
	color: var(--pos-error);
}

/* Scrollable checkout area (legacy) */
.pos-register-scroll {
	flex: 0 1 auto;
	max-height: 260px;
	overflow-y: auto;
	min-height: 0;
	padding: 12px 16px 8px;
	background: var(--pos-surface);
	border-top: 1px solid var(--pos-border);
	scrollbar-width: thin;
}

/* Accordion */
.pos-accordion {
	border: none;
	border-radius: var(--pos-radius-sm);
	margin-bottom: 8px;
	overflow: hidden;
	background: transparent;
}

.pos-order-form-wrap button.pos-accordion-header {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
	padding: 12px 14px !important;
	background: #f9f7f4 !important;
	border: 1px solid var(--pos-border) !important;
	border-radius: var(--pos-radius-sm) !important;
	cursor: pointer !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: var(--pos-dark) !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	min-height: 48px !important;
	transition: background 0.15s, border-color 0.15s, box-shadow 0.15s !important;
	box-shadow: none !important;
}

.pos-accordion-title {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pos-accordion-title svg {
	color: var(--pos-red);
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	padding: 6px;
	box-sizing: content-box;
	background: rgba(160, 53, 50, 0.1);
	border-radius: 8px;
}

.pos-order-form-wrap button.pos-accordion-header:hover {
	background: #f3f0eb !important;
	border-color: rgba(160, 53, 50, 0.3) !important;
}

.pos-accordion.open .pos-accordion-header {
	background: var(--pos-surface) !important;
	border-color: var(--pos-red) !important;
	border-bottom-left-radius: 0 !important;
	border-bottom-right-radius: 0 !important;
	box-shadow: 0 2px 8px rgba(160, 53, 50, 0.08) !important;
}

.pos-accordion-chevron {
	transition: transform 0.2s ease;
	color: var(--pos-brown);
	flex-shrink: 0;
}

.pos-accordion.open .pos-accordion-chevron {
	transform: rotate(180deg);
}

.pos-accordion-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.28s ease;
	padding: 0 16px;
	background: var(--pos-surface);
	border: 1px solid transparent;
	border-top: none;
}

.pos-accordion.open .pos-accordion-body {
	max-height: 640px;
	padding: 14px 16px 16px;
	border-color: var(--pos-border);
	border-bottom-left-radius: var(--pos-radius-sm);
	border-bottom-right-radius: var(--pos-radius-sm);
}

/* Form inputs — override theme defaults */
.pos-form-row {
	display: flex;
	gap: 8px;
	margin-bottom: 8px;
}

#pos-register .pos-input,
.pos-order-form-wrap input.pos-input,
.pos-order-form-wrap select.pos-input,
.pos-order-form-wrap .pos-input {
	width: 100%;
	padding: 10px 12px !important;
	border: 1.5px solid var(--pos-border) !important;
	border-radius: 9px !important;
	font-size: 13px !important;
	margin-bottom: 8px;
	outline: none !important;
	font-family: inherit !important;
	transition: border-color 0.15s, box-shadow 0.15s;
	background: var(--pos-surface) !important;
	background-color: var(--pos-surface) !important;
	min-height: 44px !important;
	color: var(--pos-dark) !important;
	box-shadow: none !important;
}

.pos-form-row .pos-input {
	flex: 1;
	margin-bottom: 0;
}

#pos-register .pos-input:focus,
.pos-order-form-wrap .pos-input:focus {
	border-color: var(--pos-red) !important;
	box-shadow: 0 0 0 3px rgba(160, 53, 50, 0.1) !important;
}

.pos-input::placeholder {
	color: var(--pos-copper);
	opacity: 1;
}

#pos-register select.pos-input,
.pos-order-form-wrap select.pos-input.pos-select,
.pos-order-form-wrap .pos-input.pos-select {
	cursor: pointer;
	padding-right: 32px !important;
	background-color: var(--pos-surface) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A2735F' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 12px center !important;
	background-size: 16px !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}

/* Payment options */
.pos-payment-option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	border: 1.5px solid var(--pos-border);
	border-radius: 10px;
	padding: 12px;
	margin-bottom: 8px;
	cursor: pointer;
	transition: all 0.15s ease;
	min-height: 44px;
}

.pos-payment-option.selected {
	border-color: var(--pos-red);
	background: #FFF8F8;
}

.pos-payment-option input[type="radio"] {
	margin-top: 3px;
	flex-shrink: 0;
	accent-color: var(--pos-red);
	pointer-events: none;
}

.pos-payment-option-content {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.pos-payment-option-content strong {
	display: block;
	font-size: 13px;
}

.pos-payment-option-content p {
	margin: 2px 0 0;
	font-size: 12px;
	color: var(--pos-brown);
}

.pos-gateway-icon img {
	max-height: 24px;
	width: auto;
}

.pos-stripe-fields {
	margin-top: 4px;
}

.pos-paypal-notice {
	margin-top: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	background: rgba(200, 169, 110, 0.12);
	border: 1px solid rgba(200, 169, 110, 0.35);
	font-size: 13px;
	line-height: 1.45;
	color: var(--pos-dark);
}

.pos-cash-tender {
	margin-top: 4px;
	background: var(--pos-surface);
	border: 1px solid rgba(160, 53, 50, 0.22);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(60, 41, 44, 0.06);
}

.pos-cash-due {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 16px;
	background: var(--pos-surface);
	border-bottom: 1px solid var(--pos-border);
}

.pos-cash-due span {
	font-size: 13px;
	font-weight: 500;
	color: var(--pos-brown);
}

.pos-cash-due strong {
	font-size: 26px;
	font-weight: 800;
	line-height: 1;
	color: var(--pos-red);
	letter-spacing: -0.03em;
}

.pos-cash-main {
	padding: 14px 16px 16px;
	background: var(--pos-surface);
}

.pos-cash-field-label {
	display: block;
	margin-bottom: 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--pos-brown);
	text-transform: none;
	letter-spacing: normal;
}

.pos-cash-input-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 4px 10px;
	min-height: auto;
	border: 0;
	border-bottom: 2px solid var(--pos-border);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	transition: border-color 0.15s ease;
}

.pos-cash-input-wrap:focus-within {
	border-bottom-color: var(--pos-red);
	box-shadow: none;
}

.pos-cash-input-prefix {
	flex-shrink: 0;
	font-size: 22px;
	font-weight: 700;
	color: var(--pos-copper);
	line-height: 1;
}

.pos-order-form-wrap input.pos-cash-input,
.pos-order-form-wrap input#pos-cash-received {
	flex: 1;
	min-width: 0;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	padding: 4px 0 0 !important;
	margin: 0 !important;
	min-height: 0 !important;
	font-size: 32px !important;
	font-weight: 800 !important;
	text-align: right;
	letter-spacing: -0.03em;
	color: var(--pos-dark) !important;
	outline: none !important;
	box-shadow: none !important;
}

.pos-order-form-wrap input.pos-cash-input:focus,
.pos-order-form-wrap input#pos-cash-received:focus {
	border: 0 !important;
	box-shadow: none !important;
	outline: none !important;
}

.pos-cash-input::placeholder {
	color: #d4c4b5;
	font-weight: 500;
}

.pos-cash-quick-btns {
	display: flex;
	align-items: stretch;
	gap: 0;
	margin-top: 16px;
	padding: 4px;
	border-radius: 11px;
	background: #f3eee8;
}

.pos-order-form-wrap button.pos-cash-quick-btn {
	flex: 1 1 0;
	min-width: 0;
	min-height: 40px !important;
	padding: 8px 4px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: transparent !important;
	color: var(--pos-brown) !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	cursor: pointer;
	font-family: inherit !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.pos-order-form-wrap button.pos-cash-quick-btn:hover {
	color: var(--pos-dark) !important;
	background: rgba(255, 255, 255, 0.45) !important;
}

.pos-order-form-wrap button.pos-cash-quick-btn:active {
	transform: scale(0.98);
}

.pos-order-form-wrap button.pos-cash-quick-btn.is-active {
	background: var(--pos-surface) !important;
	color: var(--pos-red) !important;
	box-shadow: 0 1px 4px rgba(60, 41, 44, 0.12) !important;
}

.pos-cash-change-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	background: var(--pos-surface);
	border-top: 1px solid var(--pos-border);
}

.pos-cash-change-bar span {
	font-size: 13px;
	font-weight: 600;
	color: var(--pos-brown);
}

.pos-cash-change-bar strong {
	font-size: 22px;
	font-weight: 800;
	line-height: 1;
	color: var(--pos-dark);
	letter-spacing: -0.02em;
}

.pos-cash-change-bar.is-valid {
	background: #f6fbf7;
}

.pos-cash-change-bar.is-valid strong {
	color: #15803d;
}

.pos-cash-change-bar.is-short strong {
	color: var(--pos-error);
}

.pos-cash-tender-hint {
	margin: 0;
	padding: 10px 16px 12px;
	font-size: 12px;
	line-height: 1.45;
	color: var(--pos-error);
	background: #fef8f8;
	border-top: 1px solid rgba(220, 38, 38, 0.12);
}

.pos-cash-numpad {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	padding: 0 16px 14px;
	background: #faf8f5;
}

.pos-cash-numpad-btn {
	min-height: 44px;
	border: 1.5px solid var(--pos-border);
	border-radius: 10px;
	background: var(--pos-surface);
	color: var(--pos-dark);
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background 0.12s ease, border-color 0.12s ease, transform 0.1s ease;
}

.pos-cash-numpad-btn:hover {
	background: #fff;
	border-color: var(--pos-gold);
}

.pos-cash-numpad-btn:active {
	transform: scale(0.97);
}

.pos-cash-numpad-btn.is-action {
	font-size: 14px;
	font-weight: 800;
	color: var(--pos-brown);
	background: rgba(255, 255, 255, 0.65);
}

.pos-cash-numpad-btn.is-action svg {
	display: block;
	margin: 0 auto;
}

.pos-gateway-icon svg.pos-cash-icon {
	display: block;
	width: 24px;
	height: 24px;
	color: var(--pos-dark);
}

#pos-card-element {
	border: 1.5px solid var(--pos-border);
	border-radius: 9px;
	padding: 12px;
	background: var(--pos-surface);
	min-height: 44px;
}

#pos-card-element.focused {
	border-color: var(--pos-red);
	box-shadow: 0 0 0 3px rgba(160, 53, 50, 0.1);
}

.pos-card-error {
	color: var(--pos-error);
	font-size: 12px;
	margin-top: 6px;
	min-height: 18px;
}

/* Sticky pay footer */
.pos-register-footer {
	flex-shrink: 0;
	padding: 14px 16px 18px;
	background: var(--pos-surface);
	border-top: 1px solid var(--pos-border);
	box-shadow: 0 -8px 24px rgba(60, 41, 44, 0.06);
}

.pos-register-footer .pos-btn-pay,
.pos-register-footer #pos-charge-btn {
	width: 100%;
	margin: 0;
}

.pos-message {
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 13px;
	margin-bottom: 8px;
}

.pos-message-error {
	background: #FEE2E2;
	color: var(--pos-error);
}

.pos-message-success {
	background: #DCFCE7;
	color: var(--pos-success);
}

/* ── Receipt modal ── */
.pos-receipt-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(60, 41, 44, 0.55);
	backdrop-filter: blur(4px);
}

.pos-receipt-modal {
	width: 100%;
	max-width: 420px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	background: var(--pos-surface);
	border-radius: var(--pos-radius);
	box-shadow: 0 24px 64px rgba(60, 41, 44, 0.25);
}

.pos-receipt-content {
	padding: 28px 28px 20px;
	color: var(--pos-dark);
}

.pos-receipt-header {
	text-align: center;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px dashed var(--pos-border);
}

.pos-receipt-store {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--pos-brown);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.pos-receipt-header h2 {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 800;
	color: var(--pos-dark);
	letter-spacing: -0.02em;
}

.pos-receipt-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	font-size: 12px;
	color: var(--pos-brown);
}

.pos-receipt-customer {
	margin-bottom: 16px;
	font-size: 13px;
	line-height: 1.5;
}

.pos-receipt-customer p {
	margin: 0;
}

.pos-receipt-items {
	margin-bottom: 16px;
}

.pos-receipt-items-head,
.pos-receipt-item-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 48px 88px;
	gap: 12px;
	align-items: start;
}

.pos-receipt-items-head {
	padding: 0 0 10px;
	border-bottom: 1.5px solid var(--pos-dark);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--pos-brown);
}

.pos-receipt-item-row {
	padding: 12px 0;
	border-bottom: 1px solid rgba(232, 213, 192, 0.65);
	font-size: 13px;
}

.pos-receipt-item-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.pos-receipt-col-qty {
	text-align: center;
	font-weight: 600;
	color: var(--pos-dark);
	padding-top: 2px;
}

.pos-receipt-col-total {
	text-align: right;
	font-weight: 700;
	color: var(--pos-dark);
	padding-top: 2px;
	white-space: nowrap;
}

.pos-receipt-items-head .pos-receipt-col-qty {
	text-align: center;
}

.pos-receipt-items-head .pos-receipt-col-total {
	text-align: right;
}

.pos-receipt-item-name {
	display: block;
	font-weight: 600;
	line-height: 1.35;
	margin-bottom: 3px;
	color: var(--pos-dark);
	word-break: break-word;
}

.pos-receipt-item-unit {
	display: block;
	font-size: 11px;
	color: var(--pos-brown);
}

.pos-receipt-totals {
	margin-bottom: 14px;
}

.pos-receipt-total-row {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	margin-bottom: 6px;
	color: var(--pos-brown);
}

.pos-receipt-total-row span:last-child {
	color: var(--pos-dark);
	font-weight: 500;
}

.pos-receipt-grand {
	font-size: 16px;
	font-weight: 700;
	border-top: 1px dashed var(--pos-border);
	padding-top: 10px;
	margin-top: 4px;
	margin-bottom: 0;
	color: var(--pos-dark);
}

.pos-receipt-grand span:last-child {
	font-size: 18px;
	font-weight: 800;
	color: var(--pos-red) !important;
}

.pos-receipt-payment {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	padding: 10px 0;
	border-top: 1px solid var(--pos-border);
	margin-bottom: 0;
}

.pos-receipt-cash {
	padding: 0 0 12px;
	border-bottom: 1px solid var(--pos-border);
	margin-bottom: 12px;
}

.pos-receipt-change span:last-child {
	font-weight: 700;
	color: var(--pos-success);
}

.pos-receipt-thanks {
	margin: 0;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: var(--pos-brown);
}

.pos-receipt-actions {
	display: flex;
	gap: 10px;
	padding: 0 20px 20px;
}

.pos-receipt-actions .pos-btn {
	flex: 1;
	min-height: 48px;
}

/* Mobile category chips (hidden on desktop) */
.pos-mobile-categories {
	display: none;
	flex-shrink: 0;
	gap: 8px;
	padding: 10px 16px;
	overflow-x: auto;
	background: var(--pos-surface);
	border-bottom: 1px solid var(--pos-border);
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.pos-mobile-categories .pos-category-btn {
	width: auto !important;
	min-width: auto;
	flex-shrink: 0;
	border-radius: 999px !important;
	padding: 8px 16px !important;
}

/* Mobile sheet + floating cart bar (hidden on desktop) */
.pos-sheet-handle,
.pos-sheet-close,
.pos-mobile-cart-bar,
.pos-mobile-backdrop {
	display: none !important;
}

.pos-mobile-cart-bar.is-active,
.pos-mobile-backdrop.is-active {
	display: none !important;
}

html.pos-scroll-lock,
html.pos-scroll-lock body {
	overflow: hidden;
}

html.pos-scroll-lock #pos-root {
	height: 100vh;
	height: 100dvh;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
	#pos-sidebar {
		display: none;
	}

	.pos-mobile-categories {
		display: flex;
	}

	#pos-main {
		flex: 1;
		width: 100%;
		min-height: 0;
	}

	#pos-register {
		width: 380px;
	}
}

@media (max-width: 768px) {
	#pos-topbar {
		padding: 0 16px;
		padding-top: env(safe-area-inset-top, 0px);
		height: calc(var(--pos-topbar-h) + env(safe-area-inset-top, 0px));
	}

	.pos-brand {
		font-size: 16px;
	}

	.pos-user-info {
		font-size: 12px;
		max-width: 45vw;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	#pos-main {
		flex-direction: column;
		position: relative;
	}

	#pos-catalog {
		flex: 1;
		min-height: 0;
		overflow: hidden;
	}

	.pos-catalog-scroll {
		flex: 1 1 0;
		min-height: 0;
		padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
	}

	.pos-catalog-toolbar {
		padding: 0 12px;
	}

	.pos-register-header {
		padding: 0 16px;
	}

	.pos-search-wrap {
		max-width: none;
	}

	#pos-grid {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
		gap: 10px;
		padding: 12px;
	}

	.pos-product-tile {
		border-radius: 12px;
	}

	.pos-tile-name {
		font-size: 12px;
		min-height: 2.5em;
	}

	.pos-tile-price {
		font-size: 13px;
	}

	/* Register → bottom sheet */
	#pos-register {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		top: auto;
		width: 100%;
		height: auto;
		max-height: none;
		border-left: none;
		border-top: none;
		border-radius: 18px 18px 0 0;
		box-shadow: 0 -12px 40px rgba(60, 41, 44, 0.22);
		z-index: 120;
		transform: translateY(100%);
		transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1);
		visibility: hidden;
		pointer-events: none;
	}

	#pos-register.cart-open {
		transform: translateY(0);
		visibility: visible;
		pointer-events: auto;
		height: 88dvh;
		max-height: 88dvh;
		min-height: 55dvh;
	}

	#pos-register.checkout-active {
		transform: translateY(0);
		visibility: visible;
		pointer-events: auto;
		height: 100dvh;
		max-height: 100dvh;
		min-height: 100dvh;
		border-radius: 0;
	}

	#pos-register.cart-open .pos-register-inner,
	#pos-register.checkout-active .pos-register-inner {
		flex: 1;
		min-height: 0;
		display: flex;
		flex-direction: column;
	}

	.pos-sheet-handle {
		display: block;
		width: 40px;
		height: 4px;
		margin: 10px auto 0;
		border-radius: 999px;
		background: var(--pos-border);
		flex-shrink: 0;
	}

	.pos-sheet-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		border: none !important;
		background: var(--pos-bg) !important;
		border-radius: 10px;
		color: var(--pos-brown);
		cursor: pointer;
		flex-shrink: 0;
	}

	.pos-cart-list {
		min-height: 80px;
		padding: 12px;
	}

	.pos-cart-item {
		padding: 12px;
	}

	.pos-register-footer {
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
		position: sticky;
		bottom: 0;
		z-index: 5;
		background: var(--pos-surface);
		border-top: 1px solid var(--pos-border);
	}

	/* Checkout → full screen on mobile */
	.pos-checkout-drawer {
		position: fixed;
		inset: 0;
		z-index: 130;
		border-radius: 0;
		transform: translateX(100%);
	}

	.pos-checkout-drawer.open {
		transform: translateX(0);
		box-shadow: none;
	}

	.pos-checkout-header {
		padding-top: calc(14px + env(safe-area-inset-top, 0px));
	}

	.pos-checkout-footer {
		padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
	}

	.pos-checkout-body {
		padding-bottom: 24px;
	}

	/* Floating cart bar — mobile only */
	.pos-mobile-backdrop.is-active {
		display: block !important;
		position: fixed;
		inset: 0;
		z-index: 115;
		background: rgba(60, 41, 44, 0.45);
		backdrop-filter: blur(2px);
	}

	.pos-mobile-cart-bar.is-active {
		display: flex !important;
		align-items: center;
		gap: 12px;
		position: fixed;
		left: 12px;
		right: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom, 0px));
		z-index: 110;
		padding: 12px 16px;
		border: none !important;
		border-radius: 14px;
		background: linear-gradient(135deg, var(--pos-red) 0%, var(--pos-red-dark) 100%) !important;
		color: #fff !important;
		box-shadow: 0 8px 28px rgba(160, 53, 50, 0.45);
		cursor: pointer;
		min-height: 56px;
		font-family: inherit;
		-webkit-tap-highlight-color: transparent;
		animation: pos-cart-bar-in 0.25s ease;
	}

	.pos-mobile-cart-icon {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
	}

	.pos-mobile-cart-badge {
		position: absolute;
		top: -6px;
		right: -8px;
		min-width: 20px;
		height: 20px;
		padding: 0 5px;
		border-radius: 999px;
		background: #fff;
		color: var(--pos-red);
		font-size: 11px;
		font-weight: 800;
		display: flex;
		align-items: center;
		justify-content: center;
		line-height: 1;
	}

	.pos-mobile-cart-label {
		flex: 1;
		text-align: left;
		font-size: 15px;
		font-weight: 700;
		letter-spacing: 0.02em;
	}

	.pos-mobile-cart-total {
		font-size: 17px;
		font-weight: 800;
		letter-spacing: -0.02em;
	}

	/* Modals */
	.pos-variation-overlay {
		padding: 0;
		align-items: flex-end;
	}

	.pos-variation-modal {
		max-width: none;
		width: 100%;
		max-height: 88vh;
		max-height: 88dvh;
		border-radius: 18px 18px 0 0;
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}

	.pos-variation-footer {
		padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	}

	.pos-receipt-overlay {
		padding: 0;
		align-items: stretch;
	}

	.pos-receipt-modal {
		max-width: none;
		width: 100%;
		height: 100%;
		max-height: none;
		border-radius: 0;
	}

	.pos-receipt-actions {
		padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
		flex-direction: column;
	}

	.pos-form-row {
		flex-direction: column;
	}

	.pos-coupon-form {
		flex-direction: column;
	}

	.pos-coupon-apply {
		width: 100%;
	}
}

@media (max-width: 480px) {
	#pos-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		padding: 10px;
	}

	.pos-catalog-toolbar {
		flex-direction: row;
		align-items: center;
		gap: 8px;
	}

	.pos-product-count {
		font-size: 11px;
		flex-shrink: 0;
	}

	.pos-qty-btn {
		width: 36px;
		height: 36px;
		font-size: 18px;
	}
}

@media (hover: none) {
	.pos-product-tile:hover {
		transform: none;
		box-shadow: 0 1px 3px rgba(60, 41, 44, 0.06);
		border-color: var(--pos-border);
	}

	.pos-tile-actions {
		opacity: 1;
		pointer-events: auto;
		background: linear-gradient(180deg, rgba(60, 41, 44, 0) 20%, rgba(60, 41, 44, 0.62) 100%);
	}

	.pos-tile-options {
		opacity: 0;
	}

	.pos-product-tile:hover .pos-tile-image-wrap img {
		transform: none;
	}

	.pos-product-tile:active {
		transform: scale(0.98);
		border-color: rgba(160, 53, 50, 0.45);
	}

	.pos-order-form-wrap .pos-btn-primary:active:not(:disabled),
	.pos-order-form-wrap .pos-btn-pay:active:not(:disabled) {
		transform: scale(0.98);
	}
}

@keyframes pos-cart-bar-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ── Print receipt (fallback if popup blocked) ── */
@media print {
	body.pos-printing-receipt {
		background: #fff !important;
	}

	body.pos-printing-receipt * {
		visibility: hidden !important;
	}

	body.pos-printing-receipt #pos-receipt-print,
	body.pos-printing-receipt #pos-receipt-print * {
		visibility: visible !important;
	}

	body.pos-printing-receipt .pos-receipt-overlay {
		position: fixed !important;
		inset: 0 !important;
		display: block !important;
		background: #fff !important;
		padding: 0 !important;
		z-index: 99999 !important;
	}

	body.pos-printing-receipt #pos-receipt-print {
		position: absolute !important;
		left: 0 !important;
		top: 0 !important;
		width: 80mm !important;
		max-width: 80mm !important;
		margin: 0 auto !important;
		padding: 2mm !important;
		color: #000 !important;
		font-family: 'Courier New', Courier, monospace !important;
		font-size: 12px !important;
	}

	body.pos-printing-receipt[data-pos-thermal="58mm"] #pos-receipt-print {
		width: 58mm !important;
		max-width: 58mm !important;
		font-size: 11px !important;
	}

	body.pos-printing-receipt .pos-receipt-modal {
		box-shadow: none !important;
		max-width: none !important;
		margin: 0 auto !important;
	}

	body.pos-printing-receipt .pos-receipt-actions,
	body.pos-printing-receipt .no-print {
		display: none !important;
	}

	@page {
		margin: 0;
		size: 80mm auto;
	}
}

/* ── POS front-end login ── */
.pos-login-wrap {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	background: var(--pos-bg);
}

.pos-login-main {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.pos-login-card {
	width: 100%;
	max-width: 400px;
	background: var(--pos-surface);
	border-radius: var(--pos-radius);
	border: 1px solid var(--pos-border);
	box-shadow: 0 12px 40px rgba(60, 41, 44, 0.12);
	padding: 32px 28px 24px;
}

.pos-login-card h1 {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
	color: var(--pos-dark);
	letter-spacing: -0.02em;
}

.pos-login-subtitle {
	margin: 0 0 20px;
	font-size: 14px;
	color: var(--pos-brown);
	line-height: 1.45;
}

.pos-login-form {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.pos-login-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--pos-dark);
	margin-bottom: 6px;
	margin-top: 12px;
}

.pos-login-label:first-of-type {
	margin-top: 0;
}

.pos-login-form .pos-input {
	margin-bottom: 0;
}

.pos-login-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 16px 0 20px;
	font-size: 13px;
	color: var(--pos-brown);
	cursor: pointer;
}

.pos-login-remember input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--pos-red);
	margin: 0;
}

.pos-login-submit {
	width: 100%;
	min-height: 48px;
	font-size: 15px;
}

.pos-login-back {
	margin: 20px 0 0;
	text-align: center;
	font-size: 13px;
}

.pos-login-back a {
	color: var(--pos-brown);
	text-decoration: none;
	font-weight: 600;
}

.pos-login-back a:hover {
	color: var(--pos-red);
}
