/* ==========================================================================
   checkout.css — caisse classique ([woocommerce_checkout])
   Deux colonnes : coordonnées à gauche, commande à droite. Champs au filet,
   aucune boîte grise, aucun arrondi.
   ========================================================================== */

/* --- Mise en page -------------------------------------------------------- */

.woocommerce-checkout .lune-site form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
	column-gap: 64px;
	row-gap: 0;
	align-items: start;
}

.woocommerce-checkout .lune-site #customer_details {
	grid-column: 1;
	grid-row: 1;
}

.woocommerce-checkout .lune-site .lune-co__summary {
	grid-column: 2;
	grid-row: 1;
}

.woocommerce-checkout .lune-site #order_review_heading {
	font-family: var(--lune-serif);
	font-size: 22px;
	font-weight: 400;
	margin: 0 0 16px;
	padding-top: 0;
}

.woocommerce-checkout .lune-site #order_review { margin-top: 0; }

.woocommerce-checkout .lune-site .col2-set,
.woocommerce-checkout .lune-site .col2-set .col-1,
.woocommerce-checkout .lune-site .col2-set .col-2 {
	width: auto !important;
	float: none !important;
	margin: 0;
}

.woocommerce-checkout .lune-site wc-order-attribution-inputs { display: none; }

/* --- Titres de section --------------------------------------------------- */

.woocommerce-checkout .lune-site .woocommerce-billing-fields h3,
.woocommerce-checkout .lune-site .woocommerce-shipping-fields h3,
.woocommerce-checkout .lune-site .woocommerce-additional-fields h3 {
	font-family: var(--lune-sans);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--lune-muted);
	margin: 0 0 18px;
}

.woocommerce-checkout .lune-site .woocommerce-shipping-fields { margin-top: 34px; }
.woocommerce-checkout .lune-site .woocommerce-additional-fields { margin-top: 10px; }

/* --- Champs -------------------------------------------------------------- */

.woocommerce-checkout .lune-site .form-row {
	margin: 0 0 20px;
	padding: 0;
	display: block;
	width: 100%;
	float: none;
}

.woocommerce-checkout .lune-site .form-row label {
	display: block;
	font-size: 10.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--lune-muted);
	margin: 0 0 6px;
	font-weight: 500;
}

.woocommerce-checkout .lune-site .form-row abbr.required {
	display: none;
}

.woocommerce-checkout .lune-site .form-row .input-text,
.woocommerce-checkout .lune-site .form-row select,
.woocommerce-checkout .lune-site .form-row textarea {
	width: 100%;
	border: 0;
	border-bottom: 1px solid var(--lune-line);
	border-radius: 0;
	background: transparent;
	padding: 10px 0;
	font-family: var(--lune-sans);
	font-size: 15px;
	line-height: 1.4;
	color: var(--lune-ink);
	box-shadow: none;
	appearance: none;
}

.woocommerce-checkout .lune-site .form-row textarea {
	border: 1px solid var(--lune-line);
	padding: 12px;
	min-height: 90px;
}

.woocommerce-checkout .lune-site .form-row .input-text:focus,
.woocommerce-checkout .lune-site .form-row select:focus,
.woocommerce-checkout .lune-site .form-row textarea:focus {
	border-color: var(--lune-ink);
	outline: none;
}

.woocommerce-checkout .lune-site .form-row select {
	background-image: linear-gradient(45deg, transparent 50%, var(--lune-ink) 50%),
		linear-gradient(135deg, var(--lune-ink) 50%, transparent 50%);
	background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-right: 24px;
}

.woocommerce-checkout .lune-site .form-row.woocommerce-invalid .input-text,
.woocommerce-checkout .lune-site .form-row.woocommerce-invalid select {
	border-color: var(--lune-accent);
}

/* --- Récapitulatif ------------------------------------------------------- */

