/*
 * Polette — WooCommerce : notices, encart 3D Secure et Mon compte (shortcode classique).
 * Chargé sur les pages WooCommerce (functions.php), après style.css.
 * Panier et commande sont des blocs WooCommerce (déjà stylés par Ollie / theme.json) ;
 * Mon compte reste en shortcode classique, stylé ici sous .polette-shop.
 *
 * Le plugin bookings-self-reschedule (.wcbsr*, --wcbsr-*) reste maître de son
 * rendu : aucune règle de ce fichier ne cible ses classes.
 */

.polette-shop {
	--ps-field-border: #9a8f9b;
	--ps-line: var(--wp--preset--color--border-light, #f1c6c2);
	--ps-soft: var(--wp--preset--color--tertiary, #fdf4f2);
	--ps-radius: 6px;
	--ps-field-h: 3rem;
	font-size: var(--wp--preset--font-size--base);
}

/* Clearfix WooCommerce : inutile, et il fausserait les grilles. */
.polette-shop .woocommerce::before,
.polette-shop .woocommerce::after {
	display: none;
}

/* ------------------------------------------------------------------------
 * Encart d'avertissement (3D Secure)
 * --------------------------------------------------------------------- */
.polette-callout {
	margin: 0 0 var(--wp--preset--spacing--medium);
	padding: 1rem 1.25rem;
	background: #fffde0;
	border-left: 4px solid var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	line-height: 1.5;
}

/* ------------------------------------------------------------------------
 * Champs de formulaire (panier, commande, compte)
 * --------------------------------------------------------------------- */
.polette-shop label:not(.wcbsr *) {
	display: block;
	margin: 0 0 0.35rem;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	line-height: 1.4;
}
.polette-shop .required {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}
.polette-shop .optional {
	color: var(--wp--preset--color--secondary);
	font-weight: 400;
}
.polette-shop input[type="text"]:not(.wcbsr *),
.polette-shop input[type="email"]:not(.wcbsr *),
.polette-shop input[type="tel"]:not(.wcbsr *),
.polette-shop input[type="password"]:not(.wcbsr *),
.polette-shop input[type="number"]:not(.wcbsr *),
.polette-shop input[type="search"]:not(.wcbsr *),
.polette-shop textarea:not(.wcbsr *),
.polette-shop select:not(.wcbsr *) {
	box-sizing: border-box;
	width: 100%;
	min-height: var(--ps-field-h);
	padding: 0.7rem 0.9rem;
	border: 1.5px solid var(--ps-field-border);
	border-radius: var(--ps-radius);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--main);
	font-family: var(--wp--preset--font-family--primary);
	font-size: 1rem; /* 16 px : pas de zoom automatique sur iOS */
	line-height: 1.4;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.polette-shop textarea:not(.wcbsr *) {
	min-height: 7rem;
	resize: vertical;
}
.polette-shop input:not(.wcbsr *)::placeholder,
.polette-shop textarea:not(.wcbsr *)::placeholder {
	color: #6f6674;
	opacity: 1;
}
.polette-shop input:hover:not(.wcbsr *),
.polette-shop textarea:hover:not(.wcbsr *),
.polette-shop select:hover:not(.wcbsr *) {
	border-color: var(--wp--preset--color--main);
}
.polette-shop input:focus:not(.wcbsr *),
.polette-shop textarea:focus:not(.wcbsr *),
.polette-shop select:focus:not(.wcbsr *) {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(159, 3, 106, 0.18);
}
.polette-shop .woocommerce-invalid input.input-text,
.polette-shop .woocommerce-invalid select,
.polette-shop .woocommerce-invalid .select2-selection {
	border-color: #b3261e;
}
.polette-shop .woocommerce-validated input.input-text {
	border-color: var(--ps-field-border);
}
.polette-shop .form-row {
	margin: 0 0 1rem;
	padding: 0;
}
.polette-shop .woocommerce-input-wrapper {
	display: block;
}
.polette-shop .clear {
	display: none;
}
.polette-shop input[type="checkbox"]:not(.wcbsr *),
.polette-shop input[type="radio"]:not(.wcbsr *) {
	width: 1.15rem;
	height: 1.15rem;
	margin: 0 0.5rem 0 0;
	accent-color: var(--wp--preset--color--primary);
	vertical-align: -0.2em;
}
.polette-shop label.woocommerce-form__label-for-checkbox:not(.wcbsr *),
.polette-shop label.checkbox:not(.wcbsr *) {
	display: flex;
	align-items: flex-start;
	gap: 0.1rem;
	cursor: pointer;
}
.polette-shop label.woocommerce-form__label-for-checkbox input:not(.wcbsr *),
.polette-shop label.checkbox input:not(.wcbsr *) {
	flex: none;
	margin-top: 0.15rem;
}
/* Mot de passe : œil intégré au champ. */
.polette-shop .password-input {
	display: block;
	position: relative;
}
.polette-shop .password-input input {
	padding-right: 3rem;
}
.polette-shop .show-password-input {
	position: absolute;
	top: 0;
	right: 0;
	width: 3rem;
	height: var(--ps-field-h);
	min-height: 0;
	padding: 0;
	border: 0;
	background-color: transparent;
	cursor: pointer;
	opacity: 0.7;
}
.polette-shop .show-password-input:hover {
	opacity: 1;
}

/* Select2 (pays) : même gabarit que les champs. */
.polette-shop .select2-container--default .select2-selection--single {
	height: var(--ps-field-h);
	border: 1.5px solid var(--ps-field-border);
	border-radius: var(--ps-radius);
	background: var(--wp--preset--color--base);
}
.polette-shop .select2-container--default .select2-selection--single .select2-selection__rendered {
	padding: 0 2.5rem 0 0.9rem;
	line-height: calc(var(--ps-field-h) - 3px);
	color: var(--wp--preset--color--main);
}
.polette-shop .select2-container--default .select2-selection--single .select2-selection__arrow {
	top: 0;
	right: 0.5rem;
	height: 100%;
}
.polette-shop .select2-container--default.select2-container--focus .select2-selection--single,
.polette-shop .select2-container--default.select2-container--open .select2-selection--single {
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px rgba(159, 3, 106, 0.18);
}
body.woocommerce-checkout .select2-dropdown,
body.woocommerce-account .select2-dropdown {
	border: 1.5px solid var(--wp--preset--color--primary);
	border-radius: 6px;
	font-family: var(--wp--preset--font-family--primary);
	overflow: hidden;
}
body.woocommerce-checkout .select2-container--default .select2-results__option--highlighted[aria-selected],
body.woocommerce-checkout .select2-container--default .select2-results__option--highlighted[data-selected],
body.woocommerce-account .select2-container--default .select2-results__option--highlighted[aria-selected],
body.woocommerce-account .select2-container--default .select2-results__option--highlighted[data-selected] {
	background: var(--wp--preset--color--primary);
}

/* ------------------------------------------------------------------------
 * Boutons
 * --------------------------------------------------------------------- */
.polette-shop .button:not(.wcbsr *),
.polette-shop button[type="submit"]:not(.wcbsr *),
.polette-shop input[type="submit"]:not(.wcbsr *) {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--ps-field-h);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
/* Boutons secondaires : contour violet. */
.polette-shop button[name="apply_coupon"],
.polette-shop button[name="update_cart"],
.polette-shop .woocommerce-orders-table .button,
.polette-shop .my_account_bookings .button,
.polette-shop .woocommerce-MyAccount-content .woocommerce-Button,
.polette-shop .woocommerce-address-fields + p .button {
	background: transparent;
	color: var(--wp--preset--color--primary);
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--primary);
}
.polette-shop button[name="apply_coupon"]:hover,
.polette-shop button[name="update_cart"]:hover:not(:disabled),
.polette-shop .woocommerce-orders-table .button:hover,
.polette-shop .my_account_bookings .button:hover,
.polette-shop .woocommerce-MyAccount-content .woocommerce-Button:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}
.polette-shop button[name="update_cart"]:disabled,
.polette-shop button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
/* Boutons principaux (passent devant l'ancien snippet « Notifs Woo » : a.button.wc-forward). */
.polette-shop a.button.wc-forward.checkout-button,
.polette-shop a.button.alt.wc-forward {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}
.polette-shop a.button.wc-forward.checkout-button:hover,
.polette-shop a.button.alt.wc-forward:hover {
	background: var(--wp--preset--color--primary-alt-accent);
	color: var(--wp--preset--color--base);
}
.polette-shop .checkout-button,
.polette-shop #place_order,
.polette-shop button[name="login"],
.polette-shop button[name="register"],
.polette-shop button[name="save_account_details"],
.polette-shop button[name="save_address"] {
	min-height: 3.25rem;
}
.polette-shop .return-to-shop .button {
	margin-top: 0.5rem;
}

