/* ==========================================================================
   Apex Checkout : panier et validation de commande
   Habillage des blocs WooCommerce (fonctionnement inchangé) + éléments ajoutés.
   Identité du site : graphite, orange Apex, Orbitron + Rajdhani, coins coupés.
   ========================================================================== */

body.apxc-on {
	--ax-o: #ff4d1c;
	--ax-o2: #ff6a40;
	--ax-g: #ffb347;
	--ax-t: #f5f5f5;
	--ax-m: #a3a3ad;
	--ax-bg: #0d0d0f;
	--ax-p: #17171a;
	--ax-p2: #1f1f24;
	--ax-line: #2a2a31;
	--ax-ok: #4ade80;
	--ax-display: 'Orbitron', 'Rajdhani', system-ui, sans-serif;
	--ax-body: 'Rajdhani', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--ax-cut: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

/* Le titre de page du thème est remplacé par celui de l'étape. */
body.apxc-on .wp-block-post-title,
body.apxc-on main h1:not(.apxc-title),
body.apxc-on .wp-block-woocommerce-page-title {
	display: none !important;
}

.apxc {
	max-width: 1320px !important;
	width: 100%;
	margin-left: auto !important;
	margin-right: auto !important;
	margin-bottom: clamp(48px, 7vw, 96px) !important;
	color: var(--ax-t);
	font-family: var(--ax-body);
	font-size: 17px;
}

.apxc *,
.apxc *::before,
.apxc *::after {
	box-sizing: border-box;
}

.apxc [hidden] {
	display: none !important;
}

.apxc-preview {
	margin: 0 0 16px;
	padding: 8px 14px;
	background: rgba(255, 179, 71, 0.12);
	color: var(--ax-g);
	font-weight: 700;
	font-size: 14px;
	text-align: center;
}

/* --------------------------------------------------------------------------
   En-tête : étapes + titre
   -------------------------------------------------------------------------- */

.apxc-head {
	display: grid;
	gap: 14px;
	margin-bottom: 22px;
}

.apxc-title {
	margin: 0;
	font-family: var(--ax-display);
	font-weight: 900;
	font-size: clamp(28px, 4.5vw, 46px);
	line-height: 1.05;
	color: var(--ax-t);
}

.apxc-steps {
	list-style: none;
	margin: 0 0 6px;
	padding: 16px clamp(8px, 3vw, 40px);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	background: var(--ax-p);
	clip-path: var(--ax-cut);
	font-weight: 700;
	font-size: 15px;
	color: var(--ax-m);
}

.apxc-steps li {
	position: relative;
	display: flex;
	justify-content: center;
	text-align: center;
}

/* Ligne entre les étapes, au niveau des numéros. */
.apxc-steps li + li::before {
	content: '';
	position: absolute;
	top: 15px;
	right: calc(50% + 24px);
	width: calc(100% - 48px);
	height: 2px;
	background: var(--ax-line);
}

.apxc-steps li.is-done + li::before,
.apxc-steps li.is-current::before {
	background: linear-gradient(90deg, var(--ax-o), var(--ax-g));
}

.apxc-steps li > a,
.apxc-steps li > span.apxc-steps__wrap {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: inherit;
	text-decoration: none;
}

.apxc-steps a:hover {
	color: var(--ax-t);
}

.apxc-steps__num {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	background: var(--ax-p2);
	box-shadow: inset 0 0 0 1px #3a3a42;
	font-family: var(--ax-display);
	font-size: 14px;
	clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.apxc-steps__num svg {
	width: 16px;
	height: 16px;
}

.apxc-steps .is-current {
	color: var(--ax-t);
}

.apxc-steps .is-current .apxc-steps__num {
	background: var(--ax-o);
	box-shadow: 0 0 0 4px rgba(255, 77, 28, 0.18);
	color: #fff;
}

.apxc-steps .is-done .apxc-steps__num {
	background: rgba(255, 77, 28, 0.15);
	box-shadow: inset 0 0 0 1px rgba(255, 77, 28, 0.5);
	color: var(--ax-o);
}

/* --------------------------------------------------------------------------
   Barre de progression
   -------------------------------------------------------------------------- */

.apxc-progress {
	display: grid;
	gap: 12px;
	margin-bottom: 22px;
	padding: 16px 18px 38px;
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(255, 77, 28, 0.18) 0%, rgba(255, 77, 28, 0) 55%),
		var(--ax-p);
	box-shadow: inset 0 0 0 1px rgba(255, 77, 28, 0.35), inset 3px 0 0 var(--ax-o);
	clip-path: var(--ax-cut);
}

.apxc-progress__msg {
	margin: 0;
	font-weight: 600;
	font-size: 17px;
}

.apxc-progress__msg b {
	color: var(--ax-g);
}

.apxc-progress__ok {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	margin-right: 6px;
	background: var(--ax-ok);
	color: #0d0d0f;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 900;
}

.apxc-progress__bar {
	position: relative;
	height: 8px;
	background: rgba(255, 255, 255, 0.08);
	overflow: hidden;
}

.apxc-progress__fill {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--ax-o), var(--ax-g));
	transition: width 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.apxc-progress.is-done .apxc-progress__fill {
	background: linear-gradient(90deg, #22a35a, var(--ax-ok));
}

.apxc-progress__marks {
	position: relative;
	list-style: none;
	margin: -4px 0 0;
	padding: 0;
	height: 0;
}

.apxc-progress__marks li {
	position: absolute;
	top: 0;
	transform: translateX(-100%);
	white-space: nowrap;
	font-size: 13px;
	font-weight: 700;
	color: var(--ax-m);
}

.apxc-progress__marks li.is-ok {
	color: var(--ax-ok);
}

/* --------------------------------------------------------------------------
   Blocs WooCommerce : structure en cartes
   -------------------------------------------------------------------------- */

/* Mise en page : contenu large à gauche, total / résumé à droite (qui reste visible au défilement).
   Les suggestions « Complète ton panier » passent en dessous, sur toute la largeur. */

.apxc .wc-block-components-sidebar-layout {
	display: grid !important;
	grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr);
	gap: 22px;
	align-items: start;
	margin: 0 !important;
}

