@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

.gcm-wrap.gcm-cashier {
	--gcm-red: #8B3A2E;
	--gcm-red-dark: #6E2E24;
	--gcm-cream: #EDE8DC;
	--gcm-black: #1A1512;
	--gcm-green: #2E7D5B;
	--gcm-green-dark: #235f45;
	--gcm-white: #ffffff;
	font-family: 'Inter', Arial, sans-serif;
	max-width: 480px;
	margin: 0 auto;
	padding: 24px 18px 90px 18px;
	color: var(--gcm-black);
	box-sizing: border-box;
	background: linear-gradient(180deg, var(--gcm-cream) 0%, #f7f4ec 200px, transparent 200px);
}
.gcm-cashier * { box-sizing: border-box; }

.gcm-card {
	background: var(--gcm-white);
	border-radius: 16px;
	padding: 22px;
	margin-bottom: 16px;
	box-shadow: 0 4px 20px rgba(26,21,18,0.07), 0 1px 2px rgba(26,21,18,0.04);
	border: 1px solid rgba(26,21,18,0.04);
}

/* Login */
.gcm-login-card { text-align: center; margin-top: 40px; }
.gcm-login-card h2 { font-family: 'Playfair Display', Georgia, serif; margin: 0 0 4px 0; }
.gcm-login-sub { color: #7a7a7a; font-size: 13px; margin: 0 0 22px 0; }
.gcm-login-card form { text-align: left; }
.gcm-login-card label { display:block; font-size: 12px; font-weight:600; margin: 12px 0 6px 0; }
.gcm-login-card input {
	width: 100%; padding: 12px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px;
}
.gcm-login-error { color: var(--gcm-red); font-size: 13px; min-height: 18px; margin: 10px 0 0 0; }

.gcm-btn {
	width: 100%;
	padding: 15px;
	border-radius: 10px;
	border: none;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	margin-top: 12px;
}
.gcm-btn-primary { background: var(--gcm-green); color: #fff; }
.gcm-btn-primary:hover { background: var(--gcm-green-dark); }
.gcm-btn-secondary { background: #fff; color: var(--gcm-green); border: 1.5px solid var(--gcm-green); }

/* Header + tabs */
.gcm-cashier-header {
	display: flex; align-items: center; justify-content: space-between;
	margin-bottom: 18px;
}
.gcm-cashier-header h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 19px; margin:0; }
.gcm-back-arrow, .gcm-bolt { color: #999; font-size: 16px; }

.gcm-tabs { display: none; } /* la navigazione reale è in basso, come nel mockup */

.gcm-scan-card { text-align: center; }
.gcm-scan-hint { font-size: 13px; color: #7a7a7a; margin: 0 0 14px 0; }
#gcm-qr-reader { border-radius: 10px; overflow: hidden; }

.gcm-success-banner {
	background: #e9f5ef; color: var(--gcm-green);
	border-radius: 10px; padding: 12px 16px; font-weight: 600; font-size: 14px;
	display: flex; align-items: center; gap: 8px; margin-bottom: 18px;
}
.gcm-check {
	display: inline-flex; align-items:center; justify-content:center;
	width: 20px; height: 20px; border-radius: 50%; background: var(--gcm-green); color: #fff; font-size: 12px;
}

.gcm-card-info { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; margin-bottom: 16px; }
.gcm-gift-icon-small {
	width: 44px; height: 44px; border-radius: 10px; background: var(--gcm-cream);
	display:flex; align-items:center; justify-content:center; font-size: 20px; flex-shrink:0;
}
.gcm-store-name-result { font-weight: 700; margin: 0; }
.gcm-id-result { font-size: 12px; color: #8a8a8a; margin: 2px 0 0 0; }

.gcm-balance-block { text-align: center; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; margin-bottom: 18px; }
.gcm-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: #8a8a8a; margin: 0 0 6px 0; }
.gcm-balance { font-family: 'Playfair Display', Georgia, serif; font-size: 32px; color: var(--gcm-green); margin: 0 0 4px 0; }
.gcm-initial { font-size: 12px; color: #8a8a8a; margin: 0; }

.gcm-operation-block h4 { margin: 0 0 14px 0; font-family: 'Playfair Display', Georgia, serif; }
.gcm-operation-block label { display:block; font-size: 12px; color:#7a7a7a; margin-bottom: 6px; }
#gcm-amount-input {
	width: 100%; padding: 14px; border: 1px solid #ddd; border-radius: 10px; font-size: 22px; font-weight: 700; margin-bottom: 14px;
}
.gcm-quick-amounts { display:flex; gap:8px; flex-wrap: wrap; margin-bottom: 20px; }
.gcm-quick-btn {
	flex: 1; min-width: 60px; padding: 9px 4px; border-radius: 20px; border: 1.5px solid var(--gcm-green);
	background: #fff; color: var(--gcm-green); font-weight: 600; font-size: 13px; cursor: pointer;
}
.gcm-quick-btn.active { background: var(--gcm-green); color: #fff; }

.gcm-new-balance { font-family: 'Playfair Display', Georgia, serif; font-size: 26px; color: var(--gcm-green); margin: 0 0 16px 0; text-align:center; }
.gcm-op-error { color: var(--gcm-red); font-size: 13px; text-align:center; min-height: 18px; }

/* Filtri storico */
.gcm-filters-card { padding: 18px 20px; }
.gcm-filters-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.gcm-filters-header h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 16px; margin: 0; }
.gcm-filters-toggle {
	background: none; border: none; color: var(--gcm-green); font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px;
}
.gcm-filter-row { display: flex; gap: 10px; margin-top: 12px; }
.gcm-filter-field { flex: 1; min-width: 0; }
.gcm-filter-field label { display: block; font-size: 11px; color: #8a8a8a; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; font-weight: 600; }
.gcm-filter-field input,
.gcm-filter-field select {
	width: 100%; padding: 10px 12px; border: 1px solid #e2ddd3; border-radius: 8px; font-size: 13.5px;
	font-family: 'Inter', Arial, sans-serif; background: #fdfcfa;
}
.gcm-filter-field input:focus,
.gcm-filter-field select:focus { outline: none; border-color: var(--gcm-green); background: #fff; }
.gcm-filter-actions { display: flex; gap: 10px; margin-top: 16px; }
.gcm-btn-inline { margin-top: 0; width: auto; flex: 1; padding: 11px; font-size: 13.5px; }

/* Storico */
.gcm-history-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.gcm-history-header h3 { margin: 0; }
.gcm-history-count { font-size: 12px; color: #8a8a8a; font-weight: 600; }
.gcm-history-empty { color: #8a8a8a; font-size: 13.5px; text-align: center; padding: 20px 0; }
#gcm-history-list { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#gcm-history-list table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px; }
#gcm-history-list th, #gcm-history-list td { text-align: left; padding: 9px 6px; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
#gcm-history-list th { color: #8a8a8a; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.4px; }
#gcm-history-list tbody tr:hover { background: #faf8f4; }
.gcm-history-cardid { color: #a39c8f; font-size: 11px; }

/* Bottom nav */
.gcm-bottom-nav {
	position: fixed; bottom: 0; left: 0; right: 0;
	background: #fff; border-top: 1px solid #eee;
	display: flex; justify-content: space-around; padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
	max-width: 480px; margin: 0 auto;
}
.gcm-nav-item {
	background: none; border: none; display:flex; flex-direction:column; align-items:center; gap:2px;
	font-size: 11px; color: #999; cursor: pointer;
}
.gcm-nav-item span { font-size: 18px; }
.gcm-nav-item.active { color: var(--gcm-green); }
