/**
 * Styles pour le checkout simplifié.
 *
 * @link       https://com-maker.fr/
 * @since      1.0.0
 *
 * @package    Sabine_Be_Pro
 * @subpackage Sabine_Be_Pro/public/css
 */

/* ==========================================================================
   CONTAINER PRINCIPAL
   ========================================================================== */

.sabine-be-pro-checkout-order {
	margin-bottom: 100px;
}

.sabine-be-pro-checkout-order.loading {
	opacity: 0.6;
	pointer-events: none;
}

/* ==========================================================================
   ÉTAT VIDE (PANIER VIDE)
   ========================================================================== */

.sabine-be-pro-checkout-empty-state {
	text-align: center;
	padding: 80px 40px;
	border: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	align-items: center;
}

.sabine-be-pro-checkout-empty-icon {
	color: var(--gris);
	margin-bottom: 24px;
}

.sabine-be-pro-checkout-empty-icon svg {
	opacity: 0.6;
}

.sabine-be-pro-checkout-empty-state h2 {
	margin: 0 0 12px;
	font-size: 1.5rem;
	font-weight: 300;
	letter-spacing: 2px;
	color: var(--noir);
}

.sabine-be-pro-checkout-empty-state p {
	margin: 0 0 32px;
	font-size: 1rem;
	color: var(--gris);
	max-width: 400px;
	font-weight: 300;
}

.sabine-be-pro-checkout-empty-actions {
	display: flex;
	justify-content: center;
}

.sabine-be-pro-checkout-empty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 18px 40px;
	background: transparent;
	color: var(--noir);
	border: 1px solid var(--noir);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s;
}

.sabine-be-pro-checkout-empty-btn:hover {
	color: var(--rouge);
	border-color: var(--rouge);
	background: transparent;
	text-decoration: none;
}

.sabine-be-pro-checkout-empty-btn svg {
	flex-shrink: 0;
}

@media (max-width: 768px) {
	.sabine-be-pro-checkout-empty-state {
		padding: 60px 24px;
	}

	.sabine-be-pro-checkout-empty-state h2 {
		font-size: 1.25rem;
	}

	.sabine-be-pro-checkout-empty-btn {
		width: 100%;
	}
}

/* ==========================================================================
   LIEN RETOUR (au-dessus du header, comme la page détail commande)
   ========================================================================== */

.sabine-be-pro-checkout .sabine-be-pro-back-link {
	color: var(--gris);
	text-decoration: none;
	font-size: 0.8rem;
	display: inline-block;
	margin-bottom: 15px;
	letter-spacing: 1px;
	transition: color 0.3s;
}

.sabine-be-pro-checkout .sabine-be-pro-back-link:hover {
	color: var(--rouge);
}

/* ==========================================================================
   EN-TÊTE (style identique au détail commande)
   ========================================================================== */

.sabine-be-pro-checkout-header {
	display: block;
	border-bottom: 2px solid var(--noir);
	padding: 0 0 30px 0;
	margin-bottom: 40px;
	background: none;
}

.sabine-be-pro-checkout-header h2 {
	margin: 0 0 15px 0;
	font-size: 1.5rem;
	font-weight: 300;
	color: var(--noir);
}

.sabine-be-pro-checkout-client-name {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--gris);
	font-weight: 700;
	font-size: 0.9rem;
}

.sabine-be-pro-checkout-client-name svg {
	flex-shrink: 0;
	color: var(--rouge);
}

/* Badge "Commande personnelle" */
.sabine-be-pro-checkout-self-order .sabine-be-pro-order-self-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	background: var(--noir);
	color: var(--blanc);
	font-weight: 700;
	font-size: 0.65rem;
	letter-spacing: 1px;
}

.sabine-be-pro-checkout-self-order .sabine-be-pro-order-self-badge::before {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	background: var(--blanc);
	border-radius: 50%;
}

/* ==========================================================================
   CONTENU PRINCIPAL
   ========================================================================== */

.sabine-be-pro-checkout-content {
	display: flex;
	flex-direction: column;
}

/* ==========================================================================
   SECTION 1 : PRODUITS ET TOTAUX (PLEINE LARGEUR)
   ========================================================================== */

.sabine-be-pro-checkout-products-section {
	width: 100%;
}

