/* Fiches Axpol : la mise en page « goodies » du site masque quantité et bouton panier — on les réaffiche. */
body.tlp-axpol-product form.cart.tlp-p5-shell { flex-wrap: wrap !important; align-items: center !important; gap: 10px !important; }
body.tlp-axpol-product form.cart.tlp-p5-shell > .tlp-axc { flex: 0 0 100% !important; width: 100% !important; max-width: 100% !important; }
body.tlp-axpol-product form.cart.tlp-p5-shell > .quantity { display: inline-flex !important; flex: 0 0 auto !important; }
body.tlp-axpol-product form.cart.tlp-p5-shell > .quantity input.qty { width: 90px !important; min-width: 90px !important; height: 46px !important; text-align: center; }
body.tlp-axpol-product form.cart.tlp-p5-shell > .single_add_to_cart_button { display: inline-flex !important; align-items: center; justify-content: center; flex: 1 1 180px !important; width: auto !important; height: auto !important; min-height: 46px; margin: 0 !important; }

/* Produits variables (couleur / taille) : configurateur pleine largeur au-dessus de quantité + bouton. */
body.tlp-axpol-product form.cart .woocommerce-variation-add-to-cart { display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 10px !important; width: 100% !important; }
body.tlp-axpol-product form.cart .woocommerce-variation-add-to-cart > .tlp-axc { flex: 0 0 100% !important; width: 100% !important; max-width: 100% !important; order: 0; }
body.tlp-axpol-product form.cart .woocommerce-variation-add-to-cart > .quantity { display: inline-flex !important; flex: 0 0 auto !important; float: none !important; margin: 0 !important; order: 1; }
body.tlp-axpol-product form.cart .woocommerce-variation-add-to-cart > .quantity input.qty { width: 90px !important; min-width: 90px !important; height: 46px !important; text-align: center; }
body.tlp-axpol-product form.cart .woocommerce-variation-add-to-cart > .single_add_to_cart_button { display: inline-flex !important; align-items: center; justify-content: center; flex: 1 1 180px !important; width: auto !important; height: auto !important; min-height: 46px; max-height: 60px; margin: 0 !important; float: none !important; order: 2; }

