/* Commerce : composants communs et adaptations, chargés après style.css. */
.woocommerce-edit-account #account_display_name_description { display: none; }
.champimo-avatar-editor { position: relative; width: fit-content; }
.champimo-avatar-editor > img.champimo-avatar { display: block; }
.champimo-avatar-editor .champimo-avatar-remove {
  position: absolute; z-index: 1; top: -16px; right: -16px;
  display: grid !important; place-items: center; width: 44px; height: 44px;
  min-height: 44px; margin: 0; padding: 8px; cursor: pointer;
}
.champimo-avatar-remove svg {
  width: 28px; height: 28px; padding: 5px; border-radius: 50%;
  background: var(--purple-deep); color: white; border: 2px solid var(--paper);
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
}
.champimo-avatar-remove-input:focus-visible + label svg { outline: 2px solid var(--purple-ink); outline-offset: 3px; }
.champimo-avatar-placeholder { display: none; }
.champimo-avatar-editor:has(input:checked) > .champimo-avatar { visibility: hidden; }
.champimo-avatar-editor:has(input:checked) .champimo-avatar-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--lilac); color: var(--purple-ink); border-radius: 16px; font-size: 2rem;
}
.champimo-avatar-status:empty { display: none; }
.woocommerce-edit-account .champimo-avatar-status { margin: .5rem 0 0; font-size: 1rem; line-height: 1.4; }
#champimo_avatar_aide { display: block; }
.produit-slider__fenetre {
  touch-action: pan-y pinch-zoom;
}

.tri__titre,
.account-address-action--short,
.account-profile-heading { display: none; }

/* Accueil client : une liste d'accès, lisible aussi sans le menu latéral. */
.woocommerce-account .woocommerce-MyAccount-content:has(> .account-dashboard) {
  padding: 0;
  border: 0;
  background: transparent;
}

