.glv-app,
.glv-wizard-root {
	max-width: 640px;
	margin: 2rem auto;
	font-family: inherit;
}

.glv-step {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 1.5rem;
	background: #fff;
}

.glv-step h3 {
	margin-top: 0;
}

#glv-form-email {
	display: flex;
	gap: 0.5rem;
	margin-top: 1rem;
}

#glv-form-email input[type="email"] {
	flex: 1;
	padding: 0.6rem 0.8rem;
	border: 1px solid #ccc;
	border-radius: 4px;
}

#glv-form-email button {
	padding: 0.6rem 1.2rem;
	border: none;
	border-radius: 4px;
	background: #1d2327;
	color: #fff;
	cursor: pointer;
}

#glv-form-email button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.glv-esito {
	margin-top: 0.75rem;
	font-size: 0.9rem;
}

.glv-esito.errore {
	color: #c0392b;
}

.glv-esito.successo {
	color: #1e7e34;
}

.glv-nota-sviluppo {
	font-size: 0.85rem;
	color: #666;
	border-top: 1px dashed #ddd;
	padding-top: 0.75rem;
	margin-top: 1rem;
}

/* ------------------------------------------------------------------ */
/* Wizard ordine (fase 3)                                              */
/* ------------------------------------------------------------------ */

.glv-caricamento {
	text-align: center;
	color: #666;
	padding: 2rem 0;
}

.glv-step h3 {
	margin-top: 0;
}

.glv-campo {
	margin-bottom: 1rem;
}

.glv-campo label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.3rem;
	font-size: 0.9rem;
}

.glv-nota-inline {
	font-weight: 400;
	color: #666;
	font-size: 0.8rem;
}

.glv-campo input[type="text"],
.glv-campo input[type="email"],
.glv-campo input[type="tel"],
.glv-campo input[type="number"],
.glv-campo input[type="file"],
.glv-campo select,
.glv-campo textarea {
	width: 100%;
	padding: 0.5rem 0.6rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	font: inherit;
}

.glv-riga {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.glv-riga .glv-campo {
	flex: 1;
	min-width: 140px;
}

.glv-campo-piccolo {
	flex: 0 0 110px !important;
}

.glv-campo-grande {
	flex: 2 1 220px !important;
}

.glv-nota {
	font-size: 0.85rem;
	color: #666;
}

.glv-azioni {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	margin-top: 1rem;
}

.glv-azioni-step {
	border-top: 1px solid #eee;
	padding-top: 1rem;
}

.glv-step button[type="submit"],
.glv-azioni > button:not(.glv-bottone-secondario):not(.glv-link):not(.glv-link-danger) {
	padding: 0.6rem 1.2rem;
	border: none;
	border-radius: 4px;
	background: #1d2327;
	color: #fff;
	cursor: pointer;
}

.glv-step button[type="submit"]:disabled,
.glv-azioni button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.glv-bottone-secondario {
	padding: 0.6rem 1.2rem;
	border: 1px solid #1d2327;
	border-radius: 4px;
	background: #fff;
	color: #1d2327;
	cursor: pointer;
}

.glv-link,
.glv-link-danger {
	background: none;
	border: none;
	padding: 0;
	text-decoration: underline;
	cursor: pointer;
	font-size: 0.85rem;
}

.glv-link {
	color: #1d2327;
}

.glv-link-danger {
	color: #c0392b;
}

.glv-form-lavorazione {
	border: 1px dashed #ccc;
	border-radius: 6px;
	padding: 1rem;
	margin: 1rem 0;
	background: #fafafa;
}

.glv-form-lavorazione h4 {
	margin-top: 0;
}

.glv-checkbox {
	display: block;
	font-weight: 400;
	margin-bottom: 0.3rem;
}

.glv-checkbox input {
	margin-right: 0.4rem;
}

.glv-lista-lavorazioni {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}

.glv-lavorazione {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	border: 1px solid #eee;
	border-radius: 6px;
	padding: 0.75rem 1rem;
	margin-bottom: 0.5rem;
}

.glv-lavorazione-info {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	font-size: 0.9rem;
}

.glv-azioni-lavorazione {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-shrink: 0;
}

.glv-badge {
	display: inline-block;
	font-size: 0.75rem;
	padding: 0.1rem 0.5rem;
	border-radius: 10px;
	width: fit-content;
}

.glv-badge-ok {
	background: #e6f4ea;
	color: #1e7e34;
}

.glv-badge-attenzione {
	background: #fdecea;
	color: #c0392b;
}

.glv-riepilogo-blocco {
	border: 1px solid #eee;
	border-radius: 6px;
	padding: 1rem;
	margin-bottom: 1rem;
}

.glv-riepilogo-titolo {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.5rem;
}

.glv-comune-wrapper {
	position: relative;
}

.glv-comune-suggerimenti {
	position: absolute;
	z-index: 10;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #ccc;
	border-top: none;
	max-height: 220px;
	overflow-y: auto;
}

.glv-comune-opzione {
	padding: 0.4rem 0.6rem;
	cursor: pointer;
	font-size: 0.9rem;
}

.glv-comune-opzione:hover {
	background: #f0f0f0;
}

.glv-step-conferma {
	text-align: center;
	padding: 2rem 1rem;
}

.glv-prezzo-conferma {
	font-size: 1.1rem;
	margin: 1rem 0;
}

/* ------------------------------------------------------------------ */
/* Area personale (fase 6)                                             */
/* ------------------------------------------------------------------ */

.glv-area-personale-intestazione {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.glv-ordine-storico {
	border: 1px solid #eee;
	border-radius: 6px;
	padding: 1rem;
	margin-bottom: 1rem;
}

.glv-ordine-storico-intestazione {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.6rem;
}

.glv-badge-stato {
	display: inline-block;
	font-size: 0.75rem;
	padding: 0.1rem 0.5rem;
	border-radius: 10px;
	background: #eef1f3;
	color: #333;
	width: fit-content;
}

.glv-prezzo {
	margin-left: auto;
	font-weight: 600;
}

.glv-lista-lavorazioni-storico {
	list-style: none;
	margin: 0 0 0.75rem;
	padding: 0;
}

.glv-lavorazione-storico {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 0.9rem;
	padding: 0.4rem 0;
	border-bottom: 1px dashed #eee;
}

.glv-lavorazione-storico:last-child {
	border-bottom: none;
}

.glv-lavorazione-storico-dettaglio {
	align-items: flex-start;
}

.glv-dettaglio-ordine {
	background: #f9f9f9;
	border-radius: 6px;
	padding: 0.75rem 1rem;
	margin-bottom: 0.75rem;
	font-size: 0.9rem;
}

.glv-dettaglio-ordine p {
	margin: 0.25rem 0;
}

.glv-azioni-lavorazione-storico {
	display: flex;
	gap: 1rem;
}

.glv-azioni-lavorazione-storico .glv-link {
	cursor: pointer;
}
