/*
 * Power Checkout Classic 1.2.3
 * Child theme de classic (PrestaShop 8) : toute la présentation du checkout
 * natif. Portage du design powercheckout 2.1 (hummingbird/PS9) sur le DOM
 * classic, standards MS4D : une seule feuille, résumé sticky teinté, teal
 * concentré sur l'action, tabular-nums, inputs 16px, zéro fiction.
 *
 * Les couleurs de marque viennent du module powerapi (mode childtheme) qui
 * émet --powerapi-brand / --powerapi-accent scopées sur body#checkout et les
 * surfaces associées. Chaque usage a un fallback en dur.
 *
 * Sélecteurs vérifiés contre le DOM réel de classic 2.2.0 (PS 8.2.7) :
 * .checkout-step -current/-complete/-reachable, h1.step-title, .step-number,
 * .delivery-options-list, .delivery-option, .carrier-*, .payment-options,
 * .payment-option, #conditions-to-approve, #payment-confirmation,
 * #js-checkout-summary, .cart-summary-*, .custom-radio, .custom-checkbox,
 * .carriere-name-container (typo native de classic, conservée telle quelle).
 *
 * Seuls !important du fichier : le masquage du chrome catalogue (section 2),
 * pour battre les utilitaires d'affichage du parent.
 */

/* ------------------------------------------------------------------ */
/* 1. Tokens                                                           */
/* ------------------------------------------------------------------ */

/* Power API pose cette classe sur <html> à partir de sa whitelist serveur.
   Elle évite qu'une nouvelle surface checkout expose le chrome catalogue. */
html.powerapi-checkout-surface body {
  --pc-brand: var(--powerapi-brand, #1a8081);
  --pc-ink: #14212b;
  --pc-strong: #172935;
  --pc-muted: #61717d;
  --pc-line: #d9e3e6;
  --pc-page: #f7fbfb;
  --pc-panel: #ffffff;
  --pc-danger: #b42318;
  --pc-radius: 12px;
  --pc-brand-hover: #146667;
  --pc-brand-hover: color-mix(in srgb, var(--pc-brand) 82%, #000);
  --pc-brand-tint: #eef5f5;
  --pc-brand-tint: color-mix(in srgb, var(--pc-brand) 5%, #fff);
  --pc-brand-ring: #8cc0c0;
  --pc-brand-ring: color-mix(in srgb, var(--pc-brand) 45%, #fff);
}

body#checkout,
body.page-cart,
body#order-confirmation,
body[class*="page-order"],
body[class*="module-powerapi-checkoutbridge"],
body[class*="module-"][class*="-validation"],
body[class*="module-"][class*="-payment"],
body[class*="module-"][class*="-payscreen"],
body[class*="module-"][class*="-return"],
body[class*="module-"][class*="-confirmation"],
body[class*="module-"][class*="-success"],
body[class*="module-"][class*="-fail"],
body[class*="module-"][class*="-cancel"],
body[class*="module-"][class*="-error"] {
  --pc-brand: var(--powerapi-brand, #1a8081);
  --pc-ink: #14212b;
  --pc-strong: #172935;
  --pc-muted: #61717d;
  --pc-line: #d9e3e6;
  --pc-page: #f7fbfb;
  --pc-panel: #ffffff;
  --pc-danger: #b42318;
  --pc-radius: 12px;
  /* États dérivés : suivent la couleur BO, fallback dur sans color-mix. */
  --pc-brand-hover: #146667;
  --pc-brand-hover: color-mix(in srgb, var(--pc-brand) 82%, #000);
  --pc-brand-tint: #eef5f5;
  --pc-brand-tint: color-mix(in srgb, var(--pc-brand) 5%, #fff);
  --pc-brand-ring: #8cc0c0;
  --pc-brand-ring: color-mix(in srgb, var(--pc-brand) 45%, #fff);
}

/* ------------------------------------------------------------------ */
/* 2. Chrome catalogue retiré sur les surfaces checkout                */
/*    (seuls !important du fichier)                                    */
/* ------------------------------------------------------------------ */

html.powerapi-checkout-surface body #header,
html.powerapi-checkout-surface body #footer,
html.powerapi-checkout-surface body #search_widget,
html.powerapi-checkout-surface body .search-widget,
html.powerapi-checkout-surface body .currency-selector,
html.powerapi-checkout-surface body #_desktop_currency_selector,
html.powerapi-checkout-surface body #_mobile_currency_selector,
html.powerapi-checkout-surface body .ps-emailsubscription,
html.powerapi-checkout-surface body .block_newsletter,
html.powerapi-checkout-surface body .breadcrumb,
html.powerapi-checkout-surface body .breadcrumb__wrapper {
  display: none !important;
}

body#checkout #header,
body#checkout #footer,
body#checkout #notifications .container:empty,
body.page-cart #header .header-top,
body.page-cart #footer .footer-container,
body#order-confirmation #header,
body#order-confirmation #footer,
body[class*="module-"][class*="-validation"] #header,
body[class*="module-"][class*="-validation"] #footer,
body[class*="module-"][class*="-payment"] #header,
body[class*="module-"][class*="-payment"] #footer,
body[class*="module-"][class*="-payscreen"] #header,
body[class*="module-"][class*="-payscreen"] #footer,
body[class*="module-"][class*="-return"] #header,
body[class*="module-"][class*="-return"] #footer,
body[class*="module-"][class*="-confirmation"] #header,
body[class*="module-"][class*="-confirmation"] #footer,
body[class*="module-"][class*="-success"] #header,
body[class*="module-"][class*="-success"] #footer,
body[class*="module-"][class*="-fail"] #header,
body[class*="module-"][class*="-fail"] #footer,
body[class*="module-"][class*="-cancel"] #header,
body[class*="module-"][class*="-cancel"] #footer,
body[class*="module-"][class*="-error"] #header,
body[class*="module-"][class*="-error"] #footer {
  display: none !important;
}

/* Aucun bloc catalogue ne doit réapparaître après le paiement. Classic et
   certains modules injectent ces recommandations sous la confirmation. */
body#order-confirmation .breadcrumb,
body#order-confirmation .breadcrumb__wrapper,
body#order-confirmation .featured-products,
body#order-confirmation .ps-featuredproducts,
body#order-confirmation .product-accessories,
body#order-confirmation .module-products,
body#order-confirmation .module-products__list,
body#order-confirmation .module-products__buttons,
body#order-confirmation #products {
  display: none !important;
}

/* Réassurance : la confiance est portée par la shellbar. Le bloc module
   (placeholder non configuré par défaut) est retiré du tunnel. */
body#checkout .blockreassurance,
body#checkout .blockreassurance_product,
body#checkout #block-reassurance,
body#checkout .block-reassurance {
  display: none !important;
}

/* Le panier garde la nav minimale mais perd recherche et menu. */
body.page-cart #header .header-nav,
body.page-cart #search_widget,
body.page-cart #_desktop_top_menu,
body.page-cart .ps-emailsubscription,
body.page-cart .block_newsletter {
  display: none !important;
}

/* ------------------------------------------------------------------ */
/* 3. Fond de page, coquille, typographie de base                      */
/* ------------------------------------------------------------------ */

body#checkout,
body.page-cart,
body#order-confirmation,
body[class*="module-powerapi-checkoutbridge"],
body[class*="module-"][class*="-validation"],
body[class*="module-"][class*="-payment"],
body[class*="module-"][class*="-payscreen"],
body[class*="module-"][class*="-return"],
body[class*="module-"][class*="-confirmation"],
body[class*="module-"][class*="-success"],
body[class*="module-"][class*="-fail"],
body[class*="module-"][class*="-cancel"],
body[class*="module-"][class*="-error"] {
  background: var(--pc-page);
  color: var(--pc-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html.powerapi-checkout-surface body {
  background: var(--pc-page);
  color: var(--pc-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html.powerapi-checkout-surface body #wrapper {
  background: var(--pc-page);
  box-shadow: none;
  padding-top: 32px;
  padding-bottom: 64px;
}

body#checkout #wrapper,
body.page-cart #wrapper,
body#order-confirmation #wrapper,
body[class*="module-powerapi-checkoutbridge"] #wrapper,
body[class*="module-"][class*="-validation"] #wrapper,
body[class*="module-"][class*="-payment"] #wrapper,
body[class*="module-"][class*="-payscreen"] #wrapper,
body[class*="module-"][class*="-return"] #wrapper,
body[class*="module-"][class*="-confirmation"] #wrapper,
body[class*="module-"][class*="-success"] #wrapper,
body[class*="module-"][class*="-fail"] #wrapper,
body[class*="module-"][class*="-cancel"] #wrapper,
body[class*="module-"][class*="-error"] #wrapper {
  background: var(--pc-page);
  box-shadow: none;
  padding-top: 32px;
  padding-bottom: 64px;
}

body#checkout #content-wrapper {
  max-width: 1160px;
  margin: 0 auto;
}

body#checkout a {
  color: var(--pc-brand);
  text-decoration: none;
}

body#checkout a:hover,
body#checkout a:focus {
  color: var(--pc-brand-hover);
  text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* 4. Shellbar (HTML injecté par powerapi, stylé par le thème)         */
/* ------------------------------------------------------------------ */

.powerapi-checkout-shellbar {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 10px clamp(16px, 5vw, 72px);
  border-top: 4px solid var(--pc-brand);
  border-bottom: 1px solid var(--pc-line);
  background: var(--pc-panel);
  color: var(--pc-ink);
}

.powerapi-checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--pc-line);
  border-radius: 6px;
  background: var(--pc-panel);
  color: var(--pc-strong);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.powerapi-checkout-back::before {
  content: "\2190";
  font-size: 15px;
  line-height: 1;
}

.powerapi-checkout-back:hover,
.powerapi-checkout-back:focus {
  border-color: var(--pc-brand);
  color: var(--pc-brand);
  text-decoration: none;
}

.powerapi-checkout-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.powerapi-checkout-logo {
  display: block;
  max-width: 148px;
  max-height: 36px;
  object-fit: contain;
}

.powerapi-checkout-title-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.powerapi-checkout-title-copy strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--pc-strong);
}

.powerapi-checkout-title-copy span {
  font-size: 12.5px;
  color: var(--pc-muted);
}

/* Réassurance sobre : texte discret, pas de pastilles. */
.powerapi-checkout-trust {
  display: flex;
  justify-self: end;
  gap: 14px;
}

.powerapi-checkout-trust span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pc-muted);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* 5. Layout deux colonnes + résumé sticky                             */
/* ------------------------------------------------------------------ */

body#checkout .checkout-process,
body#checkout section.checkout-step {
  background: transparent;
}