.woocommerce-checkout .lune-site #order_review {
	border-top: 1px solid var(--lune-ink);
	padding-top: 18px;
}

.woocommerce-checkout .lune-site table.woocommerce-checkout-review-order-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.woocommerce-checkout .lune-site table.woocommerce-checkout-review-order-table th,
.woocommerce-checkout .lune-site table.woocommerce-checkout-review-order-table td {
	border: 0;
	border-bottom: 1px solid var(--lune-line);
	padding: 12px 0;
	font-size: 13.5px;
	font-weight: 400;
	color: var(--lune-ink);
	text-align: left;
	vertical-align: top;
}

.woocommerce-checkout .lune-site table.woocommerce-checkout-review-order-table td:last-child,
.woocommerce-checkout .lune-site table.woocommerce-checkout-review-order-table th:last-child {
	text-align: right;
}

.woocommerce-checkout .lune-site table.woocommerce-checkout-review-order-table thead th {
	font-size: 10.5px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--lune-muted);
}

.woocommerce-checkout .lune-site table.woocommerce-checkout-review-order-table .order-total td,
.woocommerce-checkout .lune-site table.woocommerce-checkout-review-order-table .order-total th {
	font-family: var(--lune-serif);
	font-size: 20px;
	border-bottom: 0;
	padding-top: 16px;
}

.woocommerce-checkout .lune-site table.woocommerce-checkout-review-order-table .cart_item .product-name,
.woocommerce-checkout .lune-site table.woocommerce-checkout-review-order-table .cart_item .product-total {
	border-bottom: 1px solid var(--lune-line);
}

/* --- Paiement ------------------------------------------------------------ */

.woocommerce-checkout .lune-site #payment {
	background: none;
	border-radius: 0;
	margin-top: 26px;
}

.woocommerce-checkout .lune-site #payment ul.payment_methods {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	border: 0;
}

.woocommerce-checkout .lune-site #payment ul.payment_methods li {
	border-bottom: 1px solid var(--lune-line);
	padding: 12px 0;
	font-size: 13.5px;
}

.woocommerce-checkout .lune-site #payment ul.payment_methods li label {
	display: inline;
	margin: 0;
	font-size: 13.5px;
	text-transform: none;
	letter-spacing: 0;
	color: var(--lune-ink);
}

.woocommerce-checkout .lune-site #payment input[type="radio"] {
	margin-right: 10px;
	accent-color: var(--lune-ink);
}

.woocommerce-checkout .lune-site #payment .payment_box {
	background: none;
	border: 0;
	padding: 8px 0 0 26px;
	font-size: 12.5px;
	line-height: 1.7;
	color: var(--lune-muted);
}

.woocommerce-checkout .lune-site #payment .payment_box::before { display: none; }

.woocommerce-checkout .lune-site #payment #place_order {
	width: 100%;
	background: var(--lune-accent);
	color: var(--lune-white);
	border: 0;
	border-radius: 0;
	padding: 17px 24px;
	font-family: var(--lune-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	cursor: pointer;
}

.woocommerce-checkout .lune-site #payment #place_order:hover { background: var(--lune-ink); }

/* Le titre de page est centré par Storefront : on l'aligne comme le reste. */
.woocommerce-checkout .lune-site .entry-header { text-align: left; margin-bottom: 0; }

.woocommerce-checkout .lune-site .entry-title {
	font-family: var(--lune-serif);
	font-weight: 400;
	font-size: clamp(34px, 3.4vw, 46px);
	line-height: 1.1;
	letter-spacing: -.01em;
	margin: 0 0 30px;
}

.woocommerce-checkout .lune-site .entry-content { margin-top: 0; }

.woocommerce-checkout .lune-site .woocommerce-terms-and-conditions-wrapper {
	font-size: 11.5px;
	line-height: 1.6;
	color: var(--lune-muted);
	margin: 0 0 20px;
}

/* --- Coupon / connexion -------------------------------------------------- */

