/**
 * woocommerce.css — carrello e checkout (blocchi WooCommerce) stilati come la bozza
 * (Carrello.dc.html, Checkout.dc.html, CheckoutMobile.dc.html). Nessun override di template.
 */

/* ------------------------------------------------------------------ Pagine carrello e checkout: contenitore */
.woocommerce-cart .et-container,
.woocommerce-checkout .et-container {
	max-width: calc(var(--et-contenitore) + 2 * var(--et-gutter));
	padding: 48px var(--et-gutter) 96px;
}

.woocommerce-cart .et-entry__title {
	margin: 0 0 32px;
	font-size: 44px;
}

.woocommerce-checkout .et-entry__header {
	display: none;
}

.woocommerce-cart .et-entry__content,
.woocommerce-checkout .et-entry__content {
	max-width: none;
	font-size: inherit;
	line-height: normal;
}

.woocommerce-cart .wp-block-woocommerce-cart,
.woocommerce-checkout .wp-block-woocommerce-checkout {
	max-width: none;
	margin: 0;
	padding: 0;
}

/* ------------------------------------------------------------------ Carrello: righe */
.wc-block-cart.wc-block-components-sidebar-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: flex-start;
	margin: 0;
}

.wc-block-cart .wc-block-cart__main {
	flex: 999 1 560px;
	min-width: 0;
	width: auto;
	padding: 0;
}

.wc-block-cart-items {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
}

.wc-block-cart-items::after {
	display: none;
}

.wc-block-cart-items thead,
.wc-block-cart-items .wc-block-cart-items__header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 120px;
	gap: 16px;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--et-filetto-chiaro);
}

.wc-block-cart-items__header-image {
	display: none;
}

.wc-block-cart-items__header th,
.wc-block-cart-items__header span {
	padding: 0;
	color: var(--et-testo-2-chiaro);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.wc-block-cart-items__header-total {
	text-align: right;
}

.wc-block-cart-items tbody {
	display: block;
}

.wc-block-cart-items__row {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr) 120px;
	column-gap: 16px;
	align-items: center;
	padding: 24px 0;
	border-bottom: 1px solid var(--et-filetto-chiaro);
}

.wc-block-cart-items__row td,
.wc-block-cart-items__row td::before,
.wc-block-cart-items__row td::after {
	padding: 0;
	border: 0 !important;
	box-shadow: none;
}

.wc-block-cart-items__row::before,
.wc-block-cart-items__row::after,
.wc-block-cart-items thead::after,
.wc-block-cart-items__header th {
	border: 0 !important;
	box-shadow: none;
}

.wc-block-cart-item__image {
	margin-right: 4px;
}

.wc-block-cart-item__image a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 104px;
	height: 128px;
	background: var(--et-fondo-bottiglia);
}

.wc-block-cart-item__image img {
	height: 110px;
	width: auto;
	max-width: none;
}

.wc-block-cart-item__product {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 140px;
	column-gap: 16px;
	align-items: center;
}

.wc-block-cart-item__wrap {
	display: contents;
}

.wc-block-cart-item__product .wc-block-components-product-metadata,
.wc-block-cart-item__product .wc-block-components-product-details {
	display: contents;
}

.wc-block-components-product-details__collection {
	grid-column: 1;
	order: 1;
	display: block;
	margin: 0 0 4px;
	color: var(--et-bordeaux);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.wc-block-components-product-details__collection .wc-block-components-product-details__name {
	display: none;
}

.wc-block-components-product-details__collection .wc-block-components-product-details__value {
	display: inline;
}

.wc-block-components-product-name {
	grid-column: 1;
	order: 2;
	font-family: var(--et-font-titoli);
	font-size: 19px;
	font-weight: 700;
	color: var(--et-inchiostro);
	text-decoration: none;
}

.wc-block-cart-item__prices {
	grid-column: 1;
	order: 3;
	margin-top: 4px;
	font-size: 14px;
}

.wc-block-cart-item__prices .wc-block-components-product-price {
	font-size: 14px;
}

.wc-block-cart-item__quantity {
	grid-column: 2;
	grid-row: 1 / span 3;
	order: 4;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start;
}

.wc-block-components-quantity-selector {
	width: auto;
	height: 44px;
	margin: 0;
	background: none;
	border: 1px solid var(--et-nero);
	border-radius: 0;
}

.wc-block-components-quantity-selector::after {
	display: none;
}

.wc-block-components-quantity-selector__input {
	min-width: 32px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--et-inchiostro);
	font: inherit;
	font-weight: 600;
}