/* ==========================================================================
   SECTION 2 : ADRESSES
   ========================================================================== */

.sabine-be-pro-checkout-addresses-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
}

@media (max-width: 768px) {
	.sabine-be-pro-checkout-addresses-section {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

/* ==========================================================================
   SECTION 3 : DÉTAILS (OBJET/NOTE + PAIEMENT)
   ========================================================================== */

.sabine-be-pro-checkout-details-section {
	display: flex;
	gap: 60px;
}

.sabine-be-pro-checkout-details-left {
	flex: 1.5;
	display: flex;
	flex-direction: column;
}

.sabine-be-pro-checkout-details-right {
	flex: 1;
	display: flex;
	flex-direction: column;
}

@media (max-width: 900px) {
	.sabine-be-pro-checkout-details-section {
		flex-direction: column;
		gap: 0;
	}
}

/* --- Titres de sections (border-left rouge) --- */
.sabine-be-pro-checkout-address h3,
.sabine-be-pro-checkout-details-left h3,
.sabine-be-pro-checkout-details-right h3 {
	font-size: 0.8rem;
	letter-spacing: 2px;
	border-left: 2px solid var(--rouge);
	padding-left: 15px;
	margin: 40px 0 25px 0;
	font-weight: 700;
	color: var(--noir);
}

/* --- Adresses --- */
.sabine-be-pro-checkout-address-content {
	font-size: 0.85rem;
	line-height: 1.6;
	color: var(--texte);
}

.sabine-be-pro-checkout-address-content strong {
	display: block;
	margin-bottom: 4px;
	color: var(--noir);
}

.sabine-be-pro-checkout-address-content .phone,
.sabine-be-pro-checkout-address-content .email {
	color: var(--gris);
	font-size: 0.85rem;
}

/* ==========================================================================
   CHAMPS DE FORMULAIRE (style underline)
   ========================================================================== */

.sabine-be-pro-checkout-payment {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sabine-be-pro-checkout-field {
	margin-bottom: 25px;
}

.sabine-be-pro-checkout-field label {
	display: block;
	font-size: 0.7rem;
	color: var(--gris);
	margin-bottom: 8px;
	font-weight: normal;
	letter-spacing: 1px;
}

.sabine-be-pro-checkout-input,
.sabine-be-pro-checkout-textarea {
	width: 100%;
	border: none !important;
	border-bottom: 1px solid var(--border) !important;
	border-radius: 0 !important;
	padding: 10px 0 !important;
	background: transparent !important;
	font-family: inherit;
	outline: none;
	color: var(--texte);
	font-size: 0.9rem;
	box-shadow: none !important;
	transition: border-color 0.3s;
}

.sabine-be-pro-checkout-input:focus,
.sabine-be-pro-checkout-textarea:focus {
	border-bottom-color: var(--rouge) !important;
	box-shadow: none !important;
}

.sabine-be-pro-checkout-textarea {
	resize: vertical;
	min-height: 80px;
}

.sabine-be-pro-checkout-select {
	width: 100%;
	border: none !important;
	border-bottom: 1px solid var(--border) !important;
	border-radius: 0 !important;
	padding: 10px 0 !important;
	background: transparent !important;
	font-family: inherit;
	outline: none;
	color: var(--texte);
	font-size: 0.9rem;
	box-shadow: none !important;
	transition: border-color 0.3s;
}

.sabine-be-pro-checkout-select:focus {
	border-bottom-color: var(--rouge) !important;
	box-shadow: none !important;
}

.sabine-be-pro-checkout-field-note {
	margin-top: 8px;
}

/* ==========================================================================
   CARTES INFORMATIONS DE PAIEMENT
   ========================================================================== */

.sabine-be-pro-checkout-payment-cards {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.sabine-be-pro-checkout-payment-card {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 20px;
	background: var(--gris-clair);
	border: 1px solid transparent;
	transition: all 0.3s;
}

.sabine-be-pro-checkout-payment-card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	background: var(--blanc);
	color: var(--rouge);
	border-radius: 50%;
}

.sabine-be-pro-checkout-payment-card-icon svg {
	width: 20px;
	height: 20px;
}

.sabine-be-pro-checkout-payment-card-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.sabine-be-pro-checkout-payment-card-label {
	display: block;
	font-size: 0.65rem;
	color: var(--gris);
	letter-spacing: 1px;
	margin-bottom: 4px;
}

.sabine-be-pro-checkout-payment-card-value {
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--noir);
}

/* État non configuré */
.sabine-be-pro-checkout-payment-card.not-configured {
	border-color: rgba(220, 53, 69, 0.3);
}

.sabine-be-pro-checkout-payment-card.not-configured .sabine-be-pro-checkout-payment-card-icon {
	color: #dc3545;
}

.sabine-be-pro-checkout-payment-card.not-configured .sabine-be-pro-checkout-payment-card-value {
	color: #dc3545;
	font-style: italic;
}

/* Alerte paiement en haut (pleine largeur) */
.sabine-be-pro-checkout-payment-alert {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 20px;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #dc3545;
	background: rgba(220, 53, 69, 0.1);
	border: 1px solid rgba(220, 53, 69, 0.3);
	width: 100%;
}

.sabine-be-pro-checkout-payment-alert svg {
	flex-shrink: 0;
	margin-top: 2px;
}

/* Commande avec erreur de paiement */
.sabine-be-pro-checkout-order.has-payment-error .sabine-be-pro-checkout-header {
	border-bottom-color: #dc3545;
}

/* ==========================================================================
   TABLEAU DES PRODUITS
   ========================================================================== */

/* Defensive resets against theme/WooCommerce */
.sabine-be-pro-checkout table {
	border: none;
	border-spacing: 0;
	margin: 0;
}

.sabine-be-pro-checkout table th,
.sabine-be-pro-checkout table td {
	border: none;
	border-bottom: 1px solid var(--border);
	background: none;
}

.sabine-be-pro-checkout a {
	text-decoration: none;
	box-shadow: none;
}

.sabine-be-pro-checkout a:hover {
	box-shadow: none;
}

.sabine-be-pro-checkout button {
	border-radius: 0;
	box-shadow: none;
	outline: none;
}

.sabine-be-pro-checkout button:hover,
.sabine-be-pro-checkout button:focus {
	box-shadow: none;
	outline: none;
}

.sabine-be-pro-checkout-products {
	overflow: hidden;
}

.sabine-be-pro-checkout-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 30px;
}

.sabine-be-pro-checkout-table th {
	text-align: left;
	font-size: 0.7rem;
	color: var(--gris);
	padding: 15px 0;
	border-bottom: 1px solid var(--border) !important;
	font-weight: normal;
	letter-spacing: 1px;
	background: none !important;
}

.sabine-be-pro-checkout-table td {
	padding: 20px 0;
	border-bottom: 1px solid var(--border) !important;
	font-size: 0.9rem;
	vertical-align: top;
	background: none !important;
}

.sabine-be-pro-checkout-table tbody tr:last-child td {
	border-bottom: 1px solid var(--border) !important;
}

.sabine-be-pro-checkout-table .col-product {
	width: 45%;
}

.sabine-be-pro-checkout-table .col-price {
	width: 18%;
	text-align: right;
}

.sabine-be-pro-checkout-table .col-quantity {
	width: 12%;
	text-align: center;
}

.sabine-be-pro-checkout-table .col-total {
	width: 25%;
	text-align: right;
}

.sabine-be-pro-checkout-table td.col-price {
	text-align: right;
}

.sabine-be-pro-checkout-table td.col-quantity {
	text-align: center;
}

.sabine-be-pro-checkout-table td.col-total {
	text-align: right;
	font-weight: 500;
}

.sabine-be-pro-checkout-table .product-info {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.sabine-be-pro-checkout-table .product-name {
	font-weight: 700;
	color: var(--noir);
}

.sabine-be-pro-checkout-table .product-name a {
	color: var(--noir);
	text-decoration: none;
	font-weight: 700;
}

.sabine-be-pro-checkout-table .product-attributes {
	margin: 0;
	font-size: 0.75rem;
	color: var(--gris);
	display: block;
}

/* Prix remisés */
.sabine-be-pro-checkout-table td.col-price del,
.sabine-be-pro-checkout-table td.col-total del {
	color: var(--gris);
	font-size: 0.8em;
	margin-right: 5px;
}

.sabine-be-pro-checkout-table td.col-price ins,
.sabine-be-pro-checkout-table td.col-total ins {
	text-decoration: none;
	font-weight: 700;
}

.sabine-be-pro-checkout-table td.col-price .discount-badge {
	color: var(--rouge);
	font-weight: 700;
	font-size: 0.8rem;
	margin-left: 5px;
	background: none;
	padding: 0;
	border: none;
}

.woocommerce-Price-currencySymbol {
	margin-left: 3px;
}

/* ==========================================================================
   TOTAUX
   ========================================================================== */

.sabine-be-pro-checkout-totals {
	margin-left: auto;
	max-width: 350px;
	background: var(--gris-clair);
	padding: 25px;
	margin-top: 20px;
}

.sabine-be-pro-checkout-totals-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 12px;
	font-size: 0.85rem;
}

.sabine-be-pro-checkout-totals-row .label {
	color: var(--gris);
}

.sabine-be-pro-checkout-totals-row .value {
	font-weight: 500;
	color: var(--texte);
}

.sabine-be-pro-checkout-totals-row.discount .value {
	color: var(--rouge);
}

.sabine-be-pro-checkout-totals-row.tax {
	font-size: 0.85rem;
}

.sabine-be-pro-checkout-totals-row.total {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid var(--noir);
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--noir);
	margin-bottom: 0;
}

