/*
Theme Name: JPC Labs — Blocksy enfant
Theme URI: https://labs-boutique.sas-cis.com/
Description: Thème enfant de Blocksy pour JPC Labs. Il impose l’authentification avant tout achat Easy Digital Downloads.
Author: JPC Publications
Template: blocksy
Version: 1.7.6
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: jpc-labs-blocksy-child
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Accueil boutique ------------------------------------------------------- */

/* Neutralise l'espace Blocksy uniquement autour du shortcode d'accueil. */
body:has(.jpc-shop-home),
body.jpc-boutique-home-page {
	--content-vertical-spacing: 0px;
}

/* Masque l'en-tête Blocksy sur l'accueil boutique uniquement. */
body.jpc-boutique-home-page #header {
	display: none !important;
}

body:has(.jpc-shop-home) .site-main,
body:has(.jpc-shop-home) .ct-container-full,
body:has(.jpc-shop-home) .entry-content,
body.jpc-boutique-home-page .site-main,
body.jpc-boutique-home-page .ct-container-full,
body.jpc-boutique-home-page .entry-content {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

body:has(.jpc-shop-home) .hero-section,
body:has(.jpc-shop-home) .entry-header,
body.jpc-boutique-home-page .hero-section,
body.jpc-boutique-home-page .entry-header {
	display: none !important;
}

/* Commande --------------------------------------------------------------- */

.edd-checkout .entry-header {
	max-width: 940px;
	margin-inline: auto;
}

/* Fiche produit : formulaire serveur stable (version 1.5.2) -------------- */

body.single-download .edd_download_purchase_form {
	display: none !important;
}

body.single-download .jpc-single-purchase-form {
	margin-top: 1.15rem;
}

body.single-download .jpc-single-purchase-form .jpc-product-buybar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.7rem;
}

body.single-download .jpc-single-purchase-form .jpc-quantity-control {
	display: inline-flex;
	align-items: stretch;
	margin: 0;
}

body.single-download .jpc-single-purchase-form .jpc-quantity-button,
body.single-download .jpc-single-purchase-form .edd-item-quantity {
	height: 42px;
}

body.single-download .jpc-single-purchase-form .jpc-quantity-button {
	width: 38px;
	padding: 0;
	border: 1px solid #b9c7d2;
	background: #f5f8fa;
	color: #183246;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1;
}

body.single-download .jpc-single-purchase-form .jpc-quantity-minus {
	border-radius: 7px 0 0 7px;
}

body.single-download .jpc-single-purchase-form .jpc-quantity-plus {
	border-radius: 0 7px 7px 0;
}

body.single-download .jpc-single-purchase-form .edd-item-quantity {
	width: 54px;
	margin: 0;
	padding: 0.35rem;
	border-block: 1px solid #b9c7d2;
	border-inline: 0;
	border-radius: 0;
	text-align: center;
	font-weight: 700;
}

body.single-download .jpc-single-purchase-form .jpc-single-add-to-cart {
	min-height: 42px;
	margin: 0;
	padding: 0.65rem 1rem;
	border-radius: 7px;
	background: #176aa5;
	color: #fff;
	font-weight: 700;
}

.edd-checkout .entry-title {
	margin-bottom: 1.5rem;
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	letter-spacing: -0.035em;
}

.edd-checkout .edd-blocks__checkout {
	display: grid;
	gap: 1.5rem;
	max-width: 940px;
	margin-inline: auto;
}

.edd-checkout .edd-blocks__cart,
.edd-checkout .edd-blocks__purchase-form {
	position: relative;
	overflow: hidden;
	padding: clamp(1.1rem, 3vw, 2rem);
	border: 1px solid rgba(20, 36, 55, 0.16);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 18px 45px rgba(20, 36, 55, 0.08);
}

.edd-checkout .jpc-checkout-section-title {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin: 0 0 1.25rem;
	font-size: clamp(1.25rem, 3vw, 1.55rem);
	font-weight: 750;
	letter-spacing: -0.02em;
}

.edd-checkout .jpc-checkout-section-title::before {
	display: inline-grid;
	place-items: center;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: rgba(40, 114, 250, 0.1);
	color: var(--theme-palette-color-1, #2872fa);
	font-size: 1rem;
	font-weight: 800;
}

.edd-checkout .edd-blocks__cart .jpc-checkout-section-title::before {
	content: "1";
}

.edd-checkout .edd-blocks__purchase-form .jpc-checkout-section-title::before {
	content: "2";
}

/* Panier ----------------------------------------------------------------- */

.edd-checkout #edd_checkout_cart {
	overflow: hidden;
	border: 1px solid rgba(20, 36, 55, 0.12);
	border-radius: 12px;
	background: #fff;
}