.wc-block-components-quantity-selector__button {
	width: 40px;
	min-width: 40px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--et-inchiostro);
	font-size: 18px;
	opacity: 1;
	cursor: pointer;
}

.wc-block-cart-item__remove-link {
	min-height: 32px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--et-testo-2-chiaro);
	font: inherit;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}

.wc-block-cart-item__total {
	text-align: right;
	font-weight: 600;
}

.wc-block-cart-item__total .wc-block-components-product-price,
.wc-block-cart-item__total-price-and-sale-badge-wrapper {
	font-size: inherit;
	font-weight: 600;
}

/* Casella regalo e «Continue shopping» (portate sotto le righe dal JavaScript) */
.et-regalo[hidden] {
	display: none;
}

.et-regalo__casella {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	margin-top: 24px;
	font-size: 15px;
}

.et-regalo__casella input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--et-bordeaux);
}

.et-regalo__messaggio {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
}

.et-regalo__messaggio textarea {
	padding: 12px 14px;
	background: var(--et-campo);
	border: 1px solid var(--et-bordo-campo-chiaro);
	border-radius: 0;
	color: var(--et-inchiostro);
	font: inherit;
	font-size: 15px;
	font-weight: 400;
}

.et-regalo__continua {
	display: inline-block;
	margin-top: 16px;
	color: var(--et-inchiostro);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-decoration: underline;
	text-transform: uppercase;
	text-underline-offset: 6px;
}

/* ------------------------------------------------------------------ Carrello: riepilogo su nero */
.wc-block-cart .wc-block-cart__sidebar {
	flex: 1 1 360px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	width: auto;
	margin: 0;
	padding: 32px;
	background: var(--et-nero);
	color: var(--et-crema);
}

.wc-block-cart__totals-title {
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--et-crema);
	font-family: var(--et-font-titoli);
	font-size: 24px;
	font-weight: 700;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
}

.wc-block-cart__sidebar .wc-block-components-totals-wrapper {
	padding: 18px 0 0;
	border-top: 1px solid var(--et-filetto-scuro);
}

.wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-coupon-form-block {
	display: none;
}

.wc-block-cart__sidebar .wc-block-components-totals-item {
	color: var(--et-crema);
	font-size: 15px;
}

.wc-block-cart__sidebar .wc-block-components-totals-item__label {
	color: var(--et-testo-2-scuro);
}

.wc-block-cart__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	color: var(--et-crema);
	font-weight: 600;
}

.wc-block-cart__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 26px;
	font-weight: 600;
}

.wc-block-cart__submit-container {
	padding: 0;
}

.wc-block-cart__submit-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 56px;
	padding: 0;
	background: var(--et-oro);
	border: 0;
	border-radius: 0;
	color: var(--et-nero);
	font-size: var(--et-pulsante);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-decoration: none;
	text-transform: uppercase;
}

.wc-block-cart__submit-button:hover {
	background: var(--et-oro-chiaro);
	color: var(--et-nero);
}

