.scanner-pro-ui,
.scanner-pro-cart-shell {
	--scanner-space-1: 0.8rem;
	--scanner-space-2: 1.2rem;
	--scanner-space-3: 1.6rem;
	--scanner-space-4: 2rem;
	--scanner-space-5: 2.4rem;
	--scanner-space-6: 3.2rem;
	--scanner-radius-md: 1.6rem;
	--scanner-radius-lg: 2.2rem;
	--scanner-radius-xl: 2.8rem;
	--scanner-shadow-soft: 0 1rem 2.2rem rgba(10, 10, 12, 0.05);
	--scanner-shadow-strong: 0 2.4rem 8rem rgba(4, 10, 22, 0.34);
	--scanner-font-xs: 1.2rem;
	--scanner-font-sm: 1.4rem;
	--scanner-font-md: 1.6rem;
	--scanner-font-lg: 1.8rem;
	--scanner-font-xl: 2.2rem;
	box-sizing: border-box;
}

.scanner-pro-ui {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 4;
	font-family: "Manrope", "PT Sans", system-ui, sans-serif;
	color: #ffffff;
}

.scanner-pro-cart-shell {
	position: absolute;
	top: 0;
	right: 0;
	width: min(32vw, 42rem);
	min-width: 32rem;
	height: 100%;
	padding: max(2rem, calc(env(safe-area-inset-top) + 1.6rem)) 2rem max(2rem, calc(env(safe-area-inset-bottom) + 1.6rem));
	display: flex;
	flex-direction: column;
	gap: 1.6rem;
	pointer-events: auto;
	opacity: 0;
	visibility: hidden;
	transform: translateX(1.8rem);
	transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
}

.scanner-pro-cart-shell.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

.scanner-pro-cart-panel {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.scanner-pro-cart-content {
	position: relative;
	height: 100%;
	padding: 0 0 19.6rem;
	transition: transform 0.34s ease;
}

.scanner-pro-cart-shell.is-payment-mode .scanner-pro-cart-content {
	transform: translateY(calc(-100% + 18rem));
}

.scanner-pro-cart-shell.is-payment-mode .scanner-pro-cart-lista {
	pointer-events: none;
}

.scanner-pro-cart-lista {
	display: flex;
	flex-direction: column-reverse;
	gap: 1.2rem;
	height: 100%;
	overflow-y: auto;
	padding-right: 0.6rem;
}

.scanner-pro-cart-lista::-webkit-scrollbar {
	width: 1rem;
}

.scanner-pro-cart-lista::-webkit-scrollbar-thumb {
	background: rgba(16, 16, 16, 0.18);
	border-radius: 999px;
}

.scanner-pro-cart-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.4rem;
	padding: 1.6rem;
	border-radius: var(--scanner-radius-md);
	border: 1px solid rgba(0, 0, 0, 0.06);
	background: rgba(255, 255, 255, 0.9);
	box-shadow: var(--scanner-shadow-soft);
	color: #121826;
}

.scanner-pro-cart-item-esq {
	display: flex;
	align-items: center;
	gap: 1.2rem;
	flex: 1;
	min-width: 0;
}

.scanner-pro-cart-item-foto {
	width: 6.4rem;
	height: 6.4rem;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1.8rem;
	overflow: hidden;
	background: rgba(31, 107, 255, 0.08);
	padding: 0.6rem;
	box-sizing: border-box;
	flex: 0 0 6.4rem;
}

.scanner-pro-cart-item-foto img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.scanner-pro-cart-item-nome {
	font-size: 1.5rem;
	font-weight: 600;
	color: #121826;
	line-height: 1.35;
	word-break: break-word;
}

.scanner-pro-cart-item-qtd {
	font-size: 1.4rem;
	color: #5a6678;
	min-width: 4.8rem;
	text-align: center;
	font-weight: 600;
}

.scanner-pro-cart-item-preco {
	font-size: 1.8rem;
	font-weight: 700;
	color: #121826;
	min-width: 9.2rem;
	text-align: right;
}

.scanner-pro-cart-footer {
	padding: 0.6rem 0 0;
	display: flex;
	justify-content: center;
	position: absolute;
	left: 0;
	right: 0;
	bottom: max(2rem, calc(env(safe-area-inset-bottom) + 1.4rem));
}