.edd-checkout .edd-blocks-cart__row {
	padding: 0.9rem 1rem;
}

.edd-checkout .edd-blocks-cart__row-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(150px, 230px);
	gap: 1rem;
	border: 0;
	background: #172534;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.065em;
	text-transform: uppercase;
}

.edd-checkout .edd-blocks-cart__row-header .edd_cart_item_price {
	text-align: right;
}

.edd-checkout .edd-blocks-cart__row-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(150px, 230px);
	align-items: center;
	gap: 1rem;
	min-height: 94px;
	border-bottom: 1px solid rgba(20, 36, 55, 0.1);
}

.edd-checkout .edd_checkout_cart_item_title {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
}

.edd-checkout .edd_cart_item_image {
	flex: 0 0 62px;
	width: 62px;
	height: 62px;
	overflow: hidden;
	border: 1px solid rgba(20, 36, 55, 0.12);
	border-radius: 11px;
	background: #f3f6f9;
}

.edd-checkout .edd_cart_item_image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.edd-checkout .edd-blocks-cart__row-item > .edd_cart_item_price {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.55rem;
	padding-right: 0;
	color: #26384a;
	font-weight: 650;
	text-align: right;
}

.edd-checkout .edd-blocks-cart__row-item > .edd_cart_item_price > .edd_cart_actions {
	position: static;
	order: -1;
	flex: 0 0 auto;
	transform: none;
}

.edd-checkout .edd_cart_remove_item_btn {
	position: relative;
	display: block;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(188, 45, 45, 0.08);
	color: #a42828;
	text-decoration: none;
}