/* ------------------------------------------------------------------------
 * Notices WooCommerce (remplacent le snippet « Notifs Woo »)
 * Les sélecteurs commencent par « body » pour passer devant l'ancien snippet
 * et devant wc-blocks.css.
 * --------------------------------------------------------------------- */
body .woocommerce-notices-wrapper {
	margin: 0 0 var(--wp--preset--spacing--medium);
}
body .woocommerce-notices-wrapper:empty {
	margin: 0;
}
body .woocommerce-message,
body .woocommerce-info,
body .woocommerce-error,
body .wc-block-components-notice-banner {
	--ps-notice: #4a5672;
	--ps-notice-bg: #eef1f7;
	box-sizing: border-box;
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 0.75rem;
	width: 100%;
	max-width: 100%;
	margin: 0 0 var(--wp--preset--spacing--medium);
	padding: 0.95rem 1.1rem;
	border-width: 0 0 0 4px;
	border-style: solid;
	border-color: var(--ps-notice);
	border-radius: 0 6px 6px 0;
	background: var(--ps-notice-bg);
	color: var(--wp--preset--color--main);
	font-family: var(--wp--preset--font-family--primary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1.5;
	text-transform: none;
	list-style: none;
}
body .woocommerce-message::before,
body .woocommerce-info::before,
body .woocommerce-error::before {
	display: none;
}
body .woocommerce-message,
body .wc-block-components-notice-banner.is-success {
	--ps-notice: #1f7a45;
	--ps-notice-bg: #e9f6ee;
}
body .woocommerce-error,
body .wc-block-components-notice-banner.is-error {
	--ps-notice: #b3261e;
	--ps-notice-bg: #fdecea;
}
body .woocommerce-info,
body .wc-block-components-notice-banner.is-info {
	--ps-notice: #4a5672;
	--ps-notice-bg: #eef1f7;
}
body .wc-block-components-notice-banner.is-warning {
	--ps-notice: #8a5a00;
	--ps-notice-bg: #fff6dc;
}
body .wc-block-components-notice-banner.is-success,
body .wc-block-components-notice-banner.is-error,
body .wc-block-components-notice-banner.is-info,
body .wc-block-components-notice-banner.is-warning {
	background-color: var(--ps-notice-bg);
	border-color: var(--ps-notice);
	border-width: 0 0 0 4px;
	color: var(--wp--preset--color--main);
}
body .woocommerce-error {
	flex-direction: column;
	gap: 0.25rem;
	padding-left: 1.1rem;
}
body .woocommerce-error li {
	margin: 0;
}
body .wc-block-components-notice-banner[class] > svg {
	flex: none;
	width: 1.5rem;
	height: 1.5rem;
	padding: 3px;
	border-radius: 50%;
	background-color: var(--ps-notice);
	fill: #fff;
	transform: none;
}
body .wc-block-components-notice-banner__content {
	flex: 1 1 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	min-width: 0;
	padding: 0;
	color: inherit;
}
body .woocommerce-message a:not(.button),
body .woocommerce-info a:not(.button),
body .woocommerce-error a:not(.button),
body .wc-block-components-notice-banner a:not(.button) {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
}
body .polette-shop .woocommerce-message .button,
body .polette-shop .woocommerce-info .button,
body .polette-shop .woocommerce-error .button,
body .polette-shop .wc-block-components-notice-banner .button,
body .woocommerce-message .button,
body .wc-block-components-notice-banner .button {
	float: none;
	order: 3;
	margin: 0 0 0 auto;
	min-height: 2.5rem;
	padding: 0.55em 1.1em;
	background: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--base) !important;
	padding: 0.55em 1.1em !important;
	opacity: 1;
	box-shadow: none;
	font-size: var(--wp--preset--font-size--x-small);
	text-decoration: none;
}
body .polette-shop .woocommerce-message .button:hover,
body .polette-shop .woocommerce-info .button:hover,
body .polette-shop .wc-block-components-notice-banner .button:hover,
body .woocommerce-message .button:hover,
body .wc-block-components-notice-banner .button:hover {
	background: var(--wp--preset--color--primary-alt-accent) !important;
	color: var(--wp--preset--color--base) !important;
}