.scanner-pro-btn-finalizar {
	border-radius: var(--scanner-radius-lg);
	width: calc(100% - 3.2rem);
	min-height: 11rem;
	padding: 1.8rem 2.2rem;
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 0.8rem;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.3);
	backdrop-filter: blur(12px) saturate(130%);
	-webkit-backdrop-filter: blur(12px) saturate(130%);
	text-align: center;
	flex-direction: column;
	color: #121826;
	cursor: pointer;
	pointer-events: auto;
}

.scanner-pro-btn-finalizar.is-disabled {
	opacity: 0.6;
	cursor: default;
}

.scanner-pro-btn-topline {
	display: grid;
	grid-template-columns: 3.6rem minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 1.2rem;
	width: 100%;
}

.scanner-pro-btn-icone {
	font-size: 2.2rem;
	line-height: 1;
	justify-self: start;
	color: #1f6bff;
}

.scanner-pro-btn-total {
	font-size: clamp(1.8rem, 1.5rem + 0.6vw, 2.2rem);
	font-weight: 800;
	color: #121826;
	text-align: center;
}

.scanner-pro-btn-qtd {
	font-size: 1.3rem;
	font-weight: 800;
	color: #1f6bff;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-align: right;
	white-space: nowrap;
}

.scanner-pro-btn-qtd.is-success {
	color: #14804a;
}

.scanner-pro-btn-qtd.is-error {
	color: #c23838;
}

.scanner-pro-btn-label {
	font-size: 1.3rem;
	color: #5a6678;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.scanner-pro-btn-cliente {
	font-size: 1.5rem;
	font-weight: 800;
	color: #121826;
	line-height: 1.25;
	max-width: 100%;
	word-break: break-word;
}

.scanner-pro-btn-telefone {
	font-size: 1.3rem;
	color: #5a6678;
	line-height: 1.2;
}

.scanner-pro-payments-list {
	position: absolute;
	top: 18rem;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.2rem;
	overflow-y: auto;
	padding: 1rem 0 0.6rem;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(1rem);
	transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

.scanner-pro-cart-shell.is-payment-mode .scanner-pro-payments-list {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.scanner-pro-payment-item,
.scanner-pro-payment-cancel {
	display: flex;
	align-items: center;
	gap: 1.2rem;
	width: calc(100% - 7.2rem);
	max-width: 28.8rem;
	padding: 1.6rem;
	border-radius: var(--scanner-radius-md);
	border: 1px solid rgba(0, 0, 0, 0.06);
	background: rgba(255, 255, 255, 0.9);
	box-shadow: var(--scanner-shadow-soft);
	color: #121826;
	cursor: pointer;
	font-size: 1.6rem;
}

.scanner-pro-payment-thumb {
	width: 6.4rem;
	height: 6.4rem;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: rgba(31, 107, 255, 0.08);
	padding: 0.6rem;
	flex: 0 0 6.4rem;
}

.scanner-pro-payment-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.scanner-pro-payment-nome {
	font-size: 1.6rem;
	font-weight: 600;
	line-height: 1.3;
	color: #121826;
}

.scanner-pro-payment-cancel {
	justify-content: center;
	font-weight: 700;
	color: #8c1d1d;
}

.scanner-pro-card-instrucao {
	position: absolute;
	left: 50%;
	top: max(8.8rem, calc(env(safe-area-inset-top) + 2.8rem));
	transform: translateX(-50%);
	width: min(92vw, 92rem);
	padding: clamp(1.8rem, 2vw, 3rem) clamp(2rem, 2.4vw, 3.6rem);
	border-radius: clamp(2rem, 2vw, 2.8rem);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.14));
	border: 1px solid rgba(255, 255, 255, 0.28);
	backdrop-filter: blur(16px) saturate(145%);
	-webkit-backdrop-filter: blur(16px) saturate(145%);
	box-shadow: var(--scanner-shadow-strong);
	transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

.scanner-pro-card-instrucao.is-hidden {
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -1.2rem);
}