.edd-checkout .edd_cart_remove_item_btn::before,
.edd-checkout .edd_cart_remove_item_btn::after {
	content: "";
	position: absolute;
	top: 13px;
	left: 7px;
	width: 14px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.edd-checkout .edd_cart_remove_item_btn::before { transform: rotate(45deg); }
.edd-checkout .edd_cart_remove_item_btn::after { transform: rotate(-45deg); }

.edd-checkout .edd_cart_footer_row {
	display: flex;
	justify-content: flex-end;
	border: 0;
	background: #f6f8fa;
}

body.edd-checkout .edd_cart_footer_row > div {
	display: grid;
	flex: 0 0 auto;
	grid-template-columns: 105px 95px;
	align-items: baseline;
	justify-content: end;
	column-gap: 0.7rem;
	width: auto;
	min-width: 0;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

body.edd-checkout .jpc-cart-summary-label,
body.edd-checkout .edd_cart_subtotal_amount,
body.edd-checkout .edd_cart_tax_amount,
body.edd-checkout .edd_cart_amount {
	display: block;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.edd-checkout .edd_cart_subtotal_row {
	padding-top: 1.15rem;
	color: #42566a;
}

.edd-checkout .edd_cart_tax_row {
	color: #42566a;
}

.edd-checkout .edd_cart_footer_row:last-child {
	padding-block: 1rem 1.15rem;
	border-top: 1px solid rgba(40, 114, 250, 0.18);
	background: rgba(40, 114, 250, 0.075);
}

.edd-checkout .edd_cart_total {
	align-items: baseline;
	color: #172534;
	font-size: 1.08rem;
	font-weight: 800;
}

.edd-checkout .edd_cart_amount {
	color: var(--theme-palette-color-1, #2872fa);
	font-size: clamp(1.35rem, 4vw, 1.75rem);
	font-weight: 850;
	letter-spacing: -0.035em;
}

.edd-checkout .jpc-vat-summary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	margin-top: 1rem;
}

.edd-checkout .jpc-vat-summary__item {
	padding: 0.85rem 1rem;
	border: 1px solid rgba(20, 36, 55, 0.1);
	border-radius: 10px;
	background: #f8fafc;
}

.edd-checkout .jpc-vat-summary__label {
	display: block;
	margin-bottom: 0.2rem;
	color: #65778a;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.edd-checkout .jpc-vat-summary__value {
	display: block;
	color: #172534;
	font-size: 1.05rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.edd-checkout .jpc-vat-summary__item--total {
	border-color: rgba(40, 114, 250, 0.22);
	background: rgba(40, 114, 250, 0.075);
}

.edd-checkout .jpc-vat-summary__item--total .jpc-vat-summary__value {
	color: var(--theme-palette-color-1, #2872fa);
}

.edd-checkout .edd-blocks-form {
	gap: 1rem;
}

.edd-checkout .edd-blocks-form__group {
	margin-bottom: 0.75rem;
}

.edd-checkout .edd-blocks-form input[type="text"],
.edd-checkout .edd-blocks-form input[type="email"],
.edd-checkout .edd-blocks-form input[type="password"],
.edd-checkout .edd-blocks-form input[type="tel"],
.edd-checkout .edd-blocks-form select {
	min-height: 40px;
	padding: 7px 11px;
	font-size: 0.95rem;
	border-radius: 7px;
}

.edd-checkout .edd-blocks-form legend {
	margin-bottom: 1rem;
	font-size: 1.15rem;
	font-weight: 700;
}

/* L’adresse e-mail sert d’identifiant : le champ EDD redondant reste caché. */
.jpc-email-login-field {
	display: none !important;
}

.jpc-account-required {
	margin: 0 0 1.5rem;
	padding: 1.15rem;
	border: 1px solid rgba(40, 114, 250, 0.2);
	border-radius: 10px;
	background: rgba(40, 114, 250, 0.06);
}

.jpc-account-required > p {
	margin: 0 0 1rem;
}

.jpc-account-tabs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.jpc-account-tab {
	min-height: 44px;
	border: 1px solid var(--theme-palette-color-1, #2872fa);
	border-radius: 8px;
	background: #fff;
	color: var(--theme-palette-color-1, #2872fa);
	font-weight: 700;
	cursor: pointer;
}

.jpc-account-tab.is-active {
	background: var(--theme-palette-color-1, #2872fa);
	color: #fff;
}

.jpc-account-panel[hidden],
#edd_purchase_form.jpc-registration-panel[hidden] {
	display: none !important;
}

body:not(.logged-in).edd-checkout #edd_purchase_form {
	display: none !important;
}

.jpc-register-panel[hidden] {
	display: none !important;
}

.jpc-register-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.8rem 1rem;
	margin-top: 1rem;
}

.jpc-register-form p {
	display: grid;
	gap: 0.3rem;
	margin: 0;
}

.jpc-register-form .jpc-register-wide {
	grid-column: 1 / -1;
}

.jpc-register-password,
.jpc-register-password-confirm {
	grid-row: auto;
}

.jpc-register-form label {
	font-size: 0.82rem;
	font-weight: 700;
}

.jpc-register-form input,
.jpc-register-form select {
	width: 100%;
	min-height: 38px;
	padding: 6px 9px;
	border: 1px solid #cbd5dc;
	border-radius: 6px;
	background: #fff;
}

.jpc-register-submit {
	justify-items: start;
	padding-top: 0.25rem;
}

.jpc-register-privacy {
	margin-top: 0.15rem !important;
}

.jpc-register-privacy label {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	align-items: start;
	gap: 0.6rem;
	font-weight: 500;
	line-height: 1.45;
	cursor: pointer;
}

.jpc-register-privacy input[type="checkbox"] {
	width: 17px;
	height: 17px;
	min-height: 0;
	margin: 0.15rem 0 0;
	accent-color: var(--jpc-shop-accent, #286da8);
}

.jpc-register-privacy-link {
	display: inline-block;
	margin: 0.35rem 0 0 28px;
	color: var(--jpc-shop-accent, #286da8);
	font-size: 0.82rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

body.edd-checkout #edd-privacy-policy-agreement {
	display: none !important;
}

.jpc-account-notice {
	margin: 0 0 1rem;
	padding: 0.75rem 0.9rem;
	border: 1px solid #b8cad8;
	border-radius: 7px;
	background: #f2f7fa;
}

.jpc-account-notice.is-success {
	border-color: #87b89a;
	background: #eef8f1;
	color: #245d38;
}

.jpc-account-notice.is-error {
	border-color: #d5a3a3;
	background: #fff3f3;
	color: #8c2929;
}

.jpc-login-panel {
	padding-top: 0.25rem;
}

.jpc-login-panel form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem 1rem;
	margin: 0;
}

.jpc-login-panel form > p {
	margin: 0;
}

.jpc-login-panel .login-remember,
.jpc-login-panel .login-submit {
	grid-column: 1 / -1;
}

.jpc-login-panel input[type="text"],
.jpc-login-panel input[type="password"] {
	width: 100%;
	min-height: 40px;
	padding: 7px 11px;
	border: 1px solid rgba(20, 36, 55, 0.25);
	border-radius: 7px;
}

.jpc-payment-heading {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
	text-align: center;
}

.jpc-payment-note {
	margin: 0.25rem 0 0.9rem;
	font-size: 0.92rem;
	text-align: center;
	opacity: 0.78;
}

body.edd-checkout .jpc-paypal-payment-box {
	display: block;
	grid-column: 1 / -1;
	justify-self: center;
	width: 100%;
	max-width: 620px;
	margin: 1rem auto 0 !important;
	padding: clamp(1rem, 3vw, 1.35rem);
	box-sizing: border-box;
	border: 1px solid #c8d6e1;
	border-radius: 10px;
	background: linear-gradient(180deg, #fbfdff 0%, #f4f8fb 100%);
	box-shadow: 0 6px 18px rgba(29, 52, 72, 0.07);
}

body.edd-checkout .jpc-paypal-payment-box #edd-paypal-container {
	width: min(100%, 480px);
	margin-inline: auto;
}

body.edd-checkout #edd-fastlane-card-container,
body.edd-checkout #edd-paypal-unbranded-card-divider,
body.edd-checkout #edd-paypal-unbranded-card-container {
	display: none !important;
}

body.edd-checkout .jpc-digital-consent {
	margin: 0.75rem 0 1rem;
	padding: 0.8rem 0.9rem;
	border: 1px solid #cbd8e2;
	border-radius: 7px;
	background: #f7fafc;
}

body.edd-checkout .jpc-digital-consent label {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	align-items: start;
	gap: 0.65rem;
	margin: 0;
	color: #34495b;
	font-size: 0.84rem;
	line-height: 1.5;
	cursor: pointer;
}

body.edd-checkout .jpc-digital-consent label + label {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid #dce5eb;
}

body.edd-checkout .jpc-digital-consent input[type="checkbox"] {
	width: 17px;
	height: 17px;
	margin: 0.15rem 0 0;
	accent-color: var(--jpc-shop-accent, #286da8);
}

/* Un seul parcours PayPal : compte PayPal ou carte traitée par PayPal. */
#edd-fastlane-container,
#edd-fastlane-divider,
#edd-paypal-applepay-container,
#edd-paypal-googlepay-container,
#edd-paypal-messages {
	display: none !important;
}

#edd-paypal-container,
#edd-paypal-unbranded-card-container {
	max-width: 520px;
	margin-inline: auto;
}

#edd-paypal-unbranded-card-divider {
	margin-block: 1.25rem !important;
}

/* Politique de confidentialité en fenêtre de premier plan. */
.jpc-privacy-backdrop {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(10, 18, 28, 0.72);
	backdrop-filter: blur(3px);
}

#edd-privacy-policy.jpc-privacy-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 99999;
	display: block !important;
	width: min(920px, calc(100vw - 2rem));
	max-height: min(82vh, 760px);
	margin: 0;
	padding: clamp(1.25rem, 3vw, 2rem);
	overflow: auto;
	transform: translate(-50%, -50%);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}

.jpc-privacy-close {
	position: sticky;
	top: 0;
	float: right;
	min-width: 40px;
	min-height: 40px;
	margin: 0 0 0.75rem 1rem;
	border: 0;
	border-radius: 50%;
	background: #17202b;
	color: #fff;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

body.jpc-modal-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.edd-checkout .edd-blocks-cart__row-header {
		display: none;
	}

	.edd-checkout .edd-blocks-cart__row-item {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	.edd-checkout .edd-blocks-cart__row-item > .edd_cart_item_price {
		padding: 0 2rem 0 77px;
		text-align: left;
	}

	.edd-checkout .edd_cart_footer_row > div {
		gap: 1rem;
	}

	.edd-checkout .jpc-vat-summary {
		grid-template-columns: 1fr;
	}

	.jpc-account-tabs,
	.jpc-login-panel form,
	.jpc-register-form {
		grid-template-columns: 1fr;
	}

	.jpc-register-form .jpc-register-wide {
		grid-column: auto;
	}

	.jpc-login-panel .login-remember,
	.jpc-login-panel .login-submit {
		grid-column: auto;
	}
}

/* Catalogue : barre d'achat serveur identique pour tous les produits ----- */

body.page-id-11 .edd-blocks__download .edd-blocks__download-price,
body.page-id-11 .edd-blocks__download .edd_download_purchase_form {
	display: none !important;
}

body.page-id-11 .edd-blocks__download .jpc-catalog-purchase-form {
	width: 100%;
	margin: 0;
}

body.page-id-11 .edd-blocks__download .jpc-product-buybar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.65rem;
	margin: 0;
	padding: 0;
}

body.page-id-11 .edd-blocks__download .jpc-product-price {
	margin: 0;
	font-size: 0.95rem;
}

body.page-id-11 .edd-blocks__download .jpc-product-price__ttc {
	display: inline;
	font-size: 0.82rem;
}

body.page-id-11 .edd-blocks__download .jpc-quantity-control {
	display: inline-flex;
	align-items: center;
	overflow: hidden;
	margin: 0;
	border: 1px solid #cbd5dc;
	border-radius: 6px;
	background: #fff;
}

body.page-id-11 .edd-blocks__download .jpc-quantity-zone {
	display: grid;
	justify-items: center;
	gap: 0.3rem;
}

body.page-id-11 .edd-blocks__download .jpc-quantity-total {
	color: var(--jpc-shop-muted);
	font-size: 0.7rem;
	font-weight: 600;
	line-height: 1.25;
	white-space: nowrap;
}

body.page-id-11 .edd-blocks__download .jpc-catalog-add-to-cart {
	grid-column: 1 / -1;
	justify-self: center;
	min-height: 36px;
	margin: 0 auto;
	white-space: nowrap;
}

body.page-id-11 .edd-blocks__download .edd-item-quantity {
	-moz-appearance: textfield;
	appearance: textfield;
}

body.page-id-11 .edd-blocks__download .edd-item-quantity::-webkit-inner-spin-button,
body.page-id-11 .edd-blocks__download .edd-item-quantity::-webkit-outer-spin-button {
	margin: 0;
	appearance: none;
}

@media (max-width: 640px) {
	body.page-id-11 .edd-blocks__download .jpc-product-price {
		grid-column: 1 / -1;
	}
}

/* Barre d’achat de la fiche produit -------------------------------------- */

body.single-download .edd_download_purchase_form {
	margin-top: 1.35rem;
	padding: 0;
	border: 0;
	background: transparent;
}

body.single-download .jpc-product-buybar {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin-top: 1.2rem;
	padding: 0.85rem;
	border: 1px solid var(--jpc-shop-line);
	border-radius: 8px;
	background: #f7f9fa;
}

body.page-id-11 .jpc-product-buybar {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin-top: 0.2rem;
}

body.page-id-11 .edd-blocks__download:has(.jpc-purchase-ready) .edd-blocks__download-price {
	display: none;
}

body.page-id-11 .jpc-product-price {
	margin-right: auto;
	color: var(--jpc-shop-text);
	font-size: 0.9rem;
	font-weight: 750;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

body.page-id-11 .jpc-product-price__ttc {
	display: block;
	color: var(--jpc-shop-muted);
	font-size: 0.74rem;
	font-weight: 600;
}

body.page-id-11 .edd_download_quantity_wrapper {
	display: inline-flex;
	align-items: center;
	overflow: hidden;
	margin: 0;
	border: 1px solid #cbd5dc;
	border-radius: 6px;
	background: #fff;
}

body.page-id-11 .jpc-quantity-button {
	display: grid;
	place-items: center;
	width: 29px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--jpc-shop-text);
	font-size: 1rem;
	cursor: pointer;
}

body.page-id-11 .edd-item-quantity {
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-right: 1px solid #e1e6ea;
	border-left: 1px solid #e1e6ea;
	border-radius: 0;
	text-align: center;
	appearance: textfield;
}

body.page-id-11 .jpc-product-buybar .edd_purchase_submit_wrapper {
	display: flex;
	align-items: center;
	margin: 0;
}

body.page-id-11 .jpc-product-buybar .edd-add-to-cart.edd-has-js {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	white-space: nowrap;
}

body.page-id-11 .jpc-product-buybar .edd_go_to_checkout,
body.page-id-11 .jpc-product-buybar .edd-no-js,
body.page-id-11 .jpc-product-buybar .edd_purchase_tax_rate {
	display: none !important;
}

body.single-download .jpc-product-price {
	margin-right: auto;
	color: var(--jpc-shop-text);
	font-size: 1rem;
	font-weight: 760;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

body.single-download .jpc-product-price__ttc {
	color: var(--jpc-shop-muted);
	font-size: 0.88rem;
	font-weight: 600;
}

body.single-download .edd_download_quantity_wrapper {
	display: inline-flex;
	align-items: center;
	overflow: hidden;
	margin: 0;
	border: 1px solid #cbd5dc;
	border-radius: 7px;
	background: #fff;
}

body.single-download .jpc-quantity-button {
	display: grid;
	place-items: center;
	width: 34px;
	height: 38px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--jpc-shop-text);
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
}

body.single-download .jpc-quantity-button:hover {
	background: #edf1f4;
}

body.single-download .edd-item-quantity {
	width: 42px;
	height: 38px;
	padding: 0;
	border: 0;
	border-right: 1px solid #e1e6ea;
	border-left: 1px solid #e1e6ea;
	border-radius: 0;
	background: #fff;
	color: var(--jpc-shop-text);
	font-size: 0.92rem;
	font-weight: 700;
	text-align: center;
	appearance: textfield;
}

body.single-download .edd-item-quantity::-webkit-inner-spin-button,
body.single-download .edd-item-quantity::-webkit-outer-spin-button {
	margin: 0;
	appearance: none;
}

body.single-download .jpc-product-buybar .edd_purchase_submit_wrapper {
	display: flex;
	align-items: center;
	margin: 0;
}

body.single-download .jpc-product-buybar .edd-add-to-cart.edd-has-js {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
}

body.single-download .jpc-product-buybar .edd_go_to_checkout,
body.single-download .jpc-product-buybar .edd-no-js,
body.single-download .jpc-product-buybar .edd_purchase_tax_rate {
	display: none !important;
}

@media (max-width: 640px) {
	body.single-download .jpc-product-buybar {
		flex-wrap: wrap;
	}

	body.single-download .jpc-product-price {
		flex: 1 0 100%;
		margin-right: 0;
	}

	body.single-download .jpc-product-buybar .edd_purchase_submit_wrapper {
		flex: 1;
	}

	body.single-download .jpc-product-buybar .edd-add-to-cart.edd-has-js {
		width: 100%;
	}
}

/* Quantité dans le panier : aucun chevauchement avec les totaux. */

body.edd-checkout .edd_cart_item_name > .edd_cart_actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0.5rem 0 0 62px;
	color: var(--jpc-shop-muted);
	font-size: 0.78rem;
}

body.edd-checkout .jpc-cart-unit-price {
	margin-right: 0.2rem;
	color: var(--jpc-shop-text);
	font-size: 0.8rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

body.edd-checkout .jpc-cart-quantity-control {
	display: inline-flex;
	align-items: center;
	overflow: hidden;
	border: 1px solid #cbd5dc;
	border-radius: 6px;
	background: #fff;
}

body.edd-checkout .jpc-cart-quantity-button {
	display: grid;
	place-items: center;
	width: 27px;
	height: 31px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--jpc-shop-text);
	cursor: pointer;
}

body.edd-checkout .jpc-cart-quantity-control .edd-item-quantity {
	width: 36px;
	height: 31px;
	padding: 0;
	border: 0;
	border-right: 1px solid #e1e6ea;
	border-left: 1px solid #e1e6ea;
	border-radius: 0;
	font-size: 0.82rem;
	font-weight: 700;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

body.edd-checkout .jpc-cart-quantity-control .edd-item-quantity::-webkit-inner-spin-button,
body.edd-checkout .jpc-cart-quantity-control .edd-item-quantity::-webkit-outer-spin-button {
	margin: 0;
	appearance: none;
}

body.edd-checkout #edd-save-cart-button {
	display: none;
}

body.edd-checkout .edd-blocks-cart__row-buttons {
	padding-block: 0.5rem;
}

@media (max-width: 640px) {
	body.page-id-11 .jpc-product-buybar {
		flex-wrap: wrap;
	}

	body.page-id-11 .jpc-product-price {
		flex: 1 0 100%;
	}

	body.edd-checkout .edd_cart_item_name > .edd_cart_actions {
		margin-left: 61px;
	}
}

/* Identité boutique sobre et commune ------------------------------------ */

:root {
	--jpc-shop-bg: #edf1f4;
	--jpc-shop-surface: #ffffff;
	--jpc-shop-text: #1d2a36;
	--jpc-shop-muted: #667482;
	--jpc-shop-line: #d8e0e6;
	--jpc-shop-accent: #286da8;
	--jpc-shop-accent-dark: #1f5787;
	--jpc-shop-radius: 10px;
	--jpc-shop-shadow: 0 4px 16px rgba(24, 39, 53, 0.055);
}

body.page-id-11 .site-main,
body.single-download .site-main,
body.edd-checkout .site-main {
	background: var(--jpc-shop-bg);
	color: var(--jpc-shop-text);
}

body.page-id-11 .ct-container-full,
body.single-download .ct-container-full,
body.edd-checkout .ct-container-full {
	padding-block: clamp(1.75rem, 4vw, 3rem);
}

body.page-id-11 .hero-section,
body.single-download .hero-section,
body.edd-checkout .hero-section {
	max-width: 920px;
	margin: 0 auto 1.15rem;
}

body.page-id-11 .page-title,
body.single-download .page-title,
body.edd-checkout .page-title {
	margin: 0;
	color: var(--jpc-shop-text);
	font-size: clamp(1.65rem, 3.5vw, 2.25rem);
	font-weight: 740;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

body.single-download .entry-meta {
	margin-top: 0.6rem;
	color: var(--jpc-shop-muted);
	font-size: 0.82rem;
}

body.single-download .entry-meta .meta-author,
body.single-download .entry-meta .ct-media-container-static {
	display: none;
}

body.page-id-11 .entry-content,
body.single-download .entry-content {
	max-width: 920px;
	margin-inline: auto;
}

/* Catalogue */

body.page-id-11 .edd-blocks__downloads {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
	gap: 1rem;
}

body.page-id-11 .edd-blocks__download {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	margin: 0;
	padding: 0;
	border: 1px solid var(--jpc-shop-line);
	border-radius: var(--jpc-shop-radius);
	background: var(--jpc-shop-surface);
	box-shadow: var(--jpc-shop-shadow);
}

body.page-id-11 .edd-blocks__download-header {
	display: contents;
}

body.page-id-11 .edd-blocks__download-image-link {
	display: block;
	order: 1;
	overflow: hidden;
	border-bottom: 1px solid var(--jpc-shop-line);
	background: #f5f7f9;
	aspect-ratio: 16 / 8.8;
}

body.page-id-11 .edd-blocks__download-image {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

body.page-id-11 .edd-blocks__download-header h3 {
	order: 2;
	margin: 0;
	padding: 1rem 1rem 0.55rem;
	font-size: 1.12rem;
	line-height: 1.35;
}

body.page-id-11 .edd-blocks__download-header h3 a {
	color: var(--jpc-shop-text);
	text-decoration: none;
}

body.page-id-11 .edd-blocks__download-content {
	order: 3;
	padding: 0 1rem;
	color: var(--jpc-shop-muted);
	font-size: 0.91rem;
	line-height: 1.55;
}

body.page-id-11 .edd-blocks__download-content p {
	margin: 0 0 0.8rem;
}

body.page-id-11 .edd-blocks__download-price {
	margin: 0;
	color: var(--jpc-shop-text);
	font-size: 1.12rem;
	font-weight: 750;
}

body.page-id-11 .edd-blocks__download-footer {
	order: 4;
	margin-top: auto;
	padding: 0.8rem 1rem 1rem;
}

/* Fiche produit */

body.single-download .entry-content {
	padding: clamp(1.15rem, 3vw, 2rem);
	border: 1px solid var(--jpc-shop-line);
	border-radius: var(--jpc-shop-radius);
	background: var(--jpc-shop-surface);
	box-shadow: var(--jpc-shop-shadow);
}

body.single-download .entry-content h5,
body.single-download .entry-content h6 {
	margin: 1.25rem 0 0.35rem;
	color: var(--jpc-shop-text);
	font-size: 1rem;
	font-weight: 720;
	line-height: 1.35;
}

body.single-download .entry-content h5:first-child {
	margin-top: 0;
	font-size: 1.15rem;
}

body.single-download .entry-content p {
	margin: 0 0 0.6rem;
	color: #394957;
	font-size: 0.94rem;
	line-height: 1.58;
}

body.single-download .entry-content p:empty {
	display: none;
}

body.single-download .edd_download_purchase_form {
	margin-top: 1.35rem;
	padding: 1rem;
	border-top: 1px solid var(--jpc-shop-line);
	background: #f7f9fa;
}

/* Boutons communs */

body.page-id-11 .edd-submit,
body.single-download .edd-submit,
body.edd-checkout .edd-submit,
body.edd-checkout #wp-submit {
	min-height: 40px;
	padding: 0.62rem 1rem;
	border: 1px solid var(--jpc-shop-accent);
	border-radius: 7px;
	background: var(--jpc-shop-accent);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: none;
}

body.page-id-11 .edd-submit:hover,
body.single-download .edd-submit:hover,
body.edd-checkout .edd-submit:hover,
body.edd-checkout #wp-submit:hover {
	border-color: var(--jpc-shop-accent-dark);
	background: var(--jpc-shop-accent-dark);
	color: #fff;
}

body.page-id-11 .edd_purchase_tax_rate,
body.single-download .edd_purchase_tax_rate {
	display: block;
	margin-top: 0.45rem;
	color: var(--jpc-shop-muted);
	font-size: 0.76rem;
}

/* Commande compacte, alignée sur le catalogue et la fiche */

body.edd-checkout .edd-blocks__checkout {
	gap: 1rem;
	max-width: 920px;
}

body.edd-checkout .edd-blocks__cart,
body.edd-checkout .edd-blocks__purchase-form {
	padding: clamp(1rem, 2.5vw, 1.5rem);
	border-color: var(--jpc-shop-line);
	border-radius: var(--jpc-shop-radius);
	box-shadow: var(--jpc-shop-shadow);
}

body.edd-checkout .jpc-checkout-section-title {
	margin-bottom: 0.9rem;
	font-size: 1.22rem;
}

body.edd-checkout .jpc-checkout-section-title::before {
	width: 29px;
	height: 29px;
	flex-basis: 29px;
	border-radius: 7px;
	background: #e9f1f7;
	color: var(--jpc-shop-accent);
	font-size: 0.82rem;
}

body.edd-checkout #edd_checkout_cart {
	border-color: var(--jpc-shop-line);
	border-radius: 8px;
}