.woocommerce-account .account-dashboard__greeting {
  margin: 0 0 1rem;
  color: var(--purple-ink);
  font-family: "BBB ReadMe", system-ui, sans-serif;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.woocommerce-account .account-dashboard__links {
  display: grid;
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-account .account-dashboard__links li {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.woocommerce-account .account-dashboard__links a {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 20px;
  align-items: center;
  gap: .75rem;
  min-height: 76px;
  padding: .8rem .9rem;
  border: 1px solid var(--lilac-dark);
  border-radius: 16px;
  background: var(--paper);
  color: var(--purple-ink);
  text-decoration: none;
}

.woocommerce-account .account-dashboard__links a:hover {
  border-color: var(--purple);
  background: var(--card);
}

.woocommerce-account .account-dashboard__links a:focus-visible {
  outline: 3px solid var(--purple-deep);
  outline-offset: 3px;
}

.account-dashboard__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
}

.account-dashboard__copy strong {
  display: block;
  margin-bottom: .2rem;
  font-family: "BBB ReadMe", system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.25;
}

.account-dashboard__copy > span {
  display: block;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.account-dashboard__arrow {
  color: var(--purple-deep);
  font: 1.25rem/1 system-ui, sans-serif;
}

.woocommerce-account .account-dashboard__logout {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: .6rem;
  color: var(--purple-deep);
  font-size: 1rem;
  text-underline-offset: .2em;
}

/* Le profil rassemble les informations personnelles et le carnet d'adresses. */
.account-profile-nav {
  display: flex;
  gap: .5rem;
  margin: 0 0 1.25rem;
}

.woocommerce-account .account-profile-nav a {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  padding: .7rem .6rem;
  border: 1px solid var(--lilac-dark);
  border-radius: 12px;
  background: var(--paper);
  color: var(--purple-ink);
  font-family: "BBB ReadMe", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.woocommerce-account .account-profile-nav a[aria-current="page"] {
  border-color: var(--purple-deep);
  background: var(--purple-deep);
  color: var(--paper);
}

.woocommerce-account .account-profile-nav a:hover:not([aria-current]) {
  background: var(--lilac);
}

.woocommerce-account :is(.account-profile-nav a, .account-profile-back):focus-visible {
  outline: 3px solid var(--purple-deep);
  outline-offset: 3px;
}

.account-profile-addresses > h2 {
  margin: 0 0 .75rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.account-profile-addresses > p {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  line-height: 1.5;
}

.woocommerce-account .account-profile-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -.5rem 0 .75rem;
  color: var(--purple-deep);
  font-size: 1rem;
  text-underline-offset: .2em;
}

/* Paiement : la même échelle que le thème sur toutes les tailles d’écran.
   Les presets des Blocks ne doivent pas ramener Pimpimfont à 11–14 px. */
.woocommerce-checkout :is(.wp-block-woocommerce-checkout, form.checkout) {
  --wp--preset--font-size--small: var(--t-content);
  --wp--preset--font-size--x-small: var(--t-base);
  font-size: var(--t-content);
  line-height: 1.5;
}

.woocommerce-checkout :is(
  .wc-block-components-checkout-step__description,
  .wc-block-components-checkout-step__description-payments-aligned,
  .wc-block-components-checkout-step__heading-content,
  .wc-block-components-radio-control__label,
  .wc-block-components-radio-control__description,
  .wc-block-components-radio-control__secondary-label,
  .wc-block-components-radio-control__secondary-description,
  .wc-block-components-radio-control-accordion-content,
  .wc-block-components-address-card,
  .wc-block-components-totals-item,
  .wc-block-components-order-summary-item__description,
  .wc-block-components-order-summary__button-text,
  .wc-block-components-checkbox label,
  .wc-block-components-checkbox__label,
  .wc-block-components-formatted-money-amount,
  .wc-block-components-product-price,
  .wc-block-components-panel__button,
  .wc-block-components-totals-coupon-link,
  .wc-block-components-checkout-return-to-cart-button
) {
  font-size: var(--t-content);
  line-height: 1.5;
}

.woocommerce-checkout :is(.wc-block-components-validation-error, .wc-block-components-validation-error > p) {
  font-size: var(--t-base);
  line-height: 1.45;
}

.woocommerce-checkout .wc-block-components-checkout-step__title {
  font-size: var(--t-h3);
  line-height: 1.3;
}

.woocommerce-checkout .wc-block-checkout__terms {
  font-size: var(--t-base);
  line-height: 1.5;
}

.woocommerce-checkout .wc-block-components-product-name {
  font-size: var(--t-h4);
  line-height: 1.3;
}

.woocommerce-checkout .wc-block-components-address-card {
  flex-wrap: wrap;
  gap: .65rem;
  padding: .85rem;
}

.woocommerce-checkout .wc-block-components-address-card__address {
  min-width: 0;
  overflow-wrap: anywhere;
}

.woocommerce-checkout .wc-block-components-address-card__edit {
  min-height: 44px;
  font-size: var(--t-base);
  line-height: 1.35;
}

/* Match the input[type] specificity from Woo's form stylesheet. Keep
   its floating-label behaviour, with room for both label and value. */
.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input:is([type="email"], [type="number"], [type="password"], [type="tel"], [type="text"], [type="url"]) {
  height: 76px;
  min-height: 76px;
  font-size: var(--t-content);
  line-height: 1.35;
}

.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input label {
  top: 38px;
  font-size: var(--t-content);
  line-height: 1.25;
}

.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input.is-active label,
.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input:-webkit-autofill + label {
  top: 6px;
  font-size: var(--t-base);
  transform: none;
}

.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input.is-active input,
.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input input:-webkit-autofill {
  padding-top: 34px;
  padding-bottom: 8px;
}

.woocommerce-checkout .wc-block-components-form :is(.wc-block-components-textarea, .components-combobox-control__input) {
  font-size: var(--t-content);
}

.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__container {
  height: auto;
}

.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__select {
  height: 76px;
  padding: 34px 36px 8px 12px;
  font-size: var(--t-content);
  line-height: 1.35;
}

.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__label {
  top: 6px;
  left: 12px;
  font-size: var(--t-base);
  line-height: 1.25;
}

.woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__quantity {
  min-width: 24px;
  min-height: 24px;
  font-size: var(--t-mini);
}

/* Sur les petits téléphones, le prix passe sous le descriptif pour laisser
   assez de largeur au nom du produit, sans diminuer la police. */
@media (max-width: 380px) {
  .woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: .5rem 1rem;
  }

  .woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__description {
    min-width: 0;
    padding-inline: 0;
  }

  .woocommerce-checkout .wc-block-components-order-summary .wc-block-components-order-summary-item__total-price {
    grid-column: 2;
    justify-self: end;
    padding: 0;
  }
}


@media (max-width: 1200px) {
  /* Let content shrink inside WooCommerce's older floats and newer blocks. */
  .woocommerce :is(.woo-barre, .summary, .woocommerce-product-gallery, form),
  .woocommerce-account :is(.page-content, .woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content),
  .woocommerce-cart :is(.page-content, .wc-block-cart__main, .wc-block-cart__sidebar),
  .woocommerce-checkout :is(.wc-block-checkout__main, .wc-block-checkout__sidebar, .wc-block-components-address-form) {
    min-width: 0;
  }

  .woocommerce :is(.woocommerce-Price-amount, .price ins, .price del),
  :is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-formatted-money-amount {
    white-space: nowrap;
  }

  .woocommerce :is(.product_title, .woocommerce-loop-product__title, .product-name),
  :is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-product-name,
  .woocommerce-account :is(address, .woocommerce-MyAccount-content p) {
    overflow-wrap: anywhere;
  }

  .woocommerce :is(a.button, button.button, input.button),
  .woocommerce-account .woocommerce-MyAccount-navigation a,
  .woocommerce-account .woocommerce-Address-title .edit,
  :is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-button {
    min-height: 48px;
    line-height: 1.35;
    white-space: normal;
    text-align: center;
  }

  .woocommerce-account .woocommerce-Address-title .edit {
    display: inline-flex;
    align-items: center;
    padding-inline: .85rem;
  }

  .woocommerce-cart .woocommerce-cart-form a.remove {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .woocommerce-account .woocommerce-form-login__rememberme {
    min-height: 44px;
  }

  .woocommerce form .form-row :is(input.input-text, textarea, select),
  .woocommerce-account form .form-row :is(input.input-text, textarea, select),
  .woocommerce-account input[type="file"],
  :is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-text-input input,
  :is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-select .wc-block-components-select__select {
    max-width: 100%;
    min-height: 50px;
    font-size: 1.125rem;
  }

  .woocommerce :is(.woocommerce-message, .woocommerce-info, .woocommerce-error),
  :is(.woocommerce-cart, .woocommerce-checkout) .wc-block-components-notice-banner {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 1.125rem;
    line-height: 1.5;
  }

  .woocommerce :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) .button {
    float: none;
    margin: 0 0 .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Three cards give tablet layouts enough room for titles and actions. */
  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.65rem 1.1rem;
  }

  .woocommerce ul.products li.product {
    min-width: 0;
    --t-h4: 1.125rem;
    --t-petit: 1.125rem;
  }

  .woocommerce ul.products li.product .button {
    padding: .7rem .6rem;
    font-size: 1.25rem;
  }

  .woo-barre {
    gap: .9rem;
  }

  .woo-barre .chips--produits .chip,
  .woocommerce .woocommerce-ordering select:not(.screen-reader-text),
  .tri__bouton,
  .tri__option {
    min-height: 44px;
    font-size: 1rem;
    line-height: 1.35;
  }

  .woo-barre .chips--produits .chip {
    white-space: normal;
  }

  .tri__bouton {
    max-width: 100%;
    justify-content: space-between;
    text-align: left;
    background: var(--purple-deep);
  }

  .tri__chevron {
    flex: 0 0 7px;
  }

  .tri__liste {
    width: max-content;
    max-width: min(340px, calc(100vw - 40px));
    max-height: min(360px, 65dvh);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .woocommerce .woocommerce-ordering select:not(.screen-reader-text) {
    max-width: 100%;
    background: var(--purple-deep);
  }

  .page-hero--shop {
    margin-bottom: 2.25rem;
    padding-top: clamp(32px, 6vw, 64px);
  }

  .woo-main--product {
    padding-top: clamp(28px, 5vw, 60px);
  }

  .woocommerce div.product {
    gap: 2rem;
  }

  .woocommerce div.product .product_title {
    font-size: clamp(1.65rem, 3.4vw, 2.2rem);
    line-height: 1.18;
  }

  .woocommerce div.product form.cart :is(.variations, .variations td, .variations select) {
    max-width: 100%;
  }

  .woocommerce div.product form.cart .variations select {
    width: 100%;
    min-height: 48px;
    font-size: 1.125rem;
  }

  .woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
  }

  .woocommerce div.product .woocommerce-tabs ul.tabs li {
    max-width: 100%;
    margin: 0;
  }

  .woocommerce div.product .woocommerce-tabs ul.tabs li a {
    min-height: 44px;
    display: flex;
    align-items: center;
    white-space: normal;
  }

  /* The visible dots remain small; their buttons are comfortable to tap. */
  .produit-slider__puces {
    gap: 0;
    flex-wrap: wrap;
  }

  .produit-slider__puce {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: transparent;
  }

  .produit-slider__puce::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--lilac-dark);
  }

  .produit-slider__puce.est-active {
    background: transparent;
    transform: none;
  }

  .produit-slider__puce.est-active::after {
    background: var(--purple-deep);
    transform: scale(1.3);
  }

  /* Stack cart and checkout before the fixed sidebar compresses the form. */
  .woocommerce-cart .wc-block-cart,
  .woocommerce-checkout .wc-block-components-sidebar-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .woocommerce-checkout .wc-block-components-sidebar-layout {
    display: flex;
    flex-direction: column;
  }

  .woocommerce-cart :is(.wc-block-cart__main, .wc-block-cart__sidebar) {
    grid-column: 1;
  }

  .woocommerce-checkout .wc-block-components-sidebar-layout :is(.wc-block-components-main, .wc-block-components-sidebar) {
    width: 100%;
    padding-inline: 0;
  }

  .woocommerce-checkout .wc-block-checkout__sidebar.is-sticky {
    position: static;
  }

  .woocommerce-checkout .site-main {
    width: calc(100% - 32px);
    margin-block: 36px 72px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .woocommerce-checkout .site-main > .paper-page {
    padding: clamp(18px, 3vw, 32px);
    border-radius: 24px;
  }

  /* Woo positions the express title over the border. In narrow columns its
     wrapped line needs real height before the payment provider's button. */
  .woocommerce-checkout .wc-block-components-express-payment--checkout .wc-block-components-express-payment__title-container {
    position: static;
    inset: auto;
    display: block;
  }

  .woocommerce-checkout .wc-block-components-express-payment--checkout .wc-block-components-express-payment__title-container::before,
  .woocommerce-checkout .wc-block-components-express-payment--checkout .wc-block-components-express-payment__title-container::after {
    display: none;
  }

  .woocommerce-checkout .wc-block-components-express-payment--checkout .wc-block-components-express-payment__title {
    height: auto;
    margin: 0 0 1rem;
    font-size: 1.05rem;
    line-height: 1.35;
    transform: none;
  }

  .woocommerce-checkout .wc-block-components-express-payment--checkout .wc-block-components-express-payment__content {
    margin-top: 0;
    padding: 16px;
    border-top-width: 1px;
    border-radius: 12px;
  }

  .woocommerce-checkout .col2-set .col-1,
  .woocommerce-checkout .col2-set .col-2 {
    width: 100%;
    float: none;
  }

  .woocommerce-checkout .col2-set .col-2 {
    margin-top: 1.5rem;
  }

  .woocommerce-cart .wc-block-components-quantity-selector {
    width: 140px;
    min-height: 46px;
  }

  .woocommerce-cart .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
    flex: 0 0 44px;
    width: 44px;
    min-height: 44px;
  }

  .woocommerce-cart .wc-block-cart-item__remove-link,
  .woocommerce-cart .wc-block-components-totals-coupon-link,
  .woocommerce-checkout .wc-block-components-checkout-return-to-cart-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
  }

  .woocommerce-cart .wc-block-grid__products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .woocommerce-cart .wc-block-grid__product-add-to-cart .wp-block-button__link {
    min-height: 48px;
    font-size: 1.125rem;
    white-space: normal;
  }

  /* The header's mobile account menu is the single entry point on small
     screens. Keep the in-page navigation available without enhanced JS. */
  html.has-mobile-navigation .woocommerce-account.logged-in .woocommerce-MyAccount-navigation,
  html.has-mobile-navigation .woocommerce-account.logged-in .page-content > .woocommerce::before,
  html.has-mobile-navigation .woocommerce-account.logged-in .page-content > .woocommerce::after {
    display: none;
  }

  /* The account content uses the whole column below the mobile header. */
  .woocommerce-account.logged-in .page-content > .woocommerce {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
  }

  .woocommerce-account.logged-in .woocommerce-MyAccount-navigation,
  .woocommerce-account.logged-in .woocommerce-MyAccount-content {
    grid-column: 1;
    grid-row: auto;
  }

  .woocommerce-account:not(.logged-in) .paper-page--account {
    display: block;
  }

  .woocommerce-account:not(.logged-in) .paper-page--account .page-hero--simple {
    min-height: 0;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    padding: 1.25rem;
    align-items: center;
    text-align: center;
  }

  .woocommerce-account:not(.logged-in) .paper-page--account .page-hero__intro {
    margin-inline: auto;
  }

  .woocommerce-account:not(.logged-in) .paper-page--account .page-content > .woocommerce {
    max-width: 700px;
  }

  .woocommerce-account:not(.logged-in) #customer_login {
    grid-template-columns: minmax(0, 1fr);
  }

  .woocommerce-account table.shop_table :is(th, td) {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .woocommerce-account .champimo-club-account {
    min-width: 0;
    gap: 1.1rem;
  }

  .woocommerce-account .champimo-club-account :is(.champimo-club-account__intro, .champimo-club-account__card, .champimo-club-account__empty) {
    min-width: 0;
    padding: clamp(.85rem, 2vw, 1.25rem);
  }

  .woocommerce-account .champimo-club-account :is(.champimo-club-account__eyebrow, .champimo-club-account__status, .champimo-club-account__recap dt) {
    font-size: 1rem;
    line-height: 1.4;
  }

  .woocommerce-account .champimo-club-account__status {
    max-width: 100%;
    white-space: normal;
  }

  .woocommerce-account .champimo-club-account__topline {
    flex-wrap: wrap;
  }

  .woocommerce-account .woocommerce-MyAccount-content .champimo-club-account__actions-note,
  .woocommerce-account .woocommerce-MyAccount-content .champimo-club-account__payment-methods fieldset legend,
  .woocommerce-account .champimo-club-account :is(.champimo-club-account__payment-choice, .champimo-club-account__card-link, .champimo-club-account__cancel-link) {
    font-size: 1.125rem;
    line-height: 1.5;
  }

  .woocommerce-account .champimo-club-account__payment-choice input[type="radio"] {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
  }

  .woocommerce-account .champimo-club-account :is(.champimo-club-account__history summary, a.champimo-club-account__card-link) {
    min-height: 44px;
    padding-block: .5rem;
    line-height: 1.45;
  }

  .woocommerce-account .champimo-club-account :is(input[type="email"], button, .button) {
    min-height: 48px;
    max-width: 100%;
    font-size: 1.125rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* Preserve real headers in this unlabelled table. Its focusable region
     scrolls locally instead of pushing the whole account off screen. */
  .woocommerce-account .champimo-club-account__table-wrap {
    max-width: 100%;
    overscroll-behavior-x: contain;
    scrollbar-color: var(--purple) var(--lilac);
  }

  .woocommerce-account .champimo-club-account__table-wrap table {
    min-width: 460px;
    font-size: 1.125rem;
    line-height: 1.4;
  }

  .woocommerce-account .champimo-club-account__table-wrap :is(th, td) {
    padding: .75rem .55rem;
  }

  .woocommerce-account .champimo-club-account__table-wrap a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* Catégories et tri compacts sur téléphone comme sur tablette. */
@media (max-width: 1200px) {
  .woo-barre .shop-categories-desktop {
    display: none;
  }

  .woo-barre {
    position: relative;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: .4rem .6rem;
    margin-bottom: 1.1rem;
  }

  .woo-barre .shop-categories-mobile {
    display: block;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    width: 100%;
  }

  .woo-barre.woo-barre--empty {
    grid-template-columns: minmax(0, 1fr);
  }

  .woo-barre--empty .shop-categories-mobile {
    grid-column: 1 / -1;
  }

  .woocommerce .woo-barre .woocommerce-ordering {
    position: static;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
  }

  .woocommerce .woo-barre .woocommerce-result-count {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.35;
  }

  .woo-barre .tri {
    position: static;
    height: 100%;
  }

  .shop-categories-mobile summary,
  .woo-barre .tri__bouton {
    width: 100%;
    height: 100%;
    min-height: 52px;
    padding: .4rem .7rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 8px;
    align-content: center;
    align-items: center;
    gap: .05rem .4rem;
    color: var(--purple-ink);
    background: var(--paper);
    border: 1px solid var(--lilac-dark);
    border-radius: 12px;
    box-shadow: none;
    text-align: left;
  }

  .shop-categories-mobile summary {
    position: relative;
    cursor: pointer;
    list-style: none;
  }

  .shop-categories-mobile summary::-webkit-details-marker {
    display: none;
  }

  .shop-categories-mobile summary::after {
    content: "";
    border-style: solid;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s ease;
  }

  .shop-categories-mobile[open] summary::after {
    transform: translateY(2px) rotate(225deg);
  }

  .shop-categories-mobile summary > span,
  .woo-barre .tri__titre {
    display: block;
    grid-column: 1;
    grid-row: 1;
    font-family: "BBB ReadMe", system-ui, sans-serif;
    font-size: .875rem;
    line-height: 1.25;
    white-space: nowrap;
  }

  .woo-barre .tri__valeur { display: none; }

  .shop-categories-mobile summary::after,
  .woo-barre .tri__chevron {
    position: static;
    grid-column: 2;
    grid-row: 1;
    width: 7px;
    height: 7px;
    border-width: 0 2px 2px 0;
    border-color: currentColor;
  }

  .shop-categories-mobile summary:hover,
  .shop-categories-mobile[open] summary,
  .woo-barre .tri__bouton:hover,
  .woo-barre .tri.is-open .tri__bouton {
    color: var(--purple-ink);
    background: var(--card);
    border-color: var(--purple);
  }

  /* Both menus open across the toolbar, leaving room for every option. */
  .shop-categories-mobile__grid,
  .woo-barre .tri__liste {
    position: absolute;
    z-index: 30;
    inset: calc(100% + 10px) 0 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: min(360px, calc(100dvh - 210px));
    margin: 0;
    padding: .5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--paper);
    border: 1px solid var(--lilac-dark);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(75, 50, 95, .14);
  }

  .shop-categories-mobile__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .4rem;
  }

  .shop-categories-mobile__grid .chip,
  .shop-categories-mobile__grid .chip:nth-child(n) {
    min-height: 48px;
    padding: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-ink);
    background: var(--card);
    border: 1px solid transparent;
    border-radius: 12px;
    white-space: normal;
    font-family: "Pimpimfont", system-ui, sans-serif;
    font-size: 1.2rem;
    line-height: 1.2;
    text-align: center;
  }

  .woo-barre .tri__option {
    min-height: 48px;
    padding: .55rem .75rem;
    font-family: "Pimpimfont", system-ui, sans-serif;
    font-size: 1.25rem;
    line-height: 1.35;
  }

  .shop-categories-mobile__grid .chip.chip--on,
  .woo-barre .tri__option[aria-current="true"] {
    color: var(--purple-ink);
    background: var(--lilac);
    box-shadow: inset 0 0 0 1px var(--purple);
  }

  .shop-categories-mobile__grid .chip:hover,
  .woo-barre .tri__option:hover { background: var(--lilac); }

  .woocommerce .woocommerce-ordering select:not(.screen-reader-text) {
    width: 100%;
    min-height: 52px;
    color: var(--purple-ink);
    background: var(--paper);
    border-color: var(--lilac-dark);
    border-radius: 12px;
  }

}