/* Bandeaux « Déjà client ? » / « Vous avez un coupon ? » (commande). */
.polette-shop .woocommerce-form-login-toggle .wc-block-components-notice-banner,
.polette-shop .woocommerce-form-coupon-toggle .wc-block-components-notice-banner {
	margin-bottom: 0.75rem;
}
.polette-shop .woocommerce-form-login-toggle a,
.polette-shop .woocommerce-form-coupon-toggle a {
	color: var(--wp--preset--color--primary);
}
.polette-shop form.woocommerce-form-login,
.polette-shop form.checkout_coupon {
	margin: 0 0 var(--wp--preset--spacing--medium);
	padding: 1.25rem;
	border: 1px solid var(--ps-line);
	border-radius: var(--ps-radius);
	background: var(--ps-soft);
	font-size: var(--wp--preset--font-size--small);
}
.polette-shop form.checkout_coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: flex-end;
}
.polette-shop form.checkout_coupon .form-row {
	margin: 0;
}
.polette-shop form.checkout_coupon .form-row-first {
	flex: 1 1 14rem;
}
.polette-shop form.checkout_coupon .form-row-last {
	flex: none;
}

/* ------------------------------------------------------------------------
 * Tableaux (panier, récapitulatif, comptes) : base commune
 * --------------------------------------------------------------------- */