body.edd-checkout .edd-blocks-cart__row-header {
	padding: 0.65rem 0.85rem;
	background: #243746;
	font-size: 0.7rem;
}

body.edd-checkout .edd-blocks-cart__row-item {
	min-height: 76px;
	padding: 0.7rem 0.85rem;
}

body.edd-checkout .edd_cart_item_image {
	width: 48px;
	height: 48px;
	flex-basis: 48px;
	border-radius: 7px;
}

body.edd-checkout .edd_checkout_cart_item_title {
	gap: 0.7rem;
	font-size: 0.9rem;
}

body.edd-checkout .edd_cart_footer_row {
	padding: 0.55rem 0.85rem;
	background: #f7f9fa;
	font-size: 0.88rem;
}

body.edd-checkout .edd_cart_footer_row:last-child {
	padding-block: 0.7rem;
	background: #edf4f9;
}

body.edd-checkout .edd_cart_amount {
	color: var(--jpc-shop-accent);
	font-size: 1.3rem;
}

body.edd-checkout .jpc-vat-summary {
	display: none;
}

body.edd-checkout .jpc-account-required {
	margin-bottom: 1rem;
	padding: 0.9rem;
	border-color: var(--jpc-shop-line);
	border-radius: 8px;
	background: #f7f9fa;
}

