/**
 * GesCli Kiosk Checkout - Design System para Totem Vertical Touch
 *
 * Otimizado para telas verticais 21.5" a 32" (1080x1920)
 * Área de toque mínima: 64x64 px | Espaçamento: 16 px
 * Concentração de ações nas faixas ergonômicas acessíveis.
 */

:root {
	--kiosk-primary: #059669;
	--kiosk-primary-hover: #047857;
	--kiosk-primary-light: #ecfdf5;
	--kiosk-secondary: #0284c7;
	--kiosk-danger: #dc2626;
	--kiosk-danger-hover: #b91c1c;
	--kiosk-warning: #f59e0b;
	--kiosk-warning-light: #fffbeb;
	--kiosk-bg: #f8fafc;
	--kiosk-surface: #ffffff;
	--kiosk-text: #0f172a;
	--kiosk-text-muted: #64748b;
	--kiosk-border: #e2e8f0;
	--kiosk-touch-min: 64px;
	--kiosk-gap: 16px;
	--kiosk-radius: 16px;
	--kiosk-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
	box-sizing: border-box;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
	touch-action: manipulation;
}

html, body {
	margin: 0;
	padding: 0;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	background-color: var(--kiosk-bg);
	font-family: var(--kiosk-font);
	color: var(--kiosk-text);
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   HEADER DO TOTEM
   ========================================================================== */
.kiosk-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100px;
	padding: 0 32px;
	background-color: var(--kiosk-surface);
	border-bottom: 2px solid var(--kiosk-border);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
	position: relative;
	z-index: 10;
}

.kiosk-header-left {
	display: flex;
	align-items: center;
	gap: 20px;
}

.kiosk-logo {
	height: 64px;
	max-width: 180px;
	object-fit: contain;
}

.kiosk-store-title {
	margin: 0;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--kiosk-text);
}

.kiosk-terminal-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--kiosk-text-muted);
	margin-top: 4px;
}

.kiosk-status-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: var(--kiosk-primary);
	box-shadow: 0 0 0 3px var(--kiosk-primary-light);
	animation: kioskPulse 2s infinite ease-in-out;
}

.kiosk-header-right {
	display: flex;
	align-items: center;
	gap: 24px;
}

/* Timer Circular no Header */
.kiosk-timer-wrap {
	position: relative;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.kiosk-timer-ring {
	transform: rotate(-90deg);
}

.kiosk-timer-bg {
	fill: none;
	stroke: #e2e8f0;
	stroke-width: 4;
}

.kiosk-timer-bar {
	fill: none;
	stroke: var(--kiosk-primary);
	stroke-width: 4;
	stroke-linecap: round;
	stroke-dasharray: 150.79;
	stroke-dashoffset: 0;
	transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
}

.kiosk-timer-num {
	position: absolute;
	font-size: 14px;
	font-weight: 700;
	color: var(--kiosk-text);
}

.kiosk-quick-actions {
	display: flex;
	gap: 12px;
}

.kiosk-icon-btn {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	border: 1px solid var(--kiosk-border);
	background: var(--kiosk-surface);
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.1s ease, background-color 0.2s ease;
}

.kiosk-icon-btn:active {
	transform: scale(0.92);
	background: #f1f5f9;
}

/* ==========================================================================
   LAYOUT PRINCIPAL: 70% CATÁLOGO / 30% STICKY CART
   ========================================================================== */
.kiosk-main-layout {
	display: flex;
	width: 100vw;
	height: calc(100vh - 100px);
	overflow: hidden;
}

/* SELEÇÃO DE PRODUTOS (Área Expandida) */
.kiosk-catalog-area {
	flex: 1;
	min-width: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	padding: 20px 24px;
	border-right: 2px solid var(--kiosk-border);
	background: #ffffff;
}

/* Barra de Pesquisa Rápida no Catálogo */
.kiosk-search-nav {
	width: 100%;
	flex-shrink: 0;
	margin-bottom: 10px;
}

.kiosk-search-input-wrap {
	display: flex;
	align-items: center;
	position: relative;
	background: #ffffff;
	border: 2px solid var(--kiosk-border);
	border-radius: 12px;
	padding: 0 14px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	transition: all 0.2s ease;
}

.kiosk-search-input-wrap:focus-within {
	border-color: var(--kiosk-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.kiosk-search-icon {
	font-size: 18px;
	color: #94a3b8;
	margin-right: 10px;
	user-select: none;
	line-height: 1;
}

.kiosk-search-input {
	flex: 1;
	height: 48px;
	border: none;
	outline: none;
	background: transparent;
	font-size: 16px;
	font-weight: 500;
	color: var(--kiosk-text);
	padding: 0;
	font-family: inherit;
}

.kiosk-search-input::placeholder {
	color: #94a3b8;
	font-weight: 400;
}

.kiosk-search-clear-btn {
	background: #e2e8f0;
	color: #475569;
	border: none;
	width: 28px;
	height: 28px;
	min-width: 28px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	margin-left: 8px;
	transition: all 0.2s ease;
	line-height: 1;
}

.kiosk-search-clear-btn:hover {
	background: #cbd5e1;
	color: #0f172a;
	transform: scale(1.08);
}

/* Navegação de Categorias (wrapper com setas) */
.kiosk-categories-nav {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	flex-shrink: 0;
	position: relative;
	margin-bottom: 8px;
}

.kiosk-cat-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-width: 44px;
	border-radius: 50%;
	border: 2px solid var(--kiosk-border);
	background: #ffffff;
	color: var(--kiosk-text);
	font-size: 16px;
	cursor: pointer;
	transition: all 0.2s ease;
	flex-shrink: 0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
	z-index: 2;
	user-select: none;
}
.kiosk-cat-arrow:hover:not(:disabled):not(.is-disabled) {
	background: var(--kiosk-primary);
	color: #ffffff;
	border-color: var(--kiosk-primary);
	transform: scale(1.06);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}
.kiosk-cat-arrow:active:not(:disabled):not(.is-disabled) {
	transform: scale(0.94);
}
.kiosk-cat-arrow:disabled,
.kiosk-cat-arrow.is-disabled {
	opacity: 0.22;
	cursor: not-allowed;
	pointer-events: none;
	box-shadow: none;
	border-color: #e2e8f0;
	color: #94a3b8;
}
.kiosk-cat-arrow-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* Barra de Categorias */
.kiosk-categories-bar {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	gap: 10px;
	padding: 4px 2px 8px 2px;
	overflow-x: auto;
	scrollbar-width: none;
	flex-shrink: 1;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	cursor: grab;
	user-select: none;
}
.kiosk-categories-bar.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
}
.kiosk-categories-bar::-webkit-scrollbar { display: none; }

.kiosk-cat-pill {
	min-height: 48px;
	padding: 0 20px;
	border-radius: 24px;
	border: 2px solid var(--kiosk-border);
	background: #ffffff;
	font-size: 15px;
	font-weight: 700;
	color: var(--kiosk-text-muted);
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s ease;
}

.kiosk-cat-pill.active,
.kiosk-cat-pill:hover {
	border-color: var(--kiosk-primary);
	background: var(--kiosk-primary);
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

/* Grid de Produtos com Rolagem Tátil Fluida */
.kiosk-products-grid {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
	grid-auto-rows: max-content;
	gap: 12px;
	align-content: start;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-y: contain;
	touch-action: pan-y;
	padding-right: 6px;
	padding-bottom: 24px;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
}

.kiosk-products-grid::-webkit-scrollbar {
	width: 8px;
}
.kiosk-products-grid::-webkit-scrollbar-track {
	background: transparent;
}
.kiosk-products-grid::-webkit-scrollbar-thumb {
	background-color: #cbd5e1;
	border-radius: 4px;
}
.kiosk-products-grid::-webkit-scrollbar-thumb:hover {
	background-color: var(--kiosk-primary);
}




/* Card de Produto Otimizado - Full Image Overlay */
.kiosk-prod-card {
	background: #0f172a;
	border: 2px solid transparent;
	border-radius: 16px;
	padding: 10px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	cursor: pointer;
	overflow: hidden;
	height: 220px;
	min-height: 220px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
	transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	user-select: none;
}

.kiosk-prod-card:active {
	transform: scale(0.97);
}

.kiosk-prod-card.in-cart {
	border-color: #10b981;
	box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.45), 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Imagem de Fundo Total */
.kiosk-card-bg-wrap {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	overflow: hidden;
	background: #1e293b;
}

.kiosk-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.kiosk-prod-card:hover .kiosk-card-img {
	transform: scale(1.06);
}

/* Gradiente de Contraste Profundo (Scrim) */
.kiosk-card-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(15, 23, 42, 0.75) 0%,
		rgba(15, 23, 42, 0.12) 35%,
		rgba(15, 23, 42, 0.65) 65%,
		rgba(15, 23, 42, 0.95) 100%
	);
	z-index: 2;
	pointer-events: none;
}