@media (min-width: 861px) and (max-width: 1200px) {
  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation a {
    height: 100%;
    font-size: 1.125rem;
    text-align: left;
  }

  .woo-barre {
    grid-template-columns: minmax(0, 260px) minmax(0, 260px) minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
  }

  .woocommerce .woo-barre .woocommerce-result-count {
    grid-column: 3;
    grid-row: 1;
    width: auto;
    justify-self: end;
    font-size: var(--t-petit);
    text-align: right;
  }

  .shop-categories-mobile summary,
  .woo-barre .tri__bouton {
    min-height: 60px;
    padding-inline: 1rem;
  }

  .shop-categories-mobile summary > span,
  .woo-barre .tri__titre {
    font-size: 1rem;
  }

  .shop-categories-mobile__grid,
  .woo-barre .tri__liste {
    right: auto;
    width: min(100%, 36rem);
  }

  .shop-categories-mobile__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .woocommerce div.product .woocommerce-product-gallery {
    width: 100% !important; /* Overrides style.css' WooCommerce width reset. */
    max-width: 600px;
    justify-self: center;
  }

  .woocommerce div.product div.summary {
    width: 100% !important; /* Same reset; avoid a narrow centred summary. */
    max-width: 680px;
    justify-self: center;
    gap: .65rem;
  }

  .woocommerce .woo-main--product > div.product {
    row-gap: .75rem;
  }

  .woocommerce div.product .produit-slider__puces {
    margin-top: .35rem;
  }

  .woocommerce div.product .champimo-produit-description {
    font-size: 1.125rem;
    line-height: 1.45;
  }

  .woocommerce div.product .champimo-produit-description p {
    margin: 0 0 .35rem;
  }

  .woocommerce div.product .champimo-produit-description > :last-child {
    margin-bottom: 0;
  }

  .woocommerce div.product div.summary > form.cart {
    margin-top: .75rem !important;
  }

  /* Les clearfix natifs ne doivent pas créer d'items flex vides. */
  .woocommerce div.product form.cart::before,
  .woocommerce div.product form.cart::after {
    display: none;
    content: none;
  }

  .woocommerce div.product form.cart:not(.variations_form):not(.grouped_form),
  .woocommerce div.product form.cart .woocommerce-variation-add-to-cart {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .woocommerce div.product form.cart div.quantity {
    flex: 0 0 auto;
    margin: 0;
  }

  .woocommerce div.product form.cart .single_add_to_cart_button {
    flex: 1;
    min-width: 0;
    min-height: 52px;
    padding: .7rem .65rem;
    font-size: 1.125rem;
    line-height: 1.25;
  }

  .woocommerce div.product form.cart .champimo-qte__bouton {
    flex: 0 0 44px;
    width: 44px;
    height: 48px;
  }

  .woocommerce div.product form.cart .champimo-qte .qty {
    width: 32px;
    min-height: 48px;
    padding: 0;
    border: 0;
    border-radius: 0;
    font-size: 1rem;
  }

  .woocommerce div.product .related {
    margin-top: 1.25rem;
  }

  .woocommerce-cart .wc-block-grid__products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .woocommerce-account table.shop_table_responsive tbody td[data-title] {
    display: flow-root;
  }

  .woocommerce-account table.shop_table_responsive tbody td[data-title]::before {
    content: attr(data-title) ": ";
    float: left;
    max-width: 48%;
    padding-right: .75rem;
    text-align: left;
    overflow-wrap: normal;
  }

  .woocommerce-account table.shop_table_responsive .woocommerce-orders-table__cell-order-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .6rem;
  }

  .woocommerce-account table.shop_table_responsive .woocommerce-orders-table__cell-order-actions .button {
    margin: 0;
  }

  .woocommerce-account .wps-mcard__facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
  }
}