.scanner-pro-camera-actions {
	position: absolute;
	left: 50%;
	top: max(16.6rem, calc(env(safe-area-inset-top) + 10.8rem));
	transform: translateX(-50%);
	pointer-events: auto;
	display: flex;
	justify-content: center;
	width: min(92vw, 92rem);
	z-index: 2;
}

.scanner-pro-camera-toggle {
	border: 0;
	border-radius: 999px;
	padding: 1.2rem 1.8rem;
	min-height: 4.8rem;
	background: rgba(16, 24, 38, 0.78);
	color: #ffffff;
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	box-shadow: 0 1.2rem 2.6rem rgba(0, 0, 0, 0.24);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.scanner-pro-camera-toggle:disabled {
	opacity: 0.7;
}

.scanner-pro-card-titulo {
	margin: 0;
	font-size: clamp(1.8rem, 1.6rem + 1vw, 2.6rem);
	line-height: 1.3;
	font-weight: 700;
	text-align: center;
	text-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.35);
	letter-spacing: 0.01em;
}

.scanner-pro-ultimo-card {
	position: absolute;
	left: 50%;
	top: max(9.6rem, calc(env(safe-area-inset-top) + 4rem));
	transform: translate(-50%, 1.2rem);
	width: min(78vw, 56rem);
	min-height: clamp(11rem, 11vw, 14rem);
	padding: clamp(1.4rem, 1.4vw, 1.8rem);
	border-radius: clamp(2.2rem, 2vw, 3rem);
	display: grid;
	grid-template-columns: clamp(8.6rem, 7vw, 12rem) minmax(0, 1fr);
	align-items: center;
	column-gap: clamp(1.2rem, 1.2vw, 1.8rem);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.2));
	border: 1px solid rgba(255, 255, 255, 0.34);
	backdrop-filter: blur(18px) saturate(145%);
	-webkit-backdrop-filter: blur(18px) saturate(145%);
	box-shadow: 0 2.2rem 7.2rem rgba(9, 15, 25, 0.34);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.32s ease, transform 0.32s ease, visibility 0.32s ease;
}

.scanner-pro-ultimo-card.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.scanner-pro-ultimo-card.is-error {
	border-color: rgba(255, 107, 107, 0.7);
	background: linear-gradient(180deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.12));
}

.scanner-pro-ultimo-foto {
	width: clamp(8.6rem, 7vw, 12rem);
	height: clamp(8.6rem, 7vw, 12rem);
	border-radius: 1.8rem;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.72);
	color: #1f6bff;
	font-size: clamp(2rem, 1.6rem + 1vw, 2.6rem);
	font-weight: 800;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.scanner-pro-ultimo-foto img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
}

.scanner-pro-ultimo-info {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: clamp(0.4rem, 0.5vw, 0.8rem);
}

.scanner-pro-ultimo-nome {
	font-size: clamp(1.7rem, 1.6rem + 1vw, 2.2rem);
	font-weight: 800;
	line-height: 1.24;
	color: #101010;
	text-shadow: none;
	word-break: break-word;
}

.scanner-pro-ultimo-preco {
	font-size: clamp(1.4rem, 1.4rem + 0.7vw, 1.8rem);
	font-weight: 700;
	color: #126b4a;
	letter-spacing: 0.02em;
}

.scanner-pro-ultimo-codigo {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.8rem;
	font-size: clamp(1.2rem, 1.2rem + 0.35vw, 1.4rem);
	color: rgba(16, 16, 16, 0.78);
}

.scanner-pro-ultimo-icone {
	font-size: clamp(1.3rem, 1.2rem + 0.38vw, 1.6rem);
	line-height: 1;
	color: #7ed8ff;
}

.scanner-pro-face-sheet {
	position: absolute;
	inset: 0;
	z-index: 12;
	display: grid;
	place-items: center;
	padding: 2.4rem;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.24s ease, visibility 0.24s ease;
}

.scanner-pro-face-sheet.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.scanner-pro-face-sheet::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(6, 10, 18, 0.38), rgba(6, 10, 18, 0.54));
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.scanner-pro-face-sheet-card {
	position: relative;
	z-index: 1;
	width: min(92vw, 46rem);
	padding: clamp(2.2rem, 2vw, 2.8rem);
	border-radius: 2.8rem;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 2.8rem 9rem rgba(6, 10, 18, 0.34);
	display: flex;
	flex-direction: column;
	gap: 1.4rem;
	color: #121826;
}