body#checkout #js-checkout-summary {
  position: sticky;
  top: 16px;
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius);
  background: var(--pc-panel);
  padding: 24px;
}

/* ------------------------------------------------------------------ */
/* 6. La feuille : un panneau unique, une étape à la fois              */
/* ------------------------------------------------------------------ */

body#checkout section.checkout-step {
  margin: 0;
  padding: 0 24px;
  border: 1px solid var(--pc-line);
  border-bottom: 0;
  background: var(--pc-panel);
  box-shadow: none;
}

body#checkout section.checkout-step:first-of-type {
  border-top-left-radius: var(--pc-radius);
  border-top-right-radius: var(--pc-radius);
}

body#checkout section.checkout-step:last-of-type {
  border-bottom: 1px solid var(--pc-line);
  border-bottom-left-radius: var(--pc-radius);
  border-bottom-right-radius: var(--pc-radius);
}

/* Spécificité alignée sur classic (body#checkout section.checkout-step ...)
   pour que la cascade (priority 250, chargé après theme.css) tranche. */
body#checkout section.checkout-step h1.step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 18px 0;
  border-bottom: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--pc-strong);
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

body#checkout section.checkout-step.-current + .checkout-step .step-title {
  padding-top: 18px;
  border-top: 0;
}

body#checkout section.checkout-step.-complete:first-of-type .step-title {
  padding-top: 18px;
}

/* Numéro d'étape : cercle 28px, rempli sur l'étape courante. */
body#checkout section.checkout-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1.5px solid var(--pc-line);
  border-radius: 50%;
  background: var(--pc-panel);
  color: var(--pc-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 0;
  margin: 0;
}

body#checkout section.checkout-step.-reachable.-current .step-number {
  width: 28px;
  height: 28px;
  margin: 0;
  border: 1.5px solid var(--pc-brand);
  background-color: var(--pc-brand);
  color: #fff;
  font-size: 13px;
}

body#checkout section.checkout-step.-current h1.step-title {
  color: var(--pc-ink);
}

/* Étapes validées : coche discrète recolorée marque, titre atténué. */
body#checkout section.checkout-step.-complete h1.step-title {
  color: var(--pc-strong);
  font-weight: 600;
}

body#checkout section.checkout-step .done {
  color: var(--pc-brand);
  margin: 0;
}

body#checkout section.checkout-step.-unreachable h1.step-title {
  color: var(--pc-muted);
  opacity: 0.55;
  cursor: default;
}

body#checkout section.checkout-step .step-edit {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--pc-brand);
  text-transform: none;
  cursor: pointer;
}

body#checkout section.checkout-step .step-edit .edit {
  font-size: 14px;
}

body#checkout section.checkout-step .content {
  padding: 4px 0 28px 0;
}

/* ------------------------------------------------------------------ */
/* 7. Formulaires : labels au-dessus, champs calibrés                  */
/* ------------------------------------------------------------------ */

body#checkout .form-group.row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0 0 16px;
  max-width: 520px;
}

body#checkout .form-control-label {
  width: 100%;
  max-width: none;
  flex: none;
  padding: 0 0 6px;
  text-align: left;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pc-strong);
}

body#checkout .form-group.row > [class*="col-"] {
  width: 100%;
  max-width: none;
  flex: none;
  padding: 0;
}

body#checkout .form-control {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--pc-line);
  border-radius: 6px;
  background: var(--pc-panel);
  color: var(--pc-ink);
  font-size: 16px; /* anti-zoom iOS */
  box-shadow: none;
}

body#checkout .form-control:focus {
  border-color: var(--pc-brand);
  outline: 2px solid var(--pc-brand);
  outline-offset: -1px;
  box-shadow: none;
}

body#checkout .form-control-comment {
  padding: 4px 0 0;
  font-size: 12.5px;
  color: var(--pc-muted);
}

/* "Optional" : dans le flux sous le champ, pas en colonne fantôme. */
body#checkout .form-informations,
body#checkout .form-control-valign + [class*="col-"] {
  font-size: 12.5px;
  color: var(--pc-muted);
}

/* Radios et checkboxes natifs de classic (spans simulés) : 20px, ronds. */
body#checkout .custom-radio {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--pc-line);
  background: var(--pc-panel);
  margin-top: 0;
}

body#checkout .custom-radio input[type="radio"]:checked + span {
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  background-color: var(--pc-brand);
}

body#checkout .custom-radio input[type="radio"]:focus-visible {
  outline: 2px solid var(--pc-brand-ring);
  outline-offset: 2px;
}

body#checkout .custom-checkbox input[type="checkbox"] + span {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--pc-line);
  border-radius: 4px;
  background: var(--pc-panel);
}

body#checkout .custom-checkbox input[type="checkbox"]:checked + span {
  border-color: var(--pc-brand);
  background: var(--pc-brand);
}

body#checkout .custom-checkbox input[type="checkbox"]:checked + span .checkbox-checked {
  color: #fff;
}

/* Erreurs inline. */
body#checkout .form-control.is-invalid,
body#checkout .form-group.has-error .form-control {
  border-color: var(--pc-danger);
}

body#checkout .invalid-feedback,
body#checkout .form-error,
body#checkout .help-block li {
  color: var(--pc-danger);
  font-size: 12.5px;
}

body#checkout .alert-danger {
  border: 1px solid #f1c0ba;
  border-radius: 6px;
  background: #fdf1f0;
  color: var(--pc-danger);
  font-size: 14px;
}

/* Boutons de progression d'étape. */
body#checkout button.continue,
body#checkout button[name="confirmDeliveryOption"],
body#checkout button[name="confirm-addresses"] {
  min-height: 46px;
  padding: 0 26px;
  border: 0;
  border-radius: 6px;
  background: var(--pc-brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
  transition: background-color 160ms ease-out;
}

body#checkout button.continue:hover,
body#checkout button[name="confirmDeliveryOption"]:hover,
body#checkout button[name="confirm-addresses"]:hover {
  background: var(--pc-brand-hover);
  color: #fff;
}

body#checkout button.continue:focus-visible,
body#checkout button[name="confirmDeliveryOption"]:focus-visible,
body#checkout #payment-confirmation button:focus-visible {
  outline: 2px solid var(--pc-brand-ring);
  outline-offset: 2px;
}

/* Le titre social est superflu. Le mot de passe reste disponible : le masquer
   rendrait la création de compte impossible depuis le checkout natif. */
body#checkout .form-group.row:has(input[name="id_gender"]),
body#checkout #checkout-guest-form .form-informations,
body#checkout #checkout-guest-form .form-informations-title,
body#checkout #checkout-guest-form .form-informations-subtitle {
  display: none;
}

/* Classic répète une contrainte technique sous prénom et nom. Elle n'aide pas
   à la saisie normale, contrairement aux mentions Optional qui restent dans
   le flux pour le mot de passe et les champs société. */
body#checkout .form-group.row:has(input[name="firstname"]) .form-control-comment,
body#checkout .form-group.row:has(input[name="lastname"]) .form-control-comment {
  display: none;
}

body#checkout .form-group .form-control-valign + [class*="col-"] {
  display: block;
}

/* Séparateur "|" orphelin entre les onglets invité / connexion. */
body#checkout .checkout-step .nav-inline .nav-separator {
  display: none;
}

/* Filet de sécurité : tout contrôle natif non simulé prend la marque. */
body#checkout input[type="checkbox"],
body#checkout input[type="radio"],
body.page-cart input[type="checkbox"] {
  accent-color: var(--pc-brand);
}

/* Bouton SHOW du mot de passe (formulaire de connexion). */
body#checkout .input-group .input-group-btn > button,
body#checkout button[data-action="show-password"] {
  min-height: 44px;
  border: 1px solid var(--pc-line);
  border-left: 0;
  border-radius: 0 6px 6px 0;
  background: var(--pc-panel);
  color: var(--pc-muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  box-shadow: none;
}

/* Onglets invité / connexion de l'étape 1. */
body#checkout .checkout-step .nav-inline {
  display: flex;
  gap: 20px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--pc-line);
}

body#checkout .checkout-step .nav-inline .nav-link {
  padding: 8px 2px 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--pc-muted);
  font-size: 14px;
  font-weight: 600;
}

body#checkout .checkout-step .nav-inline .nav-link.active {
  border-bottom-color: var(--pc-brand);
  color: var(--pc-ink);
}

/* ------------------------------------------------------------------ */
/* 8. Adresses : cartes de sélection                                   */
/* ------------------------------------------------------------------ */

body#checkout .address-item {
  border: 1px solid var(--pc-line);
  border-radius: 6px;
  background: var(--pc-panel);
  margin-bottom: 12px;
}

body#checkout .address-item.selected {
  border-color: var(--pc-brand);
  box-shadow: inset 0 0 0 1px var(--pc-brand);
}

body#checkout .address {
  font-size: 14px;
  line-height: 1.5;
  color: var(--pc-ink);
}

body#checkout .address-alias {
  font-weight: 700;
  color: var(--pc-strong);
}

body#checkout .address-footer a {
  font-size: 13px;
}

/* ------------------------------------------------------------------ */
/* 9. Livraison : liste unifiée à dividers (pattern Stripe)            */
/* ------------------------------------------------------------------ */

body#checkout section.checkout-step .delivery-options-list {
  margin: 0;
}

body#checkout section.checkout-step .delivery-options {
  border: 1px solid var(--pc-line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--pc-panel);
}

body#checkout section.checkout-step .delivery-options .delivery-option {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px;
  min-height: 0;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--pc-line);
  background: var(--pc-panel);
}

body#checkout section.checkout-step .delivery-options .delivery-option:last-child {
  border-bottom: 0;
}

/* Ligne sélectionnée : fond teinté + ring inset, pas d'ombre. */
body#checkout section.checkout-step .delivery-options .delivery-option.selected,
body#checkout section.checkout-step .delivery-options .delivery-option:has(input[type="radio"]:checked) {
  background: var(--pc-brand-tint);
  box-shadow: inset 0 0 0 1px var(--pc-brand);
}

/* Neutralise la grille bootstrap interne : tout en flex simple. */
body#checkout section.checkout-step .delivery-options .delivery-option > [class*="col-"] {
  width: auto;
  max-width: none;
  flex: none;
  padding: 0;
  float: none;
}

body#checkout section.checkout-step .delivery-options .delivery-option label {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  margin: 0;
}

body#checkout section.checkout-step .delivery-options .delivery-option label > .row,
body#checkout section.checkout-step .delivery-options .delivery-option .carrier {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 12px;
  width: 100%;
  margin: 0;
  text-align: left;
}