.et-riepilogo-extra {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.et-riepilogo-extra__voci {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px 16px;
	margin: 0;
	font-size: 15px;
}

.et-riepilogo-extra__voci dt {
	color: var(--et-testo-2-scuro);
}

.et-riepilogo-extra__voci dd {
	margin: 0;
}

.et-riepilogo-extra__nota {
	margin: 0;
	color: var(--et-testo-2-scuro);
	font-size: 13px;
	line-height: 1.6;
}

.et-riepilogo-extra__pagamenti {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.et-riepilogo-extra__pagamenti li {
	padding: 4px 8px;
	border: 1px solid var(--et-bordo-tag);
	color: var(--et-testo-lettura-scuro);
	font-size: 11px;
	font-weight: 600;
}

/* Carrello vuoto */
.wp-block-woocommerce-empty-cart-block {
	max-width: 560px;
	padding: 24px 0 0;
	text-align: left;
}

.wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title {
	margin: 0 0 16px;
	font-size: 28px;
	text-align: left;
}

.wp-block-woocommerce-empty-cart-block hr,
.wp-block-woocommerce-empty-cart-block .wp-block-heading:not(.wc-block-cart__empty-cart__title),
.wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-product-new {
	display: none;
}

.et-carrello-vuoto {
	margin: 24px 0 0;
}

@media (max-width: 759px) {
	.woocommerce-cart .et-container,
	.woocommerce-checkout .et-container {
		padding-top: 24px;
		padding-bottom: 48px;
	}

	.woocommerce-cart .et-entry__title {
		margin-bottom: 20px;
		font-size: 30px;
	}

	.wc-block-cart .wc-block-cart__sidebar {
		padding: 24px 20px;
	}

	.wc-block-cart-items__row {
		grid-template-columns: 80px minmax(0, 1fr);
	}

	.wc-block-cart-item__image a {
		width: 80px;
		height: 110px;
	}

	.wc-block-cart-item__image img {
		height: 90px;
	}

	.wc-block-cart-item__product {
		grid-template-columns: minmax(0, 1fr);
	}

	.wc-block-cart-item__quantity {
		grid-column: 1;
		grid-row: auto;
		flex-direction: row;
		align-items: center;
		margin-top: 8px;
	}

	.wc-block-cart-item__total {
		grid-column: 2;
		text-align: left;
	}
}

/* ------------------------------------------------------------------ Checkout: intestazione ridotta */
.et-header-co {
	background: var(--et-nero);
	border-bottom: 1px solid var(--et-filetto-scuro);
}

.et-header-co__inner {
	box-sizing: content-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 1160px;
	margin: 0 auto;
	padding: 18px var(--et-gutter);
}

.et-header-co__logo {
	line-height: 0;
}

.et-header-co__logo-img {
	height: 46px;
	width: auto;
	max-width: none;
}

.et-header-co__sicuro {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--et-crema);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.et-header-co__sicuro .et-icon {
	color: var(--et-oro);
}

.et-header-co__indietro {
	color: var(--et-testo-2-scuro);
	font-size: 13px;
}

.et-footer--checkout .et-footer__inner {
	padding-top: 24px;
	padding-bottom: 24px;
}

/* ------------------------------------------------------------------ Checkout: colonne */
.woocommerce-checkout .et-container {
	box-sizing: content-box;
	max-width: 1160px;
}

.wc-block-checkout.wc-block-components-sidebar-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 56px;
	align-items: flex-start;
	margin: 0;
}

.wc-block-checkout .wc-block-checkout__main {
	flex: 999 1 560px;
	min-width: 0;
	width: auto;
	padding: 0;
}

.wc-block-checkout .wc-block-components-checkout-step {
	margin: 0 0 40px;
	padding: 0;
	border: 0;
}

.wc-block-checkout .wc-block-components-checkout-step::after,
.wc-block-checkout .wc-block-components-checkout-step__container::after {
	display: none;
}

.wc-block-checkout .wc-block-components-checkout-step__heading {
	margin: 0 0 16px;
}

.wc-block-checkout .wc-block-components-title,
.wc-block-checkout .wc-block-components-checkout-step__title {
	font-family: var(--et-font-titoli);
	font-size: 24px;
	font-weight: 700;
	color: var(--et-inchiostro);
}

.wc-block-checkout .wc-block-components-checkout-step__description {
	display: none;
}

/* Campi: altezza 50, bordo e fondo come la bozza (l'etichetta resta dentro il campo, nativa del blocco) */
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-text-input textarea,
.wc-block-checkout .wc-blocks-components-select__select,
.wc-block-checkout .wc-block-components-combobox .components-combobox-control__input,
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input {
	min-height: 50px;
	padding: 0 14px;
	background: var(--et-campo);
	border: 1px solid var(--et-bordo-campo-chiaro);
	border-radius: 0;
	color: var(--et-inchiostro);
	font: inherit;
	font-size: 15px;
}

.wc-block-checkout .wc-block-components-text-input.is-active input,
.wc-block-checkout .wc-block-components-text-input input:not(:placeholder-shown) {
	padding-top: 18px;
}

.wc-block-checkout .wc-block-components-text-input label,
.wc-block-checkout .wc-blocks-components-select__label {
	color: var(--et-testo-2-chiaro);
	font-size: 15px;
}

.wc-block-checkout .wc-block-components-text-input.is-active label {
	font-size: 12px;
	font-weight: 600;
}

.wc-block-checkout .wc-block-components-address-form {
	gap: 14px;
}

.wc-block-checkout input[type="checkbox"],
.wc-block-checkout input[type="radio"] {
	accent-color: var(--et-bordeaux);
}

.wc-block-checkout .wc-block-components-checkbox__mark {
	display: none;
}

.wc-block-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
	appearance: auto;
	width: 18px;
	height: 18px;
	min-width: 18px;
	margin: 2px 12px 0 0;
	border-radius: 0;
	opacity: 1;
	position: static;
	background: var(--et-campo);
}