/* Barra Superior Sobreposta (Preço e Badge de Quantidade) */
.kiosk-card-top-bar {
	position: relative;
	z-index: 3;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	width: 100%;
}

.kiosk-card-price-tag {
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #34d399;
	font-size: 14px;
	font-weight: 800;
	padding: 4px 9px;
	border-radius: 8px;
	border: 1px solid rgba(52, 211, 153, 0.35);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
	letter-spacing: -0.2px;
}

.kiosk-card-badge {
	background: #10b981;
	color: #ffffff;
	font-size: 14px;
	font-weight: 800;
	min-width: 28px;
	height: 28px;
	padding: 0 7px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
	border: 2px solid #ffffff;
}

/* Barra Inferior Sobreposta à Foto (Nome + Controles) */
.kiosk-card-bottom-overlay {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.kiosk-card-name {
	font-size: 14px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 0, 0, 0.6);
	min-height: 35px;
}

/* Botão [+ Adicionar] Sobre a Foto */
.kiosk-card-add-btn {
	width: 100%;
	height: 38px;
	background: rgba(5, 150, 105, 0.92);
	color: #ffffff;
	border: 1px solid rgba(52, 211, 153, 0.4);
	border-radius: 9px;
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	cursor: pointer;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
	transition: background 0.15s ease, transform 0.1s ease;
}

.kiosk-card-add-btn:hover {
	background: #047857;
}

.kiosk-card-add-btn:active {
	background: #065f46;
	transform: scale(0.97);
}

.kiosk-add-plus {
	font-size: 16px;
	font-weight: 800;
}

/* Controles de Quantidade [-] [Qtd] [+] Sobre a Foto */
.kiosk-card-qty-control {
	width: 100%;
	height: 38px;
	background: rgba(15, 23, 42, 0.92);
	border: 1.5px solid #10b981;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 2px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

.kiosk-qty-btn {
	width: 36px;
	height: 32px;
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
	border: none;
	border-radius: 6px;
	font-size: 20px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.15s ease;
}

.kiosk-btn-minus:active {
	background: #ef4444;
}

.kiosk-btn-plus:active {
	background: #10b981;
}

.kiosk-qty-val {
	font-size: 16px;
	font-weight: 800;
	color: #ffffff;
	min-width: 28px;
	text-align: center;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Paginação Horizontal em Blocos */
.kiosk-pagination-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 20px;
	border-top: 2px solid var(--kiosk-border);
	margin-top: 16px;
}

.kiosk-page-btn {
	min-width: 160px;
	height: var(--kiosk-touch-min);
	border-radius: 14px;
	border: 2px solid var(--kiosk-border);
	background: #ffffff;
	font-size: 18px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.kiosk-page-btn:not(:disabled):hover,
.kiosk-page-btn:not(:disabled):active {
	background: var(--kiosk-primary);
	border-color: var(--kiosk-primary);
	color: #ffffff;
}

.kiosk-page-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.kiosk-page-counter {
	font-size: 18px;
	font-weight: 700;
	color: var(--kiosk-text-muted);
}

/* ==========================================================================
   CARRINHO LATERAL FIXO (Sticky Cart Otimizado)
   ========================================================================== */
.kiosk-sticky-cart {
	width: 320px;
	min-width: 290px;
	max-width: 340px;
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	padding: 20px;
	box-shadow: -4px 0 16px rgba(0, 0, 0, 0.04);
	flex-shrink: 0;
}

.kiosk-cart-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--kiosk-border);
}

.kiosk-cart-title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
}

.kiosk-cart-count {
	font-size: 15px;
	font-weight: 700;
	background: var(--kiosk-primary-light);
	color: var(--kiosk-primary);
	padding: 6px 12px;
	border-radius: 20px;
}

/* Lista de Itens no Carrinho */
.kiosk-cart-items-scroll {
	flex: 1;
	overflow-y: auto;
	padding: 16px 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.kiosk-cart-empty-state {
	margin: auto 0;
	text-align: center;
	padding: 32px 16px;
}

.kiosk-empty-icon {
	font-size: 64px;
	margin-bottom: 12px;
	opacity: 0.5;
}

.kiosk-empty-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--kiosk-text);
	margin: 0 0 8px 0;
}

.kiosk-empty-desc {
	font-size: 15px;
	color: var(--kiosk-text-muted);
	margin: 0;
}

/* Item no Carrinho */
.kiosk-cart-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	background: #f8fafc;
	border: 1px solid var(--kiosk-border);
	border-radius: 12px;
	gap: 12px;
}

.kiosk-item-info {
	flex: 1;
	min-width: 0;
}