body#checkout section.checkout-step .delivery-options .delivery-option .carrier > [class*="col-"],
body#checkout section.checkout-step .delivery-options .delivery-option label > .row > [class*="col-"] {
  width: auto;
  max-width: none;
  flex: none;
  padding: 0;
  float: none;
  text-align: left;
}

/* Le bloc nom+délai occupe l'espace : nom à gauche, prix repoussé à droite. */
body#checkout section.checkout-step .delivery-options .delivery-option [class*="col-"]:has(.carrier-name),
body#checkout section.checkout-step .delivery-options .delivery-option .carriere-name-container {
  flex: 1 1 auto;
}

body#checkout section.checkout-step .delivery-options .delivery-option [class*="col-"]:has(.carrier-price) {
  margin-left: auto;
}

/* Le calc(33% + 15px) de classic pour les carriers sans logo : mort. */
body#checkout section.checkout-step .delivery-options .delivery-option label .carrier:not(.carrier-hasLogo) > .col-xs-12 {
  padding-left: 0;
}

body#checkout section.checkout-step .delivery-options .delivery-option img,
body#checkout section.checkout-step .carrier-logo img {
  width: auto;
  max-width: 40px;
  max-height: 28px;
  object-fit: contain;
}

body#checkout section.checkout-step .carriere-name-container {
  flex: 1 1 auto;
}

body#checkout section.checkout-step .carrier-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--pc-strong);
}

body#checkout section.checkout-step .carrier-delay {
  font-size: 13px;
  color: var(--pc-muted);
}

body#checkout section.checkout-step .carrier-price {
  margin-left: auto;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--pc-strong);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body#checkout section.checkout-step .carrier-extra-content {
  padding: 12px 16px;
  border-top: 1px solid var(--pc-line);
  font-size: 13px;
  color: var(--pc-muted);
}

body#checkout #delivery textarea.form-control {
  max-width: 520px;
}

/* ------------------------------------------------------------------ */
/* 10. Paiement : même liste unifiée, CTA final dominant               */
/* ------------------------------------------------------------------ */

body#checkout section.checkout-step .payment-options {
  border: 1px solid var(--pc-line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--pc-panel);
  margin-bottom: 20px;
}

body#checkout section.checkout-step .payment-options .payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--pc-line);
  background: var(--pc-panel);
}

body#checkout section.checkout-step .payment-options > div:last-child .payment-option,
body#checkout section.checkout-step .payment-options .payment-option:last-child {
  border-bottom: 0;
}

body#checkout section.checkout-step .payment-options .payment-option:has(input[type="radio"]:checked) {
  background: var(--pc-brand-tint);
  box-shadow: inset 0 0 0 1px var(--pc-brand);
}

body#checkout section.checkout-step .payment-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--pc-strong);
  cursor: pointer;
}

body#checkout section.checkout-step .payment-options .custom-radio {
  margin-right: 0;
}

body#checkout section.checkout-step .payment-options img {
  max-height: 24px;
}

/* Mollie Components injecte les champs de carte dans des iframes de 48px.
   Ses labels absolus chevauchent les placeholders avec Classic : on conserve
   les iframes intacts et on remet les labels dans le flux. */
body#checkout .mollie-addition-info .mollie-information-label {
  display: block;
  margin: 0 0 12px;
  padding: 0;
  color: var(--pc-strong);
  font-size: 14px;
  font-weight: 700;
}

body#checkout .mollie-addition-info .mollie-credit-card-inputs {
  width: 100%;
}

body#checkout .mollie-addition-info .inline-form-group {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 12px !important;
  margin: 0 !important;
}

body#checkout .mollie-addition-info .form-group.creditcard {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 12px !important;
  align-items: stretch !important;
}

body#checkout .mollie-addition-info .form-group-card-number {
  grid-column: 1 / -1 !important;
}

body#checkout .mollie-addition-info .mollie-label {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  color: var(--pc-strong);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left !important;
  pointer-events: none;
}

body#checkout .mollie-addition-info .mollie-input {
  display: block;
  width: 100% !important;
  height: 50px !important;
  overflow: hidden;
  border: 1px solid var(--pc-line) !important;
  border-radius: 6px !important;
  background: #fff;
  box-shadow: none !important;
}

body#checkout .mollie-addition-info .mollie-component,
body#checkout .mollie-addition-info .mollie-component iframe {
  display: block;
  width: 100% !important;
  height: 48px !important;
}

body#checkout .mollie-addition-info .mollie-input:focus-within {
  border-color: var(--pc-brand) !important;
  box-shadow: 0 0 0 3px var(--pc-brand-tint) !important;
}

/* Le label d'expiration est, contrairement aux autres, imbriqué dans le
   wrapper du champ. Le cadre est donc porté par le composant iframe enfant. */
body#checkout .mollie-addition-info .form-group-expiry-date .mollie-input {
  height: auto !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body#checkout .mollie-addition-info .form-group-expiry-date .mollie-component {
  height: 50px !important;
  overflow: hidden;
  border: 1px solid var(--pc-line) !important;
  border-radius: 6px !important;
  background: #fff;
}

body#checkout .mollie-addition-info .form-group-expiry-date .mollie-component:focus-within {
  border-color: var(--pc-brand) !important;
  box-shadow: 0 0 0 3px var(--pc-brand-tint) !important;
}

body#checkout .mollie-addition-info .mollie-input-error:empty {
  display: none;
}

/* Descriptif du moyen de paiement sélectionné. */
body#checkout .js-additional-information,
body#checkout .additional-information {
  padding: 0 0 14px;
  font-size: 13.5px;
  color: var(--pc-muted);
}

/* Résumé final natif (PS_FINAL_SUMMARY_ENABLED) : le total est répété
   juste au-dessus du CTA, règle Baymard "total visible au moment de payer". */
body#checkout .order-final-summary,
body#checkout #order-summary-content {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--pc-line);
  border-radius: 6px;
  background: var(--pc-brand-tint);
  font-size: 14px;
}

body#checkout .order-final-summary .cart-summary-line,
body#checkout #order-summary-content .cart-summary-line {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
}

body#checkout .order-final-summary .cart-summary-line .value,
body#checkout #order-summary-content .cart-summary-line .value {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--pc-strong);
}

body#checkout .order-final-summary .cart-total,
body#checkout #order-summary-content .cart-total {
  font-weight: 700;
  color: var(--pc-strong);
}

body#checkout #order-summary-content h4.h4,
body#checkout #order-summary-content .card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--pc-strong);
  text-transform: none;
}

/* Cartes internes du résumé final : à plat, pas de double cadre. */
body#checkout #order-summary-content .card,
body#checkout #order-summary-content .card.noshadow {
  border: 0;
  background: transparent;
  box-shadow: none;
  margin-bottom: 8px;
}

body#checkout #order-summary-content table {
  width: 100%;
}

body#checkout #order-summary-content td,
body#checkout #order-summary-content th {
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

body#checkout #order-summary-content .order-line {
  padding: 6px 0;
}

/* Le pavé "please make sure" : hint discret, pas une alerte rouge
   affichée en permanence. */
body#checkout .js-alert-payment-conditions {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pc-muted);
  font-size: 13px;
  text-align: center;
}

/* Conditions générales. */
body#checkout #conditions-to-approve {
  padding: 0 0 16px;
}

body#checkout #conditions-to-approve ul {
  margin: 0;
}

body#checkout .condition-label {
  margin-left: 8px;
  font-size: 13.5px;
  color: var(--pc-ink);
}

/* CTA final : pleine largeur, 52px, jamais masqué. */
body#checkout #payment-confirmation button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 6px;
  background: var(--pc-brand);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
  transition: background-color 160ms ease-out;
}

body#checkout #payment-confirmation button:hover {
  background: var(--pc-brand-hover);
}

body#checkout #payment-confirmation button:disabled {
  background: var(--pc-line);
  color: var(--pc-muted);
}

/* ------------------------------------------------------------------ */
/* 11. Résumé de commande (colonne teintée)                            */
/* ------------------------------------------------------------------ */

body#checkout #js-checkout-summary .card-block,
body#checkout #js-checkout-summary .cart-summary-top {
  padding: 0;
  background: transparent;
}

body#checkout #js-checkout-summary .cart-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 14px;
  color: var(--pc-ink);
}

body#checkout #js-checkout-summary .cart-summary-line .value {
  margin-left: auto;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--pc-strong);
}

/* Liste produits : scroll interne pour garder le total visible. */
body#checkout #js-checkout-summary .cart-summary-products {
  max-height: 300px;
  overflow-y: auto;
  margin: 0 0 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--pc-line);
}

body#checkout #js-checkout-summary .media-list .media {
  display: flex;
  gap: 10px;
  padding: 8px 0;
}

body#checkout #js-checkout-summary .media-left img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--pc-line);
  background: #fff;
}

body#checkout #js-checkout-summary .product-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pc-ink);
}

body#checkout #js-checkout-summary .product-price {
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--pc-strong);
}

body#checkout #js-checkout-summary .product-quantity,
body#checkout #js-checkout-summary .product-line-info-secondary {
  font-size: 12.5px;
  color: var(--pc-muted);
}

/* Total : isolé, 20px, tabulaire. */
body#checkout #js-checkout-summary .cart-summary-totals {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--pc-line);
}

body#checkout #js-checkout-summary .cart-total {
  font-size: 15px;
  font-weight: 700;
  color: var(--pc-strong);
}

body#checkout #js-checkout-summary .cart-total .value {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

body#checkout #js-checkout-summary .js-show-details,
body#checkout #js-checkout-summary .collapse-icons {
  color: var(--pc-brand);
  font-size: 13px;
}

/* ------------------------------------------------------------------ */
/* 12. Page panier                                                     */
/* ------------------------------------------------------------------ */

body.page-cart .blockreassurance,
body.page-cart .blockreassurance_product,
body.page-cart #block-reassurance {
  display: none !important;
}

body.page-cart .cart-grid-body .card,
body.page-cart .cart-grid-right .card {
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius);
  box-shadow: none;
}

body.page-cart .cart-grid-body .card-block h1,
body.page-cart .cart-grid-body h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--pc-strong);
  text-transform: none;
  letter-spacing: 0;
}

/* Prix et remises : encre et marque, pas l'orange promo de classic. */
body.page-cart .product-price,
body.page-cart .current-price,
body.page-cart .product-line-info .price {
  color: var(--pc-strong);
}