.wc-block-checkout .wc-block-components-checkbox {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
}

.wc-block-checkout .wc-block-components-checkbox label {
	display: flex;
	align-items: flex-start;
}

/* Pagamento: riquadri come la bozza */
.wc-block-checkout .wc-block-components-radio-control__option {
	padding: 16px 16px 16px 48px;
	background: var(--et-campo);
	border: 1px solid var(--et-bordo-campo-chiaro);
	border-radius: 0;
	box-shadow: none;
	font-size: 15px;
	font-weight: 600;
}

.wc-block-checkout .wc-block-components-radio-control__option-checked {
	border-color: var(--et-nero);
}

.wc-block-checkout .wc-block-components-radio-control-accordion-option {
	border-radius: 0;
	box-shadow: none;
	border: 1px solid var(--et-bordo-campo-chiaro);
	background: var(--et-campo);
}

.wc-block-checkout .wc-block-components-radio-control .wc-block-components-radio-control__input {
	width: 18px;
	height: 18px;
}

.wc-block-checkout .wc-block-components-notice-banner.is-error {
	border-radius: 0;
}

/* Pulsante «Place order» */
.wc-block-checkout .wc-block-components-checkout-place-order-button {
	min-height: 58px;
	padding: 0 20px;
	background: var(--et-nero);
	border: 0;
	border-radius: 0;
	color: var(--et-crema);
	font-size: var(--et-pulsante);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.wc-block-checkout .wc-block-components-checkout-place-order-button:hover {
	background: var(--et-bordeaux);
}

.wc-block-checkout .wc-block-checkout__actions_row {
	display: block;
}

.wc-block-checkout .wc-block-checkout__terms,
.wc-block-checkout .wc-block-checkout__add-note,
.wc-block-checkout .wc-block-components-checkout-return-to-cart-button {
	display: none;
}

/* Riepilogo su carta */
.wc-block-checkout .wc-block-checkout__sidebar {
	flex: 1 1 360px;
	width: auto;
	margin: 0;
	padding: 28px;
	background: var(--et-carta);
}

.wc-block-checkout .wc-block-components-order-summary,
.wc-block-checkout .wc-block-components-totals-wrapper,
.wc-block-checkout .wp-block-woocommerce-checkout-order-summary-block {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.wc-block-checkout .wc-block-components-totals-wrapper {
	padding: 16px 0 0;
	border-top: 1px solid var(--et-filetto-chiaro);
}

.wc-block-checkout .wc-block-components-order-summary-item__image {
	width: 64px;
	padding: 0;
}

	.wc-block-checkout .wc-block-components-order-summary-item__image img {
	max-width: none;
	height: 70px;
	width: auto;
	background: var(--et-fondo-bottiglia);
}

.wc-block-checkout .wc-block-components-product-name {
	font-family: var(--et-font-testo);
	font-size: 14px;
	font-weight: 700;
	color: var(--et-inchiostro);
}

.wc-block-checkout .wc-block-components-totals-item {
	font-size: 14px;
}

.wc-block-checkout .wc-block-components-totals-item__label {
	color: var(--et-testo-2-chiaro);
}

.wc-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	color: var(--et-inchiostro);
	font-weight: 600;
}

.wc-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 24px;
	font-weight: 600;
}

