/**
 * Abonnement floral — se fond dans la palette du thème, comme le reste du tunnel.
 */

.woocommerce-checkout .amry-sub-company,
.single-product .amry-sub-recap {
	--amry-or: var( --theme-palette-color-1, #a8977b );
	--amry-noir: var( --theme-palette-color-4, #111518 );
	--amry-gris: var( --theme-palette-color-6, #f4f4f5 );
	--amry-trait: #e3ded4;
}

/* ------------------------------------------------- Fiche produit : quantité */

.amry-sub-qtylabel {
	display: block;
	margin: 0 0 .4rem;
	font-weight: 500;
	color: var( --theme-palette-color-4, #111518 );
}

.amry-sub-qtylabel small {
	font-weight: 400;
	opacity: .7;
}

.amry-sub-recap {
	margin: 1rem 0;
	padding: .8rem 1rem;
	background: var( --amry-gris, #f4f4f5 );
	border-left: 3px solid var( --amry-or, #a8977b );
	font-size: .98rem;
	line-height: 1.5;
}

.amry-sub-recap:empty { display: none; }

/* ----------------------------------------------------- Checkout : livraisons */

.amry-sub-liv {
	padding: 1.1rem 1.2rem;
	margin-bottom: 1rem;
	border: 1px solid var( --amry-trait, #e3ded4 );
	background: #fff;
	/* Englobe les colonnes flottantes de WooCommerce (form-row-first/last) pour que
	   chaque bloc reste distinct et que le titre ne remonte pas à côté des champs. */
	overflow: hidden;
}

.amry-sub-liv__num {
	clear: both;
	margin: 0 0 .8rem;
	font-weight: 600;
	color: var( --amry-or, #a8977b );
	font-family: "Roboto Slab", Georgia, serif;
}

/* Les deux colonnes date / créneau, côte à côte puis pleine largeur sur mobile. */
.amry-sub-liv .form-row-first,
.amry-sub-liv .form-row-last {
	float: left;
	width: 48%;
	margin: 0;
}

.amry-sub-liv .form-row-last {
	float: right;
}

.amry-sub-liv .amry-sub-hint { clear: both; }

@media ( max-width: 600px ) {
	.amry-sub-liv .form-row-first,
	.amry-sub-liv .form-row-last {
		float: none;
		width: 100%;
		margin-bottom: .8rem;
	}
}

.amry-sub-liv .amry-sub-hint:empty { display: none; }

.amry-sub-hint {
	margin: .4rem 0 0;
	font-size: .9rem;
	color: var( --theme-palette-color-3, #3f4245 );
}

/* --------------------------------------------------------- Checkout : société */

.amry-sub-company {
	margin: 1.2rem 0;
	padding: 1rem 1.1rem;
	background: var( --amry-gris, #f4f4f5 );
}

.amry-sub-company__toggle {
	display: flex;
	align-items: center;
	gap: .5rem;
	margin: 0;
	cursor: pointer;
	font-weight: 400;
}

.amry-sub-company__toggle input { margin: 0; flex: none; }

.amry-sub-company__fields {
	margin-top: 1rem;
}

.amry-sub-company__fields[hidden] { display: none; }