.sabine-be-pro-checkout-totals-row.total .label,
.sabine-be-pro-checkout-totals-row.total .value {
	font-weight: 700;
	color: var(--noir);
}

/* ==========================================================================
   ACTIONS
   ========================================================================== */

.sabine-be-pro-checkout-actions {
	margin-top: 60px;
	padding-top: 40px;
	border-top: 1px solid var(--border);
	display: flex;
	justify-content: flex-end;
}

.sabine-be-pro-checkout-submit {
	display: inline-block;
	text-align: center;
	padding: 14px 40px;
	font-weight: 700;
	font-size: 12px;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s;
	border: 1px solid var(--texte);
	box-sizing: border-box;
	background: var(--texte);
	color: var(--blanc);
}

.sabine-be-pro-checkout-submit:hover {
	background: var(--rouge);
	border-color: var(--rouge);
	color: var(--blanc);
}

.sabine-be-pro-checkout-submit svg {
	display: inline-block;
	vertical-align: middle;
	margin-left: 8px;
}

.sabine-be-pro-checkout-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.sabine-be-pro-checkout-submit.loading {
	position: relative;
	color: transparent;
}

.sabine-be-pro-checkout-submit.loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid var(--blanc);
	border-top-color: transparent;
	border-radius: 50%;
	animation: sabine-spin 0.8s linear infinite;
}