body.page-cart .discount-percentage,
body.page-cart .discount-amount,
body.page-cart .discount {
  background: var(--pc-brand);
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

body.page-cart .regular-price {
  color: var(--pc-muted);
}

body.page-cart .cart-summary-line {
  padding: 4px 16px;
}

body.page-cart .cart-summary .card-block,
body.page-cart .cart-summary .checkout {
  padding: 12px 16px;
}

body.page-cart .cart-grid-right .card {
  background: var(--pc-brand-tint);
}

body.page-cart .checkout button,
body.page-cart .checkout .btn-primary {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 6px;
  background: var(--pc-brand);
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  text-transform: none;
  transition: background-color 160ms ease-out;
}

body.page-cart .checkout .btn-primary:hover {
  background: var(--pc-brand-hover);
}

body.page-cart .product-price,
body.page-cart .cart-summary-line .value,
body.page-cart .cart-total .value {
  font-variant-numeric: tabular-nums;
}

/* Stepper quantité : input et flèches soudés (les flèches flottaient
   détachées sous l'input en mobile). */
body.page-cart .bootstrap-touchspin {
  display: inline-flex;
  align-items: stretch;
  float: none;
  box-shadow: none;
  border: 1px solid var(--pc-line);
  border-radius: 6px;
  overflow: hidden;
}

body.page-cart .bootstrap-touchspin #quantity_wanted,
body.page-cart .bootstrap-touchspin .js-cart-line-product-quantity {
  width: 44px;
  min-height: 40px;
  border: 0;
  text-align: center;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

body.page-cart .bootstrap-touchspin .input-group-btn-vertical {
  position: static;
  display: flex;
  flex-direction: column;
  width: auto;
  float: none;
}

body.page-cart .bootstrap-touchspin .input-group-btn-vertical .btn {
  position: static;
  width: 28px;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--pc-line);
  background: var(--pc-panel);
  color: var(--pc-muted);
  box-shadow: none;
}

body.page-cart .bootstrap-touchspin .input-group-btn-vertical .btn + .btn {
  border-top: 1px solid var(--pc-line);
}

/* ------------------------------------------------------------------ */
/* 13. Confirmation de commande                                        */
/* ------------------------------------------------------------------ */

body#order-confirmation #content-wrapper {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  float: none;
}

body#order-confirmation .card {
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius);
  box-shadow: none;
}

body#order-confirmation h3,
body#order-confirmation .h3 {
  color: var(--pc-strong);
  text-transform: none;
}

body#order-confirmation .breadcrumb,
body#order-confirmation nav[data-depth] {
  display: none;
}

body#order-confirmation #content-hook_order_confirmation .material-icons,
body#order-confirmation .done {
  color: var(--pc-brand);
}

/* ------------------------------------------------------------------ */
/* 14. Paiements externes et retours PSP                               */
/* ------------------------------------------------------------------ */

/* Mollie et les autres PSP utilisent des controllers module distincts du
   controller order. Ils doivent conserver exactement la même coquille, y
   compris pendant les écrans intermédiaires et les retours d'erreur. */
body[class*="module-powerapi-checkoutbridge"] #content,
body[class*="module-"][class*="-validation"] #content,
body[class*="module-"][class*="-payment"] #content,
body[class*="module-"][class*="-payscreen"] #content,
body[class*="module-"][class*="-return"] #content,
body[class*="module-"][class*="-confirmation"] #content,
body[class*="module-"][class*="-success"] #content,
body[class*="module-"][class*="-fail"] #content,
body[class*="module-"][class*="-cancel"] #content,
body[class*="module-"][class*="-error"] #content {
  width: min(760px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius);
  background: var(--pc-panel);
  box-shadow: none;
  color: var(--pc-ink);
}

body[class*="module-"][class*="-payment"] #content:empty,
body[class*="module-"][class*="-payscreen"] #content:empty,
body[class*="module-"][class*="-return"] #content:empty {
  display: none;
}

body[class*="module-"][class*="-validation"] #content h1,
body[class*="module-"][class*="-payment"] #content h1,
body[class*="module-"][class*="-payscreen"] #content h1,
body[class*="module-"][class*="-return"] #content h1,
body[class*="module-"][class*="-confirmation"] #content h1,
body[class*="module-"][class*="-success"] #content h1,
body[class*="module-"][class*="-fail"] #content h1,
body[class*="module-"][class*="-cancel"] #content h1,
body[class*="module-"][class*="-error"] #content h1 {
  margin: 0 0 14px;
  color: var(--pc-strong);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  text-transform: none;
}

body[class*="module-"][class*="-validation"] #content :is(p, li),
body[class*="module-"][class*="-payment"] #content :is(p, li),
body[class*="module-"][class*="-payscreen"] #content :is(p, li),
body[class*="module-"][class*="-return"] #content :is(p, li),
body[class*="module-"][class*="-confirmation"] #content :is(p, li),
body[class*="module-"][class*="-success"] #content :is(p, li),
body[class*="module-"][class*="-fail"] #content :is(p, li),
body[class*="module-"][class*="-cancel"] #content :is(p, li),
body[class*="module-"][class*="-error"] #content :is(p, li) {
  color: var(--pc-muted);
  line-height: 1.55;
}

body[class*="module-"][class*="-validation"] #content .btn-primary,
body[class*="module-"][class*="-payment"] #content .btn-primary,
body[class*="module-"][class*="-payscreen"] #content .btn-primary,
body[class*="module-"][class*="-return"] #content .btn-primary,
body[class*="module-"][class*="-confirmation"] #content .btn-primary,
body[class*="module-"][class*="-success"] #content .btn-primary,
body[class*="module-"][class*="-fail"] #content .btn-primary,
body[class*="module-"][class*="-cancel"] #content .btn-primary,
body[class*="module-"][class*="-error"] #content .btn-primary {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 6px;
  background: var(--pc-brand);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
  box-shadow: none;
}

body[class*="module-"][class*="-validation"] #content .btn-primary:hover,
body[class*="module-"][class*="-payment"] #content .btn-primary:hover,
body[class*="module-"][class*="-payscreen"] #content .btn-primary:hover,
body[class*="module-"][class*="-return"] #content .btn-primary:hover,
body[class*="module-"][class*="-confirmation"] #content .btn-primary:hover,
body[class*="module-"][class*="-success"] #content .btn-primary:hover,
body[class*="module-"][class*="-fail"] #content .btn-primary:hover,
body[class*="module-"][class*="-cancel"] #content .btn-primary:hover,
body[class*="module-"][class*="-error"] #content .btn-primary:hover {
  background: var(--pc-brand-hover);
  color: #fff;
}

body[class*="module-"][class*="-payment"] #content iframe,
body[class*="module-"][class*="-payscreen"] #content iframe,
body[class*="module-"][class*="-return"] #content iframe,
body[class*="module-"][class*="-payment"] #content [class*="mollie"],
body[class*="module-"][class*="-payscreen"] #content [class*="mollie"] {
  max-width: 100%;
}

body.module-mollie-return #content {
  min-height: 260px;
  text-align: center;
}

body.module-mollie-return #content h2 {
  margin: 6px 0 12px;
  color: var(--pc-strong);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

body.module-mollie-return .mollie-spinner {
  display: flex !important;
  width: 58px !important;
  height: 44px !important;
  margin: 56px auto 20px !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

body.module-mollie-return .mollie-spinner > div {
  width: 6px !important;
  border-radius: 3px;
  background-color: var(--pc-brand) !important;
}

/* ------------------------------------------------------------------ */
/* 15. Footer checkout (injecté par powerapi)                          */
/* ------------------------------------------------------------------ */

.powerapi-checkout-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  max-width: min(1160px, 100%);
  margin: 24px auto 36px;
  padding: 0 18px;
  color: var(--pc-muted);
  font-size: 12.5px;
  text-align: center;
}

.powerapi-checkout-footer a {
  color: var(--pc-brand);
  text-decoration: none;
}

.powerapi-checkout-footer a:hover {
  text-decoration: underline;
}

.powerapi-checkout-legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
}

.powerapi-checkout-legal-links a {
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* 16. Customer account, order history and guest tracking              */
/* ------------------------------------------------------------------ */

html.powerapi-checkout-surface body.page-customer-account #wrapper > .container,
html.powerapi-checkout-surface body.page-customer-account #content-wrapper {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

html.powerapi-checkout-surface body.page-customer-account #left-column,
html.powerapi-checkout-surface body.page-customer-account #right-column {
  display: none;
}

html.powerapi-checkout-surface body.page-customer-account #content-wrapper {
  padding: 0 20px;
}

html.powerapi-checkout-surface body.page-customer-account .page-header h1,
html.powerapi-checkout-surface body.page-customer-account #main > h1 {
  margin: 0 0 20px;
  color: var(--pc-strong);
  font-size: 26px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

html.powerapi-checkout-surface body.page-customer-account :is(a, .link) {
  color: var(--pc-brand);
}

html.powerapi-checkout-surface body.page-customer-account :is(.card, .box) {
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius);
  background: var(--pc-panel);
  box-shadow: var(--powerapi-shadow, 0 14px 34px rgba(24, 55, 61, 0.08));
}

body#guest-tracking #content,
body#order-detail #content {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body#guest-tracking #guestOrderTrackingForm {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 32px 30px;
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius);
  background: var(--pc-panel);
  box-shadow: var(--powerapi-shadow, 0 14px 34px rgba(24, 55, 61, 0.08));
}

body#guest-tracking #guestOrderTrackingForm > header p {
  margin: 0 0 24px;
  color: var(--pc-muted);
  font-size: 15px;
  line-height: 1.6;
}

body#guest-tracking #guestOrderTrackingForm .form-group {
  align-items: start;
  margin-bottom: 18px;
}

body#guest-tracking #guestOrderTrackingForm .form-control-label {
  padding-top: 11px;
  color: var(--pc-strong);
  font-size: 14px;
  font-weight: 700;
}

body#guest-tracking #guestOrderTrackingForm .form-control {
  min-height: 46px;
  border: 1px solid var(--pc-line);
  border-radius: 6px;
  background: var(--pc-panel);
  color: var(--pc-ink);
  font-size: 16px;
  box-shadow: none;
}

body#guest-tracking #guestOrderTrackingForm .form-control:focus {
  border-color: var(--pc-brand);
  box-shadow: 0 0 0 3px var(--pc-brand-ring);
}

body#guest-tracking #guestOrderTrackingForm .form-control-comment {
  padding-top: 7px;
  color: var(--pc-muted);
  font-size: 12.5px;
}

body#guest-tracking #guestOrderTrackingForm .form-footer {
  padding-top: 4px;
}

body#guest-tracking #guestOrderTrackingForm .btn-primary,
html.powerapi-checkout-surface body.page-customer-account .button-primary,
html.powerapi-checkout-surface body.page-customer-account .btn-primary {
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--pc-brand);
  border-radius: 6px;
  background: var(--pc-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}