.apxc .wc-block-components-sidebar-layout > .wc-block-components-main,
.apxc .wc-block-components-sidebar-layout > .wc-block-components-sidebar {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	min-width: 0;
}

.apxc .wc-block-components-sidebar-layout > .wc-block-components-main {
	grid-column: 1;
	grid-row: 1;
}

.apxc .wc-block-components-sidebar-layout > .wc-block-components-sidebar {
	grid-column: 2;
	grid-row: 1;
}

/* Cartes */
.apxc .wc-block-components-main {
	padding: clamp(16px, 2.4vw, 28px) !important;
	background: var(--ax-p);
	clip-path: var(--ax-cut);
}

.apxc .wc-block-components-sidebar {
	padding: clamp(16px, 2vw, 24px) !important;
	background: var(--ax-p);
	box-shadow: inset 0 3px 0 var(--ax-o);
	clip-path: var(--ax-cut);
	position: sticky;
	top: 90px;
}

/* Résumé de commande : pas de double cadre. */
.apxc .wp-block-woocommerce-checkout-order-summary-block,
.apxc .wc-block-components-checkout-order-summary__content,
.apxc .wc-block-components-order-summary {
	border: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	background: transparent !important;
}

/* Paiement : les étapes du formulaire, une sous l'autre, bien espacées. */
.apxc--checkout .wc-block-checkout__form > * + * {
	margin-top: 6px;
}

