/* Breakdown sconti ICMQ — checkout/carrello (blocchi WooCommerce + classico). */

/* Pannello riepilogo prezzo (blocchi). */
.wc-block-cart .wc-block-components-product-details:has(.icmq-list-price),
.wc-block-checkout .wc-block-components-product-details:has(.icmq-list-price) {
	display: table;
	width: 100%;
	margin: 0.65em 0 0;
	padding: 0.65em 0.85em;
	list-style: none;
	font-size: 0.88em;
	line-height: 1.45;
	background: rgba(0, 0, 0, 0.03);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 4px;
	box-sizing: border-box;
}

.wc-block-cart .wc-block-components-product-details:has(.icmq-list-price) > li,
.wc-block-cart .wc-block-components-product-details:has(.icmq-list-price) > div,
.wc-block-checkout .wc-block-components-product-details:has(.icmq-list-price) > li,
.wc-block-checkout .wc-block-components-product-details:has(.icmq-list-price) > div {
	display: table-row;
}

.wc-block-cart .wc-block-components-product-details:has(.icmq-list-price) .wc-block-components-product-details__name,
.wc-block-cart .wc-block-components-product-details:has(.icmq-list-price) .wc-block-components-product-details__value,
.wc-block-checkout .wc-block-components-product-details:has(.icmq-list-price) .wc-block-components-product-details__name,
.wc-block-checkout .wc-block-components-product-details:has(.icmq-list-price) .wc-block-components-product-details__value {
	display: table-cell;
	vertical-align: baseline;
	padding: 0.2em 0;
}

.wc-block-cart .wc-block-components-product-details:has(.icmq-list-price) .wc-block-components-product-details__name,
.wc-block-checkout .wc-block-components-product-details:has(.icmq-list-price) .wc-block-components-product-details__name {
	padding-right: 1rem;
	font-weight: 500;
	text-align: left;
	white-space: normal;
}

.wc-block-cart .wc-block-components-product-details:has(.icmq-list-price) .wc-block-components-product-details__value,
.wc-block-checkout .wc-block-components-product-details:has(.icmq-list-price) .wc-block-components-product-details__value {
	text-align: right;
	white-space: nowrap;
	width: 1%;
}

.wc-block-components-product-details .icmq-client-discount .wc-block-components-product-details__value,
.wc-block-components-product-details .icmq-bulk-discount .wc-block-components-product-details__value {
	color: #b32d2e;
}

.wc-block-components-product-details .icmq-net-price .wc-block-components-product-details__name,
.wc-block-components-product-details .icmq-net-price .wc-block-components-product-details__value {
	font-weight: 600;
}

.wc-block-components-product-details .icmq-line-total .wc-block-components-product-details__name,
.wc-block-components-product-details .icmq-line-total .wc-block-components-product-details__value {
	padding-top: 0.45em;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	font-weight: 700;
}

/* Checkout / carrello classico (dl.variation). */
.woocommerce-cart-form dl.variation,
.woocommerce-checkout-review-order-table dl.variation,
.woocommerce-cart .cart_item dl.variation {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 1.25rem;
	row-gap: 0.25em;
	width: 100%;
	margin: 0.65em 0 0;
	padding: 0.65em 0.85em;
	font-size: 0.88em;
	line-height: 1.45;
	background: rgba(0, 0, 0, 0.03);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 4px;
	box-sizing: border-box;
}

.woocommerce-cart-form dl.variation dt,
.woocommerce-checkout-review-order-table dl.variation dt,
.woocommerce-cart .cart_item dl.variation dt {
	grid-column: 1;
	margin: 0;
	padding: 0.2em 0;
	font-weight: 500;
}

.woocommerce-cart-form dl.variation dd,
.woocommerce-checkout-review-order-table dl.variation dd,
.woocommerce-cart .cart_item dl.variation dd {
	grid-column: 2;
	margin: 0;
	padding: 0.2em 0;
	text-align: right;
	white-space: nowrap;
}

.woocommerce-cart-form dl.variation dt:last-of-type,
.woocommerce-cart-form dl.variation dd:last-of-type,
.woocommerce-checkout-review-order-table dl.variation dt:last-of-type,
.woocommerce-checkout-review-order-table dl.variation dd:last-of-type,
.woocommerce-cart .cart_item dl.variation dt:last-of-type,
.woocommerce-cart .cart_item dl.variation dd:last-of-type {
	padding-top: 0.45em;
	margin-top: 0.25em;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	font-weight: 700;
}

dl.variation dd p {
	margin: 0;
}

.icmq-checkout-company,
.icmq-checkout-participants,
.wp-block-icmq-academy-checkout-participants {
	margin-top: 1.5em;
	padding: 1em 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.wc-block-checkout .icmq-checkout-participants {
	margin: 1.25em 0;
	padding: 0;
	border-top: 0;
}

.icmq-checkout-participants__line {
	margin-bottom: 1em;
}

.icmq-checkout-participants__seat {
	margin: 0 0 0.75em;
}

.icmq-checkout-hint {
	font-size: 0.9em;
	color: #555;
}

.icmq-line-title {
	margin: 1em 0 0.5em;
	font-size: 1.05em;
}

.icmq-participant-block {
	margin: 0 0 1.25em;
	padding: 0.9em 1em 0.4em;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.02);
}

.icmq-participant-block legend {
	font-weight: 600;
	padding: 0 0.5em;
	font-size: 0.95em;
}

.icmq-field-help {
	display: block;
	margin: -0.4em 0 0.6em;
	font-size: 0.85em;
	color: #777;
}

.icmq-order-licenses {
	margin-top: 2em;
}

.icmq-order-licenses table code {
	font-size: 0.95em;
}