.wc-block-checkout .wc-block-components-panel__button,
.wc-block-checkout .wc-block-components-totals-coupon {
	font-size: 14px;
}

.wc-block-checkout .wp-block-woocommerce-checkout-order-summary-coupon-form-block {
	display: none;
}

@media (max-width: 759px) {
	.et-header-co__inner {
		box-sizing: border-box;
		height: 64px;
		padding: 0 var(--et-gutter);
		flex-wrap: nowrap;
	}

	.et-header-co__logo-img {
		height: 34px;
	}

	.et-header-co__sicuro {
		gap: 6px;
		font-size: 11px;
	}

	.et-header-co__indietro {
		display: none;
	}

	.woocommerce-checkout .et-container {
		box-sizing: border-box;
		padding: 0 0 48px;
	}

	.wc-block-checkout .wc-block-checkout__main {
		padding: 28px var(--et-gutter) 0;
	}

	.wc-block-checkout .wc-block-components-checkout-step {
		margin-bottom: 32px;
	}

	.wc-block-checkout .wc-block-components-title,
	.wc-block-checkout .wc-block-components-checkout-step__title {
		font-size: 22px;
	}

	.wc-block-checkout .wc-block-checkout__main .wp-block-woocommerce-checkout-order-summary-block {
		display: none;
	}

	.wc-block-checkout .wc-block-checkout__sidebar {
		order: -1;
		width: 100%;
		flex-basis: 100%;
		padding: 0;
		border-bottom: 1px solid var(--et-filetto-chiaro);
	}

	.wc-block-checkout .wc-block-components-order-summary__button,
	.wc-block-checkout .wc-block-components-checkout-order-summary__title {
		min-height: 56px;
		padding: 0 var(--et-gutter);
		background: var(--et-carta);
		font-size: 14px;
	}

	.wc-block-checkout .wc-block-components-checkout-place-order-button {
		min-height: 56px;
		letter-spacing: 0.12em;
	}
}

.wc-block-checkout .wc-blocks-components-select__label {
	top: 8px;
	font-size: 12px;
	font-weight: 600;
}

.wc-block-checkout .wc-blocks-components-select__select {
	padding-top: 20px;
	padding-bottom: 0;
}

.wc-block-checkout #order-fields .wc-block-components-checkout-step__heading {
	display: none;
}


/* ================================================================== Prompt 5B: allineamento alla bozza.
   Prefisso .woocommerce-cart / .woocommerce-checkout (classe del body) per battere gli stili dei blocchi senza !important. */

/* ---- Carrello: righe a quattro colonne come la bozza (immagine, prodotto, quantità 140, totale 120) */
.woocommerce-cart .wc-block-cart-items thead,
.woocommerce-cart .wc-block-cart-items .wc-block-cart-items__header {
	grid-template-columns: 104px minmax(0, 1fr) 140px 120px;
	align-items: end;
}

