/* Finalizarea comenzii: două carduri pe lățimea site-ului, în culorile identității. */
form.woocommerce-checkout.ct-woocommerce-checkout {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.ct-customer-details,
.ct-order-review,
.woocommerce-order,
.woocommerce-MyAccount-content {
	padding: 32px;
	border: 1px solid var(--theme-palette-color-5);
	border-radius: 24px;
	background: var(--theme-palette-color-8);
}

.ct-order-review {
	--theme-border-color: var(--theme-palette-color-5);
	margin: 0;
}

@media (min-width: 1000px) and (min-height: 960px) {
	.ct-order-review {
		position: sticky;
		top: 108px;
	}
}

@media (max-width: 999.98px) {
	form.woocommerce-checkout.ct-woocommerce-checkout {
		grid-template-columns: minmax(0, 1fr);
	}

	.ct-customer-details,
	.ct-order-review,
	.woocommerce-order {
		padding: 24px 16px;
	}
}

/* Câmpurile scurte stau câte două pe rând; grila rezistă la reordonarea făcută de WooCommerce. */
.woocommerce-billing-fields__field-wrapper {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: 16px;
}

.woocommerce-billing-fields__field-wrapper > .form-row {
	grid-column: 1 / -1;
	width: auto !important;
	float: none !important;
	margin-right: 0;
}

#billing_first_name_field,
#billing_last_name_field,
#billing_city_field,
#billing_state_field,
#billing_postcode_field,
#billing_phone_field {
	grid-column: auto;
}

.woocommerce-checkout .ct-order-review {
	margin-top: 0;
}

@media (max-width: 479.98px) {
	#billing_first_name_field,
	#billing_last_name_field,
	#billing_city_field,
	#billing_state_field,
	#billing_postcode_field,
	#billing_phone_field {
		grid-column: 1 / -1;
	}
}

/* Metodele de plată: un singur chenar, cu loc pentru formularul Stripe. */
.woocommerce-checkout #payment {
	margin-right: 0;
	margin-left: 0;
}

.woocommerce-checkout #payment .wc_payment_methods {
	border: 1px solid var(--theme-palette-color-5);
	border-radius: 16px;
	overflow: hidden;
}

.woocommerce-checkout #payment .payment_box {
	padding: 16px;
}

.woocommerce-checkout #payment #place_order {
	width: 100%;
	min-height: 52px;
	font-size: 16px;
}


/* Mesaje: succes, eroare, informare, cu contrast AA. */
.woocommerce-notices-wrapper:empty,
.woocommerce-NoticeGroup:empty {
	display: none;
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info {
	margin-bottom: 24px;
	padding: 16px 20px 16px 52px;
	border: 1px solid;
	border-radius: 16px;
	font-size: 15px;
}

.woocommerce .woocommerce-message {
	border-color: #a9d6b3;
	background: #e1f2e4;
	color: #1f4f36;
}

.woocommerce .woocommerce-error {
	border-color: #e7b7af;
	background: #fbeae7;
	color: #6e1f16;
}

.woocommerce .woocommerce-error a,
.woocommerce .woocommerce-error a:hover {
	color: #6e1f16;
	text-decoration: underline;
}

.woocommerce-checkout .checkout-inline-error-message,
.woocommerce-checkout .form-row .woocommerce-error {
	margin-top: 4px;
	color: #a3241a;
	font-size: 14px;
	line-height: 1.4;
}

.woocommerce .woocommerce-info {
	border-color: var(--theme-palette-color-5);
	background: var(--theme-palette-color-8);
	color: var(--theme-palette-color-3);
}

.woocommerce-invalid input,
.woocommerce-invalid select,
.woocommerce-invalid .select2-selection {
	border-color: #a3241a !important;
}

/* Pagina de mulțumire: titlul stă în pagină, fără notificare goală. */
.woocommerce-thankyou-order-received {
	display: none;
}


.woocommerce-order-overview {
	padding: 0;
	list-style: none;
}