@keyframes sabine-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ==========================================================================
   ÉTATS DE SUCCÈS
   ========================================================================== */

.sabine-be-pro-checkout-success {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 100px 40px;
	border: 1px solid var(--border);
	margin: 40px 0;
	position: relative;
}

/* Signature sabinebe : petit carré rouge sur la bordure haute */
.sabine-be-pro-checkout-success::before {
	content: '';
	width: 8px;
	height: 8px;
	background: var(--rouge);
	position: absolute;
	top: -4px;
	left: 50%;
	transform: translateX(-50%);
}

.sabine-be-pro-checkout-success-icon {
	display: flex;
	justify-content: center;
	color: var(--rouge);
	margin-bottom: 30px;
}

.sabine-be-pro-checkout-success h3 {
	margin: 0 0 15px;
	font-size: 1.5rem;
	font-weight: 300;
	letter-spacing: 2px;
	color: var(--noir);
}

.sabine-be-pro-checkout-success p {
	margin: 0 0 50px;
	font-size: 1rem;
	color: var(--gris);
	font-weight: 300;
}

.sabine-be-pro-checkout-success-actions {
	display: flex;
	justify-content: center;
	gap: 20px;
}

.sabine-be-pro-checkout-success-actions a {
	padding: 16px 40px;
	font-size: 0.75rem;
	letter-spacing: 2px;
	text-decoration: none;
	font-weight: 700;
	transition: all 0.3s;
	display: inline-block;
}