@media (max-width: 600px) {
  .woocommerce-cart .page-main,
  .woocommerce-account .page-main {
    width: calc(100% - 24px);
    margin-block: 28px 60px;
  }

  .woocommerce-cart .paper-page--commerce,
  .woocommerce-account .paper-page--commerce {
    padding: 20px 12px;
  }

  .woocommerce-account .page-content,
  .woocommerce-cart .page-content {
    --t-content: 1.25rem;
    --t-petit: 1.125rem;
    --t-mini: 1.125rem;
  }

  .woocommerce ul.products li.product:nth-child(n) {
    transform: none;
    box-shadow: 4px 6px 0 var(--pink-shadow);
  }

  .woocommerce div.product .woocommerce-tabs .panel {
    padding: 1rem;
  }

  /* Blocks' default row has four grid tracks; keep only image + content,
     with the line total underneath so long titles keep a readable width. */
  .woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: .75rem;
    row-gap: .65rem;
    padding: 1rem .75rem;
  }

  .woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image {
    width: auto;
    grid-column: 1;
    grid-row: 1;
    padding: 0 !important; /* style.css fixes first-cell padding with !important. */
  }

  .woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding: 0;
  }

  .woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-start;
    padding: 0 !important; /* style.css fixes last-cell padding with !important. */
    text-align: left;
  }

  .woocommerce-cart .wc-block-components-product-details__paiement-mensuel {
    padding: .65rem;
    margin-left: 0;
  }

  .woocommerce-cart .wc-block-components-totals-coupon__form {
    flex-wrap: wrap;
    gap: .75rem;
  }

  .woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__input {
    flex-basis: 100%;
    min-width: 0;
  }

  .woocommerce-cart .wc-block-cart__submit-container--sticky {
    position: static;
    width: 100%;
    display: block;
  }

  .woocommerce-cart .wc-block-cart__submit-button {
    width: 100%;
  }

  .woocommerce-cart table.shop_table_responsive tr td {
    overflow-wrap: anywhere;
  }

  .woocommerce-cart .woocommerce-cart-form table.cart td.actions .coupon {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .7rem;
    float: none;
  }

  .woocommerce-cart .woocommerce-cart-form table.cart td.actions .coupon :is(input.input-text, button.button) {
    width: 100%;
    float: none;
    margin: 0;
    min-height: 48px;
  }

  .woocommerce-checkout .site-main {
    width: calc(100% - 24px);
    padding: 0;
  }

  .woocommerce-checkout .site-main > .paper-page {
    padding: 20px 12px;
  }

  .woocommerce-checkout form .form-row-first,
  .woocommerce-checkout form .form-row-last,
  .woocommerce-account .woocommerce-address-fields .form-row-first,
  .woocommerce-account .woocommerce-address-fields .form-row-last {
    width: 100%;
    float: none;
  }

  .woocommerce-checkout .wc-block-components-address-form :is(.wc-block-components-select-input, .wc-block-components-state-input, .wc-block-components-text-input) {
    flex-basis: 100%;
    min-width: 0;
  }

  .woocommerce-checkout .wc-block-checkout__actions_row {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .woocommerce-checkout .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button {
    width: 100%;
  }

  .woocommerce-checkout label:has(input[id*="champimo-club"][id*="recurring-consent-"]) {
    padding: .85rem .75rem;
  }

  .woocommerce-account .champimo-club-account :is(.champimo-club-account__actions, .champimo-club-account__payment-methods) {
    padding: .85rem .7rem;
  }

  /* Club cards already provide their own frame inside the page paper. */
  .woocommerce-account .woocommerce-MyAccount-content:has(.champimo-club-account) {
    padding: 0 !important; /* Overrides style.css's mobile account padding. */
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .woocommerce-account .champimo-club-account__facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .woocommerce-account .champimo-club-account__facts div {
    min-height: 0;
    padding: .85rem;
  }

  .woocommerce-account .champimo-club-account__facts dt {
    font-size: 1.125rem;
  }

  .woocommerce-account .champimo-club-account__facts dd {
    font-size: 1.25rem;
  }

  .woocommerce-account .champimo-club-account__payment-choice {
    align-items: flex-start;
    padding: .7rem .55rem;
    overflow-wrap: anywhere;
  }

  .woocommerce-account .champimo-club-account__action-buttons form,
  .woocommerce-account .champimo-club-account__payment-footer > * {
    width: 100%;
  }

  .woocommerce-account table.shop_table_responsive tbody tr {
    margin: .45rem;
    padding: .2rem;
  }

  .woocommerce-account table.shop_table_responsive tbody td {
    padding: .7rem .5rem;
  }
}

@media (max-width: 700px) {
  /* Boutique : mêmes cartes lilas que sur ordinateur. Les produits similaires
     partagent les cartes,
     avec une piste horizontale plutôt qu’une seconde grille sur mobile. */
  .woocommerce .woo-main--archive ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem .875rem;
  }

  .woocommerce .woo-main--product .related {
    min-width: 0;
    max-width: 100%;
  }

  .woocommerce .woo-main--product .related > h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 1.25;
  }

  /* Le défilement natif fonctionne au doigt et suit le focus clavier,
     même sans JavaScript. La carte suivante reste visible sur téléphone. */
  .woocommerce .woo-main--product .related ul.products {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(58%, 220px);
    gap: .875rem;
    padding: 4px 4px .75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--lilac-dark) transparent;
  }

  .woocommerce .woo-main--product .related ul.products li.product {
    scroll-snap-align: start;
  }

  .woocommerce :is(.woo-main--archive, .woo-main--product .related) ul.products li.product:nth-child(n) {
    padding: .6rem .6rem .85rem;
    background: var(--card);
    border: 0;
    border-radius: 22px;
    box-shadow: 4px 5px 0 var(--pink-shadow);
    transform: none;
    text-align: center;
  }

  .woocommerce :is(.woo-main--archive, .woo-main--product .related) ul.products li.product a.woocommerce-loop-product__link {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
  }

  .woocommerce :is(.woo-main--archive, .woo-main--product .related) ul.products li.product a img {
    flex: 0 0 auto;
    height: auto;
    aspect-ratio: 1;
    margin-bottom: .65rem !important;
    border-radius: 14px;
  }

  .woocommerce :is(.woo-main--archive, .woo-main--product .related) ul.products li.product .woocommerce-loop-product__title {
    flex: 1;
    min-height: 0;
    margin: 0 0 .4rem;
    font-family: "Pimpimfont", system-ui, sans-serif;
    font-size: 1.25rem !important;
    font-weight: 400;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .woocommerce :is(.woo-main--archive, .woo-main--product .related) ul.products li.product .price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: .15rem .4rem;
    margin: 0;
    font-size: .9375rem !important;
    line-height: 1.5;
  }

  .woocommerce :is(.woo-main--archive, .woo-main--product .related) ul.products li.product .price del {
    font-size: .85em;
  }

  /* Garder les libellés natifs : ajout, choix des options ou fiche produit. */
  .woocommerce :is(.woo-main--archive, .woo-main--product .related) ul.products li.product .button {
    align-self: center;
    width: 100%;
    max-width: 100%;
    min-height: 46px;
    margin: .65rem 0 0 !important;
    padding: .65rem .45rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 14px;
    background: var(--purple-btn);
    color: #fff;
    box-shadow: 0 3px 0 var(--purple-deep);
    transform: none;
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.25;
    text-decoration: none;
  }

  .woocommerce :is(.woo-main--archive, .woo-main--product .related) ul.products li.product .button:hover {
    background: var(--purple-deep);
    color: #fff;
    box-shadow: 0 3px 0 #493173;
  }

  .woocommerce :is(.woo-main--archive, .woo-main--product .related) ul.products li.product .onsale {
    top: .5rem !important;
    right: .5rem !important;
    min-width: 0;
    min-height: 28px;
    margin: 0;
    padding: .3rem .55rem;
    border-radius: 999px;
    font-size: .75rem;
    line-height: 1.2;
    transform: none;
  }

  /* Réserver la place du témoin natif pendant l'ajout AJAX au panier. */
  .woocommerce :is(.woo-main--archive, .woo-main--product .related) ul.products li.product .button.loading {
    padding-right: 2.618em;
  }
}