/* Mobile : une seule colonne. */
@media (max-width: 860px) {
	.apxc .wc-block-components-sidebar-layout {
		grid-template-columns: minmax(0, 1fr);
	}
	.apxc .wc-block-components-sidebar-layout > * {
		grid-column: 1 !important;
		grid-row: auto !important;
	}
	.apxc .wc-block-components-sidebar {
		position: static;
	}
}

.apxc .wc-block-components-title,
.apxc .wc-block-cart__totals-title,
.apxc .wc-block-components-checkout-step__title {
	font-family: var(--ax-display) !important;
	font-weight: 700 !important;
	font-size: 17px !important;
	letter-spacing: 0.02em;
	text-transform: none !important;
	color: var(--ax-t) !important;
}

/* Articles du panier */
.apxc .wc-block-cart-items {
	border: 0 !important;
}

.apxc .wc-block-cart-items__header {
	color: var(--ax-m);
	font-size: 13px;
	letter-spacing: 0.06em;
}

.apxc .wc-block-cart-items td,
.apxc .wc-block-cart-items th {
	border-color: var(--ax-line) !important;
}

.apxc .wc-block-cart-item__image img,
.apxc .wc-block-components-order-summary-item__image img {
	background: #fff;
	clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.apxc .wc-block-components-product-name {
	color: var(--ax-t) !important;
	font-weight: 700;
	font-size: 18px;
	text-decoration: none;
}

.apxc .wc-block-components-product-name:hover {
	color: var(--ax-g) !important;
}

.apxc .wc-block-components-product-price,
.apxc .wc-block-cart-item__total .wc-block-components-formatted-money-amount {
	font-family: var(--ax-display);
	font-weight: 700;
}

.apxc .wc-block-components-product-badge {
	border-radius: 0;
	border-color: var(--ax-o);
	color: var(--ax-o);
}

.apxc .wc-block-components-product-metadata,
.apxc .wc-block-components-product-details {
	color: var(--ax-m);
	font-size: 14px;
}

/* Sélecteur de quantité */
.apxc .wc-block-components-quantity-selector {
	border: 1px solid #34343c !important;
	border-radius: 0 !important;
	background: var(--ax-bg);
}

.apxc .wc-block-components-quantity-selector::after {
	display: none !important;
}

.apxc .wc-block-components-quantity-selector input {
	color: var(--ax-t) !important;
	font-family: var(--ax-display);
	font-weight: 700;
	background: transparent !important;
}

.apxc .wc-block-components-quantity-selector button {
	color: var(--ax-t) !important;
	opacity: 1 !important;
}

.apxc .wc-block-components-quantity-selector button:hover:not(:disabled) {
	background: var(--ax-o) !important;
	color: #fff !important;
}

.apxc .wc-block-cart-item__remove-link {
	color: var(--ax-m) !important;
	font-size: 14px !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.apxc .wc-block-cart-item__remove-link:hover {
	color: var(--ax-o) !important;
}

/* Totaux */
.apxc .wc-block-components-totals-wrapper {
	border-color: var(--ax-line) !important;
}

.apxc .wc-block-components-totals-item__label,
.apxc .wc-block-components-totals-item__description {
	color: #c9c9d1;
}

.apxc .wc-block-components-totals-item__value {
	font-weight: 700;
}

.apxc .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-family: var(--ax-display);
	font-weight: 700;
	color: var(--ax-t);
}

.apxc .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-family: var(--ax-display);
	font-weight: 900;
	font-size: 26px;
	color: var(--ax-t);
}

.apxc .wc-block-components-totals-discount .wc-block-components-totals-item__value,
.apxc .wc-block-components-totals-fees .wc-block-components-totals-item__value {
	color: var(--ax-ok);
}

.apxc .wc-block-components-totals-coupon__button,
.apxc .wc-block-components-panel__button {
	color: var(--ax-g) !important;
	font-weight: 700;
}