.polette-shop table.shop_table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
	overflow: visible;
	font-size: var(--wp--preset--font-size--small);
}
.polette-shop table.shop_table th,
.polette-shop table.shop_table td {
	background: transparent;
	padding: 0.9rem 0.75rem;
	border: 0;
	border-bottom: 1px solid var(--ps-line);
	vertical-align: middle;
	text-align: left;
}
.polette-shop table.shop_table thead th {
	padding-top: 0.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--wp--preset--color--main);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.polette-shop table.shop_table a:not(.button) {
	text-decoration: none;
}
.polette-shop table.shop_table a:not(.button):hover {
	text-decoration: underline;
}

/* ------------------------------------------------------------------------
 * Mon compte
 * --------------------------------------------------------------------- */
/* Déconnecté : connexion (et inscription si activée) en cartes. */
.polette-shop #customer_login {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--medium);
	max-width: 100%;
}
.polette-shop #customer_login .u-column1,
.polette-shop #customer_login .u-column2 {
	float: none;
	width: 100%;
	max-width: none;
}
@media (min-width: 760px) {
	.polette-shop #customer_login:has(.u-column2) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
#customer_login form.woocommerce-form-login,
.polette-shop #customer_login form.woocommerce-form-register,
.polette-shop #customer_login form.register,
.polette-shop form.lost_reset_password,
.polette-shop .woocommerce-EditAccountForm,
.polette-shop .woocommerce-address-fields {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}
.polette-shop #customer_login > div {
	padding: 1.75rem;
	border: 1px solid var(--ps-line);
	border-radius: var(--ps-radius);
	background: var(--wp--preset--color--base);
	box-shadow: 0 6px 24px rgba(22, 41, 74, 0.06);
}
.polette-shop #customer_login h2 {
	margin: 0 0 1.25rem;
	font-size: var(--wp--preset--font-size--large);
}
.polette-shop #customer_login form.woocommerce-form-login {
	padding: 0;
	background: transparent;
	border: 0;
}
.polette-shop .woocommerce-form-login__rememberme {
	margin: 0 0 1rem;
}
.polette-shop .woocommerce-form-login__submit {
	display: flex;
	width: 100%;
	margin: 0 0 1rem;
}
.polette-shop .lost_password {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
}
.polette-shop .lost_password a {
	color: var(--wp--preset--color--primary);
}
/* Mot de passe perdu : formulaire centré. */
.woocommerce-account .polette-shop .woocommerce > .woocommerce-ResetPassword,
.woocommerce-account .polette-shop .woocommerce > form.lost_reset_password {
	max-width: 32rem;
	margin: 0 auto;
	padding: 1.75rem;
	border: 1px solid var(--ps-line);
	border-radius: var(--ps-radius);
	background: var(--wp--preset--color--base);
	box-shadow: 0 6px 24px rgba(22, 41, 74, 0.06);
}