.woocommerce-cart .wc-block-cart-items__header-image {
	display: none;
}

.woocommerce-cart .wc-block-cart-items__header-product {
	grid-column: 1 / span 2;
	order: 1;
}

.woocommerce-cart .wc-block-cart-items__header::after {
	content: attr(data-et-qta);
	order: 2;
	color: var(--et-testo-2-chiaro);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.woocommerce-cart .wc-block-cart-items__header-total {
	order: 3;
}

.woocommerce-cart .wc-block-cart-items__row {
	grid-template-columns: 104px minmax(0, 1fr) 140px 120px;
}

.woocommerce-cart .wc-block-cart-item__image {
	grid-column: 1;
	grid-row: 1 / span 3;
}

.woocommerce-cart .wc-block-cart-item__product {
	display: contents;
}

.woocommerce-cart .wc-block-components-product-details__collection,
.woocommerce-cart .wc-block-cart-items .wc-block-components-product-name,
.woocommerce-cart .wc-block-cart-item__prices {
	grid-column: 2;
	line-height: normal;
}

.woocommerce-cart .wc-block-cart-items .wc-block-components-product-name {
	font-family: var(--et-font-titoli);
	font-size: 19px;
	font-weight: 700;
	color: var(--et-inchiostro);
	text-decoration: none;
}

.woocommerce-cart .wc-block-cart-item__quantity {
	grid-column: 3;
	grid-row: 1 / span 3;
	align-self: center;
}

.woocommerce-cart .wc-block-cart-item__total {
	grid-column: 4;
	grid-row: 1 / span 3;
	align-self: center;
}

.woocommerce-cart .wc-block-components-quantity-selector {
	box-sizing: content-box;
	height: 44px;
}

/* «Remove»: link di testo sottolineato; il testo viene da un attributo messo dal JavaScript, il nome accessibile resta l'aria-label del blocco */
.woocommerce-cart .wc-block-cart-item__remove-link {
	display: inline-flex;
	align-items: center;
}

.woocommerce-cart .wc-block-cart-item__remove-link svg {
	display: none;
}

.woocommerce-cart .wc-block-cart-item__remove-link::after {
	content: attr(data-et-rimuovi);
	text-decoration: underline;
}

.woocommerce-cart .et-regalo .et-regalo__continua {
	color: var(--et-inchiostro);
}

/* ---- Carrello: riepilogo (ordine come la bozza: titolo, Ship to, voci, totale, pulsante, nota, pagamenti) */
.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block {
	display: contents;
}

.woocommerce-cart .wc-block-cart .wc-block-cart__totals-title {
	order: 0;
	padding: 0;
	font-size: 24px;
	line-height: normal;
	letter-spacing: normal;
	text-transform: none;
}

.woocommerce-cart .wc-block-cart__sidebar .et-riepilogo-extra {
	display: contents;
}

.woocommerce-cart .et-riepilogo-extra__paese {
	order: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.woocommerce-cart .et-riepilogo-extra__paese label {
	color: var(--et-testo-2-scuro);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.woocommerce-cart .et-riepilogo-extra__paese select {
	min-height: 48px;
	padding: 0 12px;
	background: var(--et-nero-pieno);
	border: 1px solid var(--et-bordo-tag);
	border-radius: 0;
	color: var(--et-crema);
	font: inherit;
}

.woocommerce-cart .wp-block-woocommerce-cart-order-summary-totals-block {
	order: 2;
}

.woocommerce-cart .et-riepilogo-extra__voci {
	order: 3;
	margin-top: -6px;
}

.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-wrapper:last-child {
	order: 4;
}

.woocommerce-cart .wc-block-cart__submit {
	order: 5;
}

.woocommerce-cart .et-riepilogo-extra__nota {
	order: 6;
}

.woocommerce-cart .et-riepilogo-extra__pagamenti {
	order: 7;
}

.woocommerce-cart .wc-block-cart__payment-options {
	display: none;
}

.woocommerce-cart .wc-block-cart__submit-container .wc-block-cart__submit-button {
	min-height: 56px;
	color: var(--et-nero);
	line-height: normal;
}

.woocommerce-cart .wc-block-cart__submit-container .wc-block-cart__submit-button:hover {
	color: var(--et-nero);
}

/* ---- Checkout: titoli, campi con etichetta SOPRA, riepilogo a colonna, pulsante */
.et-header-co__logo {
	color: var(--et-bordeaux);
}

.woocommerce-checkout .wc-block-checkout .wc-block-components-checkout-step__title {
	margin: 0;
	padding: 0 2px;
	font-size: 24px;
	line-height: normal;
}

.woocommerce-checkout .wc-block-checkout .wc-block-components-text-input {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.woocommerce-checkout .wc-block-checkout .wc-block-components-text-input label,
.woocommerce-checkout .wc-block-checkout .wc-block-components-text-input.is-active label,
.woocommerce-checkout .wc-block-checkout .wc-blocks-components-select__label {
	position: static;
	order: -1;
	transform: none;
	margin: 0 0 6px;
	color: var(--et-inchiostro);
	font-size: 13px;
	font-weight: 600;
	line-height: normal;
}

.woocommerce-checkout .wc-block-checkout .wc-block-components-text-input input,
.woocommerce-checkout .wc-block-checkout .wc-block-components-text-input.is-active input {
	box-sizing: content-box;
	width: calc(100% - 30px); /* contenuto + padding 2 × 14 + bordo 2 × 1 */
	min-height: 50px;
	padding: 0 14px;
	color: #000;
	font-size: 15px;
	font-weight: 400;
	line-height: normal;
}

.woocommerce-checkout .wc-block-checkout .wc-blocks-components-select__container {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.woocommerce-checkout .wc-block-checkout .wc-blocks-components-select__select {
	box-sizing: border-box;
	min-height: 50px;
	padding: 0 12px;
	line-height: normal;
}

.woocommerce-checkout .wc-block-checkout .wc-blocks-components-select__expand {
	top: auto;
	bottom: 17px;
}

/* Errore: testo e bordo (non solo colore) */
.woocommerce-checkout .wc-block-checkout .wc-block-components-text-input.has-error input,
.woocommerce-checkout .wc-block-checkout .has-error .wc-blocks-components-select__select {
	border: 2px solid #8A1C1C;
}

.woocommerce-checkout .wc-block-checkout .wc-block-components-validation-error {
	margin-top: 6px;
	color: #8A1C1C;
	font-size: 13px;
	font-weight: 600;
}

.woocommerce-checkout .wc-block-checkout .wc-block-checkout__sidebar {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.woocommerce-checkout .wc-block-checkout .wc-block-components-checkout-place-order-button {
	min-height: 58px;
	padding: 1px 6px;
	line-height: normal;
}

@media (max-width: 759px) {
	.et-header-co {
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 64px;
		padding: 0 var(--et-gutter);
		border-bottom: 0;
	}

	.et-header-co__inner {
		display: contents;
	}

	.et-header-co__sicuro .et-icon {
		width: 14px;
		height: 14px;
	}

	.woocommerce-checkout .wc-block-checkout .wc-block-components-checkout-step__title {
		font-size: 22px;
	}

	.woocommerce-checkout .wc-block-checkout .wc-block-components-text-input input,
	.woocommerce-checkout .wc-block-checkout .wc-block-components-text-input.is-active input {
		font-size: 16px;
		font-weight: 600;
	}

	.woocommerce-checkout .wc-block-checkout .wc-block-components-checkout-place-order-button {
		min-height: 56px;
		font-size: 13px;
		letter-spacing: 0.12em;
	}
}

.woocommerce-cart .et-entry__title {
	line-height: normal;
}

.woocommerce-cart .wc-block-cart .wc-block-cart__totals-title {
	font-family: var(--et-font-titoli);
	font-weight: 700;
}

.woocommerce-cart .wc-block-cart .wc-block-cart-items__row .wc-block-components-product-name {
	font-size: 19px;
	font-weight: 700;
	line-height: normal;
}

/* Altezza esplicita: il blocco imposta min-height in em sul pulsante */
.woocommerce-cart .wc-block-cart__submit-container .wc-block-cart__submit-button {
	box-sizing: border-box;
	height: 56px;
}

.woocommerce-checkout .wc-block-checkout .wc-block-components-checkout-place-order-button {
	box-sizing: border-box;
	height: 58px;
}

@media (max-width: 759px) {
	.woocommerce-checkout .wc-block-checkout .wc-block-components-checkout-place-order-button {
		height: 56px;
	}
}

.woocommerce-cart .wc-block-cart-item__image a {
	color: var(--et-bordeaux);
}

/* Riepilogo del checkout: miniatura 64×80 su crema, bottiglia intera (come la bozza) */
.woocommerce-checkout .wc-block-checkout .wc-block-components-order-summary-item__image {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 64px;
	width: 64px;
	height: 80px;
	background: var(--et-fondo-bottiglia);
}

.woocommerce-checkout .wc-block-checkout .wc-block-components-order-summary-item__image img {
	height: 70px;
	width: auto;
	max-width: none;
}

@media (max-width: 759px) {
	.woocommerce-checkout .wc-block-checkout .wc-block-components-checkout-order-summary__content {
		padding: 16px var(--et-gutter);
	}
}

/* Il blocco dà display:flex al contenitore del prodotto con `table.wc-block-cart-items .wc-block-cart-items__row …` (specificità 0,3,1: da qui il selettore lungo): qui deve sparire, così nome, collezione, prezzo e quantità
   diventano celle della griglia della riga (104 · prodotto · 140 · 120) */
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__wrap,
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-metadata,
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-details {
	display: contents;
}

/* Intestazione: solo la riga (tr) è la griglia, il thead resta un blocco */
.woocommerce-cart table.wc-block-cart-items thead {
	display: block;
}

/* Quantità e «Remove» in colonna (il blocco li mette in riga) */
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity {
	flex-direction: column;
	align-items: flex-start;
}

/* Fra immagine (104) e testo: 20 px come la bozza = gap 16 + 4 */
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-details__collection,
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name,
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__prices {
	margin-left: 4px;
}

/* «Product» come la bozza (il blocco scrive «Details», nascosto): testo da attributo messo dal JavaScript */
.woocommerce-cart .wc-block-cart-items__header-product {
	text-align: left;
}

.woocommerce-cart .wc-block-cart-items__header-product span {
	display: none;
}

.woocommerce-cart .wc-block-cart-items__header-product::before {
	content: attr(data-et-prodotto);
	color: var(--et-testo-2-chiaro);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

@media (max-width: 759px) {
	.woocommerce-cart .wc-block-cart-items__header {
		display: none;
	}

	.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row {
		grid-template-columns: 80px minmax(0, 1fr);
		align-items: start;
	}

	.woocommerce-cart .wc-block-cart-item__image {
		grid-row: 1 / span 5;
	}

	.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity {
		grid-column: 2;
		grid-row: auto;
		flex-direction: row;
		align-items: center;
		align-self: start;
		gap: 16px;
		margin-top: 8px;
		padding-left: 4px;
	}

	.woocommerce-cart .wc-block-cart-item__total {
		grid-column: 2;
		grid-row: auto;
		align-self: start;
		padding: 8px 0 0 4px;
		text-align: left;
	}
}

.et-avviso-admin {
	margin: 0 0 24px;
	padding: 14px 16px;
	background: var(--et-nero);
	color: var(--et-crema);
	font-size: 14px;
	line-height: 1.6;
}