body.edd-checkout .jpc-account-required > p {
	margin-bottom: 0.7rem;
	font-size: 0.9rem;
}

body.edd-checkout .jpc-account-tabs {
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

body.edd-checkout .jpc-account-tab {
	min-height: 38px;
	border-color: var(--jpc-shop-accent);
	border-radius: 6px;
	color: var(--jpc-shop-accent);
	font-size: 0.86rem;
}

body.edd-checkout .jpc-account-tab.is-active {
	background: var(--jpc-shop-accent);
	color: #fff;
}

body.edd-checkout .edd-blocks-form {
	gap: 0.7rem;
}

body.edd-checkout .edd-blocks-form__group {
	margin-bottom: 0.45rem;
}

body.edd-checkout .edd-blocks-form legend {
	margin-bottom: 0.75rem;
	font-size: 1rem;
}

body.edd-checkout .edd-blocks-form input[type="text"],
body.edd-checkout .edd-blocks-form input[type="email"],
body.edd-checkout .edd-blocks-form input[type="password"],
body.edd-checkout .edd-blocks-form input[type="tel"],
body.edd-checkout .edd-blocks-form select,
body.edd-checkout .jpc-login-panel input[type="text"],
body.edd-checkout .jpc-login-panel input[type="password"] {
	min-height: 38px;
	padding: 6px 9px;
	border-color: #cbd5dc;
	border-radius: 6px;
	font-size: 0.9rem;
}

body.edd-checkout .edd-description,
body.edd-checkout .edd-required-fields-notice {
	font-size: 0.78rem;
}

@media (max-width: 640px) {
	body.page-id-11 .ct-container-full,
	body.single-download .ct-container-full,
	body.edd-checkout .ct-container-full {
		padding-block: 1.25rem;
	}

	body.page-id-11 .edd-blocks__download-content,
	body.page-id-11 .edd-blocks__download-footer,
	body.page-id-11 .edd-blocks__download-header h3 {
		padding-inline: 0.85rem;
	}

	body.single-download .entry-content,
	body.edd-checkout .edd-blocks__cart,
	body.edd-checkout .edd-blocks__purchase-form {
		border-radius: 8px;
	}

	body.edd-checkout .edd-blocks-cart__row-item > .edd_cart_item_price {
		padding-left: 61px;
	}
}
