/**
 * DH Annulla Ordine — front-end styles.
 *
 * Mirrors the De Matteo Home "Prodotti su misura" form: Quicksand controls,
 * grey rounded inputs, navy rounded submit, Manjari navy heading.
 * Scoped to .dh-annulla-ordine so it never leaks into the theme.
 */

.dh-annulla-ordine {
	--dh-ink: #243e71;        /* input text + labels */
	--dh-title: #233d72;      /* heading + hero background */
	--dh-border: #666666;     /* input border */
	--dh-accent: #243e71;     /* button background */
	--dh-accent-hover: #1b2f57;
	--dh-muted: #6b7280;
	--dh-radius-input: 10px;
	--dh-radius-btn: 15px;
	--dh-font: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--dh-title-font: "Manjari", "Quicksand", sans-serif;

	color: var(--dh-ink);
	font-family: var(--dh-font);
}

/* Full-bleed navy hero with the page title (mirrors "Traccia ordine"). */
.dh-annulla-ordine .dh-cancel-hero {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	min-height: 160px;
	background-color: var(--dh-title);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	box-sizing: border-box;
}

.dh-annulla-ordine .dh-cancel-hero-title {
	margin: 0;
	color: #fff;
	font-family: var(--dh-font);
	font-weight: 700;
	font-size: clamp(28px, 4.5vw, 44px);
	line-height: 1.1;
	text-align: center;
}

.dh-annulla-ordine .dh-cancel-body {
	max-width: 1000px;
	margin: 0 auto;
	padding: 3.5rem 1rem 4rem;
}

.dh-annulla-ordine .dh-cancel-intro {
	text-align: center;
	color: var(--dh-ink);
	font-size: 1.05rem;
	margin: 0 0 2.25rem;
}

.dh-annulla-ordine .dh-cancel-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem 1.75rem;
	align-items: start;
}

.dh-annulla-ordine .dh-cancel-field {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.dh-annulla-ordine .dh-cancel-field--full {
	grid-column: 1 / -1;
}

.dh-annulla-ordine .dh-cancel-field label {
	font-family: var(--dh-font);
	font-weight: 600;
	font-size: 16px;
	color: var(--dh-ink);
	margin-bottom: 0.5rem;
}

.dh-annulla-ordine .dh-cancel-required {
	color: #e02b2b;
}

.dh-annulla-ordine .dh-cancel-form input[type="text"],
.dh-annulla-ordine .dh-cancel-form input[type="email"] {
	width: 100%;
	font-family: var(--dh-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	padding: 8px 16px;
	border: 1px solid var(--dh-border);
	border-radius: var(--dh-radius-input);
	background: #fff;
	color: var(--dh-ink);
	box-sizing: border-box;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.dh-annulla-ordine .dh-cancel-form input::placeholder {
	color: #9aa0b4;
}

.dh-annulla-ordine .dh-cancel-form input:focus {
	outline: none;
	border-color: var(--dh-accent);
	box-shadow: 0 0 0 3px rgba(36, 62, 113, 0.15);
}

.dh-annulla-ordine .dh-cancel-help {
	margin-top: 0.4rem;
	font-size: 0.82rem;
	color: var(--dh-muted);
}

.dh-annulla-ordine .dh-cancel-actions {
	grid-column: 1 / -1;
	display: flex;
	justify-content: flex-end;
}

.dh-annulla-ordine .dh-cancel-submit,
.dh-annulla-ordine .dh-cancel-confirm {
	display: inline-block;
	font-family: var(--dh-font);
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	padding: 8px 24px;
	border: 1px solid transparent;
	border-radius: var(--dh-radius-btn);
	background: var(--dh-accent);
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.05s ease;
}

.dh-annulla-ordine .dh-cancel-submit:hover,
.dh-annulla-ordine .dh-cancel-confirm:hover {
	background: var(--dh-accent-hover);
	color: #fff;
}

.dh-annulla-ordine .dh-cancel-submit:active,
.dh-annulla-ordine .dh-cancel-confirm:active {
	transform: translateY(1px);
}

/* Step 2 — summary */
.dh-annulla-ordine .dh-cancel-summary {
	border: 1px solid #e2e4f0;
	border-radius: 18px;
	padding: 2rem;
	background: #fff;
	box-shadow: 0 10px 30px rgba(35, 61, 114, 0.06);
}

.dh-annulla-ordine .dh-cancel-summary-title {
	margin: 0 0 1.5rem;
	font-family: var(--dh-title-font);
	font-weight: 600;
	font-size: 1.6rem;
	color: var(--dh-title);
}

/* Meta as label/value rows */
.dh-annulla-ordine .dh-cancel-meta {
	margin: 0 0 1.5rem;
	padding: 0;
	display: grid;
	gap: 0.65rem;
}

.dh-annulla-ordine .dh-cancel-meta-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid #eef0f8;
}

.dh-annulla-ordine .dh-cancel-meta-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.dh-annulla-ordine .dh-cancel-meta dt {
	margin: 0;
	color: var(--dh-muted);
	font-weight: 500;
}

.dh-annulla-ordine .dh-cancel-meta dd {
	margin: 0;
	font-weight: 600;
	color: var(--dh-ink);
	text-align: right;
}

/* Items as a thumbnail list */
.dh-annulla-ordine .dh-cancel-items {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	display: grid;
	gap: 0.85rem;
}

.dh-annulla-ordine .dh-cancel-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.85rem;
	border: 1px solid #eef0f8;
	border-radius: 14px;
	background: #fafbff;
}

.dh-annulla-ordine .dh-cancel-item-thumb {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	overflow: hidden;
	background: #eef0f8;
	display: flex;
	align-items: center;
	justify-content: center;
}

.dh-annulla-ordine .dh-cancel-item-thumb img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	display: block;
}