.sabine-be-pro-checkout-success-actions .view-order {
	background: transparent;
	color: var(--noir);
	border: 1px solid var(--noir);
}

.sabine-be-pro-checkout-success-actions .view-order:hover {
	color: var(--rouge);
	border-color: var(--rouge);
	background: transparent;
}

.sabine-be-pro-checkout-success-actions .continue-shopping {
	background: transparent;
	color: var(--noir);
	border: 1px solid var(--border);
}

.sabine-be-pro-checkout-success-actions .continue-shopping:hover {
	border-color: var(--noir);
}

/* ==========================================================================
   RESPONSIVE PRINCIPAL
   ========================================================================== */

@media (max-width: 768px) {
	.sabine-be-pro-checkout-actions {
		margin-top: 40px;
		padding-top: 30px;
	}

	.sabine-be-pro-checkout-table th,
	.sabine-be-pro-checkout-table td {
		padding: 10px 5px;
		font-size: 0.8rem;
	}

	.sabine-be-pro-checkout-table .col-product {
		width: 40%;
	}

	.sabine-be-pro-checkout-table .col-price {
		width: 20%;
	}

	.sabine-be-pro-checkout-table .col-quantity {
		width: 15%;
	}

	.sabine-be-pro-checkout-table .col-total {
		width: 25%;
	}

	.sabine-be-pro-checkout-totals {
		max-width: 100%;
	}

	.sabine-be-pro-checkout-success {
		padding: 40px 20px;
		margin: 20px 0 0 0;
	}

	.sabine-be-pro-checkout-success-actions {
		flex-direction: column;
		gap: 15px;
	}

	.sabine-be-pro-checkout-success-actions a {
		width: 100%;
		box-sizing: border-box;
		text-align: center;
	}
}

@media (max-width: 480px) {
	/* Sur très petits écrans, masquer la colonne prix */
	.sabine-be-pro-checkout-table .col-price {
		display: none;
	}

	.sabine-be-pro-checkout-table .col-product {
		width: 50%;
	}

	.sabine-be-pro-checkout-table .col-quantity {
		width: 20%;
	}

	.sabine-be-pro-checkout-table .col-total {
		width: 30%;
	}
}

/* ==========================================================================
   ACTIONS GLOBALES CHECKOUT (Valider toutes les commandes)
   ========================================================================== */

.sabine-be-pro-checkout-global-actions {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 80px;
	padding-top: 40px;
	border-top: 2px solid var(--noir);
}

/* ==========================================================================
   ACTIONS GLOBALES PANIER (au cas où le CSS panier ne serait pas chargé)
   ========================================================================== */

.sabine-be-pro-cart-global-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 40px 0;
	margin-top: 40px;
	border-top: 2px solid var(--noir);
}

.sabine-be-pro-continue-shopping-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--noir);
	font-weight: 700;
	font-size: 13px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: color 0.2s;
}

.sabine-be-pro-continue-shopping-btn:hover {
	color: var(--rouge);
	text-decoration: none;
}

.sabine-be-pro-continue-shopping-btn svg {
	flex-shrink: 0;
}

.sabine-be-pro-validate-all-orders-btn {
	display: inline-flex;
	align-items: center;
	gap: 20px;
	padding: 18px 40px;
	background: var(--texte);
	color: var(--blanc);
	border: 1px solid var(--texte);
	font-weight: 800;
	font-size: 14px;
	letter-spacing: 1px;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s;
}

.sabine-be-pro-validate-all-orders-btn:hover {
	background: var(--rouge);
	border-color: var(--rouge);
	color: var(--blanc);
}

.sabine-be-pro-validate-all-orders-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.sabine-be-pro-validate-all-orders-btn.loading {
	position: relative;
	color: transparent;
}

.sabine-be-pro-validate-all-orders-btn.loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid var(--blanc);
	border-top-color: transparent;
	border-radius: 50%;
	animation: sabine-spin 0.8s linear infinite;
}

.sabine-be-pro-validate-all-orders-btn svg {
	flex-shrink: 0;
}

@media (max-width: 768px) {
	.sabine-be-pro-cart-global-actions {
		flex-direction: column;
		gap: 12px;
	}

	.sabine-be-pro-cart-global-actions .sabine-be-pro-continue-shopping-btn,
	.sabine-be-pro-cart-global-actions .sabine-be-pro-validate-all-orders-btn {
		width: 100%;
	}
}