body#guest-tracking #guestOrderTrackingForm .btn-primary:hover,
html.powerapi-checkout-surface body.page-customer-account .button-primary:hover,
html.powerapi-checkout-surface body.page-customer-account .btn-primary:hover {
  border-color: var(--pc-brand-hover);
  background: var(--pc-brand-hover);
  color: #fff;
  text-decoration: none;
}

body#history #content {
  padding: 26px;
}

body#history #content > h6 {
  margin: 0 0 20px;
  color: var(--pc-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

html.powerapi-checkout-surface body.page-customer-account .table {
  width: 100%;
  margin: 0;
  border: 1px solid var(--pc-line);
  background: var(--pc-panel);
  color: var(--pc-ink);
}

html.powerapi-checkout-surface body.page-customer-account .table thead th {
  padding: 12px 10px;
  border-color: var(--pc-line);
  background: var(--pc-brand-tint);
  color: var(--pc-strong);
  font-size: 12px;
  font-weight: 750;
  text-transform: none;
}

html.powerapi-checkout-surface body.page-customer-account .table tbody :is(td, th),
html.powerapi-checkout-surface body.page-customer-account .table tfoot td {
  padding: 13px 10px;
  border-color: var(--pc-line);
  vertical-align: middle;
}

html.powerapi-checkout-surface body.page-customer-account .label-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

body#history .order-actions {
  white-space: nowrap;
}

body#history .order-actions a + a {
  margin-left: 10px;
}

body#order-detail #order-infos .box,
body#guest-tracking #order-infos .box,
body#order-detail #order-history,
body#guest-tracking #order-history,
body#order-detail .addresses .box,
body#guest-tracking .addresses .box,
body#order-detail #content > .box,
body#guest-tracking #content > .box {
  margin: 0 0 16px;
  padding: 20px 22px;
}

body#order-detail :is(.box, #order-history) h3,
body#guest-tracking :is(.box, #order-history) h3,
body#order-detail .addresses h4,
body#guest-tracking .addresses h4 {
  margin: 0 0 14px;
  color: var(--pc-strong);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

body#order-detail #order-infos ul,
body#guest-tracking #order-infos ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body#order-detail #order-infos li + li,
body#guest-tracking #order-infos li + li {
  margin-top: 8px;
}

body#order-detail .addresses,
body#guest-tracking .addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 16px;
}

body#order-detail .addresses > [class*="col-"],
body#guest-tracking .addresses > [class*="col-"] {
  width: auto;
  max-width: none;
  padding: 0;
}

body#order-detail address,
body#guest-tracking address {
  margin: 0;
  color: var(--pc-muted);
  line-height: 1.65;
}

html.powerapi-checkout-surface body.page-customer-account .alert {
  border: 1px solid var(--pc-line);
  border-radius: 6px;
  background: var(--pc-brand-tint);
  color: var(--pc-ink);
}

/* ------------------------------------------------------------------ */
/* 17. Mobile                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
  /* Le résumé remonte au-dessus du tunnel : total visible avant saisie
     (Baymard). L'ordre DOM de classic met le résumé après : flex order. */
  body#checkout #content > .row {
    display: flex;
    flex-direction: column;
  }

  body#checkout #content > .row > .cart-grid-right {
    order: -1;
  }

  body#checkout #js-checkout-summary {
    position: static;
    margin-bottom: 16px;
  }

  body#checkout #js-checkout-summary .cart-summary-products {
    max-height: 180px;
  }

  body#checkout section.checkout-step {
    padding: 0 16px;
  }

  body#checkout .checkout-step .content {
    padding-left: 0;
  }

  .powerapi-checkout-shellbar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding: 12px 16px;
  }

  .powerapi-checkout-trust {
    justify-self: center;
  }

  body#checkout section.checkout-step .delivery-options .delivery-option,
  body#checkout section.checkout-step .payment-options .payment-option {
    padding: 12px;
  }

  /* P0 : sous 768px, ligne 1 = radio | nom | prix, ligne 2 = délai.
     DOM réel : .delivery-option > (col radio) + (label > .row > col nom /
     col délai / col prix). Sans ça, le prix sortait de l'écran. */
  body#checkout section.checkout-step .delivery-options .delivery-option .carrier-logo,
  body#checkout section.checkout-step .delivery-options .delivery-option img {
    display: none;
  }

  body#checkout section.checkout-step .delivery-options .delivery-option label {
    flex: 1 1 0;
    min-width: 0;
  }

  body#checkout section.checkout-step .delivery-options .delivery-option label > .row {
    flex-wrap: wrap;
    row-gap: 2px;
  }

  body#checkout section.checkout-step .delivery-options .delivery-option label > .row > [class*="col-"]:has(.carrier-name),
  body#checkout section.checkout-step .delivery-options .delivery-option label > .row > [class*="col-"]:first-child {
    flex: 1 1 0;
    min-width: 0;
  }

  body#checkout section.checkout-step .carrier-name {
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  body#checkout section.checkout-step .delivery-options .delivery-option label > .row > [class*="col-"]:has(.carrier-delay) {
    flex: 1 1 100%;
    order: 3;
  }

  body#checkout section.checkout-step .carrier-delay {
    font-size: 12.5px;
  }

  body#checkout section.checkout-step .delivery-options .delivery-option label > .row > [class*="col-"]:has(.carrier-price) {
    flex: 0 0 auto;
    margin-left: auto;
  }

  body#checkout section.checkout-step .carrier-price {
    font-size: 14px;
  }

  html.powerapi-checkout-surface body.page-customer-account #content-wrapper {
    padding: 0 14px;
  }

  html.powerapi-checkout-surface body.page-customer-account .page-header h1,
  html.powerapi-checkout-surface body.page-customer-account #main > h1 {
    margin-bottom: 16px;
    font-size: 22px;
  }

  body#guest-tracking #guestOrderTrackingForm,
  body#history #content {
    padding: 20px 16px;
  }

  body#guest-tracking #guestOrderTrackingForm .form-control-label {
    padding-top: 0;
    padding-bottom: 7px;
    text-align: left;
  }

  body#order-detail .addresses,
  body#guest-tracking .addresses {
    grid-template-columns: 1fr;
  }

  body#history .orders .order {
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid var(--pc-line);
    border-radius: 6px;
    background: var(--pc-panel);
  }
}

/* ------------------------------------------------------------------ */
/* 18. Motion et préférences                                           */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  body#checkout *,
  body.page-cart *,
  body#order-confirmation * {
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}

/* Checkout hierarchy and native VAT breakdown. No payment markup is replaced. */
body#checkout #wrapper > .container { max-width: 1216px; width: 100%; }
body#checkout .powercheckout-intro { margin: 0 0 24px; }
body#checkout .powercheckout-intro h1 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 32px); font-weight: 700; letter-spacing: -.025em; color: var(--pc-ink); }
body#checkout .powercheckout-intro p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--pc-muted); }
body#checkout section.checkout-step.-current h1.step-title { font-size: 18px; }
body#checkout section.checkout-step .step-edit { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 8px; border-radius: 6px; }
body#checkout section.checkout-step .step-edit:hover { background: var(--pc-brand-tint); }
body#checkout #js-checkout-summary .powercheckout-summary-heading { margin: 0 0 6px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--pc-ink); }
body#checkout #js-checkout-summary .powercheckout-items-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
body#checkout #js-checkout-summary .powercheckout-items-heading p { margin: 0; font-size: 14px; color: var(--pc-muted); }
body#checkout #js-checkout-summary .powercheckout-items-heading button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; padding: 8px 0 8px 8px; font-weight: 600; cursor: pointer; }
body#checkout #js-checkout-summary .cart-summary-products { max-height: none; overflow: visible; }
body#checkout #cart-summary-product-list { max-height: 240px; overflow: auto; }
body#checkout #js-checkout-summary .cart-summary-totals { margin-top: 12px; padding-top: 12px; }
body#checkout #js-checkout-summary .cart-summary-totals .cart-total { align-items: baseline; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--pc-line); }
body#checkout #js-checkout-summary .cart-total .value { font-size: 24px; letter-spacing: -.025em; }
body#checkout #js-checkout-summary .powercheckout-tax-note { margin: 12px 0 0; color: var(--pc-muted); font-size: 13px; line-height: 1.5; }
body#checkout #conditions-to-approve { margin: 24px 0 20px; }
body#checkout #payment-confirmation button { border-radius: 8px; }
body#checkout button:focus-visible, body#checkout a:focus-visible { outline: 2px solid var(--pc-brand); outline-offset: 3px; }
@media (min-width: 992px) {
  body#checkout #content > .row { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; margin: 0; align-items: start; }
  body#checkout #content > .row > .cart-grid-body, body#checkout #content > .row > .cart-grid-right { width: auto; float: none; padding: 0; min-width: 0; }
}
@media (max-width: 767px) {
  body#checkout #wrapper { padding-top: 24px; }
  body#checkout .powercheckout-intro { margin-bottom: 20px; }
  body#checkout #js-checkout-summary { padding: 20px; }
  body#checkout #cart-summary-product-list { max-height: 160px; }
  body#checkout .powerapi-checkout-shellbar { grid-template-columns: 1fr auto; gap: 12px; min-height: 72px; padding: 12px 16px; }
  body#checkout .powerapi-checkout-title { grid-column: 1; grid-row: 1; justify-self: start; text-align: left; }
  body#checkout .powerapi-checkout-logo { max-height: 32px; }
  body#checkout .powerapi-checkout-title-copy { display: none; }
  body#checkout .powerapi-checkout-title-copy span { display: none; }
  body#checkout .powerapi-checkout-back { grid-column: 2; grid-row: 1; font-size: 12px; padding: 0 8px; }
  body#checkout .powerapi-checkout-trust { display: none; }
}
@media (max-width: 360px) {
  body#checkout .powerapi-checkout-title-copy { display: none; }
}

body#checkout #js-checkout-summary .powercheckout-product-top { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; }
body#checkout #js-checkout-summary .powercheckout-product-top .product-name { line-height: 1.5; }
body#checkout #js-checkout-summary .powercheckout-product-price { flex: 0 0 auto; text-align: right; }
body#checkout #js-checkout-summary .powercheckout-product-price small { display: block; color: var(--pc-muted); font-size: 11px; font-weight: 400; }
body#checkout #js-checkout-summary .media-body { min-width: 0; }