/* Connecté : navigation latérale (bureau) / en haut (mobile). */
.polette-shop .woocommerce:has(.woocommerce-MyAccount-navigation) {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--medium);
	align-items: start;
}
.polette-shop .woocommerce:has(.woocommerce-MyAccount-navigation) > .woocommerce-notices-wrapper {
	grid-column: 1 / -1;
	margin: 0;
}
@media (min-width: 860px) {
	.polette-shop .woocommerce:has(.woocommerce-MyAccount-navigation) {
		grid-template-columns: 15rem minmax(0, 1fr);
		column-gap: var(--wp--preset--spacing--large);
	}
	.polette-shop .woocommerce-MyAccount-navigation {
		position: sticky;
		top: 7rem;
	}
}
.polette-shop .woocommerce-MyAccount-navigation,
.polette-shop .woocommerce-MyAccount-content {
	float: none;
	width: 100%;
	margin: 0;
}
.polette-shop .woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.polette-shop .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
}
.polette-shop .woocommerce-MyAccount-navigation li a {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 0.8rem 1rem;
	border-left: 3px solid transparent;
	border-radius: 0 var(--ps-radius) var(--ps-radius) 0;
	color: var(--wp--preset--color--main);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.05em;
	text-decoration: none;
	text-transform: uppercase; /* MON COMPTE, COMMANDES… sans toucher aux libellés */
	transition: background-color 0.15s, color 0.15s;
}
.polette-shop .woocommerce-MyAccount-navigation li a:hover {
	background: var(--wp--preset--color--main-accent);
	text-decoration: none;
}
.polette-shop .woocommerce-MyAccount-navigation li.is-active a {
	border-left-color: var(--wp--preset--color--primary-alt-accent);
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}
/* Onglets inutiles sur ce site (comme avant : téléchargements, cartes cadeaux). */
.polette-shop .woocommerce-MyAccount-navigation-link--downloads,
.polette-shop .woocommerce-MyAccount-navigation-link--giftcards {
	display: none;
}
@media (max-width: 859px) {
	.polette-shop .woocommerce-MyAccount-navigation ul {
		flex-direction: row;
		gap: 0.5rem;
		margin: 0 calc(var(--wp--preset--spacing--medium) * -1);
		padding: 0.1rem var(--wp--preset--spacing--medium) 0.5rem;
		overflow-x: auto;
		scrollbar-width: thin;
	}
	.polette-shop .woocommerce-MyAccount-navigation li {
		flex: none;
	}
	.polette-shop .woocommerce-MyAccount-navigation li a {
		width: auto;
		padding: 0.65rem 1rem;
		border: 1.5px solid var(--ps-line);
		border-radius: 999px;
		white-space: nowrap;
	}
	.polette-shop .woocommerce-MyAccount-navigation li.is-active a {
		border-color: var(--wp--preset--color--primary);
	}
}
.polette-shop .woocommerce-MyAccount-content {
	min-width: 0;
	font-size: var(--wp--preset--font-size--base);
}
.polette-shop .woocommerce-MyAccount-content > p:first-child {
	margin-top: 0;
}
.polette-shop .woocommerce-MyAccount-content a:not(.button) {
	color: var(--wp--preset--color--primary);
}
.polette-shop .woocommerce-MyAccount-content h2,
.polette-shop .woocommerce-MyAccount-content h3,
.polette-shop .woocommerce-MyAccount-content legend {
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
}
.polette-shop .woocommerce-MyAccount-content legend {
	padding: 0;
	font-size: var(--wp--preset--font-size--medium);
}
.polette-shop .woocommerce-MyAccount-content fieldset {
	margin: 1.5rem 0;
	padding: 0;
	border: 0;
}
.polette-shop .woocommerce-MyAccount-content .form-row-first,
.polette-shop .woocommerce-MyAccount-content .form-row-last {
	width: 100%;
	float: none;
}
@media (min-width: 600px) {
	.polette-shop .woocommerce-EditAccountForm,
	.polette-shop .woocommerce-address-fields__field-wrapper {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 1rem;
	}
	.polette-shop .woocommerce-EditAccountForm > *,
	.polette-shop .woocommerce-address-fields__field-wrapper .form-row-wide {
		grid-column: 1 / -1;
	}
	.polette-shop .woocommerce-EditAccountForm > .form-row-first,
	.polette-shop .woocommerce-EditAccountForm > .form-row-last {
		grid-column: auto;
	}
	.polette-shop .woocommerce-address-fields__field-wrapper #billing_postcode_field,
	.polette-shop .woocommerce-address-fields__field-wrapper #billing_city_field,
	.polette-shop .woocommerce-address-fields__field-wrapper #shipping_postcode_field,
	.polette-shop .woocommerce-address-fields__field-wrapper #shipping_city_field {
		grid-column: auto;
	}
}
.polette-shop .woocommerce-address-fields .button,
.polette-shop .woocommerce-EditAccountForm .button {
	margin-top: 0.5rem;
}
/* Adresses : deux cartes. */
.polette-shop .woocommerce-Addresses {
	display: grid;
	gap: var(--wp--preset--spacing--medium);
}
@media (min-width: 700px) {
	.polette-shop .woocommerce-Addresses {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
.polette-shop .woocommerce-Addresses .woocommerce-Address {
	float: none;
	width: 100%;
	padding: 1.25rem;
	border: 1px solid var(--ps-line);
	border-radius: var(--ps-radius);
	background: var(--ps-soft);
}
.polette-shop .woocommerce-Address-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
}
.polette-shop .woocommerce-Address-title h2,
.polette-shop .woocommerce-Address-title h3 {
	margin: 0 0 0.75rem;
	font-size: var(--wp--preset--font-size--medium);
}
.polette-shop .woocommerce-Address address {
	padding: 0;
	border: 0;
}

/* Commandes, réservations : tableaux lisibles. */
.polette-shop .woocommerce-orders-table,
.polette-shop .my_account_bookings {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--small);
}
.polette-shop .woocommerce-orders-table th,
.polette-shop .woocommerce-orders-table td,
.polette-shop .my_account_bookings th,
.polette-shop .my_account_bookings td {
	padding: 0.85rem 0.6rem;
	border: 0;
	border-bottom: 1px solid var(--ps-line);
	text-align: left;
	vertical-align: middle;
}
.polette-shop .woocommerce-orders-table thead th,
.polette-shop .my_account_bookings thead th {
	border-bottom: 2px solid var(--wp--preset--color--main);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.polette-shop .woocommerce-orders-table .button,
.polette-shop .my_account_bookings .button {
	min-height: 2.5rem;
	margin: 0.15rem 0.25rem 0.15rem 0;
	padding: 0.5em 1em;
	font-size: var(--wp--preset--font-size--x-small);
}
@media (max-width: 768px) {
	/* Tableaux de compte : une carte par ligne, libellé devant chaque valeur. */
	.polette-shop .woocommerce-orders-table thead,
	.polette-shop .my_account_bookings thead {
		display: none;
	}
	.polette-shop .woocommerce-orders-table,
	.polette-shop .woocommerce-orders-table tbody,
	.polette-shop .my_account_bookings,
	.polette-shop .my_account_bookings tbody {
		display: block;
	}
	.polette-shop .woocommerce-orders-table tr,
	.polette-shop .my_account_bookings tr {
		display: block;
		margin: 0 0 1rem;
		padding: 0.5rem 1rem;
		border: 1px solid var(--ps-line);
		border-radius: var(--ps-radius);
		background: var(--wp--preset--color--base);
	}
	.polette-shop .woocommerce-orders-table td,
	.polette-shop .my_account_bookings td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		padding: 0.55rem 0;
		text-align: right !important;
	}
	.polette-shop .woocommerce-orders-table td::before,
	.polette-shop .my_account_bookings td::before {
		content: attr(data-title);
		float: none;
		flex: none;
		color: var(--wp--preset--color--secondary);
		font-size: var(--wp--preset--font-size--x-small);
		font-weight: 600;
		text-align: left;
		text-transform: uppercase;
		letter-spacing: 0.04em;
	}
	.polette-shop .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions,
	.polette-shop .my_account_bookings td:last-child {
		flex-wrap: wrap;
		justify-content: flex-start;
		border-bottom: 0;
	}
	.polette-shop .woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions::before {
		display: none;
	}
}
.polette-shop .woocommerce-pagination {
	margin-top: 1rem;
}

/* Fiche d'une commande dans le compte. */
.polette-shop .woocommerce-table--order-details {
	margin-bottom: var(--wp--preset--spacing--medium);
}

/* Message « aucun élément » dans le compte. */
.polette-shop .woocommerce-MyAccount-content .woocommerce-info .woocommerce-Button,
.polette-shop .woocommerce-MyAccount-content .woocommerce-message .woocommerce-Button {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
	.polette-shop *,
	.polette-shop *::before,
	.polette-shop *::after {
		transition-duration: 0.01ms !important;
	}
}