.apxc .wc-block-components-chip {
	border-radius: 0;
	background: rgba(255, 77, 28, 0.12);
	border: 1px dashed rgba(255, 77, 28, 0.6);
	color: var(--ax-t);
	font-family: var(--ax-display);
	font-size: 12px;
}

/* Champs */
.apxc .wc-block-components-text-input input,
.apxc .wc-block-components-text-input textarea,
.apxc .wc-block-components-select select,
.apxc .wc-blocks-components-select__select,
.apxc .wc-block-components-combobox .components-combobox-control__input,
.apxc .wc-block-components-textarea {
	background: var(--ax-bg) !important;
	color: var(--ax-t) !important;
	border: 1px solid #34343c !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.apxc .wc-block-components-text-input input:focus,
.apxc .wc-block-components-select select:focus,
.apxc .wc-blocks-components-select__select:focus,
.apxc .wc-block-components-textarea:focus {
	border-color: var(--ax-o) !important;
	box-shadow: 0 0 0 1px var(--ax-o) !important;
}

.apxc .wc-block-components-text-input label,
.apxc .wc-blocks-components-select__label {
	color: var(--ax-m) !important;
}

.apxc .wc-block-components-text-input.is-active label {
	color: var(--ax-g) !important;
}

.apxc .wc-block-components-checkbox__input[type='checkbox'] {
	border-radius: 0 !important;
	border-color: #4a4a52 !important;
	background: var(--ax-bg) !important;
}

.apxc .wc-block-components-checkbox__input[type='checkbox']:checked {
	background: var(--ax-o) !important;
	border-color: var(--ax-o) !important;
}

.apxc .wc-block-components-checkbox__mark {
	fill: #fff !important;
}

/* Étapes du formulaire (numérotées) */
.apxc .wc-block-components-checkout-step {
	padding-bottom: 8px;
}

.apxc .wc-block-components-checkout-step--with-step-number .wc-block-components-checkout-step__title::before {
	background: var(--ax-o) !important;
	color: #fff !important;
	border-radius: 0 !important;
	font-family: var(--ax-display);
	clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

.apxc .wc-block-components-checkout-step--with-step-number .wc-block-components-checkout-step__container::after {
	background: var(--ax-line) !important;
}

.apxc .wc-block-components-checkout-step__description {
	color: var(--ax-m);
}

/* Livraison et moyens de paiement en cartes */
.apxc .wc-block-components-radio-control--highlight-checked,
.apxc .wc-block-components-radio-control-accordion-option {
	border: 0 !important;
	box-shadow: none !important;
}

.apxc .wc-block-components-radio-control__option,
.apxc .wc-block-components-radio-control-accordion-option {
	margin: 0 0 8px !important;
	padding-top: 14px !important;
	padding-bottom: 14px !important;
	background: var(--ax-bg) !important;
	box-shadow: inset 0 0 0 1px #34343c !important;
	clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
	transition: box-shadow 0.15s ease;
}

.apxc .wc-block-components-radio-control__option-checked,
.apxc .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.apxc .wc-block-components-radio-control-accordion-option:has(input:checked) {
	box-shadow: inset 0 0 0 2px var(--ax-o) !important;
}

.apxc .wc-block-components-radio-control__input {
	border-color: #4a4a52 !important;
	background: var(--ax-bg) !important;
}

.apxc .wc-block-components-radio-control__input:checked {
	border-color: var(--ax-o) !important;
}

.apxc .wc-block-components-radio-control__input:checked::before {
	background: var(--ax-o) !important;
}

.apxc .wc-block-components-radio-control__label,
.apxc .wc-block-components-payment-method-label {
	color: var(--ax-t) !important;
	font-weight: 700;
}

/* Boutons principaux : Commander / Payer */
.apxc .wc-block-cart__submit-button,
.apxc .wc-block-components-checkout-place-order-button,
.apxc .wc-block-components-button.contained:not(.is-link),
.apxc .wc-block-components-totals-coupon__button.contained {
	min-height: 58px;
	background: var(--ax-o) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 0 !important;
	font-family: var(--ax-display) !important;
	font-weight: 900 !important;
	font-size: 16px !important;
	letter-spacing: 0.04em;
	text-transform: none !important;
	clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
	box-shadow: 0 12px 30px rgba(255, 77, 28, 0.3) !important;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.apxc .wc-block-cart__submit-button:hover,
.apxc .wc-block-components-checkout-place-order-button:hover {
	background: var(--ax-o2) !important;
	transform: translateY(-2px);
}

.apxc .wc-block-components-totals-coupon__button.contained {
	min-height: 48px;
	font-size: 13px !important;
	box-shadow: none !important;
}

.apxc .wc-block-components-checkout-return-to-cart-button {
	color: var(--ax-m) !important;
	font-weight: 700;
}

.apxc .wc-block-components-checkout-return-to-cart-button:hover {
	color: var(--ax-t) !important;
}

/* Messages WooCommerce */
.apxc .wc-block-components-notice-banner {
	border-radius: 0 !important;
	background: var(--ax-p2) !important;
	color: var(--ax-t) !important;
	border: 0 !important;
	border-left: 3px solid var(--ax-o) !important;
}

.apxc .wc-block-components-notice-banner.is-success {
	border-left-color: var(--ax-ok) !important;
}

.apxc .wc-block-components-notice-banner.is-error {
	border-left-color: #ff6b6b !important;
}

.apxc .wc-block-components-notice-banner > svg {
	background: transparent !important;
	fill: currentColor;
}

/* Panier vide */
.apxc .wp-block-woocommerce-empty-cart-block {
	padding: 32px 20px;
	background: var(--ax-p);
	text-align: center;
	clip-path: var(--ax-cut);
}

.apxc .wc-block-cart__empty-cart__title {
	font-family: var(--ax-display);
	font-weight: 900;
}

/* --------------------------------------------------------------------------
   Suggestions « Complète ton panier »
   -------------------------------------------------------------------------- */

.apxc-upsell {
	margin-top: 22px;
	padding: clamp(16px, 2.4vw, 26px);
	background: var(--ax-p);
	clip-path: var(--ax-cut);
}

.apxc-h2 {
	margin: 0 0 16px;
	font-family: var(--ax-display);
	font-weight: 700;
	font-size: 20px;
	color: var(--ax-t);
}

.apxc-upsell ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.apxc-upsell__item {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	grid-template-areas: "img body" "img add";
	gap: 6px 14px;
	align-items: center;
	padding: 12px;
	background: var(--ax-bg);
	box-shadow: inset 0 0 0 1px var(--ax-line);
	clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.apxc-upsell__item:hover {
	box-shadow: inset 0 0 0 1px rgba(255, 77, 28, 0.6);
	transform: translateY(-2px);
}

.apxc-upsell__item.is-pack {
	box-shadow: inset 0 0 0 1px rgba(255, 77, 28, 0.55), inset 3px 0 0 var(--ax-o);
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(255, 77, 28, 0.18) 0%, rgba(255, 77, 28, 0) 60%),
		var(--ax-bg);
}

.apxc-upsell__img {
	grid-area: img;
}

.apxc-upsell__img img {
	display: block;
	width: 84px;
	height: 84px;
	object-fit: cover;
	background: #fff;
	clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}

.apxc-upsell__body {
	grid-area: body;
	display: grid;
	gap: 2px;
	min-width: 0;
	align-self: end;
}

.apxc-upsell__tag {
	color: var(--ax-g);
	font-weight: 700;
	font-size: 13px;
}

.apxc-upsell__name {
	color: var(--ax-t) !important;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.apxc-upsell__name:hover {
	color: var(--ax-g) !important;
}

.apxc-upsell__price b {
	font-family: var(--ax-display);
	font-weight: 700;
	font-size: 16px;
}

.apxc-upsell__price s {
	color: var(--ax-m);
	font-size: 14px;
	text-decoration-color: var(--ax-o);
}

.apxc-upsell__add {
	grid-area: add;
	justify-self: start;
	align-self: start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 6px 14px;
	background: var(--ax-p2);
	color: var(--ax-t);
	border: 0;
	box-shadow: inset 0 0 0 1px #3a3a42;
	font: inherit;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.apxc-upsell__add:hover {
	background: var(--ax-o);
	box-shadow: none;
	color: #fff;
}

.apxc-upsell__add svg {
	width: 16px;
	height: 16px;
}

.apxc-upsell__add.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.apxc-upsell__add.is-added {
	background: #22a35a;
	box-shadow: none;
	color: #fff;
}

/* --------------------------------------------------------------------------
   Badges de confiance
   -------------------------------------------------------------------------- */

.apxc-trust {
	margin-top: 16px;
	display: grid;
	gap: 10px;
}

.apxc-trust__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--ax-ok);
	font-family: var(--ax-display);
	font-weight: 700;
	font-size: 14px;
}

.apxc-trust__title svg {
	width: 20px;
	height: 20px;
}

.apxc-trust ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.apxc-trust li {
	display: flex;
	align-items: center;
	gap: 12px;
}

.apxc-trust__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	color: var(--ax-o);
	background: rgba(255, 77, 28, 0.1);
	clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.apxc-trust__icon svg {
	width: 19px;
	height: 19px;
}

.apxc-trust li > span:last-child {
	display: grid;
	line-height: 1.25;
}

.apxc-trust b {
	font-size: 15px;
}

.apxc-trust small {
	color: var(--ax-m);
	font-size: 13px;
}

/* Paiement : les badges sont sous le résumé de commande, séparés par un trait. */
.apxc-trust--checkout {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--ax-line);
}

/* --------------------------------------------------------------------------
   Mode tunnel (validation de commande) : moins de distractions
   -------------------------------------------------------------------------- */

body.apxc-tunnel .apxd-nav,
body.apxc-tunnel .apxd-search-open,
body.apxc-tunnel .apxd-burger,
body.apxc-tunnel .apxd-f-band,
body.apxc-tunnel .apxd-f-main,
body.apxc-tunnel .apxd-f-ghost {
	display: none !important;
}

body.apxc-tunnel .apxd-bar {
	grid-template-columns: 1fr auto !important;
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 600px) {
	.apxc {
		font-size: 16px;
	}
	.apxc-steps {
		font-size: 12px;
		padding: 12px 6px;
	}
	.apxc-progress {
		padding: 14px 14px 34px;
	}
	.apxc-progress__msg {
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.apxc-progress__fill,
	.apxc .wc-block-cart__submit-button,
	.apxc .wc-block-components-checkout-place-order-button {
		transition: none;
	}
}

/* --------------------------------------------------------------------------
   Offre présentoir au paiement (popup)
   -------------------------------------------------------------------------- */

html.apxc-offer-open {
	overflow: hidden;
}

.apxc-offer {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 16px;
	background: rgba(5, 5, 7, 0.82);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity 0.25s ease;
	font-family: 'Rajdhani', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.apxc-offer[hidden] {
	display: none;
}

.apxc-offer.is-open {
	opacity: 1;
}

.apxc-offer *,
.apxc-offer *::before,
.apxc-offer *::after {
	box-sizing: border-box;
}

.apxc-offer__box {
	position: relative;
	width: min(480px, 100%);
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	display: grid;
	gap: 16px;
	padding: 30px 26px 24px;
	color: #f5f5f5;
	background:
		radial-gradient(120% 90% at 50% 0%, rgba(255, 77, 28, 0.22) 0%, rgba(255, 77, 28, 0) 60%),
		#141417;
	box-shadow: inset 0 3px 0 #ff4d1c, 0 30px 80px rgba(0, 0, 0, 0.6);
	clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
	transform: translateY(16px) scale(0.97);
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.apxc-offer.is-open .apxc-offer__box {
	transform: none;
}

.apxc-offer__close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	background: transparent;
	color: #a3a3ad;
	border: 0;
	cursor: pointer;
}

.apxc-offer__close:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.07);
}

.apxc-offer__close svg {
	width: 20px;
	height: 20px;
}

.apxc-offer__tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	justify-self: start;
	margin: 0;
	padding: 5px 12px;
	color: #ffb347;
	font-weight: 700;
	font-size: 14px;
	box-shadow: inset 0 0 0 1px rgba(255, 179, 71, 0.45);
}

.apxc-offer__tag svg {
	width: 16px;
	height: 16px;
}

.apxc-offer__title {
	margin: 0;
	font-family: 'Orbitron', 'Rajdhani', sans-serif;
	font-weight: 900;
	font-size: clamp(20px, 4.5vw, 26px);
	line-height: 1.15;
	color: #fff;
}

.apxc-offer__product {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: 16px;
	align-items: center;
	padding: 14px;
	background: #0d0d0f;
	box-shadow: inset 0 0 0 1px #2a2a31;
	clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.apxc-offer__img img {
	display: block;
	width: 110px;
	height: 110px;
	object-fit: cover;
	background: #fff;
	clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.apxc-offer__info {
	display: grid;
	gap: 8px;
	min-width: 0;
}

.apxc-offer__name {
	margin: 0;
	font-weight: 700;
	font-size: 18px;
}

.apxc-offer__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin: 0;
}

.apxc-offer__price b {
	font-family: 'Orbitron', 'Rajdhani', sans-serif;
	font-weight: 900;
	font-size: 26px;
	color: #ff4d1c;
}

.apxc-offer__price s {
	color: #a3a3ad;
	font-size: 16px;
	text-decoration-color: #ff4d1c;
}

.apxc-offer__price span {
	padding: 3px 8px;
	background: #ff4d1c;
	color: #fff;
	font-family: 'Orbitron', 'Rajdhani', sans-serif;
	font-weight: 700;
	font-size: 12px;
	transform: rotate(-3deg);
}

.apxc-offer__points {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 4px;
	color: #c9c9d1;
	font-weight: 600;
	font-size: 15px;
}

.apxc-offer__points li {
	display: flex;
	align-items: flex-start;
	gap: 6px;
}

.apxc-offer__points svg {
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 2px;
	color: #4ade80;
}

.apxc-offer__yes {
	min-height: 58px;
	padding: 14px 20px;
	background: #ff4d1c;
	color: #fff;
	border: 0;
	font-family: 'Orbitron', 'Rajdhani', sans-serif;
	font-weight: 900;
	font-size: 15px;
	letter-spacing: 0.03em;
	cursor: pointer;
	clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
	box-shadow: 0 12px 30px rgba(255, 77, 28, 0.35);
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.apxc-offer__yes:hover {
	background: #ff6a40;
	transform: translateY(-2px);
}

.apxc-offer__yes.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.apxc-offer__no {
	justify-self: center;
	padding: 6px;
	background: none;
	border: 0;
	color: #a3a3ad;
	font: inherit;
	font-weight: 600;
	font-size: 15px;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.apxc-offer__no:hover {
	color: #fff;
}

.apxc-offer button:focus-visible {
	outline: 2px solid #ffb347;
	outline-offset: 3px;
}

@media (max-width: 480px) {
	.apxc-offer__box {
		padding: 28px 18px 20px;
	}
	.apxc-offer__product {
		grid-template-columns: 84px minmax(0, 1fr);
		gap: 12px;
	}
	.apxc-offer__img img {
		width: 84px;
		height: 84px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.apxc-offer,
	.apxc-offer__box,
	.apxc-offer__yes {
		transition: none;
	}
}