/* GENERATED STOREFRONT COMPONENT PARITY */
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) {
  --primary: oklch(0.55 0.086 195);
  --primary-foreground: oklch(0.995 0.003 195);
  --background: oklch(0.995 0.003 195);
  --foreground: oklch(0.24 0.022 240);
  --card: oklch(0.995 0.003 195);
  --card-foreground: var(--foreground);
  --popover: var(--card);
  --popover-foreground: var(--foreground);
  --secondary: oklch(0.965 0.012 195);
  --secondary-foreground: oklch(0.39 0.059 195);
  --muted-foreground: oklch(0.49 0.025 230);
  --accent: oklch(0.95 0.019 195);
  --accent-foreground: var(--secondary-foreground);
  --border: oklch(0.88 0.012 215);
  --input: oklch(0.79 0.022 215);
  --ring: oklch(0.47 0.076 195);
  --bc-control-radius: 8px;
  --bc-panel-shadow: 0 3px 14px -8px rgb(20 33 43 / 12%);

  --bc-motion-feedback: 120ms;
  --bc-motion-state: 280ms;
  --bc-motion-content: 420ms;
  --bc-motion-reveal: 650ms;
  --bc-motion-hover: 700ms;
  --bc-motion-ease: cubic-bezier(.22, .61, .36, 1);
}
/* Same Inter asset, controls, panels, consent and motion as the admitted storefront. */
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter-latin.woff2') format('woff2'); }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) {
  --pc-brand: var(--primary);
  --pc-ink: var(--foreground);
  --pc-strong: var(--foreground);
  --pc-muted: var(--muted-foreground);
  --pc-line: var(--border);
  --pc-panel: var(--card);
  --pc-page: #f4f8f8;
  --pc-radius: 12px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) :is(button,input,textarea,select) { font-family: inherit; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) :is(h1,h2,h3) { font-family: inherit; letter-spacing: -.02em; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) :is(.btn,.powerapi-checkout-back) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--border); border-radius: var(--bc-control-radius); background: var(--background); color: var(--foreground);
  font-size: 14px; font-weight: 600; line-height: 1.25; text-transform: none; box-shadow: none;
}
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) .btn-primary { border-color: transparent; background: var(--primary); color: var(--primary-foreground); }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) .btn-primary:hover { background: color-mix(in srgb,var(--primary) 90%,transparent); }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) :is(.btn,.powerapi-checkout-back):focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; box-shadow: none; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) :is(.btn,.powerapi-checkout-back):active:not(:disabled) { transform: translateY(1px); }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) :is(.form-control,select.form-control) { min-height: 44px; padding: 10px 12px; border: 1px solid var(--input); border-radius: 8px; background: var(--background); color: var(--foreground); font-size: 14px; box-shadow: none; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) .form-control:focus { border-color: var(--ring); outline: 2px solid var(--ring); outline-offset: 2px; box-shadow: none; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) .form-control::placeholder { color: var(--muted-foreground); opacity: 1; }
body#checkout .checkout-step:first-of-type, body#checkout #js-checkout-summary { box-shadow: var(--bc-panel-shadow); }
body#checkout #payment-confirmation button { min-height: 48px; font-size: 14px; font-weight: 600; background: var(--primary); color: var(--primary-foreground); }
body#checkout section.checkout-step .payment-options { border-radius: 8px; }
body#checkout section.checkout-step .payment-options .payment-option:has(input:checked) { background: var(--secondary); }
body#checkout .powerapi-checkout-title-copy strong { font-size: 14px; font-weight: 600; }
/* Consent uses the exact storefront geometry, hierarchy and action variants. */
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel { bottom: 20px; left: 20px; right: 20px; max-width: 768px; max-height: 85dvh; padding: 20px; font: 14px/1.625 Inter,ui-sans-serif,system-ui,sans-serif; color: #475569; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 28px rgb(20 33 43 / 14%); }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel header { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel header > div { display: flex; align-items: center; gap: 12px; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel .bc-consent-description { margin: 0; font-size: 14px; line-height: 1.625; color: lab(35.5623 -1.74978 -15.4316); }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel h2 { margin: 0; color: #020617; font-size: 18px; line-height: 1.5; font-weight: 700; letter-spacing: 0; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel .bc-consent-icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 8px; background: #1472731a url('../icons/cookie.svg') center/24px no-repeat; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel button { border-radius: 8px; min-height: 44px; padding: 10px 16px; font: 600 14px/1.25 Inter,ui-sans-serif,system-ui,sans-serif; box-shadow: none; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel .bc-consent-close { min-width: 40px; width: 40px; height: 40px; padding: 0; border: 0; background: transparent url('../icons/x.svg') center/20px no-repeat; color: #94a3b8; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel .bc-consent-close:hover { background-color: var(--secondary); }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel .bc-consent-manage { margin-top: 12px; padding: 0; min-height: 24px; border: 0; background: transparent; color: #147273; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-actions { display: flex; flex-wrap: nowrap; gap: 8px; margin-top: 16px; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-actions button { flex: 1; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-actions .bc-consent-accept { background: #147273; border-color: #147273; color: white; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-actions .bc-consent-save { background: #0f172a; border-color: #0f172a; color: white; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-actions .bc-consent-reject { background: white; border-color: #147273; color: #147273; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-actions .bc-consent-accept:hover { background: #0f6263; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-actions .bc-consent-reject:hover { background: #1472730d; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel footer { margin-top: 12px; text-align: center; color: #64748b; font-size: 11px; line-height: 1.625; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel footer a { margin-left: 8px; font-weight: 600; color: #147273; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel .bc-consent-details { margin-top: 16px; padding: 16px; border-radius: 6px; background: #f8fafc; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel .bc-consent-details strong { color: #020617; font-size: 14px; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel .bc-consent-details p { margin: 4px 0 0; font-size: 12px; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel .bc-consent-category { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel .bc-consent-required { margin-left: 8px; padding: 2px 8px; border-radius: 4px; background: #e2e8f0; color: #334155; font-size: 12px; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel label.bc-consent-switch { position: relative; display: inline-flex; flex: 0 0 44px; width: 44px; height: 24px; margin: 0; cursor: pointer; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel .bc-consent-switch input { position: absolute; opacity: 0; width: 44px; height: 24px; margin: 0; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel .bc-consent-switch span { width: 44px; height: 24px; border-radius: 999px; background: #cbd5e1; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel .bc-consent-switch span::after { content: ''; position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border: 1px solid #cbd5e1; border-radius: 50%; background: white; transition: transform var(--bc-motion-state) var(--bc-motion-ease); }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel .bc-consent-switch input:checked + span { background: #147273; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel .bc-consent-switch input:checked + span::after { transform: translateX(20px); border-color: white; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel .bc-consent-switch input:focus-visible + span { outline: 2px solid var(--ring); outline-offset: 3px; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-reopen { min-height: 36px; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #334155; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 10%); font: 600 12px/1.25 Inter,ui-sans-serif,system-ui,sans-serif; }
/* Same feedback/content durations and easing as app/motion-system.css. */
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) :is(a,button,input,select,textarea,.step-title) { transition-property: color,background-color,border-color,box-shadow,opacity; transition-duration: var(--bc-motion-state); transition-timing-function: var(--bc-motion-ease); }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) .bc-native-enter { animation: bc-native-panel var(--bc-motion-content) var(--bc-motion-ease); }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel:not([hidden]) { animation: bc-native-panel var(--bc-motion-content) var(--bc-motion-ease); }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) .modal.fade .modal-dialog { transition: transform var(--bc-motion-content) var(--bc-motion-ease),opacity var(--bc-motion-state) var(--bc-motion-ease); }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) .modal-content { border: 1px solid var(--border); border-radius: 12px; padding: 8px; color: var(--foreground); box-shadow: 0 8px 28px rgb(20 33 43 / 14%); }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) .modal-header { padding: 16px; border-color: var(--border); }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) .modal-body { padding: 16px; }
html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) .modal-title { font-size: 18px; font-weight: 600; }
@keyframes bc-native-panel { from { opacity: .85; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) {
 html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) :is(.form-control,select.form-control) { font-size: 16px; }
}
@media (max-width: 639px) {
 html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel { bottom: 12px; left: 12px; right: 12px; padding: 16px; font-size: 12px; }
 html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel .bc-consent-description { font-size: 12px; }
 html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel h2 { font-size: 16px; }
 html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel .bc-consent-icon { flex-basis: 36px; width: 36px; height: 36px; background-size: 20px; }
}
@media (max-width: 639px) { html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-actions { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) {
 html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) :is(a,button,input,select,textarea,.step-title,.modal-dialog) { transition-duration: 0s; }
 html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) .bc-native-enter, html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) #powerapi-cookie-panel:not([hidden]) { animation: none; }
 html.powerapi-checkout-surface body:is(#checkout, #cart, #order-confirmation, body) .bc-consent-switch span::after { transition: none; }
}