.dh-annulla-ordine .dh-cancel-item-thumb--empty {
	background:
		repeating-linear-gradient(
			45deg,
			#eef0f8,
			#eef0f8 6px,
			#e6e9f5 6px,
			#e6e9f5 12px
		);
}

.dh-annulla-ordine .dh-cancel-item-info {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.dh-annulla-ordine .dh-cancel-item-name {
	font-weight: 600;
	color: var(--dh-ink);
}

.dh-annulla-ordine .dh-cancel-item-qty {
	font-size: 0.85rem;
	color: var(--dh-muted);
}

.dh-annulla-ordine .dh-cancel-item-price {
	flex: 0 0 auto;
	font-weight: 700;
	color: var(--dh-ink);
	white-space: nowrap;
}

.dh-annulla-ordine .dh-cancel-warning {
	color: var(--dh-ink);
	font-weight: 500;
	margin: 0 0 1.5rem;
}

.dh-annulla-ordine .dh-cancel-summary form {
	display: flex;
	justify-content: flex-end;
}

/* Messages */
.dh-annulla-ordine .dh-cancel-notice {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	border-radius: 12px;
	padding: 1rem 1.25rem;
	margin: 0 0 1.5rem;
	font-weight: 500;
	line-height: 1.4;
	/* Neutralise any theme list/icon styling on these notices. */
	list-style: none;
	background-image: none;
}

.dh-annulla-ordine .dh-cancel-notice::before {
	content: "";
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
}

.dh-annulla-ordine .dh-cancel-notice-text {
	flex: 1 1 auto;
}

.dh-annulla-ordine .dh-cancel-notice--success {
	background: #e9f7ef;
	border: 1px solid #b7e2c8;
	color: #1d6b3a;
}

.dh-annulla-ordine .dh-cancel-notice--success::before {
	content: "\2713"; /* check mark */
	background: #1d9a52;
}

.dh-annulla-ordine .dh-cancel-notice--error {
	background: #fdecec;
	border: 1px solid #f3c2c2;
	color: #a12626;
}

.dh-annulla-ordine .dh-cancel-notice--error::before {
	content: "!";
	background: #d9534f;
}

.dh-annulla-ordine .dh-cancel-support {
	margin: 0 0 1.5rem;
	color: var(--dh-ink);
}

.dh-annulla-ordine .dh-cancel-support a {
	color: var(--dh-accent);
	font-weight: 600;
}

/* Responsive */
@media (max-width: 640px) {
	.dh-annulla-ordine .dh-cancel-form {
		grid-template-columns: 1fr;
	}

	.dh-annulla-ordine .dh-cancel-actions,
	.dh-annulla-ordine .dh-cancel-summary form {
		justify-content: stretch;
	}

	.dh-annulla-ordine .dh-cancel-submit,
	.dh-annulla-ordine .dh-cancel-confirm {
		width: 100%;
		text-align: center;
	}
}