/* Neutralise les styles de boutons du thème à l'intérieur du configurateur. */
.tlp-axc .tlp-axc-tab, .tlp-axc .tlp-axc-add, .tlp-axc .tlp-axc-remove, .tlp-axc .tlp-axc-stepper button { all: unset; box-sizing: border-box; cursor: pointer; font-family: inherit; -webkit-text-fill-color: currentColor; line-height: 1.3; }
.tlp-axc .tlp-axc-tab { padding: 10px 16px !important; border-bottom: 2px solid transparent !important; font-weight: 500; font-size: 14px; color: inherit; }
.tlp-axc .tlp-axc-tab.is-active { border-bottom-color: currentColor !important; font-weight: 700; }
.tlp-axc .tlp-axc-add { background: #555 !important; color: #fff !important; width: 40px; display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; }
.tlp-axc .tlp-axc-remove { color: #b32d2e !important; text-decoration: underline; font-size: 13px; margin-left: auto; }
.tlp-axc .tlp-axc-stepper button { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 16px; background: #fff; color: inherit; }
.tlp-axc .tlp-axc-stepper button:disabled { opacity: .35; cursor: default; }
.tlp-axc .tlp-axc-tabs { flex-wrap: nowrap; overflow-x: auto; }
.tlp-axc [hidden] { display: none !important; }
.tlp-axc .tlp-axc-panel, .tlp-axc .tlp-axc-body, .tlp-axc .tlp-axc-controls, .tlp-axc .tlp-axc-cards, .tlp-axc .tlp-axc-extra, .tlp-axc .tlp-axc-summary { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
.tlp-axc .tlp-axc-controls { display: flex !important; }

.tlp-axc { margin: 0 0 18px; width: 100%; }
.tlp-axc .tlp-axc-toggle { width: 100%; margin: 0 0 12px; }
.tlp-axc-panel { border: 1px solid #e2e2e2; border-radius: 6px; padding: 0 0 12px; }
.tlp-axc-tabs { display: flex; flex-wrap: wrap; align-items: stretch; border-bottom: 1px solid #e2e2e2; }
.tlp-axc-tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 16px; cursor: pointer; font-weight: 500; color: inherit; }
.tlp-axc-tab.is-active { border-bottom-color: currentColor; font-weight: 700; }
.tlp-axc-add { background: #555; color: #fff; border: 0; width: 40px; font-size: 20px; line-height: 1; cursor: pointer; }
.tlp-axc-body { padding: 12px 14px 0; }
.tlp-axc-controls { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; margin-bottom: 12px; }
.tlp-axc-field { display: flex; flex-direction: column; gap: 4px; font-size: .9em; }
.tlp-axc-field > span { font-weight: 500; }
.tlp-axc-field select { min-width: 180px; }
.tlp-axc-stepper { display: inline-flex; border: 1px solid #ccc; border-radius: 4px; overflow: hidden; }
.tlp-axc-stepper button { background: #fff; border: 0; width: 34px; height: 34px; cursor: pointer; font-size: 16px; color: inherit; }
.tlp-axc-stepper button:disabled { opacity: .35; cursor: default; }
.tlp-axc-stepper output { min-width: 34px; display: flex; align-items: center; justify-content: center; border-left: 1px solid #ccc; border-right: 1px solid #ccc; }
.tlp-axc-remove { background: none; border: 0; padding: 0; color: #b32d2e; text-decoration: underline; cursor: pointer; font-size: .85em; margin-left: auto; }
.tlp-axc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.tlp-axc-card { display: flex; flex-direction: column; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; cursor: pointer; opacity: .7; transition: opacity .15s, border-color .15s; margin: 0; }
.tlp-axc-card:hover { opacity: 1; }
.tlp-axc-card.is-selected { opacity: 1; border-color: #333; box-shadow: 0 0 0 1px #333; }
.tlp-axc-card-head { display: flex; gap: 8px; align-items: center; padding: 8px 10px; background: #f2f2f2; font-size: .82em; font-weight: 600; line-height: 1.25; }
.tlp-axc-card.is-selected .tlp-axc-card-head { background: #555; color: #fff; }
.tlp-axc-card-head input { margin: 0; flex: none; }
.tlp-axc-card-body { display: flex; gap: 8px; padding: 8px 10px; align-items: center; }
.tlp-axc-card-img { width: 84px; height: 84px; object-fit: contain; flex: none; background: #fff; }
.tlp-axc-card-info { display: flex; flex-direction: column; gap: 2px; font-size: .85em; }
.tlp-axc-total { font-size: 1.25em; }
.tlp-axc-size, .tlp-axc-unit { opacity: .75; }
.tlp-axc-quote { color: #b32d2e; font-weight: 600; }
.tlp-axc-extra { padding: 12px 14px 0; }
.tlp-axc-row { margin: 0 0 10px; }
.tlp-axc-row label { display: block; font-weight: 500; margin-bottom: 4px; }
.tlp-axc-row textarea, .tlp-axc-row input[type="file"] { width: 100%; box-sizing: border-box; }
.tlp-axc-row small { display: block; opacity: .75; margin-top: 4px; }
.tlp-axc-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 10px 0 0; padding: 10px 12px; background: #f6f7f7; border-radius: 4px; }
.tlp-axc-summary dt, .tlp-axc-summary dd { margin: 0; }
.tlp-axc-summary dd { text-align: right; font-weight: 600; }
.tlp-axc-summary dt:nth-last-of-type(2), .tlp-axc-summary dd:nth-last-of-type(2) { border-top: 1px solid #ddd; padding-top: 4px; }
.tlp-axc-warning { margin: 8px 0 0; color: #b32d2e; }
@media (max-width: 480px) {
	.tlp-axc-cards { grid-template-columns: 1fr; }
	.tlp-axc-remove { margin-left: 0; }
}

/* Le bloc « Comment souhaitez-vous préparer votre fichier ? » du site prend le relais du champ fichier. */
.tlp-axc-logo { margin-top: 12px; }
body:has(.tlp-file-choice) .tlp-axc .tlp-axc-logo { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; margin: 0 !important; padding: 0 !important; }