/* Checkout layout: one active task, native form state, compact mobile total. */
body#checkout #wrapper { padding-top: 40px; padding-bottom: 40px; }
body#checkout .powercheckout-intro { margin-bottom: 26px; }
body#checkout .powercheckout-intro h1 { font-size: 30px; line-height: 1.25; margin-bottom: 8px; }
body#checkout .powercheckout-intro p { font-size: 14px; max-width: 65ch; }
body#checkout .bc-checkout-progress { max-width: 690px; margin: 0 0 30px; }
body#checkout .bc-checkout-progress[hidden] { display: none; }
body#checkout .bc-checkout-progress ol { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 0; margin: 0; list-style: none; }
body#checkout .bc-checkout-progress li { position: relative; }
body#checkout .bc-checkout-progress li:not(:last-child)::after { content: ''; position: absolute; left: 116px; right: 12px; top: 22px; height: 1px; background: var(--border); }
body#checkout .bc-checkout-progress button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px 0 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted-foreground); font-size: 13px; font-weight: 600; cursor: pointer; }
body#checkout .bc-checkout-progress button:disabled { opacity: .65; cursor: default; }
body#checkout .bc-checkout-progress button[aria-current] { color: var(--foreground); }
body#checkout .bc-checkout-progress button:not(:disabled):hover { color: var(--primary); }
body#checkout .bc-progress-number { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 50%; background: var(--background); color: var(--muted-foreground); font-size: 12px; }
body#checkout [aria-current] .bc-progress-number { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
body#checkout .is-complete .bc-progress-number { font-size: 0; background: var(--secondary); border-color: transparent; }
body#checkout .is-complete .bc-progress-number::after { content: ''; width: 12px; height: 7px; border: solid var(--primary); border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-1px); }
body#checkout.bc-checkout-enhanced .checkout-step:not(.-current) { display: none; }
body#checkout.bc-checkout-enhanced section.checkout-step.-current { border: 1px solid var(--border); border-radius: 12px; padding: 0 32px; box-shadow: var(--bc-panel-shadow); }
body#checkout.bc-checkout-enhanced section.checkout-step.-current h1.step-title { font-size: 22px; font-weight: 650; line-height: 1.3; padding: 28px 0 24px; cursor: default; scroll-margin-top: 24px; }
body#checkout.bc-checkout-enhanced section.checkout-step.-current h1.step-title :is(.step-number,.done,.step-edit) { display: none; }
body#checkout.bc-checkout-enhanced section.checkout-step .content { padding: 0 0 28px; }
body#checkout .checkout-step .content > p, body#checkout .js-address-form > form > p { font-size: 14px; line-height: 1.6; color: var(--muted-foreground); max-width: 65ch; }
body#checkout .checkout-step .content .form-control-label { font-size: 13px; margin: 0; padding-bottom: 7px; }
body#checkout .checkout-step .form-group.row { max-width: none; margin-bottom: 20px; }
body#checkout .checkout-step .form-fields, body#checkout #customer-form > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 20px; }
body#checkout .checkout-step .form-fields > *, body#checkout #customer-form > div > * { grid-column: 1 / -1; min-width: 0; }
body#checkout .checkout-step .form-fields > [data-bc-field]:is([data-bc-field=firstname],[data-bc-field=lastname],[data-bc-field=company],[data-bc-field=vat_number],[data-bc-field=postcode],[data-bc-field=city],[data-bc-field=id_country],[data-bc-field=phone]),
body#checkout #customer-form > div > [data-bc-field]:is([data-bc-field=firstname],[data-bc-field=lastname]) { grid-column: auto; }
body#checkout .checkout-step .form-footer { margin-top: 8px; padding-top: 8px; display: flex; align-items: center; gap: 16px; justify-content: flex-end; }
body#checkout .checkout-step :is(.btn-primary.continue,.form-footer .btn-primary) { min-width: 180px; min-height: 48px; }
body#checkout #js-checkout-summary { padding: 28px; top: 28px; }
body#checkout #js-checkout-summary .powercheckout-summary-heading { margin-bottom: 4px; font-size: 20px; }
body#checkout #js-checkout-summary .cart-summary-line { padding: 10px 0; }
body#checkout #js-checkout-summary .cart-summary-totals { border-top: 0; margin-top: 4px; }
body#checkout #js-checkout-summary .cart-summary-totals .cart-total { margin-top: 8px; padding-top: 20px; }
body#checkout #js-checkout-summary .cart-summary-line .value { font-variant-numeric: tabular-nums; }
body#checkout #js-checkout-summary .powercheckout-tax-note { margin-top: 8px; font-size: 12px; }
body#checkout .bc-mobile-summary { display: none; }
body#checkout #payment-confirmation button { min-height: 52px; font-size: 15px; }
body#checkout #payment-confirmation button:disabled { background: var(--secondary); color: var(--muted-foreground); opacity: 1; cursor: not-allowed; }
body#checkout #conditions-to-approve { margin: 24px 0; }
body#checkout #conditions-to-approve .js-terms a { text-decoration: underline; text-underline-offset: 3px; }
body#checkout #js-checkout-summary .cart-summary-line { margin: 0; }
body#checkout #js-checkout-summary .cart-summary-subtotals { border-top: 0; border-bottom: 0; }
body#checkout #js-checkout-summary .cart-summary-products { margin-bottom: 8px; padding-bottom: 16px; }
body#checkout #js-checkout-summary .media-list { margin-bottom: 0; }
body#checkout #js-checkout-summary .cart-summary-subtotals-container { border: 0; }
body#checkout #js-checkout-summary .cart-summary-totals { padding-top: 0; }
body#checkout #js-checkout-summary .cart-summary-line:not(.cart-total) { padding: 6px 0; }
body#checkout #js-checkout-summary .cart-summary-totals .cart-total { margin-top: 8px; }
body#checkout .bc-mobile-summary:focus:not(:focus-visible) { outline: none; }
body#checkout .bc-mobile-summary:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
body#checkout .checkout-step .order-options { margin: 24px 0 20px; }
body#checkout .checkout-step .order-options label { font-size: 13px; line-height: 1.5; color: var(--muted-foreground); margin-bottom: 8px; }
body#checkout .checkout-step .order-options textarea { width: 100%; min-height: 88px; padding: 12px; border: 1px solid var(--input); border-radius: 8px; background: var(--background); color: var(--foreground); font-size: 14px; line-height: 1.6; resize: vertical; }
body#checkout .checkout-step .order-options textarea:focus { outline: 2px solid var(--ring); outline-offset: 2px; border-color: var(--ring); }
body#checkout #bc-summary-details[hidden] { display: none; }
body#checkout .bc-native-enter { animation-duration: var(--bc-motion-state); }
body#checkout .bc-mobile-summary svg { transition: transform var(--bc-motion-state) var(--bc-motion-ease); }
body#checkout .bc-mobile-summary[aria-expanded=true] svg { transform: rotate(180deg); }
@media (min-width: 992px) {
 body#checkout #content > .row { grid-template-columns: minmax(0,1fr) 360px; gap: 36px; }
}
@media (max-width: 991px) {
 body#checkout #wrapper { padding-top: 24px; }
 body#checkout .powercheckout-intro { margin-bottom: 20px; }
 body#checkout .bc-checkout-progress { margin-bottom: 22px; }
 body#checkout #content > .row { display: flex; flex-direction: column; gap: 20px; }
 body#checkout #content > .row > :is(.cart-grid-body,.cart-grid-right) { width: 100%; float: none; }
 body#checkout #content > .row > .cart-grid-right { order: -1; margin-bottom: 0; }
 body#checkout.bc-checkout-enhanced #js-checkout-summary { padding: 0; }
 body#checkout.bc-checkout-enhanced .bc-mobile-summary { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 20px; min-height: 74px; border: 0; border-radius: 12px; background: var(--card); color: var(--foreground); text-align: left; cursor: pointer; }
 body#checkout .bc-mobile-summary > span:first-child { flex: 1; min-width: 0; }
 body#checkout .bc-mobile-summary strong { display: block; font-size: 14px; font-weight: 650; line-height: 1.4; }
 body#checkout .bc-mobile-summary small { display: block; font-size: 12px; line-height: 1.5; color: var(--muted-foreground); }
 body#checkout .bc-mobile-summary-price { text-align: right; font-variant-numeric: tabular-nums; }
 body#checkout .bc-mobile-summary-price strong { font-size: 18px; }
 body#checkout #bc-summary-details { padding: 0 20px 20px; }
 body#checkout.bc-checkout-enhanced #bc-summary-details .powercheckout-summary-heading { display: none; }
 body#checkout .bc-mobile-summary svg { flex-shrink: 0; color: var(--primary); }
}
@media (max-width: 639px) {
 body#checkout #wrapper > .container { padding: 0 16px; }
 body#checkout .powercheckout-intro h1 { font-size: 26px; }
 body#checkout .powercheckout-intro p { font-size: 13px; }
 body#checkout .bc-checkout-progress button { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 0; min-height: 58px; font-size: 11px; }
 body#checkout .bc-checkout-progress li:not(:last-child)::after { left: calc(50% + 22px); right: calc(-50% + 22px); top: 15px; }
 body#checkout.bc-checkout-enhanced section.checkout-step.-current { padding: 0 20px; }
 body#checkout.bc-checkout-enhanced section.checkout-step.-current h1.step-title { font-size: 20px; padding: 22px 0 20px; }
 body#checkout .checkout-step .form-fields, body#checkout #customer-form > div { grid-template-columns: minmax(0,1fr); }
 body#checkout .checkout-step .form-group.row { margin-bottom: 16px; }
 body#checkout .checkout-step .form-footer { flex-direction: column; align-items: stretch; }
 body#checkout .checkout-step :is(.btn-primary.continue,.form-footer .btn-primary) { width: 100%; }
 body#checkout .checkout-step .form-footer .cancel-address { align-self: center; padding: 8px; }
 body#checkout .checkout-step .order-options textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
 body#checkout .bc-native-enter { animation: none; }
 body#checkout .bc-mobile-summary svg { transition: none; }
}