@media (max-width: 440px) {
  /* A full-width card is more useful than two 130px product columns. */
  .woocommerce ul.products,
  .woocommerce-cart .wc-block-grid__products {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
  }

  .woocommerce ul.products li.product {
    padding: 12px 12px 16px;
    --t-petit: 1.2rem;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 0;
    margin-bottom: .5rem;
  }

  .woocommerce ul.products li.product .button {
    min-height: 50px;
    font-size: 1.35rem;
  }

  .shop-categories-mobile__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: .65rem;
    padding: .85rem .65rem;
  }

  .woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    align-items: center;
  }

  .woocommerce-account form.login .form-row:has(.woocommerce-form-login__submit) {
    align-items: stretch;
    flex-direction: column;
  }

  .woocommerce-account :is(.woocommerce-form-login__submit, .woocommerce-EditAccountForm button[type="submit"], .woocommerce-address-fields button) {
    width: 100%;
  }

  .woocommerce-account .champimo-avatar-apercu {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Orders, addresses and profile share a compact mobile account shell. */
@media (max-width: 860px) {
  .woocommerce-account:is(.woocommerce-orders, .woocommerce-edit-address, .woocommerce-edit-account) .page-main {
    width: calc(100% - 32px);
    margin-block: 28px 60px;
  }

  .woocommerce-account:is(.woocommerce-orders, .woocommerce-edit-address, .woocommerce-edit-account) .paper-page--account {
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  :is(.woocommerce-orders, .woocommerce-edit-address, .woocommerce-edit-account) .paper-page--account .page-hero--simple {
    margin: 0 0 1.25rem;
    padding: 0;
    border: 0;
    text-align: left;
  }

  :is(.woocommerce-orders, .woocommerce-edit-address, .woocommerce-edit-account) .page-hero--simple .eyebrow {
    margin-bottom: .5rem;
    font-size: .875rem;
  }

  :is(.woocommerce-orders, .woocommerce-edit-address, .woocommerce-edit-account) .page-hero--simple h1 {
    font-size: clamp(1.75rem, 7vw, 2.125rem);
    line-height: 1.12;
  }

  :is(.woocommerce-orders, .woocommerce-edit-address, .woocommerce-edit-account) .paper-page--account .page-hero__intro {
    margin: .65rem 0 0;
    font-size: 1.125rem;
    line-height: 1.4;
  }

  .woocommerce-account:is(.woocommerce-orders, .woocommerce-edit-address, .woocommerce-edit-account) .page-content > .woocommerce {
    gap: 1rem;
  }

  :is(.woocommerce-orders, .woocommerce-edit-address, .woocommerce-edit-account) .page-content > .woocommerce::before,
  :is(.woocommerce-orders, .woocommerce-edit-address, .woocommerce-edit-account) .page-content > .woocommerce::after {
    display: none;
  }

  .woocommerce-account:is(.woocommerce-orders, .woocommerce-edit-address, .woocommerce-edit-account) .account-nav-toggle {
    min-height: 48px;
    padding: .65rem .9rem;
    color: var(--purple-ink);
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: none;
    font-size: 1.125rem;
    line-height: 1.3;
  }

  :is(.woocommerce-orders, .woocommerce-edit-address, .woocommerce-edit-account) .account-nav-toggle::after {
    width: 8px;
    height: 8px;
    border-width: 0 2px 2px 0;
  }

  .woocommerce-account:is(.woocommerce-orders, .woocommerce-edit-address, .woocommerce-edit-account) .woocommerce-MyAccount-navigation a {
    min-height: 44px;
  }

  .woocommerce-account:is(.woocommerce-orders, .woocommerce-edit-address, .woocommerce-edit-account) .woocommerce-MyAccount-content {
    padding: 0 !important;
    background: none;
    border: 0;
  }

  /* Profile: a single form surface, with quiet separators between sections. */
  .woocommerce-edit-account .woocommerce-EditAccountForm {
    padding: 1rem;
    background: var(--paper);
    border: 1px solid var(--lilac-dark);
    border-radius: 16px;
  }

  .woocommerce-edit-account .account-profile-heading {
    display: block;
    margin: 0 0 1.25rem;
    font-size: 1.125rem;
    line-height: 1.25;
  }

  .woocommerce-edit-account .woocommerce-EditAccountForm .form-row {
    padding: 0;
    margin: 0 0 1rem;
  }

  .woocommerce-edit-account .woocommerce-EditAccountForm .form-row label {
    margin-bottom: .4rem;
    font-size: 1.125rem;
    line-height: 1.4;
  }

  .woocommerce-edit-account .woocommerce-EditAccountForm .form-row input.input-text {
    border-width: 1px !important;
    border-radius: 10px !important;
    font-size: 1.125rem;
  }

  .woocommerce-edit-account :is(#account_display_name_description, #champimo_avatar_aide) {
    display: block;
    margin-top: .45rem;
    color: var(--muted);
    font-size: 1.125rem;
    line-height: 1.4;
  }

  .woocommerce-edit-account #account_display_name_description em {
    font-style: normal;
  }

  .woocommerce-edit-account .woocommerce-EditAccountForm fieldset {
    margin: .5rem 0 1rem;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
  }

  .woocommerce-edit-account .woocommerce-EditAccountForm fieldset legend {
    width: 100%;
    margin: 0 0 1rem;
    padding: 1.15rem 0 0;
    border-top: 1px solid var(--line);
    color: var(--purple-ink);
    font-family: "BBB ReadMe", system-ui, sans-serif;
    font-size: 1.125rem;
    line-height: 1.3;
  }

  .woocommerce-edit-account .woocommerce-EditAccountForm .password-input {
    position: relative;
  }

  .woocommerce-edit-account .woocommerce-EditAccountForm .password-input input {
    padding-right: 3.25rem;
  }

  /* WooCommerce's eye controls are buttons too, but must never stretch like
     the form's Save button. Reserve a separate 44px touch target for them. */
  .woocommerce-edit-account .woocommerce-EditAccountForm button.show-password-input {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    display: grid;
    place-items: center;
    color: var(--purple-deep);
    background: transparent;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    transform: none;
  }

  .woocommerce-edit-account .champimo-avatar-apercu {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .woocommerce-edit-account .champimo-avatar-apercu .champimo-avatar {
    width: 64px !important;
    height: 64px !important;
    margin: 0;
  }

  .woocommerce-edit-account input[type="file"] {
    width: 100%;
    font-size: 1rem;
  }

  .woocommerce-edit-account input[type="file"]::file-selector-button {
    min-height: 44px;
    padding: .5rem .7rem;
    border: 0;
    border-radius: 10px;
  }

  .woocommerce-edit-account label[for="champimo_avatar_supprimer"] {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: .6rem;
  }

  .woocommerce-edit-account .woocommerce-EditAccountForm > p:last-of-type {
    margin: 0;
  }

  .woocommerce-edit-account .woocommerce-EditAccountForm button[type="submit"] {
    width: 100%;
    min-height: 48px;
    padding: .75rem;
    font-size: 1.125rem;
  }

  /* The page introduction already explains how these addresses are used. */
  .woocommerce-edit-address .woocommerce-MyAccount-content:has(.woocommerce-Address) > p {
    display: none;
  }

  :is(.woocommerce-edit-address, .account-profile-addresses) .woocommerce-Addresses {
    gap: .9rem;
  }

  :is(.woocommerce-edit-address, .account-profile-addresses) .woocommerce-Address,
  .woocommerce-edit-address .woocommerce-MyAccount-content > form:has(.woocommerce-address-fields) {
    padding: 1rem;
    background: var(--paper);
    border: 1px solid var(--lilac-dark);
    border-radius: 16px;
  }

  :is(.woocommerce-edit-address, .account-profile-addresses) .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .85rem;
  }

  .woocommerce-account.woocommerce-edit-address .woocommerce-Address-title::before,
  .woocommerce-account.woocommerce-edit-address .woocommerce-Address-title::after,
  .woocommerce-account .account-profile-addresses .woocommerce-Address-title::before,
  .woocommerce-account .account-profile-addresses .woocommerce-Address-title::after {
    display: none;
  }

  :is(.woocommerce-edit-address, .account-profile-addresses) .woocommerce-Address-title h2,
  .woocommerce-edit-address .woocommerce-MyAccount-content > form > h2 {
    min-width: 0;
    font-size: 1.125rem;
    line-height: 1.25;
  }

  :is(.woocommerce-edit-address, .account-profile-addresses) .woocommerce-Address-title .edit {
    flex: 0 1 auto;
    min-height: 44px;
    padding: .55rem .75rem;
    color: var(--purple-ink);
    background: var(--lilac);
    border: 0;
    border-radius: 10px;
    font-size: 1.125rem;
    line-height: 1.3;
  }

  :is(.woocommerce-edit-address, .account-profile-addresses) .account-address-action--full {
    display: none;
  }

  :is(.woocommerce-edit-address, .account-profile-addresses) .account-address-action--short {
    display: inline;
  }

  :is(.woocommerce-edit-address, .account-profile-addresses) .woocommerce-Address address {
    font-size: 1.25rem;
    line-height: 1.5;
  }

  .woocommerce-edit-address .woocommerce-MyAccount-content > form > h2 {
    margin: 0 0 1.25rem;
  }

  /* Orders: keep the native table, links and conditional payment actions. */
  /* This notice is identified by its existing verification link; other
     notices (including the empty history) retain their own meaning. */
  .woocommerce-orders .woocommerce-MyAccount-content > .woocommerce-info:has(a[href*="wc_send_verification"]) {
    min-height: 0;
    margin: 0 0 1rem;
    padding: .85rem 1rem .55rem !important;
    gap: .25rem;
    color: var(--purple-ink);
    background: var(--blue) !important;
    border: 0 !important;
    border-radius: 14px;
    text-align: left;
    font-size: 1.125rem;
    line-height: 1.4;
  }

  .woocommerce-orders .woocommerce-MyAccount-content > .woocommerce-info:has(a[href*="wc_send_verification"])::before,
  .woocommerce-orders .woocommerce-MyAccount-content > .woocommerce-info:has(a[href*="wc_send_verification"])::after {
    display: none;
  }

  .woocommerce-orders .woocommerce-MyAccount-content > .woocommerce-info > a[href*="wc_send_verification"].button {
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    margin: 0;
    padding: .4rem 0;
    align-self: flex-start;
    color: var(--purple-ink);
    background: transparent;
    border: 0;
    border-radius: 4px;
    box-shadow: none;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: .2em;
    font-size: 1.125rem;
    transform: none;
  }

  .woocommerce-account.woocommerce-orders table.woocommerce-orders-table {
    display: block;
    overflow: visible;
    border: 0 !important;
    background: none;
  }

  .woocommerce-orders .woocommerce-orders-table tbody {
    display: grid;
    gap: .9rem;
  }

  .woocommerce-account.woocommerce-orders .woocommerce-orders-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .3rem .65rem;
    margin: 0;
    padding: .85rem 1rem;
    background: var(--paper);
    border: 1px solid var(--lilac-dark);
    border-radius: 16px;
  }

  .woocommerce-account.woocommerce-orders table.woocommerce-orders-table tbody :is(th, td) {
    min-width: 0;
    padding: 0;
    background: none;
    text-align: left !important;
    font-size: 1.125rem !important;
  }

  .woocommerce-account.woocommerce-orders .woocommerce-orders-table tbody td::before {
    display: none;
  }

  .woocommerce-account.woocommerce-orders table.woocommerce-orders-table tbody .woocommerce-orders-table__cell-order-number {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: .3em;
    color: var(--purple-ink);
    font-family: "BBB ReadMe", system-ui, sans-serif;
    font-size: 1rem !important;
  }

  .woocommerce-orders .woocommerce-orders-table__cell-order-number::before {
    content: attr(data-title);
  }

  .woocommerce-orders .woocommerce-orders-table__cell-order-number a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--purple-ink);
    text-decoration: none;
  }

  .woocommerce-account.woocommerce-orders .woocommerce-orders-table tbody .woocommerce-orders-table__cell-order-status {
    grid-column: 2;
    grid-row: 1;
    max-width: 9rem;
    padding: .35rem .65rem;
    color: var(--purple-ink);
    background: var(--card);
    border-radius: 999px;
    font-size: 1.125rem !important;
    line-height: 1.3;
    text-align: center !important;
  }

  .woocommerce-orders table.woocommerce-orders-table .woocommerce-orders-table__row--status-processing .woocommerce-orders-table__cell-order-status {
    background: var(--blue);
  }

  .woocommerce-orders table.woocommerce-orders-table .woocommerce-orders-table__row--status-on-hold .woocommerce-orders-table__cell-order-status {
    background: var(--cream);
  }

  .woocommerce-orders .woocommerce-orders-table__cell-order-date {
    grid-column: 1 / -1;
    color: var(--muted);
  }

  .woocommerce-orders .woocommerce-orders-table__cell-order-total {
    grid-column: 1 / -1;
    margin-top: .4rem;
  }

  .woocommerce-orders .woocommerce-orders-table__cell-order-total .amount {
    color: var(--purple-ink);
    font-family: "BBB ReadMe", system-ui, sans-serif;
  }

  .woocommerce-account.woocommerce-orders .woocommerce-orders-table tbody .woocommerce-orders-table__cell-order-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
    margin-top: .6rem;
    padding-top: .65rem;
    border-top: 1px solid var(--line);
  }

  .woocommerce-account.woocommerce-orders .woocommerce-orders-table .button {
    min-width: 6rem;
    min-height: 44px;
    margin: 0;
    padding: .6rem 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-ink);
    background: var(--lilac);
    border: 0;
    border-radius: 10px;
    box-shadow: none;
    font-size: 1.125rem;
    transform: none;
  }

  .woocommerce-orders .woocommerce-orders-table .button.view::after {
    content: "→";
    margin-left: .5rem;
  }
}