.scanner-pro-face-sheet-eyebrow {
	font-size: 1.4rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #1f6bff;
}

.scanner-pro-face-sheet-title {
	font-size: clamp(2rem, 1.65rem + 0.9vw, 2.4rem);
	line-height: 1.2;
	font-weight: 800;
	color: #121826;
}

.scanner-pro-face-sheet-text {
	font-size: 1.5rem;
	line-height: 1.5;
	color: #506070;
}

.scanner-pro-face-field {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	font-size: 1.4rem;
	font-weight: 700;
	color: #2a3441;
}

.scanner-pro-face-input {
	width: 100%;
	min-height: 5.6rem;
	padding: 0 1.6rem;
	border-radius: 1.6rem;
	border: 1px solid rgba(18, 24, 38, 0.12);
	background: #ffffff;
	font-size: 1.6rem;
	color: #121826;
	outline: none;
}

.scanner-pro-face-input:focus {
	border-color: rgba(31, 107, 255, 0.52);
	box-shadow: 0 0 0 0.4rem rgba(31, 107, 255, 0.12);
}

.scanner-pro-face-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.2rem;
	margin-top: 0.6rem;
}

.scanner-pro-face-btn {
	min-height: 5.4rem;
	border: 0;
	border-radius: 1.8rem;
	font-size: 1.5rem;
	font-weight: 800;
	cursor: pointer;
}

.scanner-pro-face-btn-primary {
	background: #121826;
	color: #ffffff;
}

.scanner-pro-face-btn-secondary {
	background: rgba(18, 24, 38, 0.08);
	color: #121826;
}

.scanner-pro-face-sheet.is-loading .scanner-pro-face-sheet-card {
	opacity: 0.88;
}

@media (max-width: 640px) {
	.scanner-pro-cart-shell {
		width: min(100vw, 38rem);
		min-width: 0;
		padding-left: 1.2rem;
		padding-right: 1.2rem;
	}

	.scanner-pro-cart-panel {
		padding: 0;
	}

	.scanner-pro-cart-content {
		padding: 0 0 18.4rem;
	}

	.scanner-pro-btn-finalizar {
		width: calc(100% - 2.4rem);
		min-height: 10.4rem;
	}

	.scanner-pro-btn-topline {
		grid-template-columns: 3rem minmax(0, 1fr) auto;
		column-gap: 1rem;
	}

	.scanner-pro-payments-list {
		top: 12.6rem;
	}

	.scanner-pro-payment-item,
	.scanner-pro-payment-cancel {
		width: calc(100% - 2.4rem);
		max-width: 32rem;
	}

	.scanner-pro-card-instrucao {
		top: max(7.6rem, calc(env(safe-area-inset-top) + 1.6rem));
		width: min(calc(100vw - 4rem), 36rem);
		left: 2rem;
		transform: none;
		text-align: left;
	}

	.scanner-pro-ultimo-card {
		top: max(8.4rem, calc(env(safe-area-inset-top) + 2.2rem));
		left: 2rem;
		transform: translateY(1.2rem);
		grid-template-columns: 1fr;
		text-align: center;
		justify-items: center;
		width: min(calc(100vw - 4rem), 36rem);
		min-height: auto;
	}

	.scanner-pro-ultimo-card.is-visible {
		transform: translateY(0);
	}

	.scanner-pro-ultimo-info {
		align-items: center;
	}

	.scanner-pro-ultimo-codigo {
		justify-content: center;
	}

	.scanner-pro-face-sheet {
		padding: 1.8rem;
	}

	.scanner-pro-face-sheet-card {
		width: min(100%, 42rem);
		border-radius: 2.4rem;
	}

	.scanner-pro-face-actions {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 1800px) {
	.scanner-pro-card-instrucao {
		width: min(70vw, 98rem);
	}

	.scanner-pro-ultimo-card {
		width: min(42vw, 62rem);
	}

	.scanner-pro-cart-shell {
		width: min(26vw, 46rem);
	}
}