/* Discreet close affordance with a native, keyboard-safe confirmation dialog. */
body#checkout .powerapi-checkout-shellbar { grid-template-columns: minmax(0,1fr) auto 44px; gap: 24px; }
body#checkout .powerapi-checkout-title { grid-column: 1; grid-row: 1; justify-self: start; text-align: left; }
body#checkout .powerapi-checkout-title-copy { display: none; }
body#checkout .powerapi-checkout-trust { grid-column: 2; grid-row: 1; }
body#checkout .powerapi-checkout-trust span:first-child { display: none; }
html.powerapi-checkout-surface body#checkout .powerapi-checkout-back { grid-column: 3; grid-row: 1; display: grid; place-items: center; justify-self: end; min-width: 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; font-size: 0; }
body#checkout .powerapi-checkout-back::before { content: none; }
body#checkout .powerapi-checkout-back::after { content: ''; display: block; width: 20px; height: 20px; background: url('../icons/x.svg') center/20px no-repeat; }
html.powerapi-checkout-surface body#checkout .powerapi-checkout-back:hover { background: var(--secondary); }
html.powerapi-checkout-surface body#checkout .powerapi-checkout-back:focus:not(:focus-visible) { outline: none; }
body#checkout .bc-checkout-exit { width: min(440px,calc(100% - 32px)); max-width: none; margin: auto; padding: 32px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--foreground); box-shadow: 0 12px 40px rgb(20 33 43 / 16%); }
body#checkout .bc-checkout-exit:not([open]) { display: none; }
body#checkout .bc-checkout-exit::backdrop { background: rgb(20 33 43 / 40%); }
body#checkout .bc-checkout-exit[open] { animation: bc-dialog-enter var(--bc-motion-state) var(--bc-motion-ease); }
@keyframes bc-dialog-enter { from { transform: translateY(6px); } to { transform: translateY(0); } }
html.powerapi-checkout-surface body#checkout .bc-checkout-exit .btn:focus:not(:focus-visible) { outline: none; }
body#checkout .bc-checkout-exit h2 { font-size: 22px; font-weight: 650; line-height: 1.3; margin: 4px 32px 12px 0; }
body#checkout .bc-checkout-exit p { font-size: 14px; line-height: 1.65; color: var(--muted-foreground); margin: 0 0 24px; }
body#checkout .bc-exit-actions { display: flex; flex-direction: column; gap: 10px; }
body#checkout .bc-exit-actions .btn { width: 100%; min-height: 44px; }
body#checkout .bc-exit-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted-foreground); cursor: pointer; }
body#checkout .bc-exit-close:hover { background: var(--secondary); }
body#checkout section.checkout-step :is(.address-item,.delivery-options,.payment-options) { border-radius: 8px; overflow: hidden; }
body#checkout .powerapi-checkout-footer { margin-top: 32px; padding-top: 24px; font-size: 12px; }
@media (max-width: 767px) {
 body#checkout .powerapi-checkout-shellbar { grid-template-columns: minmax(0,1fr) 44px; }
 html.powerapi-checkout-surface body#checkout .powerapi-checkout-back { grid-column: 2; }
 body#checkout .powerapi-checkout-logo { max-height: 36px; }
 body#checkout .bc-checkout-exit { padding: 28px 24px 24px; }
 body#checkout .powerapi-checkout-footer { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) { body#checkout .bc-checkout-exit[open] { animation: none; } }

/* Optional customer fields stay available, outside the essential guest task. */
body#checkout #customer-form > div { display: block; }
body#checkout #customer-form .bc-customer-essential-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 20px; }
body#checkout #customer-form .bc-customer-essential-fields > * { grid-column: 1 / -1; min-width: 0; }
body#checkout #customer-form .bc-customer-essential-fields > [data-bc-field]:is([data-bc-field=firstname],[data-bc-field=lastname]) { grid-column: auto; }
body#checkout #customer-form .bc-customer-optional-fields { border-top: 1px solid var(--border); margin: 8px 0 24px; padding-top: 12px; }
body#checkout #customer-form .bc-customer-optional-fields summary { padding: 10px 0; color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer; }
body#checkout #customer-form .bc-customer-optional-fields summary:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 8px; }
body#checkout #customer-form .bc-customer-optional-fields > p { color: var(--muted-foreground); font-size: 13px; line-height: 1.5; margin: 4px 0 20px; }
body#checkout #customer-form .bc-customer-optional-fields[open] > div { animation: bc-dialog-enter var(--bc-motion-state) var(--bc-motion-ease); }
body#checkout #customer-form .custom-checkbox label { font-size: 13px; line-height: 1.6; }
body#checkout #customer-form .custom-checkbox label em { font-style: normal; color: var(--muted-foreground); }
@media (max-width: 639px) { body#checkout #customer-form .bc-customer-essential-fields { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) { body#checkout #customer-form .bc-customer-optional-fields[open] > div { animation: none; } }

/* Recognisable payment brands and a single provider note, beside the decision. */
body#checkout section.checkout-step .payment-options label { flex: 1; min-width: 0; justify-content: space-between; }
body#checkout .bc-card-brands { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: 8px; }
body#checkout section.checkout-step .payment-options .bc-card-brands img { display: block; width: 36px; height: 36px; max-height: 36px; border-radius: 6px; object-fit: contain; }
body#checkout .bc-payment-security { display: none; align-items: flex-start; justify-content: center; gap: 10px; margin: 18px 0 4px; color: var(--muted-foreground); }
body#checkout #checkout-payment-step:has(input[name="payment-option"][data-module-name="mollie"]:checked) .bc-payment-security { display: flex; }
body#checkout .bc-payment-security .bc-security-lock { margin-top: 2px; flex: 0 0 18px; }
body#checkout .bc-payment-security p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 13px; line-height: 20px; font-weight: 500; color: var(--foreground); }
body#checkout .bc-payment-security img { display: block; object-fit: contain; }
body#checkout .bc-payment-security small { display: block; margin-top: 4px; font-size: 12px; line-height: 18px; }
@media (max-width: 479px) {
 body#checkout .bc-payment-security { justify-content: flex-start; }
}

/* Approved studio previews and a compact, useful payment recap. */
body#checkout #wrapper { padding-top: 32px; }
body#checkout .powercheckout-intro { margin-bottom: 20px; }
body#checkout .bc-checkout-progress { margin-bottom: 24px; }
body#checkout.bc-checkout-enhanced section.checkout-step.-current { padding: 0 24px; }
body#checkout.bc-checkout-enhanced section.checkout-step.-current h1.step-title { padding: 24px 0 20px; }
body#checkout #js-checkout-summary { padding: 24px; }
body#checkout #js-checkout-summary .media-body.bc-designed-product { width: 100%; margin-left: 0; }
body#checkout #js-checkout-summary .media:has(.bc-designed-product) { display: block; }
body#checkout #js-checkout-summary .product-name { overflow-wrap: anywhere; }
body#checkout #js-checkout-summary .bc-summary-designs { list-style: none; margin: 14px 0; padding: 0; }
body#checkout #js-checkout-summary .bc-summary-designs li { display: grid; grid-template-columns: 96px minmax(0,1fr); align-items: center; gap: 14px; margin: 0; padding: 0; }
body#checkout #js-checkout-summary .bc-summary-designs li + li { margin-top: 12px; }
body#checkout .bc-summary-designs strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
body#checkout .bc-summary-designs li > div > span { display: block; color: var(--muted-foreground); font-size: 12px; margin-top: 4px; }
body#checkout .bc-design-preview { position: relative; display: grid; place-items: center; width: 96px; height: 96px; border: 1px solid var(--border); padding: 0; border-radius: 8px; background: var(--secondary); overflow: hidden; color: var(--muted-foreground); cursor: zoom-in; }
body#checkout #js-checkout-summary .bc-design-preview img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; transition: transform var(--bc-motion-state) var(--bc-motion-ease); }
body#checkout .bc-design-preview:not(:disabled):hover img { transform: scale(1.04); }
body#checkout .bc-preview-expand { position: absolute; bottom: 5px; right: 5px; color: var(--primary); background: var(--card); border-radius: 3px; }
body#checkout .bc-design-preview:disabled { cursor: default; }
body#checkout .bc-design-preview:disabled .bc-preview-expand { display: none; }
body#checkout .bc-preview-unavailable { padding: 8px; font-size: 11px; line-height: 1.5; text-align: center; }
body#checkout .bc-design-preview img[hidden], body#checkout .bc-preview-unavailable[hidden] { display: none !important; }
body#checkout .bc-payment-recap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 20px; }
body#checkout .bc-recap-heading { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 6px; }
body#checkout .bc-recap-heading h2 { margin: 0; font-size: 13px; font-weight: 600; }
body#checkout .bc-recap-heading button { display: none; }
body#checkout.bc-checkout-enhanced .bc-recap-heading button { display: inline-flex; align-items: center; min-height: 44px; margin: -10px 0; padding: 8px; border: 0; border-radius: 8px; color: var(--primary); background: transparent; font-size: 12px; font-weight: 600; cursor: pointer; }
body#checkout .bc-recap-heading button:hover { background: var(--secondary); }
body#checkout .bc-payment-recap p { margin: 0; color: var(--muted-foreground); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
body#checkout .bc-payment-recap strong { font-weight: 500; color: var(--foreground); }
body#checkout #conditions-to-approve { margin: 18px 0; }
body#checkout .bc-cup-dialog { width: min(560px,calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--foreground); box-shadow: 0 12px 40px rgb(20 33 43 / 16%); }
body#checkout .bc-cup-dialog:not([open]) { display: none; }
body#checkout .bc-cup-dialog::backdrop { background: rgb(20 33 43 / 40%); }
body#checkout .bc-cup-dialog[open] { animation: bc-dialog-enter var(--bc-motion-state) var(--bc-motion-ease); }
body#checkout .bc-cup-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
body#checkout .bc-cup-dialog h2 { margin: 0; font-size: 18px; font-weight: 600; }
body#checkout .bc-cup-dialog header button { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted-foreground); cursor: pointer; }
body#checkout .bc-cup-dialog header button:hover { background: var(--secondary); }
body#checkout .bc-cup-dialog img { display: block; width: 100%; max-height: calc(100dvh - 136px); object-fit: contain; border-radius: 8px; }
body#checkout .bc-cup-dialog [hidden] { display: none; }
body#checkout .bc-cup-dialog p { color: var(--muted-foreground); font-size: 14px; line-height: 1.6; }
body#checkout :is(.bc-design-preview,.bc-cup-dialog button,.bc-recap-heading button):focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
@media (min-width: 992px) { body#checkout #content > .row { grid-template-columns: minmax(0,1fr) 392px; gap: 28px; } }
@media (max-width: 991px) { body#checkout #js-checkout-summary { padding: 0; } }
@media (max-width: 639px) {
 body#checkout #wrapper { padding-top: 20px; }
 body#checkout .bc-payment-recap { grid-template-columns: minmax(0,1fr); gap: 16px; }
 body#checkout.bc-checkout-enhanced section.checkout-step.-current { padding: 0 20px; }
 body#checkout .bc-cup-dialog { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { body#checkout .bc-design-preview img { transition: none; } body#checkout .bc-cup-dialog[open] { animation: none; } }

/* Keep portrait artwork inside its square thumbnail and remove duplicate mobile copy. */
body#checkout #js-checkout-summary .bc-design-preview img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; max-height: 100%; }
body#checkout section.checkout-step .payment-options > div:first-child .payment-option { border-top-left-radius: 7px; border-top-right-radius: 7px; }
body#checkout section.checkout-step .payment-options > div:last-child .payment-option { border-bottom-left-radius: 7px; border-bottom-right-radius: 7px; }
body#checkout #conditions-to-approve { padding: 0; }
body#checkout #conditions-to-approve ul { margin: 0; }
@media (max-width: 991px) { body#checkout.bc-checkout-enhanced #js-checkout-summary .powercheckout-items-heading { display: none; } }

@media (prefers-reduced-motion: reduce) {
 html.powerapi-checkout-surface body#checkout :is(.bc-design-preview img,.bc-mobile-summary svg,.bc-cup-dialog[open]) { transition: none !important; animation: none !important; }
}

/* Safari mobile controls: one aligned password group, no shrinking/zooming fields. */
body#checkout #customer-form .input-group.js-parent-focus { display:flex; align-items:stretch; width:100%; min-width:0; }
body#checkout #customer-form .input-group.js-parent-focus > input { flex:1 1 0; width:0; min-width:0; height:44px; border-radius:8px 0 0 8px; }
body#checkout #customer-form .input-group.js-parent-focus .input-group-btn { display:flex; flex:0 0 auto; width:auto; }
body#checkout #customer-form button[data-action="show-password"] { display:flex; align-items:center; justify-content:center; height:44px; min-height:44px; padding:0 14px; border-radius:0 8px 8px 0; }
html.powerapi-checkout-surface body #powerapi-cookie-reopen { position:static; display:block; width:fit-content; margin:24px auto; z-index:auto; box-shadow:none; }
@media(max-width:767px) {
  body#checkout :is(.form-control,select.form-control) { font-size:16px; max-width:100%; min-width:0; }
  body#checkout :is(.form-group,.form-group > div,#customer-form,#customer-form .input-group) { min-width:0; }
  body#checkout input[name="birthday"] { width:100%; box-sizing:border-box; }
  body#checkout #customer-form .form-control-comment { padding-top:4px; font-size:12px; line-height:1.5; }
}

body#checkout section.checkout-step .payment-options .payment-option { border-radius: 7px; }