/* ==========================================================================
   FORMULAIRES D'ADRESSES ÉDITABLES (commandes "self")
   ========================================================================== */

.sabine-be-pro-checkout-address-editable {
	padding: 0;
}

.sabine-be-pro-checkout-address-form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.sabine-be-pro-checkout-address-form .form-row {
	flex: 1 1 100%;
}

.sabine-be-pro-checkout-address-form .form-row-half {
	flex: 1 1 calc(50% - 6px);
}

.sabine-be-pro-checkout-address-form label {
	display: block;
	font-size: 0.7rem;
	font-weight: normal;
	margin-bottom: 8px;
	color: var(--gris);
	letter-spacing: 1px;
}

.sabine-be-pro-checkout-address-form input[type="text"],
.sabine-be-pro-checkout-address-form input[type="email"],
.sabine-be-pro-checkout-address-form input[type="tel"],
.sabine-be-pro-checkout-address-form select {
	width: 100%;
	padding: 10px 0 !important;
	border: none !important;
	border-bottom: 1px solid var(--border) !important;
	border-radius: 0 !important;
	font-size: 0.9rem;
	background: transparent !important;
	color: var(--texte);
	box-shadow: none !important;
	transition: border-color 0.3s;
}

.sabine-be-pro-checkout-address-form input:focus,
.sabine-be-pro-checkout-address-form select:focus {
	outline: none;
	border-bottom-color: var(--rouge) !important;
	box-shadow: none !important;
}

/* En-tête adresse de livraison avec checkbox à droite */
.sabine-be-pro-checkout-address-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 15px;
}

.sabine-be-pro-checkout-address-header h3 {
	margin: 0;
}

/* Checkbox "Identique à l'adresse de facturation" */
.sabine-be-pro-checkout-same-address-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 0.7rem;
	font-weight: normal;
	line-height: 1;
	color: var(--gris);
	letter-spacing: 0.5px;
}

.sabine-be-pro-checkout-same-address-label input[type="checkbox"] {
	width: 16px;
	height: 16px;
	cursor: pointer;
}

/* Ancien style (compatibilité) */
.sabine-be-pro-checkout-same-address {
	padding: 10px 0;
	margin-bottom: 10px;
}

.sabine-be-pro-checkout-same-address label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 0.85rem;
	font-weight: normal;
}

.sabine-be-pro-checkout-same-address input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
}

/* Style pour l'input de région/état texte */
.sabine-be-pro-state-input {
	width: 100%;
	padding: 10px 0;
	border: none;
	border-bottom: 1px solid var(--border);
	font-size: 0.9rem;
	background: transparent;
	color: var(--texte);
	transition: border-color 0.3s;
}

.sabine-be-pro-state-input:focus {
	outline: none;
	border-bottom-color: var(--rouge);
}

/* Classes de formulaire (utilisées dans checkout customer éditable) */
.sabine-be-pro-checkout-address-form .sabine-be-pro-form-row {
	flex: 1 1 100%;
	display: flex;
	gap: 12px;
}

.sabine-be-pro-checkout-address-form .sabine-be-pro-form-row-half {
	display: flex;
	gap: 12px;
}

.sabine-be-pro-checkout-address-form .sabine-be-pro-form-row-half .sabine-be-pro-form-field {
	flex: 1 1 calc(50% - 6px);
}