.kiosk-item-name {
	font-size: 16px;
	font-weight: 700;
	color: var(--kiosk-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.kiosk-item-price-row {
	font-size: 15px;
	font-weight: 700;
	color: var(--kiosk-primary);
	margin-top: 4px;
}

.kiosk-item-controls {
	display: flex;
	align-items: center;
	gap: 8px;
}

.kiosk-item-btn {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	border: 1px solid var(--kiosk-border);
	background: #ffffff;
	font-size: 18px;
	font-weight: 800;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.1s ease;
}

.kiosk-item-btn:active {
	background: #e2e8f0;
}

.kiosk-item-qty {
	font-size: 18px;
	font-weight: 800;
	min-width: 24px;
	text-align: center;
}

/* Rodapé do Carrinho (Zona Central e Inferior de Alta Acessibilidade) */
.kiosk-cart-footer {
	border-top: 2px solid var(--kiosk-border);
	padding-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.kiosk-cart-summary {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.kiosk-summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 16px;
	font-weight: 600;
	color: var(--kiosk-text-muted);
}

.kiosk-discount-row {
	color: #059669;
	font-weight: 700;
	background: #f0fdf4;
	padding: 4px 8px;
	border-radius: 6px;
	border: 1px solid #dcfce7;
}

.kiosk-btn-remove-discount:hover {
	transform: scale(1.15);
	color: #dc2626 !important;
}

.kiosk-btn-add-discount:hover {
	background: #f1f5f9 !important;
	border-color: #94a3b8 !important;
	color: #1e293b !important;
}

.kiosk-discount-preset-btn:hover {
	background: #e2e8f0 !important;
	border-color: #94a3b8 !important;
	transform: translateY(-1px);
}

.kiosk-discount-preset-btn:active {
	background: #059669 !important;
	color: #ffffff !important;
}

.kiosk-total-row {
	font-size: 20px;
	font-weight: 800;
	color: var(--kiosk-text);
	padding-top: 8px;
	border-top: 1px dashed var(--kiosk-border);
}

.kiosk-total-price {
	font-size: 32px;
	font-weight: 900;
	color: var(--kiosk-primary);
}

/* Botão CTA Primário (>= 64px altura) */
.kiosk-cta-btn {
	min-height: var(--kiosk-touch-min);
	height: 72px;
	border-radius: var(--kiosk-radius);
	background: var(--kiosk-primary);
	color: #ffffff;
	border: none;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 0.02em;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
	transition: transform 0.15s ease, background-color 0.2s ease;
}

.kiosk-cta-btn:not(:disabled):active {
	transform: scale(0.97);
	background: var(--kiosk-primary-hover);
}

.kiosk-cta-btn:disabled {
	background: #cbd5e1;
	box-shadow: none;
	cursor: not-allowed;
}

.kiosk-secondary-btn {
	min-height: 48px;
	border-radius: 10px;
	background: #ffffff;
	border: 1px solid var(--kiosk-border);
	color: var(--kiosk-text-muted);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.kiosk-cart-actions {
	display: flex;
	gap: 10px;
	width: 100%;
}

.kiosk-cart-actions > .kiosk-secondary-btn {
	flex: 1 1 0;
	min-width: 0;
	padding: 8px 10px;
}

.kiosk-direct-sale-btn {
	color: var(--kiosk-primary);
}

.kiosk-secondary-btn:active {
	background: #f1f5f9;
}

/* ==========================================================================
   MODAIS, FAST CHECKOUT E TELAS DE ESTADO
   ========================================================================== */
.kiosk-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(8px);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.kiosk-modal-dialog {
	width: 100%;
	max-width: 680px;
	max-height: 92vh;
	max-height: 92dvh;
	background: #ffffff;
	border-radius: 24px;
	padding: 36px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	animation: kioskModalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
}

.kiosk-modal-header {
	text-align: center;
	margin-bottom: 24px;
}

.kiosk-modal-title {
	font-size: 28px;
	font-weight: 800;
	color: var(--kiosk-text);
	margin: 0 0 8px 0;
}

.kiosk-modal-desc {
	font-size: 16px;
	color: var(--kiosk-text-muted);
	margin: 0;
}

/* IDENTIFICATION DIALOG — constrained to viewport */
.kiosk-ident-dialog {
	max-height: 90vh;
	max-height: 90dvh;
}

.kiosk-ident-dialog .kiosk-modal-body {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	padding-right: 4px;
}

/* Numpad within ident dialog — compact on smaller screens */
.kiosk-ident-dialog .kiosk-virtual-numpad {
	gap: 12px;
	margin-bottom: 16px;
}

.kiosk-ident-dialog .kiosk-num-key {
	height: 64px;
}

/* PROCESSING DIALOG — QR code and hardware views constrained */
.kiosk-processing-dialog {
	max-height: 90vh;
	max-height: 90dvh;
}

.kiosk-processing-dialog .kiosk-modal-body {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

/* PAYMENT DIALOG — fit all payment methods */
.kiosk-payment-dialog {
	max-height: 88vh;
	max-height: 88dvh;
}

/* CASH REGISTER DIALOG — already has max-height, ensure scroll */
.kiosk-cash-register-dialog {
	max-height: 88vh;
	max-height: 88dvh;
}

/* SUCCESS DIALOG — compact, no scroll needed */
.kiosk-success-dialog {
	max-height: 85vh;
	max-height: 85dvh;
}

/* SHIELD DIALOG — minimal content */
.kiosk-shield-dialog {
	max-height: 70vh;
	max-height: 70dvh;
}

/* ==========================================================================
   IDENTIFICAÇÃO FRENTE DE CAIXA (VENDA RÁPIDA ANÔNIMA VS IDENTIFICADO)
   ========================================================================== */

/* Botão de Venda Rápida / Consumidor Anônimo (1 Toque) */
.kiosk-fast-anon-box {
	margin-bottom: 14px;
}

.kiosk-btn-anon-fast {
	width: 100%;
	min-height: 64px;
	padding: 14px 20px;
	background: #f1f5f9;
	border: 2px dashed #94a3b8;
	border-radius: 16px;
	display: flex;
	align-items: center;
	gap: 16px;
	cursor: pointer;
	text-align: left;
	transition: all 0.2s ease;
}

.kiosk-btn-anon-fast:hover,
.kiosk-btn-anon-fast:active {
	background: #e2e8f0;
	border-color: #64748b;
	transform: scale(0.99);
}

.kiosk-anon-icon {
	font-size: 28px;
	flex-shrink: 0;
}

.kiosk-anon-text {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.kiosk-anon-title {
	font-size: 16px;
	font-weight: 800;
	color: #0f172a;
}

.kiosk-anon-sub {
	font-size: 13px;
	color: #64748b;
}

.kiosk-anon-arrow {
	font-size: 20px;
	color: #64748b;
	font-weight: 800;
}

/* Divisor Visual */
.kiosk-ident-divider {
	display: flex;
	align-items: center;
	text-align: center;
	margin: 14px 0 16px;
}

.kiosk-ident-divider::before,
.kiosk-ident-divider::after {
	content: '';
	flex: 1;
	border-bottom: 1px solid #e2e8f0;
}

.kiosk-ident-divider span {
	padding: 0 12px;
	font-size: 11px;
	font-weight: 800;
	color: #94a3b8;
	letter-spacing: 0.06em;
}

/* Alternador de Tipo de Identificação (Pills) */
.kiosk-ident-type-pills {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 14px;
}

.kiosk-type-pill {
	min-height: 48px;
	padding: 10px 14px;
	border-radius: 12px;
	border: 2px solid #e2e8f0;
	background: #f8fafc;
	font-size: 15px;
	font-weight: 700;
	color: #475569;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.kiosk-type-pill.active {
	background: #ffffff;
	border-color: var(--kiosk-primary);
	color: var(--kiosk-primary);
	box-shadow: 0 0 0 3px var(--kiosk-primary-light);
}

.kiosk-ident-feedback-bar {
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	margin-bottom: 12px;
}

.kiosk-ident-feedback-bar.is-success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.kiosk-ident-feedback-bar.is-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* Header do Cliente Identificado no Passo 2 */
.kiosk-customer-identified-header {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #f8fafc;
	border: 1.5px solid #e2e8f0;
	border-radius: 14px;
	padding: 14px 16px;
	margin-bottom: 14px;
}

.kiosk-cust-badge-icon {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #dcfce7;
	color: #166534;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: 900;
	flex-shrink: 0;
}

.kiosk-cust-badge-details {
	flex: 1;
	min-width: 0;
}

.kiosk-cust-badge-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 3px;
}

.kiosk-cust-status-badge {
	font-size: 11px;
	font-weight: 700;
	color: #166534;
	text-transform: uppercase;
}

.kiosk-cust-edit-label {
	font-size: 11px;
	font-weight: 600;
	color: var(--kiosk-primary, #059669);
	user-select: none;
}

.kiosk-cust-name-edit-wrap {
	display: flex;
	align-items: center;
	position: relative;
	margin: 2px 0 6px 0;
}

.kiosk-cust-name-input {
	width: 100%;
	border: 1.5px solid #cbd5e1;
	border-radius: 10px;
	background: #ffffff;
	padding: 8px 12px;
	font-size: 18px;
	font-weight: 800;
	color: #0f172a;
	outline: none;
	cursor: text;
	user-select: text !important;
	-webkit-user-select: text !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	font-family: inherit;
}

.kiosk-cust-name-input:focus {
	border-color: var(--kiosk-primary, #059669);
	box-shadow: 0 0 0 3px var(--kiosk-primary-light, #ecfdf5);
}

.kiosk-cust-name-input::placeholder {
	color: #94a3b8;
	font-weight: 500;
	font-size: 15px;
}

.kiosk-customer-identified-header h3 {
	margin: 2px 0 0;
	font-size: 18px;
	font-weight: 800;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.kiosk-cust-sub {
	font-size: 13px;
	color: #64748b;
}

/* Card de Cashback com Toggle Touch */
.kiosk-cashback-callout {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #ecfdf5;
	border: 1.5px solid #a7f3d0;
	border-radius: 14px;
	padding: 14px 16px;
	margin-bottom: 14px;
}

.kiosk-cb-left {
	display: flex;
	flex-direction: column;
}

.kiosk-cb-label {
	font-size: 12px;
	font-weight: 600;
	color: #065f46;
}

.kiosk-cb-value {
	font-size: 22px;
	font-weight: 900;
	color: #047857;
}

.kiosk-cb-toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
}

.kiosk-cb-toggle input {
	width: 22px;
	height: 22px;
	cursor: pointer;
	accent-color: var(--kiosk-primary);
}

.kiosk-cb-toggle-text {
	font-size: 14px;
	font-weight: 700;
	color: #065f46;
}

/* Pergunta Direta: CPF na Nota */
.kiosk-cpf-ask-card {
	background: #eff6ff;
	border: 2px solid #bfdbfe;
	border-radius: 14px;
	padding: 16px;
	margin-bottom: 16px;
}

.kiosk-cpf-ask-title {
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: 800;
	color: #1e40af;
	text-align: center;
}

.kiosk-cpf-choice-buttons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.kiosk-btn-cpf-choice {
	min-height: 60px;
	padding: 12px 14px;
	border-radius: 12px;
	border: 2px solid #93c5fd;
	background: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 10px;
	text-align: left;
	transition: all 0.2s ease;
}

.kiosk-btn-cpf-choice:hover,
.kiosk-btn-cpf-choice:active {
	background: #dbeafe;
	transform: scale(0.99);
}

.kiosk-btn-cpf-choice.is-selected {
	border-color: #2563eb;
	background: #2563eb;
	color: #ffffff;
}

.kiosk-btn-cpf-choice.is-selected strong,
.kiosk-btn-cpf-choice.is-selected small,
.kiosk-btn-cpf-choice.is-selected .kiosk-choice-icon {
	color: #ffffff;
}

.kiosk-choice-icon {
	font-size: 20px;
	font-weight: 900;
	color: #1e40af;
}

.kiosk-choice-text {
	display: flex;
	flex-direction: column;
}

.kiosk-choice-text strong {
	font-size: 14px;
	color: #1e3a8a;
}

.kiosk-choice-text small {
	font-size: 11px;
	color: #3b82f6;
}

/* Sub-etapa de Digitação do CPF */
.kiosk-substep-cpf-box {
	background: #f8fafc;
	border: 1.5px solid #e2e8f0;
	border-radius: 14px;
	padding: 14px;
	margin-top: 14px;
}

.kiosk-substep-label {
	font-size: 14px;
	font-weight: 700;
	color: #334155;
	margin: 0 0 8px;
	text-align: center;
}

.kiosk-sub-numpad .kiosk-num-key {
	height: 60px;
	font-size: 24px;
}

/* ==========================================================================
   DINHEIRO & CÁLCULO DE TROCO (FRENTE DE CAIXA)
   ========================================================================== */
.kiosk-cash-box {
	background: #f0fdf4;
	border: 2px solid #bbf7d0;
	border-radius: 16px;
	padding: 18px 20px;
	margin: 16px 0 20px;
}

.kiosk-cash-row-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 18px;
	font-weight: 700;
	color: #166534;
	padding-bottom: 12px;
	border-bottom: 1px dashed #bbf7d0;
	margin-bottom: 14px;
}

.kiosk-cash-highlight-total {
	font-size: 26px;
	font-weight: 900;
	color: #14532d;
}

.kiosk-cash-received-wrap label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #166534;
	margin-bottom: 6px;
}

.kiosk-cash-input-field {
	text-align: right !important;
	color: #0f172a !important;
	font-size: 28px !important;
}

.kiosk-cash-chips-row {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 8px;
	margin: 12px 0 14px;
}

.kiosk-cash-chip {
	min-height: 42px;
	padding: 6px;
	background: #ffffff;
	border: 1.5px solid #86efac;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	color: #15803d;
	cursor: pointer;
	transition: all 0.15s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.kiosk-cash-chip:hover,
.kiosk-cash-chip:active {
	background: #15803d;
	color: #ffffff;
	border-color: #15803d;
	transform: scale(0.97);
}

.kiosk-cash-row-change {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 12px;
	border-top: 1.5px solid #bbf7d0;
	font-size: 19px;
	font-weight: 800;
	color: #1e293b;
}

.kiosk-cash-highlight-change {
	font-size: 28px;
	font-weight: 900;
	color: #b91c1c;
}

.kiosk-cash-highlight-change.has-change {
	color: #15803d;
}

/* Toast Container Nativo (substitui alert() nativo) */
.kiosk-toast-container {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2000;
	display: flex;
	flex-direction: column;
	gap: 8px;
	pointer-events: none;
}

.kiosk-toast {
	min-width: 280px;
	max-width: 480px;
	padding: 14px 20px;
	background: #0f172a;
	color: #ffffff;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
	display: flex;
	align-items: center;
	gap: 10px;
	animation: kioskToastSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	pointer-events: auto;
}

.kiosk-toast.toast-success {
	background: #15803d;
}

.kiosk-toast.toast-error {
	background: #dc2626;
}

.kiosk-toast.toast-info {
	background: #0284c7;
}

@keyframes kioskToastSlide {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

/* TECLADO VIRTUAL NUMÉRICO (NUMPAD >= 64x64px) */
.kiosk-numpad-display-wrap {
	display: flex;
	align-items: center;
	background: #f8fafc;
	border: 3px solid var(--kiosk-border);
	border-radius: 16px;
	padding: 8px 16px;
	margin-bottom: 20px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.kiosk-numpad-display-wrap:focus-within {
	border-color: var(--kiosk-primary);
	background: #ffffff;
	box-shadow: 0 0 0 4px var(--kiosk-primary-light);
}

.kiosk-numpad-display {
	flex: 1;
	border: none;
	background: transparent;
	font-size: 32px;
	font-weight: 800;
	text-align: center;
	letter-spacing: 0.1em;
	color: var(--kiosk-text);
	outline: none;
	cursor: text;
	caret-color: var(--kiosk-primary);
	user-select: text !important;
	-webkit-user-select: text !important;
}

.kiosk-numpad-btn-del {
	width: var(--kiosk-touch-min);
	height: var(--kiosk-touch-min);
	border: none;
	background: #e2e8f0;
	border-radius: 12px;
	font-size: 24px;
	cursor: pointer;
}

.kiosk-virtual-numpad {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 24px;
}

.kiosk-num-key {
	height: 80px;
	border-radius: 16px;
	border: 2px solid var(--kiosk-border);
	background: #ffffff;
	font-size: 32px;
	font-weight: 800;
	color: var(--kiosk-text);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
	transition: transform 0.1s ease, background 0.1s ease;
}

.kiosk-num-key:active {
	transform: scale(0.95);
	background: #f1f5f9;
}

.kiosk-num-key.kiosk-num-clear {
	font-size: 20px;
	color: var(--kiosk-danger);
	background: #fef2f2;
	border-color: #fecaca;
}

.kiosk-num-key.kiosk-num-ok {
	font-size: 22px;
	color: #ffffff;
	background: var(--kiosk-primary);
	border-color: var(--kiosk-primary);
}

.kiosk-modal-footer {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 24px;
}

.kiosk-modal-footer.is-row {
	flex-direction: row;
	gap: 14px;
}

.kiosk-modal-footer.is-row .kiosk-btn-action {
	flex: 1 1 0;
	min-width: 0;
	width: 100%;
}

.kiosk-btn-action {
	min-height: var(--kiosk-touch-min);
	border-radius: 16px;
	font-size: 18px;
	font-weight: 800;
	cursor: pointer;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.kiosk-btn-action:active {
	transform: scale(0.98);
}

.kiosk-btn-action:disabled,
.kiosk-btn-confirm:disabled {
	opacity: 0.55;
	background: #cbd5e1 !important;
	color: #64748b !important;
	border-color: #cbd5e1 !important;
	box-shadow: none !important;
	cursor: not-allowed !important;
	pointer-events: none;
}

.kiosk-btn-confirm {
	background: var(--kiosk-primary);
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.kiosk-btn-skip {
	background: #f1f5f9;
	color: var(--kiosk-text);
	border: 2px solid var(--kiosk-border);
}

.kiosk-btn-back {
	background: transparent;
	color: var(--kiosk-text-muted);
	border: 1px solid var(--kiosk-border);
}

.kiosk-btn-cancel {
	background: #fee2e2;
	color: var(--kiosk-danger);
	border: 1px solid #fecaca;
}

/* SELEÇÃO DE PAGAMENTO */
.kiosk-payment-methods-grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 24px;
}

.kiosk-payment-methods-head {
	display: none;
}

.kiosk-payment-layout-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	align-content: start;
}

.kiosk-payment-layout-grid .kiosk-pay-card-btn {
	min-height: 150px;
	padding: 18px 16px;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	text-align: center;
}

.kiosk-payment-layout-grid .kiosk-pay-info {
	flex: 0 1 auto;
	text-align: center;
}

.kiosk-payment-layout-grid .kiosk-pay-arrow {
	display: none;
}

.kiosk-payment-layout-table {
	gap: 0;
	border: 1px solid var(--kiosk-border);
	border-radius: 14px;
	overflow: hidden;
}

.kiosk-payment-layout-table .kiosk-payment-methods-head,
.kiosk-payment-layout-table .kiosk-pay-card-btn {
	display: grid;
	grid-template-columns: 54px minmax(0, 1.1fr) minmax(0, 1fr) 30px;
	align-items: center;
	gap: 14px;
}

.kiosk-payment-layout-table .kiosk-payment-methods-head {
	padding: 10px 18px;
	background: #f8fafc;
	color: var(--kiosk-text-muted);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.kiosk-payment-layout-table .kiosk-pay-card-btn {
	width: 100%;
	min-height: 76px;
	padding: 10px 18px;
	border: 0;
	border-top: 1px solid var(--kiosk-border);
	border-radius: 0;
	text-align: left;
}

.kiosk-payment-layout-table .kiosk-pay-icon {
	font-size: 30px;
	text-align: center;
}

.kiosk-payment-layout-table .kiosk-pay-info {
	display: contents;
}

.kiosk-payment-layout-table .kiosk-pay-name,
.kiosk-payment-layout-table .kiosk-pay-hint {
	margin: 0;
	font-size: 15px;
}

.kiosk-payment-layout-table .kiosk-pay-arrow {
	font-size: 20px;
}

.kiosk-pay-card-btn {
	min-height: 90px;
	border-radius: 18px;
	border: 3px solid var(--kiosk-border);
	background: #ffffff;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	gap: 20px;
	cursor: pointer;
	transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.kiosk-pay-card-btn:active {
	transform: scale(0.98);
	border-color: var(--kiosk-primary);
	box-shadow: 0 6px 18px rgba(5, 150, 105, 0.2);
}

.kiosk-pay-icon {
	font-size: 40px;
}

.kiosk-pay-info {
	flex: 1;
	text-align: left;
}

.kiosk-pay-name {
	display: block;
	font-size: 20px;
	font-weight: 800;
	color: var(--kiosk-text);
}

.kiosk-pay-hint {
	display: block;
	font-size: 14px;
	color: var(--kiosk-text-muted);
	margin-top: 4px;
}

.kiosk-pay-arrow {
	font-size: 24px;
	color: var(--kiosk-text-muted);
}

/* TELA DE BLOQUEIO / PIX DINÂMICO */
.kiosk-pix-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 20px 0;
}

.kiosk-pix-qr-frame {
	width: 280px;
	height: 280px;
	border: 4px solid var(--kiosk-primary);
	border-radius: 20px;
	padding: 12px;
	background: #ffffff;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.kiosk-pix-qr-frame img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.kiosk-pix-timer-wrap {
	margin-top: 12px;
	font-size: 16px;
	color: var(--kiosk-text-muted);
	display: flex;
	align-items: center;
	gap: 8px;
}

.kiosk-pix-timer-wrap strong {
	color: var(--kiosk-danger);
	font-size: 20px;
}

.kiosk-pix-amount-banner,
.kiosk-card-amount-banner {
	background: #f8fafc;
	border: 2px solid var(--kiosk-border);
	border-radius: 12px;
	padding: 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 18px;
	margin-bottom: 20px;
}

.kiosk-pix-amount-banner strong,
.kiosk-card-amount-banner strong {
	font-size: 26px;
	font-weight: 900;
	color: var(--kiosk-primary);
}

.kiosk-pix-instructions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	font-size: 15px;
	color: var(--kiosk-text-muted);
	margin-bottom: 24px;
}

.kiosk-pulse-dot {
	width: 12px;
	height: 12px;
	background: var(--kiosk-primary);
	border-radius: 50%;
	animation: kioskPulse 1.5s infinite ease-in-out;
}

/* Bloco de Envio do PIX no WhatsApp */
.kiosk-pix-whatsapp-box {
	background: #f0fdf4;
	border: 1.5px solid #bbf7d0;
	border-radius: 14px;
	padding: 12px 14px;
	margin-bottom: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	box-sizing: border-box;
	width: 100%;
}

.kiosk-btn-pix-zap {
	background: #16a34a;
	color: #ffffff;
	border: none;
	border-radius: 10px;
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	width: 100%;
	box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
	transition: background 0.2s, transform 0.1s;
}

.kiosk-btn-pix-zap:active {
	transform: scale(0.98);
}

.kiosk-btn-pix-zap:hover {
	background: #15803d;
}

.kiosk-pix-zap-drawer {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 4px;
}

.kiosk-pix-zap-input-wrap label {
	font-size: 13px;
	font-weight: 600;
	color: #166534;
	display: block;
	margin-bottom: 4px;
	text-align: left;
}

.kiosk-pix-zap-input-row {
	display: flex;
	gap: 8px;
	width: 100%;
}

.kiosk-pix-zap-input-row input {
	flex: 1;
	font-size: 16px !important;
	padding: 10px 12px !important;
	border: 2px solid #bbf7d0 !important;
	border-radius: 8px !important;
	background: #ffffff !important;
	color: #0f172a !important;
	min-height: 44px !important;
	box-sizing: border-box !important;
}

.kiosk-pix-zap-input-row button {
	padding: 10px 18px !important;
	font-size: 14px !important;
	white-space: nowrap !important;
	min-height: 44px !important;
}

.kiosk-pix-zap-feedback {
	font-size: 12.5px;
	font-weight: 600;
	margin: 4px 0 0 0;
	text-align: center;
}

/* HARDWARE / PINPAD ANIMATION */
.kiosk-hardware-animation {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 160px;
}

.kiosk-card-pulse-icon {
	font-size: 80px;
	z-index: 2;
	animation: kioskFloat 2s infinite ease-in-out;
}

.kiosk-proc-view {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.kiosk-proc-title {
	font-size: 26px;
	font-weight: 800;
	color: var(--kiosk-text);
	text-align: center;
	margin: 0 0 8px 0;
}

.kiosk-proc-desc {
	font-size: 16px;
	color: var(--kiosk-text-muted);
	text-align: center;
	margin: 0 0 16px 0;
}

.kiosk-proc-instruction-box {
	background: var(--kiosk-warning-light);
	border: 2px solid var(--kiosk-warning);
	border-radius: 14px;
	padding: 16px;
	font-size: 18px;
	font-weight: 700;
	color: #92400e;
	text-align: center;
	margin-bottom: 24px;
}

.kiosk-proc-actions {
	display: flex;
	gap: 16px;
	margin-top: 24px;
	width: 100%;
	align-items: stretch;
	box-sizing: border-box;
}

.kiosk-proc-actions .kiosk-btn-action {
	flex: 1 1 0;
	min-width: 0;
	width: 100%;
	padding: 14px 20px;
	font-size: clamp(15px, 1.8vw, 18px);
	text-align: center;
	justify-content: center;
	box-sizing: border-box;
}

.kiosk-proc-actions .kiosk-btn-action:only-child {
	flex: 1 1 100%;
	width: 100%;
}

.kiosk-pix-fallback-actions {
	display: flex;
	gap: 16px;
	margin-top: 20px;
	width: 100%;
	align-items: stretch;
	box-sizing: border-box;
}

.kiosk-pix-fallback-actions .kiosk-btn-action {
	flex: 1 1 0;
	min-width: 0;
	width: 100%;
	padding: 14px 20px;
	font-size: 16px;
	text-align: center;
	justify-content: center;
}

/* RESOLUÇÃO: SUCESSO */
.kiosk-success-dialog {
	text-align: center;
	background: #f0fdf4;
	border: 3px solid #86efac;
}

.kiosk-success-icon-wrap {
	width: 80px;
	height: 80px;
	margin: 0 auto 16px;
}

.kiosk-success-checkmark {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	display: block;
	stroke-width: 4;
	stroke: var(--kiosk-primary);
	stroke-miterlimit: 10;
	box-shadow: inset 0px 0px 0px var(--kiosk-primary);
	animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.kiosk-checkmark-circle {
	stroke-dasharray: 166;
	stroke-dashoffset: 166;
	stroke-width: 4;
	stroke-miterlimit: 10;
	stroke: var(--kiosk-primary);
	fill: none;
	animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.kiosk-checkmark-check {
	transform-origin: 50% 50%;
	stroke-dasharray: 48;
	stroke-dashoffset: 48;
	animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.kiosk-success-title {
	font-size: 32px;
	font-weight: 900;
	color: #166534;
	margin: 0 0 6px 0;
}

.kiosk-success-subtitle {
	font-size: 18px;
	color: #15803d;
	margin: 0 0 20px 0;
}

.kiosk-order-ticket-box {
	background: #ffffff;
	border: 2px dashed #86efac;
	border-radius: 16px;
	padding: 20px;
	margin-bottom: 24px;
}

.kiosk-ticket-label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: var(--kiosk-text-muted);
	letter-spacing: 0.05em;
}

.kiosk-order-number {
	font-size: 40px;
	font-weight: 900;
	color: #166534;
}

.kiosk-btn-ticket-print {
	min-height: var(--kiosk-touch-min);
	width: 100%;
	border-radius: 14px;
	background: #ffffff;
	border: 2px solid var(--kiosk-border);
	font-size: 18px;
	font-weight: 800;
	cursor: pointer;
	margin-bottom: 16px;
}

.kiosk-btn-ticket-print:active {
	background: #f1f5f9;
}

.kiosk-whatsapp-send-row {
	background: #ffffff;
	border: 1px solid #bbf7d0;
	border-radius: 14px;
	padding: 16px;
	margin-bottom: 20px;
	text-align: left;
}

.kiosk-label-zap {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #166534;
	margin-bottom: 8px;
}

.kiosk-zap-input-group {
	display: flex;
	gap: 8px;
}

.kiosk-zap-input-group input {
	flex: 1;
	height: 48px;
	padding: 0 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 16px;
}

.kiosk-zap-input-group button {
	height: 48px;
	padding: 0 20px;
	background: #16a34a;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-weight: 700;
	cursor: pointer;
}

.kiosk-auto-close-countdown {
	font-size: 15px;
	color: #15803d;
	margin-bottom: 16px;
}

/* RESOLUÇÃO: ERRO / ALERTA */
.kiosk-alert-dialog {
	text-align: center;
	background: #fffbeb;
	border: 3px solid #fde68a;
}

.kiosk-alert-icon {
	font-size: 64px;
	margin-bottom: 12px;
}

.kiosk-alert-title {
	font-size: 28px;
	font-weight: 900;
	color: #92400e;
	margin: 0 0 8px 0;
}

.kiosk-alert-desc {
	font-size: 17px;
	color: #78350f;
	margin: 0 0 6px 0;
}

.kiosk-alert-hint {
	font-size: 14px;
	color: #b45309;
	margin: 0 0 24px 0;
}

/* TIMEOUT SHIELD */
.kiosk-shield-dialog {
	text-align: center;
	border: 3px solid var(--kiosk-warning);
}

.kiosk-shield-counter-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 20px 0;
}

.kiosk-shield-num {
	font-size: 64px;
	font-weight: 900;
	color: var(--kiosk-warning);
	line-height: 1;
}

.kiosk-shield-progress-bar {
	width: 100%;
	height: 10px;
	background: #e2e8f0;
	border-radius: 5px;
	overflow: hidden;
	margin-bottom: 24px;
}

.kiosk-shield-progress-fill {
	height: 100%;
	width: 100%;
	background: var(--kiosk-warning);
	transition: width 1s linear;
}

/* CONFIRMAÇÃO DE AÇÃO */
.kiosk-confirm-dialog {
	max-width: 480px;
	text-align: center;
}

/* SKELETON LOADING */
.kiosk-loading-skeleton {
	display: contents;
}

.kiosk-skeleton-card {
	background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
	background-size: 200% 100%;
	animation: kioskShimmer 1.5s infinite;
	border-radius: var(--kiosk-radius);
	min-height: 200px;
}

/* ANIMAÇÕES */
@keyframes kioskPulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.6; transform: scale(1.15); }
}

@keyframes kioskFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

@keyframes kioskModalSlideUp {
	from { opacity: 0; transform: translateY(40px) scale(0.96); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes kioskShimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

@keyframes stroke {
	100% { stroke-dashoffset: 0; }
}

/* ==========================================================================
   ESTILOS DE IMPRESSÃO (TICKET TÉRMICO 80mm)
   ========================================================================== */
.kiosk-print-ticket {
	display: none;
}

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

	body {
		margin: 0 !important;
		padding: 0 !important;
		background: #ffffff !important;
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

	/* Oculta tudo por padrão para evitar vazamento de tela */
	body * {
		visibility: hidden !important;
	}

	/* Exibe SOMENTE o ticket de impressão ativo com classe is-printing */
	.kiosk-print-ticket.is-printing,
	.kiosk-print-ticket.is-printing * {
		visibility: visible !important;
	}

	.kiosk-print-ticket.is-printing {
		display: block !important;
		position: absolute !important;
		left: 0 !important;
		top: 0 !important;
		width: 76mm !important;
		max-width: 76mm !important;
		margin: 0 auto !important;
		padding: 4mm 3mm !important;
		box-sizing: border-box !important;
		font-family: "Courier New", Courier, monospace !important;
		font-size: 11.5px !important;
		line-height: 1.3 !important;
		color: #000000 !important;
		background: #ffffff !important;
	}

	.kiosk-print-ticket hr {
		border: none !important;
		border-top: 1px dashed #000000 !important;
		margin: 5px 0 !important;
		height: 0 !important;
		width: 100% !important;
	}

	.print-header {
		text-align: center !important;
		margin-bottom: 6px !important;
	}
	.print-header h2,
	.print-header .print-store-name {
		font-size: 15px !important;
		font-weight: 800 !important;
		margin: 0 0 3px 0 !important;
		text-transform: uppercase !important;
		letter-spacing: 0.5px !important;
	}
	.print-header p,
	.print-meta-line {
		margin: 2px 0 !important;
		font-size: 11px !important;
	}
	.print-sub-title {
		font-size: 12px !important;
		margin: 3px 0 !important;
	}

	.print-section-title {
		font-size: 11px !important;
		font-weight: bold !important;
		text-align: center !important;
		margin: 6px 0 3px !important;
		letter-spacing: 0.3px !important;
		text-transform: uppercase !important;
	}

	.print-cr-line {
		display: flex !important;
		justify-content: space-between !important;
		align-items: baseline !important;
		font-size: 11px !important;
		padding: 1.5px 0 !important;
		width: 100% !important;
	}
	.print-cr-line span:first-child {
		text-align: left !important;
		flex: 1 !important;
	}
	.print-cr-line span:last-child {
		text-align: right !important;
		font-weight: 700 !important;
		white-space: nowrap !important;
		padding-left: 6px !important;
	}
	.print-line-highlight {
		font-weight: bold !important;
	}
	.print-line-diff {
		font-weight: 800 !important;
		border-top: 1px dotted #000000 !important;
		padding-top: 2px !important;
		margin-top: 2px !important;
	}

	.print-items {
		margin: 6px 0 !important;
	}
	.print-item-row {
		display: flex !important;
		justify-content: space-between !important;
		margin-bottom: 3px !important;
		font-size: 11px !important;
	}
	.print-item-row span:last-child {
		font-weight: 700 !important;
		white-space: nowrap !important;
	}

	.print-totals {
		margin: 5px 0 !important;
	}
	.print-totals p {
		display: flex !important;
		justify-content: space-between !important;
		margin: 2px 0 !important;
		font-size: 11.5px !important;
	}
	.print-grand-total {
		font-size: 13px !important;
		border-top: 1px solid #000000 !important;
		border-bottom: 1px solid #000000 !important;
		padding: 4px 0 !important;
		margin: 5px 0 !important;
	}
	.print-grand-total strong {
		display: flex !important;
		justify-content: space-between !important;
		width: 100% !important;
	}

	.print-notes-content {
		font-size: 10.5px !important;
		line-height: 1.3 !important;
		font-style: italic !important;
		margin: 2px 0 !important;
		padding: 0 4px !important;
	}

	.print-signature-area {
		margin-top: 22px !important;
		text-align: center !important;
	}
	.print-signature-line {
		border-top: 1px solid #000000 !important;
		width: 75% !important;
		margin: 0 auto 4px auto !important;
	}
	.print-signature-label {
		font-size: 9.5px !important;
		margin: 0 !important;
	}

	.print-footer {
		text-align: center !important;
		margin-top: 8px !important;
		font-size: 9.5px !important;
		line-height: 1.25 !important;
	}
}

/* ==========================================================================
   RESPONSIVO — MOBILE SMARTPHONE (Kiosk pelo Celular)
   ========================================================================== */

/* -- FAB Carrinho Flutuante (visível apenas no mobile) -- */
.kiosk-fab-cart {
	display: none;
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 900;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--kiosk-primary);
	color: #ffffff;
	border: none;
	font-size: 26px;
	box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
	cursor: pointer;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.kiosk-fab-cart:active {
	transform: scale(0.92);
}

.kiosk-fab-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	background: var(--kiosk-danger);
	color: #ffffff;
	font-size: 13px;
	font-weight: 800;
	min-width: 22px;
	height: 22px;
	padding: 0 5px;
	border-radius: 11px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #ffffff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* -- Overlay de fundo do carrinho drawer -- */
.kiosk-cart-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 949;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

/* ==========================================================================
   TABLETS — <= 900px
   ========================================================================== */
@media (max-width: 900px) {
	.kiosk-products-grid {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
		gap: 10px;
	}
	.kiosk-prod-card {
		height: 190px;
		min-height: 190px;
	}
	.kiosk-card-name {
		font-size: 13px;
		min-height: 32px;
	}
	.kiosk-card-add-btn,
	.kiosk-card-qty-control {
		height: 34px;
	}
	.kiosk-sticky-cart {
		width: 280px;
		min-width: 260px;
		max-width: 300px;
	}
}

/* ==========================================================================
   MOBILE SMARTPHONE — <= 768px
   ========================================================================== */
@media (max-width: 768px) {

	html, body {
		overflow-x: hidden;
		overflow-y: auto;
		height: auto;
		min-height: 100vh;
		min-height: 100dvh;
	}

	/* --- HEADER COMPACTO --- */
	.kiosk-header {
		height: 56px;
		padding: 0 12px;
	}

	.kiosk-logo {
		height: 36px;
		max-width: 100px;
	}

	.kiosk-store-title {
		font-size: 16px;
	}

	.kiosk-terminal-badge {
		display: none;
	}

	.kiosk-timer-wrap {
		width: 40px;
		height: 40px;
	}
	.kiosk-timer-ring {
		width: 40px;
		height: 40px;
	}
	.kiosk-timer-num {
		font-size: 11px;
	}

	.kiosk-icon-btn {
		width: 38px;
		height: 38px;
		font-size: 16px;
		border-radius: 8px;
	}
	.kiosk-quick-actions {
		gap: 6px;
	}

	/* --- LAYOUT PRINCIPAL: COLUNA ÚNICA, SEM CARRINHO LATERAL --- */
	.kiosk-main-layout {
		flex-direction: column;
		height: auto;
		min-height: calc(100vh - 56px);
		min-height: calc(100dvh - 56px);
	}

	.kiosk-catalog-area {
		flex: none;
		height: auto;
		min-height: calc(100vh - 56px - 70px);
		min-height: calc(100dvh - 56px - 70px);
		padding: 12px;
		border-right: none;
		border-bottom: none;
		overflow-y: auto;
	}

	/* --- CATEGORIAS COMPACTAS --- */
	.kiosk-categories-nav {
		gap: 2px;
	}
	.kiosk-categories-bar {
		padding-bottom: 10px;
		gap: 8px;
	}
	.kiosk-cat-arrow {
		width: 36px;
		height: 36px;
		min-width: 36px;
	}
	.kiosk-cat-arrow svg {
		width: 18px;
		height: 18px;
	}

	.kiosk-cat-pill {
		min-height: 38px;
		padding: 0 14px;
		font-size: 13px;
		border-radius: 19px;
	}

	/* --- GRID MOBILE: 2 COLUNAS FIXAS --- */
	.kiosk-products-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
		padding-right: 0;
		padding-bottom: 80px;
		overflow-y: visible;
		overflow-x: hidden;
	}

	.kiosk-prod-card {
		height: 180px;
		min-height: 180px;
		border-radius: 12px;
		padding: 8px;
	}

	.kiosk-card-price-tag {
		font-size: 12px;
		padding: 3px 7px;
		border-radius: 6px;
	}

	.kiosk-card-badge {
		font-size: 12px;
		min-width: 24px;
		height: 24px;
		padding: 0 6px;
		border-radius: 12px;
	}

	.kiosk-card-name {
		font-size: 12px;
		min-height: 28px;
		-webkit-line-clamp: 2;
	}

	.kiosk-card-add-btn {
		height: 32px;
		font-size: 12px;
		border-radius: 7px;
	}

	.kiosk-card-qty-control {
		height: 32px;
		border-radius: 7px;
	}

	.kiosk-qty-btn {
		width: 30px;
		height: 26px;
		font-size: 17px;
		border-radius: 5px;
	}

	.kiosk-qty-val {
		font-size: 14px;
	}

	/* --- PAGINAÇÃO MOBILE --- */
	.kiosk-pagination-bar {
		padding-top: 12px;
		margin-top: 10px;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		background: #ffffff;
		z-index: 800;
		padding: 8px 12px;
		margin-top: 0;
		border-top: 1px solid var(--kiosk-border);
		box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
		display: none;
	}

	.kiosk-page-btn {
		min-width: 100px;
		height: 42px;
		font-size: 14px;
		border-radius: 10px;
	}

	.kiosk-page-counter {
		font-size: 13px;
	}

	/* --- FAB CARRINHO VISÍVEL --- */
	.kiosk-fab-cart {
		display: flex;
	}

	/* --- CARRINHO LATERAL -> DRAWER BOTTOM-SHEET --- */
	.kiosk-sticky-cart {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 100% !important;
		height: 70vh;
		max-height: 85vh;
		z-index: 950;
		border-radius: 20px 20px 0 0;
		box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
		padding: 16px;
		transform: translateY(100%);
		transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.kiosk-sticky-cart.kiosk-cart-open {
		transform: translateY(0);
	}

	.kiosk-cart-overlay.kiosk-cart-open {
		display: block;
	}

	/* Handle bar visual no drawer */
	.kiosk-sticky-cart::before {
		content: '';
		display: block;
		width: 40px;
		height: 5px;
		border-radius: 3px;
		background: #cbd5e1;
		margin: 0 auto 12px;
	}

	.kiosk-cart-header {
		padding-bottom: 10px;
	}

	.kiosk-cart-title {
		font-size: 18px;
	}

	.kiosk-cart-items-scroll {
		padding: 10px 0;
		gap: 8px;
		max-height: 35vh;
	}

	.kiosk-cart-item {
		padding: 10px;
	}

	.kiosk-item-name {
		font-size: 14px;
	}

	.kiosk-item-btn {
		width: 38px;
		height: 38px;
		font-size: 16px;
	}

	.kiosk-cart-footer {
		padding-top: 12px;
		gap: 10px;
	}

	.kiosk-total-price {
		font-size: 24px;
	}

	.kiosk-cta-btn {
		height: 56px;
		font-size: 16px;
		border-radius: 14px;
	}

	/* --- MODAIS FULLSCREEN MOBILE --- */
	.kiosk-modal-backdrop {
		padding: 0;
		align-items: flex-end;
	}

	.kiosk-modal-dialog {
		max-width: 100%;
		width: 100%;
		border-radius: 20px 20px 0 0;
		padding: 24px 16px;
		max-height: 90vh;
		max-height: 90dvh;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		animation: kioskModalSlideUpMobile 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	}

	.kiosk-modal-title {
		font-size: 22px;
	}

	.kiosk-modal-desc {
		font-size: 14px;
	}

	/* Numpad compacto */
	.kiosk-numpad-display {
		font-size: 24px;
	}

	.kiosk-num-key {
		height: 56px;
		font-size: 24px;
		border-radius: 12px;
	}

	/* Ident modal compact on mobile */
	.kiosk-ident-dialog {
		max-height: 95vh;
		max-height: 95dvh;
	}

	.kiosk-ident-dialog .kiosk-virtual-numpad {
		gap: 8px;
		margin-bottom: 12px;
	}

	.kiosk-ident-dialog .kiosk-num-key {
		height: 50px;
		font-size: 20px;
	}

	.kiosk-ident-tabs {
		gap: 8px;
		margin-bottom: 10px;
	}

	.kiosk-ident-tab {
		padding: 10px 12px;
		min-height: 56px;
	}

	.kiosk-ident-feedback {
		padding: 12px !important;
		margin-bottom: 10px !important;
	}

	.kiosk-ident-feedback .kiosk-rich-card {
		padding: 8px;
		font-size: 13px;
	}

	.kiosk-virtual-numpad {
		gap: 10px;
	}

	.kiosk-btn-action {
		min-height: 50px;
		font-size: 15px;
		border-radius: 12px;
	}

	/* Ajuste responsivo de acoes e botoes de pagamento */
	.kiosk-proc-actions {
		flex-direction: column-reverse;
		gap: 12px;
		margin-top: 18px;
	}

	.kiosk-proc-actions .kiosk-btn-action {
		flex: none;
		width: 100%;
		min-height: 52px;
		font-size: 16px;
		white-space: normal;
	}

	.kiosk-pix-fallback-actions {
		flex-direction: column-reverse;
		gap: 12px;
	}

	.kiosk-pix-fallback-actions .kiosk-btn-action {
		width: 100%;
		min-height: 52px;
	}

	.kiosk-cash-chips-row {
		grid-template-columns: repeat(3, 1fr);
		gap: 6px;
	}

	.kiosk-modal-footer.is-row {
		flex-direction: column;
		gap: 10px;
	}

	/* Pagamento mobile */
	.kiosk-pay-card-btn {
		min-height: 72px;
		padding: 12px 16px;
		border-radius: 14px;
		gap: 14px;
	}

	.kiosk-pay-icon {
		font-size: 30px;
	}

	.kiosk-pay-name {
		font-size: 16px;
	}

	.kiosk-pay-hint {
		font-size: 12px;
	}

	.kiosk-payment-layout-grid {
		grid-template-columns: 1fr;
	}

	.kiosk-payment-layout-table .kiosk-payment-methods-head {
		display: none;
	}

	.kiosk-payment-layout-table .kiosk-pay-card-btn {
		grid-template-columns: 42px minmax(0, 1fr) 24px;
		gap: 10px;
	}

	.kiosk-payment-layout-table .kiosk-pay-hint {
		display: none;
	}

	/* PIX mobile */
	.kiosk-pix-qr-frame {
		width: 220px;
		height: 220px;
		padding: 8px;
	}

	/* Sucesso mobile */
	.kiosk-success-title {
		font-size: 24px;
	}

	.kiosk-order-number {
		font-size: 32px;
	}

	.kiosk-whatsapp-send-row {
		padding: 12px;
	}

	.kiosk-zap-input-group input {
		height: 42px;
		font-size: 15px;
	}

	.kiosk-zap-input-group button {
		height: 42px;
		padding: 0 14px;
	}

	/* Shield / Timeout mobile */
	.kiosk-shield-num {
		font-size: 48px;
	}
}

/* ==========================================================================
   MOBILE SMALL — <= 380px (telas estreitas, iPhone SE, etc.)
   ========================================================================== */
@media (max-width: 380px) {
	.kiosk-header {
		padding: 0 8px;
	}

	.kiosk-logo {
		height: 30px;
		max-width: 80px;
	}

	.kiosk-store-title {
		font-size: 14px;
	}

	.kiosk-catalog-area {
		padding: 8px;
	}

	.kiosk-products-grid {
		gap: 6px;
	}

	.kiosk-prod-card {
		height: 155px;
		min-height: 155px;
		padding: 6px;
		border-radius: 10px;
	}

	.kiosk-card-price-tag {
		font-size: 11px;
		padding: 2px 5px;
	}

	.kiosk-card-name {
		font-size: 11px;
		min-height: 24px;
	}

	.kiosk-card-add-btn {
		height: 28px;
		font-size: 11px;
	}

	.kiosk-card-qty-control {
		height: 28px;
	}

	.kiosk-qty-btn {
		width: 26px;
		height: 22px;
		font-size: 15px;
	}

	.kiosk-fab-cart {
		width: 52px;
		height: 52px;
		font-size: 22px;
		bottom: 14px;
		right: 14px;
	}

	.kiosk-modal-dialog {
		padding: 18px 12px;
	}

	.kiosk-num-key {
		height: 48px;
		font-size: 20px;
	}
}

/* Animação de Modal Slide Up otimizada para mobile */
@keyframes kioskModalSlideUpMobile {
	from { opacity: 0; transform: translateY(100%); }
	to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   CONTROLE DE CAIXA (MODAL 8)
   ========================================================================== */

.kiosk-cash-register-dialog {
	max-height: 90vh;
	overflow-y: auto;
}

.kiosk-cr-balance-card {
	background: linear-gradient(135deg, #059669 0%, #10b981 100%);
	color: white;
	padding: 20px;
	border-radius: var(--kiosk-radius);
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.kiosk-cr-balance-label {
	font-size: 16px;
	opacity: 0.9;
}

.kiosk-cr-balance-value {
	font-size: 32px;
	font-weight: 700;
	margin: 0 15px;
}

.kiosk-cr-balance-card .kiosk-icon-btn {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: white;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	font-size: 20px;
}

.kiosk-cr-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
	border-bottom: 2px solid var(--kiosk-border);
	padding-bottom: 10px;
	flex-wrap: wrap;
}

.kiosk-cr-tab {
	background: transparent;
	border: none;
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 500;
	color: var(--kiosk-text-muted);
	cursor: pointer;
	border-radius: 8px;
	transition: all 0.2s;
	flex: 1;
	min-width: 100px;
}

.kiosk-cr-tab.active {
	background: var(--kiosk-primary-light);
	color: var(--kiosk-primary);
	font-weight: 600;
}

.kiosk-cr-tab:hover:not(.active) {
	background: #f1f5f9;
}

.kiosk-cr-tab-content {
	padding: 10px 0;
}

.kiosk-cr-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.kiosk-cr-form label {
	font-size: 15px;
	font-weight: 500;
	color: var(--kiosk-text);
}

.kiosk-cr-input {
	padding: 14px;
	font-size: 18px;
	border: 2px solid var(--kiosk-border);
	border-radius: 12px;
	background: white;
	transition: border-color 0.2s;
	min-height: 50px;
}

.kiosk-cr-input:focus {
	outline: none;
	border-color: var(--kiosk-primary);
	box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.kiosk-cr-radio-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.kiosk-cr-radio {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	border: 2px solid var(--kiosk-border);
	border-radius: 10px;
	cursor: pointer;
	font-size: 15px;
	transition: all 0.2s;
}

.kiosk-cr-radio:has(input:checked) {
	border-color: var(--kiosk-primary);
	background: var(--kiosk-primary-light);
	color: var(--kiosk-primary);
}

.kiosk-cr-radio input[type="radio"] {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--kiosk-primary);
}

.kiosk-cr-info {
	background: #f8fafc;
	padding: 12px;
	border-radius: 8px;
	text-align: center;
	font-size: 16px;
	margin: 0;
}

.kiosk-cr-report {
	background: white;
	border: 1px solid var(--kiosk-border);
	border-radius: 12px;
	padding: 15px;
	font-size: 14px;
}

.kiosk-cr-report-row {
	display: flex;
	justify-content: space-between;
	padding: 8px 0;
	border-bottom: 1px solid #f1f5f9;
}

.kiosk-cr-report-row:last-child {
	border-bottom: none;
	font-weight: 700;
	font-size: 16px;
	color: var(--kiosk-primary);
}

/* Botão Flutuante (FAB) do Controle de Caixa */
.kiosk-fab-cash-register {
	position: fixed;
	bottom: 20px;
	left: 20px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(135deg, #059669 0%, #10b981 100%);
	color: white;
	border: none;
	font-size: 24px;
	box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
	z-index: 999;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s;
}

.kiosk-fab-cash-register:hover {
	transform: scale(1.1);
}

/* Ocultar FAB em telas muito pequenas (se for usar como autoatendimento puro) */
@media (max-width: 480px) {
	.kiosk-fab-cash-register {
		display: none;
	}
}

/* ==========================================================================
   ESTILOS AVANÇADOS DO CONTROLE DE CAIXA (RESUMO CONSOLIDADO & EXTRATO)
   ========================================================================== */
.kiosk-cr-close-summary {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 12px;
	margin-bottom: 12px;
}

.kiosk-cr-summary-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 10px;
}

.kiosk-cr-stat-box {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 10px;
	display: flex;
	flex-direction: column;
	text-align: center;
}

.kiosk-cr-stat-box.highlight-cash {
	background: #ecfdf5;
	border-color: #a7f3d0;
}

.kiosk-cr-stat-label {
	font-size: 11px;
	text-transform: uppercase;
	color: #64748b;
	font-weight: 600;
	margin-bottom: 4px;
}

.kiosk-cr-stat-val {
	font-size: 18px;
	color: #0f172a;
	font-weight: 700;
}

.kiosk-cr-stat-box.highlight-cash .kiosk-cr-stat-val {
	color: #059669;
}

.kiosk-cr-stat-box small {
	font-size: 11px;
	color: #94a3b8;
}

.kiosk-cr-methods-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}

.kiosk-cr-chip {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 4px 10px;
	font-size: 12px;
	color: #334155;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.kiosk-cr-chip strong {
	color: #0f172a;
}

.kiosk-cr-diff-indicator {
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 8px 0;
	font-weight: 600;
}

.kiosk-cr-diff-indicator.ok {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.kiosk-cr-diff-indicator.diff-sobra {
	background: #eff6ff;
	color: #1e40af;
	border: 1px solid #bfdbfe;
}

.kiosk-cr-diff-indicator.diff-falta {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.kiosk-cr-report-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.kiosk-btn-cr-print {
	background: #0f172a;
	color: #ffffff;
	border: none;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: background 0.2s;
}

.kiosk-btn-cr-print:hover {
	background: #1e293b;
}

/* Tabela de Extrato de Movimentações */
.kiosk-cr-extrato-wrap {
	max-height: 280px;
	overflow-y: auto;
	margin-top: 12px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}

.kiosk-cr-extrato-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
	text-align: left;
}

.kiosk-cr-extrato-table th {
	background: #f8fafc;
	padding: 8px 10px;
	font-weight: 600;
	color: #475569;
	position: sticky;
	top: 0;
	border-bottom: 1px solid #e2e8f0;
}

.kiosk-cr-extrato-table td {
	padding: 8px 10px;
	border-bottom: 1px solid #f1f5f9;
	color: #334155;
}

.kiosk-cr-extrato-table tr:last-child td {
	border-bottom: none;
}

.kiosk-cr-badge {
	display: inline-block;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
}

.kiosk-cr-badge.badge-sale {
	background: #dcfce7;
	color: #166534;
}

.kiosk-cr-badge.badge-cash-in {
	background: #e0f2fe;
	color: #075985;
}

.kiosk-cr-badge.badge-cash-out {
	background: #fee2e2;
	color: #991b1b;
}

.kiosk-cr-badge.badge-expense {
	background: #fef3c7;
	color: #92400e;
}

.kiosk-cr-badge.badge-open {
	background: #f1f5f9;
	color: #475569;
}

.kiosk-cr-badge.badge-close {
	background: #f3e8ff;
	color: #6b21a8;
}

/* ==========================================================================
   ESTILOS DO FORMULÁRIO DE FECHAMENTO DE CAIXA
   ========================================================================== */
.kiosk-cr-section-card {
	background: #f8fafc;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	box-sizing: border-box;
}

.kiosk-cr-input-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	box-sizing: border-box;
}

.kiosk-cr-input-group label {
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.kiosk-cr-label-icon {
	font-size: 16px;
	line-height: 1;
}

.kiosk-cr-field-hint {
	font-size: 11.5px;
	color: #64748b;
	margin-top: 1px;
}

/* Wrapper de Dinheiro Contado com Prefixo R$ */
.kiosk-cr-currency-wrap {
	display: flex;
	align-items: stretch;
	background: #ffffff;
	border: 2px solid #cbd5e1;
	border-radius: 10px;
	transition: border-color 0.2s, box-shadow 0.2s;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.kiosk-cr-currency-wrap:focus-within {
	border-color: var(--kiosk-primary);
	box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.kiosk-cr-currency-symbol {
	padding: 0 14px;
	font-size: 17px;
	font-weight: 700;
	color: #475569;
	background: #f1f5f9;
	border-right: 1.5px solid #cbd5e1;
	display: flex;
	align-items: center;
	justify-content: center;
	user-select: none;
}

.kiosk-cr-input-currency {
	flex: 1;
	width: 100% !important;
	border: none !important;
	outline: none !important;
	padding: 10px 14px !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	background: transparent !important;
	min-height: 48px !important;
	box-sizing: border-box !important;
}

/* Campos Monetários (Máscara Progressiva / Tabular) */
.kiosk-money-input {
	text-align: right !important;
	font-variant-numeric: tabular-nums;
}

.kiosk-cr-form .kiosk-cr-currency-wrap {
	margin-bottom: 16px;
}

/* Textarea de Observações */
.kiosk-cr-textarea {
	width: 100% !important;
	box-sizing: border-box !important;
	min-height: 80px !important;
	max-height: 150px !important;
	resize: vertical !important;
	padding: 12px 14px !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
	color: #1e293b !important;
	background: #ffffff !important;
	border: 2px solid #cbd5e1 !important;
	border-radius: 10px !important;
	transition: border-color 0.2s, box-shadow 0.2s !important;
	display: block !important;
}

.kiosk-cr-textarea:focus {
	border-color: var(--kiosk-primary) !important;
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
}

.kiosk-cr-diff-title {
	font-size: 13px;
	color: #475569;
}

.kiosk-btn-close-register {
	width: 100% !important;
	padding: 15px !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	border-radius: 12px !important;
	margin-top: 4px;
}