.woocommerce-checkout .lune-site .woocommerce-form-coupon-toggle { margin: 0 0 30px; }

.woocommerce-checkout .lune-site .woocommerce-info,
.woocommerce-checkout .lune-site .woocommerce-message,
.woocommerce-checkout .lune-site .woocommerce-error {
	background: none;
	border: 0;
	border-top: 1px solid var(--lune-line);
	border-bottom: 1px solid var(--lune-line);
	padding: 13px 0 13px 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--lune-ink-2);
	margin: 0 0 20px;
	list-style: none;
}

.woocommerce-checkout .lune-site .woocommerce-info::before,
.woocommerce-checkout .lune-site .woocommerce-message::before,
.woocommerce-checkout .lune-site .woocommerce-error::before { display: none; }

.woocommerce-checkout .lune-site .woocommerce-error {
	border-top-color: var(--lune-accent);
	border-bottom-color: var(--lune-accent);
	color: var(--lune-accent);
}

.woocommerce-checkout .lune-site .woocommerce-error li { margin: 0; }

.woocommerce-checkout .lune-site .form-row.form-row-wide#billing_address_1_field { clear: both; }

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 900px) {
	.woocommerce-checkout .lune-site form.checkout {
		grid-template-columns: 1fr;
		row-gap: 34px;
	}

	.woocommerce-checkout .lune-site #customer_details,
	.woocommerce-checkout .lune-site .lune-co__summary {
		grid-column: 1;
		grid-row: auto;
	}

	.woocommerce-checkout .lune-site #order_review { margin-top: 8px; }
}


/* Storefront teinte le récapitulatif : on reste sur du blanc. */
.woocommerce-checkout .lune-site #order_review,
.woocommerce-checkout .lune-site table.woocommerce-checkout-review-order-table,
.woocommerce-checkout .lune-site table.woocommerce-checkout-review-order-table th,
.woocommerce-checkout .lune-site table.woocommerce-checkout-review-order-table td,
.woocommerce-checkout .lune-site #payment,
.woocommerce-checkout .lune-site #payment .payment_box {
	background: transparent;
}

/* Storefront contraint le récapitulatif à ~48 % et le flotte : on reprend la main. */
.woocommerce-checkout .lune-site #order_review,
.woocommerce-checkout .lune-site #order_review_heading,
.woocommerce-checkout .lune-site #order_review table,
.woocommerce-checkout .lune-site #order_review .woocommerce-checkout-review-order-table,
.woocommerce-checkout .lune-site #payment,
.woocommerce-checkout .lune-site #place_order {
	width: 100% !important;
	float: none !important;
}

.woocommerce-checkout .lune-site #payment ul.payment_methods + .form-row,
.woocommerce-checkout .lune-site #payment .woocommerce-info {
	background: transparent;
	border: 0;
	padding: 12px 0;
	font-size: 12.5px;
	color: var(--lune-muted);
}

/* Le bloc de gauche ne doit pas étirer la première rangée (trou sous le titre). */
.woocommerce-checkout .lune-site #customer_details { align-self: start; }
.woocommerce-checkout .lune-site form.checkout { grid-template-rows: min-content auto; }

.woocommerce-checkout .lune-site #payment ul.payment_methods li { background: transparent; }

.woocommerce-checkout .lune-site .form-row { margin-bottom: 16px; }
.woocommerce-checkout .lune-site .form-row .input-text,
.woocommerce-checkout .lune-site .form-row select { padding: 9px 0; }

/* Storefront ajoute un padding intérieur au récapitulatif : il décalait le tableau. */
.woocommerce-checkout .lune-site #order_review { padding: 0 !important; }

@media (max-width: 900px) {
	.woocommerce-checkout .lune-site table.woocommerce-checkout-review-order-table .order-total td,
	.woocommerce-checkout .lune-site table.woocommerce-checkout-review-order-table .order-total th { font-size: 17px; }
}