.sabine-be-pro-checkout-address-form .sabine-be-pro-form-field {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.sabine-be-pro-checkout-address-form .sabine-be-pro-form-field label {
	display: block;
	font-size: 0.7rem;
	font-weight: normal;
	margin-bottom: 8px;
	color: var(--gris);
	letter-spacing: 1px;
}

.sabine-be-pro-checkout-address-form .sabine-be-pro-form-field label .required {
	color: var(--rouge);
}

/* Checkout avec adresse unique (masquage adresse livraison) */
.sabine-be-pro-checkout-addresses-section.single-address {
	grid-template-columns: 1fr;
}

/* Responsive formulaires */
@media (max-width: 768px) {
	.sabine-be-pro-checkout-address-form .form-row-half {
		flex: 1 1 100%;
	}

	.sabine-be-pro-checkout-address-form .sabine-be-pro-form-row-half {
		flex-direction: column;
	}

	.sabine-be-pro-checkout-address-form .sabine-be-pro-form-row-half .sabine-be-pro-form-field {
		flex: 1 1 100%;
	}
}

/* ==========================================================================
   ERREURS DE VALIDATION
   ========================================================================== */

/* Banner d'erreur global */
.sabine-be-pro-checkout-error-banner {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
	color: #fff;
	padding: 20px 25px;
	margin-bottom: 25px;
	animation: shake 0.5s ease-in-out;
	position: relative;
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
	20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.sabine-be-pro-checkout-error-banner .sabine-be-pro-error-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
}

.sabine-be-pro-checkout-error-banner .sabine-be-pro-error-icon svg {
	width: 28px;
	height: 28px;
	stroke: #fff;
}

.sabine-be-pro-checkout-error-banner .sabine-be-pro-error-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.sabine-be-pro-checkout-error-banner .sabine-be-pro-error-content strong {
	font-size: 16px;
	font-weight: 600;
	display: block;
}

.sabine-be-pro-checkout-error-banner .sabine-be-pro-error-content span {
	font-size: 14px;
	opacity: 0.95;
	line-height: 1.5;
}

.sabine-be-pro-checkout-error-banner .sabine-be-pro-error-close {
	position: absolute;
	top: 10px;
	right: 15px;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sabine-be-pro-checkout-error-banner .sabine-be-pro-error-close:hover {
	opacity: 1;
}

/* ==========================================================================
   CHAMP DATE DE LIVRAISON SOUHAITÉE (3 segments)
   ========================================================================== */

.sabine-be-pro-date-fields {
	display: flex;
	align-items: center;
	gap: 8px;
}

.sabine-be-pro-date-fields:focus-within {
	/* pas de box-shadow, le underline suffit */
}

.sabine-be-pro-date-segment {
	width: 50px;
	text-align: center;
	border: none !important;
	border-bottom: 1px solid var(--border) !important;
	padding: 8px 0 !important;
	font-family: inherit;
	font-size: 0.9rem;
	color: var(--texte) !important;
	background: transparent !important;
	outline: none;
	transition: border-color 0.3s;
}

.sabine-be-pro-date-segment:focus {
	border-bottom-color: var(--rouge) !important;
}

.sabine-be-pro-date-segment.sabine-be-pro-date-year {
	width: 80px;
}

.sabine-be-pro-date-segment::placeholder {
	color: var(--gris);
	opacity: 0.6;
}

.sabine-be-pro-date-separator {
	color: var(--gris);
	font-size: 0.9rem;
	user-select: none;
}

/* État invalide pour le conteneur de date */
.sabine-be-pro-date-fields.sabine-be-pro-field-invalid .sabine-be-pro-date-segment {
	border-bottom-color: #dc3545 !important;
}

/* Responsive */
@media (max-width: 480px) {
	.sabine-be-pro-date-segment {
		width: 40px;
		font-size: 0.85rem;
	}

	.sabine-be-pro-date-segment.sabine-be-pro-date-year {
		width: 65px;
	}
}

/* Champs invalides */
.sabine-be-pro-field-invalid {
	border-bottom-color: #dc3545 !important;
}

.sabine-be-pro-field-invalid:focus {
	border-bottom-color: #dc3545 !important;
}

/* Message d'erreur sous le champ */
.sabine-be-pro-field-error {
	display: block;
	color: #dc3545;
	font-size: 12px;
	font-weight: 500;
	margin-top: 6px;
	padding-left: 2px;
	animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive pour les erreurs */
@media (max-width: 768px) {
	.sabine-be-pro-checkout-error-banner {
		flex-direction: column;
		text-align: center;
		padding: 20px;
	}

	.sabine-be-pro-checkout-error-banner .sabine-be-pro-error-icon {
		margin: 0 auto 10px;
	}

	.sabine-be-pro-checkout-error-banner .sabine-be-pro-error-content {
		align-items: center;
	}

	.sabine-be-pro-checkout-error-banner .sabine-be-pro-error-close {
		top: 5px;
		right: 10px;
	}
}
