/*
 * PrestAI Hummingbird Child — panier, tunnel de commande et espace client
 * Chargé uniquement sur cart, order, order-confirmation, authentication,
 * registration et identity (voir config/theme.yml).
 */
body#checkout,
body#cart,
body#authentication,
body#registration,
body#identity,
body#order-confirmation {
  --bs-body-color: var(--pa-color-ink);
}

@media (min-width: 1600px) {
  body#checkout #wrapper .container,
  body#checkout #wrapper .container-lg,
  body#checkout #wrapper .container-md,
  body#checkout #wrapper .container-sm,
  body#checkout #wrapper .container-xl,
  body#checkout #wrapper .container-xs,
  body#checkout #wrapper .container-xxl,
  body#checkout .checkout-steps__mobile {
    max-width: 1320px !important;
  }
}

@media (max-width: 991.98px) {
    body#checkout .checkout-steps__mobile,
    body#checkout .container,
    body#checkout .container-md,
    body#checkout .container-sm,
    body#checkout .container-xs {
        max-width: 100%;
    }
}
body#checkout .checkout-steps__step--success:after,
body#checkout .checkout-steps__step--success:before {
    color: #fff!important;
    border: 1px solid var(--pa-color-primary)!important;
    background: var(--pa-color-primary)!important;
}
body#checkout .checkout-steps__step--current:before,
body#checkout .checkout-steps__step--success .checkout-steps__number {
    color: #fff!important;
    border: 1px solid var(--pa-color-primary)!important;
    background: var(--pa-color-primary)!important;
}
body#checkout .checkout-steps__step--current .checkout-steps__number {
    border: 1px solid var(--pa-color-ink)!important;
    color: var(--pa-color-ink)!important;
    background: #fff!important;
}

body#cart .breadcrumb__wrapper {
    display: none;
}
body#cart .columns-container {
    margin-top: 2rem;
}
@media (min-width: 768px) {
body#cart .columns-container {
    margin-top: 3.5rem;
} 
}
body#cart h2 {
  font-family: var(--pa-font-body);
  font-size: calc(var(--bs-body-font-size) * 1.5);
  font-weight: 600;
  letter-spacing: 0;
}

body#checkout {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body#checkout > #wrapper {
  flex: 1;
}
body#checkout > #footer {
  margin-top: auto;
}

body#checkout #checkout-modal .pa-checkout-modal-content h2.h4 {
  display: none;
}
body#checkout .cart-voucher__accordion,
body#cart .cart-voucher__accordion {
    border-block-end: 0;
    margin-block-end: 0;
    padding-block-end: 0;
}
body#checkout .form-check .form-check-label,
body#authentication .form-check .form-check-label,
body#registration .form-check .form-check-label,
body#identity .form-check .form-check-label {
    padding-top: 3px;
    line-height: 1;
}

body#checkout .checkout__summary-accordion-header .accordion-button.js-pa-summary-toggle {
  display: flex;
  align-items: center;
}
body#checkout .pa-summary-toggle__price {
  margin-left: auto;
  margin-right: 0.75rem;
  white-space: nowrap;
}
body#checkout .checkout__summary-accordion-header .accordion-button.js-pa-summary-toggle::after {
  margin-left: 0;
}

body#checkout .form-control:focus,
body#checkout .form-select:focus,
body#authentication .form-control:focus,
body#registration .form-control:focus,
body#identity .form-control:focus,
body#cart .form-control:focus {
  border-color: var(--pa-color-primary);
  box-shadow: 0 0 0 0.15rem rgba(35, 35, 35, 0.12);
}

body#checkout .btn-primary,
body#cart .btn-primary,
body#authentication .btn-primary,
body#registration .btn-primary,
body#identity .btn-primary {
  color: #fff;
  background: var(--pa-color-primary);
  border-color: var(--pa-color-primary);
}

body#checkout .btn-primary:hover,
body#cart .btn-primary:hover,
body#authentication .btn-primary:hover,
body#registration .btn-primary:hover,
body#identity .btn-primary:hover {
  background: var(--pa-color-primary);
  border-color: var(--pa-color-primary);
}

body#checkout .btn-outline-primary,
body#checkout .btn-basic {
  color: var(--pa-color-ink);
  border-color: var(--pa-color-border);
  padding: 0.5rem 0.75rem;
}

body#checkout .btn-outline-primary:hover,
body#checkout .btn-basic:hover {
  color: var(--pa-color-primary);
  border-color: var(--pa-color-primary);
  background: #fff;
}

input + .btn-primary {
  border-radius: 4px 4px 4px 4px;
  padding: 0.375rem 0.75rem;
}
.accordion-item {
  background-color: transparent;
}

body#checkout .checkout-grid {
  align-items: stretch;
}

body#checkout .checkout-grid__content {
  padding-right: 1.25rem;
}

body#checkout .checkout-grid__aside {
  padding-left: 1.25rem;
}

body#checkout .checkout-grid__aside-wrapper {
  position: sticky;
  top: 6rem;
}

body#checkout .checkout__summary-accordion-item {
  border: 0;
  background: transparent;
}

body#checkout .checkout__summary-accordion-header .accordion-button {
  padding: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pa-color-ink);
  background: transparent;
  box-shadow: none;
}

body#checkout .checkout__summary-accordion-header .accordion-button:not(.collapsed) {
  color: var(--pa-color-primary);
  background: transparent;
}

body#checkout #js-checkout-summary {
  background: var(--pa-color-surface);
  padding-bottom: 0.5rem;
}

body#checkout .cart-summary__products.js-cart-summary-products hr:first-of-type {
  color:var(--pa-color-surface);
  margin-top: 0.5rem;
}
@media (max-width: 991.98px) {
body#checkout .cart-summary__products.js-cart-summary-products hr:first-of-type {
  display: none;
}
}

body#checkout .cart-summary__products-number {
  font-weight: 400;
}

body#checkout .cart-summary__products-accordion .accordion-button {
  padding-left: 0;
  padding-right: 0;
  background: transparent;
  box-shadow: none;
}

body#checkout .cart-summary__products-accordion .accordion-button:not(.collapsed) {
  background: transparent;
}

body#checkout .cart-summary__line,
body#checkout .cart-voucher__list .cart-summary__line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

body#checkout .cart-summary__label,
body#checkout .cart-summary__value {
  font-size: 0.95rem;
}

body#checkout .cart-summary__line--bold .cart-summary__label,
body#checkout .cart-summary__line--bold .cart-summary__value,
body#checkout .cart-summary__total .cart-summary__label,
body#checkout .cart-summary__total .cart-summary__value {
  font-size: 1rem;
  font-weight: 700;
}

body#checkout .cart-voucher__accordion-button {
  background: var(--pa-color-surface);
}

body#checkout .cart-voucher__form {
  gap: 0.75rem;
}

body#checkout .cart-voucher__offers {
  margin-bottom: 0;
}
body#checkout .cart-summary__products-list {
  margin-bottom: 1rem;
}

body#checkout .cart-summary-product__image a {
  position: relative;
  display: inline-block;
}

body#checkout .cart-summary-product__img {
  border-radius: 10px;
  background: #fff;
}

body#checkout .cart-summary-product__qty-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--pa-color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

body#checkout .cart-summary-product__price .value {
  text-decoration: line-through;
  color: var(--pa-color-muted);
}

body#checkout .cart-summary-product__content {
  gap: 0.75rem;
}

body#checkout .cart-summary-product__link {
  font-weight: 600;
  text-decoration: none;
  color: var(--pa-color-ink);
}

body#checkout .cart-summary-product__attribute,
body#checkout .cart-summary-product__unit-price,
body#checkout .cart-summary-product__price {
  font-size: 0.875rem;
}

body#checkout #checkout-personal-information-step .step__title {
  display: none;
}
@media (max-width: 991.98px) {
body#checkout .step__title {
  display: none;
}
}

body#checkout .step__title hr {
  margin-top: 0.5rem;
  opacity: 1;
  border-color: #fff;
}

body#checkout .page-title-section {
  font-family: var(--pa-font-body);
  margin-bottom: 0;
  font-size: 1.75rem;
  font-weight: 600;
}
body#checkout h1, body#checkout h2, body#checkout h3, body#checkout h4, body#checkout h5, body#checkout h6 {
  font-family: var(--pa-font-body);
  font-weight: 600;
}
body#checkout h1, body#checkout h2 {
  font-size: 1.75rem;
}
body#checkout h2 {
  font-size: 1.6rem;
}
body#checkout h3 {
  font-size: 1.4rem;
}
body#checkout h4 {
  font-size: 1.2rem;
}
body#checkout h5, body#checkout h6 {
  font-size: 1rem;
}

body#checkout .step__content {
  padding-top: 0;
}

body#checkout .checkout-steps {
  padding-block-start: 1.2rem;
  padding-block-end: 1.1rem;
  margin-bottom: 0;
  background: #fff;
  border-color: var(--pa-color-border);
}
@media (max-width: 767.98px) {
body#checkout .checkout-steps {
  padding-block: 0;
}
body#checkout .checkout-steps__title {
    font-size: 1rem;
}
body#checkout .checkout-steps__subtitle {
    font-size: 0.75rem;
}
}
body#checkout .checkout-steps__number {
    border: 1px solid var(--bs-dark-bg-subtle);
    color: var(--bs-dark-bg-subtle);
    background: #fff;
    margin-block-end: .1rem;
}

body#checkout .checkout-steps__step {
  opacity: 1;
}

body#checkout .checkout-steps__btn {
  font-size: 0.85rem;
  line-height: 1;
  padding: 0;
  color: var(--pa-color-muted);
  text-decoration: none;
}

body#checkout .checkout-steps__step.is-active .checkout-steps__btn,
body#checkout .checkout-steps__btn[aria-selected='true'] {
  color: var(--pa-color-ink);
}

body#checkout .pa-personal-tabs {
  margin-bottom: 1.25rem;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 0;
}

body#checkout .form-label[for="field-id_gender"],
body#authentication .form-label[for="field-id_gender"],
body#registration .form-label[for="field-id_gender"],
body#identity .form-label[for="field-id_gender"],
body#checkout .form-check:has([name="id_gender"]),
body#authentication .form-check:has([name="id_gender"]),
body#registration .form-check:has([name="id_gender"]),
body#identity .form-check:has([name="id_gender"]),
body#checkout .form-check:has(#field-newsletter),
body#authentication .form-check:has(#field-newsletter),
body#registration .form-check:has(#field-newsletter) {
    display: none;
}

body#checkout #checkout-personal-information-step em {
    display: none;
}

body#checkout .delivery-option__carrier-logo {
    display: none;
}

body#checkout .progress-container,
body#authentication .progress-container,
body#registration .progress-container,
body#identity .progress-container,
body#checkout .password-requirements__score,
body#authentication .password-requirements__score,
body#registration .password-requirements__score,
body#identity .password-requirements__score {
    display: none;
}

body#checkout .pa-personal-tabs .nav-link {
  padding: 0 0 0.35rem;
  border: 0;
  color: var(--pa-color-muted);
  font-size: 1rem;
}

body#checkout .pa-personal-tabs .nav-link.active {
  color: var(--pa-color-ink);
  font-size: 1.75rem;
  font-weight: 600;
  background: transparent;
}

body#checkout .pa-personal-tabs__signin {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

body#checkout .pa-personal-tabs__hint {
  margin-bottom: -5px;
  font-size: 0.72rem;
  color: var(--pa-color-muted);
}

body#checkout .form-fields .mb-3:has([name='newsletter']),
body#registration .form-fields .mb-3:has([name='newsletter']),
body#checkout .form-fields .mb-3:has([for='field-alias']),
body#checkout .form-fields .mb-3:has([for='field-vat_number']),
body#authentication .form-fields .mb-3:has([name='newsletter']),
body#identity .form-fields .mb-3:has([for='field-vat_number']),
body#checkout .form-fields .mb-3:has([name='company']),
body#authentication .form-fields .mb-3:has([name='company']),
body#registration .form-fields .mb-3:has([name='company']),
body#identity .form-fields .mb-3:has([name='company']) {
  display: none;
}

body#checkout .form-text,
body#authentication .form-text,
body#registration .form-text,
body#identity .form-text {
  display: none;
}

body#checkout .required::after,
body#authentication .required::after,
body#registration .required::after,
body#identity .required::after {
  content: ' *';
  color: #dc3545;
}
body#checkout .form-check-label.required:before,
body#authentication .form-check-label.required:before,
body#registration .form-check-label.required:before,
body#identity .form-check-label.required:before {
    display: none;
}

body#checkout .pa-phone-note,
body#authentication .pa-phone-note,
body#registration .pa-phone-note,
body#identity .pa-phone-note {
  margin-left: 0;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--pa-color-muted);
}

body#checkout .pa-input-wrapper,
body#authentication .pa-input-wrapper,
body#registration .pa-input-wrapper,
body#identity .pa-input-wrapper {
  position: relative;
}

body#checkout .pa-valid-check,
body#authentication .pa-valid-check,
body#registration .pa-valid-check,
body#identity .pa-valid-check {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 3;
}

body#checkout .pa-valid-check.is-visible,
body#authentication .pa-valid-check.is-visible,
body#registration .pa-valid-check.is-visible,
body#identity .pa-valid-check.is-visible {
  opacity: 1;
}

body#checkout .pa-input-wrapper > .form-control.is-valid + .pa-valid-check,
body#authentication .pa-input-wrapper > .form-control.is-valid + .pa-valid-check,
body#registration .pa-input-wrapper > .form-control.is-valid + .pa-valid-check,
body#identity .pa-input-wrapper > .form-control.is-valid + .pa-valid-check,
body#checkout .pa-input-wrapper > .form-control.valid + .pa-valid-check,
body#authentication .pa-input-wrapper > .form-control.valid + .pa-valid-check,
body#registration .pa-input-wrapper > .form-control.valid + .pa-valid-check,
body#identity .pa-input-wrapper > .form-control.valid + .pa-valid-check,
body#checkout .was-validated .pa-input-wrapper > .form-control:valid + .pa-valid-check,
body#authentication .was-validated .pa-input-wrapper > .form-control:valid + .pa-valid-check,
body#registration .was-validated .pa-input-wrapper > .form-control:valid + .pa-valid-check,
body#identity .was-validated .pa-input-wrapper > .form-control:valid + .pa-valid-check {
  display: none!important;
}

/* Champ adresse des suggestions de PrestAI Checkout enveloppé avant le passage du module : pas d'indicateur. */
.pa-input-wrapper:has(> [data-prestai-address-ready]) > .pa-valid-check {
  display: none !important;
}

body#checkout .pa-valid-check .material-icons,
body#authentication .pa-valid-check .material-icons,
body#registration .pa-valid-check .material-icons,
body#identity .pa-valid-check .material-icons {
  font-size: 1.15rem;
  color: #22a06b;
}

body#checkout .delivery-option__item,
body#checkout .payment-option {
  margin-bottom: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--pa-color-border);
  border-radius: 16px;
  background: #fff;
}

body#checkout .payment-option__form-check {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
}

body#checkout .payment-option__input {
  margin-top: 0;
  flex-shrink: 0;
}

body#checkout .payment-option__label {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
}

body#checkout .payment-option__label img {
  max-height: 28px;
  width: auto;
}

body#checkout .payment-option__additional-information,
body#checkout .js-payment-option-form {
  margin-top: 0.9rem;
}

body#checkout #conditions-to-approve {
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
}

body#checkout #conditions-to-approve .form-check {
  margin: 0;
}

body#checkout #conditions-to-approve .form-check + .form-check {
  margin-top: 0.8rem;
}

body#checkout #conditions-to-approve .form-check-label a {
  text-decoration: underline;
}

body#checkout #conditions-to-approve .form-check-label a:hover {
  text-decoration: none;
}

body#checkout .js-alert-payment-conditions {
  border-radius: 16px;
}

body#checkout #payment-confirmation .btn {
  min-width: 220px;
}

body#cart .cart-summary .cart-summary__actions {
    margin-top: 0.5rem;
}
body#cart .cart-grid__aside-wrapper hr {
    display: none;
}

body#checkout .pa-secure-payment,
body#cart .pa-secure-payment {
  margin-top: 1rem;
  text-align: center;
}

body#checkout .pa-secure-payment__text,
body#cart .pa-secure-payment__text {
  display: block;
  width: 100%;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0;
  color: var(--pa-color-muted);
  font-size: 0.825rem;
}
body#cart .pa-secure-payment__text img {
  margin-top: -3px;
  max-width: 16px;
  height: auto;
}

body#checkout .pa-secure-payment__icon,
body#cart .pa-secure-payment__icon {
  font-size: 16px;
  line-height: 1;
}

body#checkout .pa-secure-payment__cards,
body#cart .pa-secure-payment__cards {
  margin-top: -3px;
}

body#cart .js-cart-detailed-actions .d-grid {
  gap: 0rem;
}

@media (min-width: 992px) {
  body#checkout .checkout__summary-accordion-header .accordion-button::after {
    display: none;
  }

  body#checkout .cart-summary__products-accordion .accordion-header {
    display: none;
  }

  body#checkout .cart-summary__products-accordion .accordion-collapse {
    display: block !important;
    visibility: visible;
    height: auto;
  }
}

@media (max-width: 991.98px) {

  body#checkout .checkout-grid__aside {
    order: -1;
    padding-top: 1rem;
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--pa-color-border);
    background: var(--pa-color-surface);
  }
  body#checkout .checkout-grid__aside:has(.js-cart.show) {
    border-bottom: 0;
  }

  body#checkout .checkout-grid__content {
    padding-right: calc(var(--bs-gutter-x) * 0.5);
  }

  body#checkout .checkout-grid__aside-wrapper {
    position: static;
  }

  body#checkout .checkout__summary-accordion-header .accordion-button {
    padding-bottom: 1rem;
    font-size: 1rem;
  }

  body#checkout .pa-personal-tabs .nav-link.active {
    font-size: 1.4rem;
  }

  body#checkout .pa-personal-tabs__hint {
    font-size: 0.68rem;
    margin-top: -1rem;
  }

  body#checkout .checkout-steps__mobile .progress-ring,
  body#checkout .checkout-steps__left {
    display: block;
  }
  body#checkout .checkout-steps__mobile .progress-ring.text-success {
    color:var(--pa-color-primary)!important;
  }
  body#checkout .checkout-steps__mobile svg {
    fill:var(--pa-color-primary)!important;
  }
  body#checkout .checkout-steps__mobile svg circle.progress-ring__circle {
    stroke:var(--pa-color-primary)!important;
  }
  
  body#checkout #payment-confirmation .btn,
  body#checkout .buttons-wrapper .btn {
    width: 100%;
  }
}


body#checkout #wrapper {
  padding-top: 0;
}

body#checkout #header.header--checkout-minimal {
  position: relative;
  border-bottom: 1px solid var(--pa-color-border);
  background: #fff;
  box-shadow: none;
}

body#checkout #header.header--checkout-minimal .pa-checkout-header__inner {
  min-height: var(--pa-header-bar-height, 72px);
  display: flex;
  align-items: center;
  justify-content: center;
}

body#checkout #header.header--checkout-minimal .pa-checkout-header__logo,
body#checkout #header.header--checkout-minimal .pa-checkout-header__logo a {
  display: block;
  text-align: center;
}

/* Logo aux dimensions du header du site (.pa-header__logo .logo dans prestai.css) */
body#checkout #header.header--checkout-minimal .pa-checkout-header__logo img,
body#checkout #header.header--checkout-minimal .pa-checkout-header__logo .logo {
  width: auto;
  height: var(--pa-header-logo-height, 40px);
  max-width: min(240px, 40vw);
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
}

@media (max-width: 991.98px) {
  body#checkout #header.header--checkout-minimal .pa-checkout-header__logo img,
  body#checkout #header.header--checkout-minimal .pa-checkout-header__logo .logo {
    height: var(--pa-header-logo-height-mobile, 32px);
  }
}

body#checkout #footer.footer--checkout-minimal {
  background: transparent;
  border-top: 0;
  box-shadow: none;
}

body#checkout #footer.footer--checkout-minimal .pa-checkout-footer__inner {
  margin-top: -2rem;
  padding-top: 0rem;
  padding-bottom: 0rem;
  font-size: 0.8rem;
  color: var(--pa-color-muted);
}

/* ===== Checkout aside full-height / full-bleed right ===== */
body#checkout #wrapper {
  overflow-x: hidden;
}
body#checkout .checkout-grid__content {
    padding-top: 1rem;
}
@media (min-width: 768px) {
body#checkout .checkout-grid__content,
body#checkout .checkout-grid__aside {
    margin-block-end: 0;
}
body#checkout .checkout-grid__content {
    padding-top: 2rem;
    padding-bottom: 3.5rem;
}
body#checkout .page:not(body) {
    padding-bottom: 0;
}
}
@media (min-width: 992px) {
  body#checkout {
    --checkout-header-h: 163px;
    --checkout-aside-pad-x: clamp(24px, 2.5vw, 48px);
    --checkout-aside-pad-x-right: clamp(18px, 1.5vw, 32px);
    --checkout-aside-pad-y: 32px;
  }

  body#checkout .checkout-grid {
    align-items: stretch;
  }

  body#checkout .checkout-grid__content {
    padding-right: clamp(2rem, 4vw, 4rem);
  }

  body#checkout .checkout-grid__aside {
    position: relative;
    display: flex;
    padding-left: 0;
  }

  body#checkout .checkout-grid__aside-wrapper {
    position: sticky;
    top: var(--checkout-header-h);
    height: calc(100dvh - var(--checkout-header-h));
    min-height: 100%;
    overflow: auto;
    margin-right: calc(50% - 50vw);
    padding-top: var(--checkout-aside-pad-y);
    padding-bottom: var(--checkout-aside-pad-y);
    padding-left: var(--checkout-aside-pad-x);
    padding-right: max(var(--checkout-aside-pad-x), calc(50vw - 60% + var(--checkout-aside-pad-x)));
    background: var(--pa-color-surface);
    border-left: 1px solid var(--pa-color-border);
  }

  body#checkout .checkout__summary-accordion-item,
  body#checkout .checkout__summary-accordion-wrapper,
  body#checkout #js-checkout-summary {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }

  body#checkout .checkout__summary-accordion-header .accordion-button {
    padding-top: 0;
  }
}
@media (min-width: 992px) {
.cart-grid__content {
  padding-right: 4rem;
}
}

.address-card__content {
    line-height: 1.25;
}

body#checkout #brevo-conversations,
body#checkout .prestai-popup-launcher {
    display: none;
}
body#checkout .grecaptcha-badge {
    z-index: 99;
    visibility: hidden !important;
}

/* CHECKOUT — WIDER SUMMARY + FULL RIGHT BACKGROUND + FIX PROMO WIDTH */

@media (min-width: 992px) {

  /* Répartition des 2 colonnes du checkout */
  body#checkout .checkout-grid__content {
    flex: 0 0 65%;
    width: 65%;
    max-width: 65%;
  }

  body#checkout .checkout-grid__aside {
    position: relative;
    flex: 0 0 35%;
    width: 35%;
    max-width: 35%;
    min-width: 0;
    justify-content: flex-start;
    background: var(--pa-color-surface);
  }

  /* Prolonge le fond gris jusqu'au bord droit du viewport */
  body#checkout .checkout-grid__aside::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    width: 50vw;
    background: var(--pa-color-surface);
    pointer-events: none;
  }

  /* Contenu du récapitulatif boxé */
  body#checkout .checkout-grid__aside-wrapper {
    position: sticky;
    z-index: 1;
    flex: 0 1 500px;
    width: 100%;
    max-width: 500px;
    min-width: 0;
    margin-right: 0;
    padding-left: var(--checkout-aside-pad-x);
    padding-right: var(--checkout-aside-pad-x-right);

    background: transparent;

    box-sizing: border-box;
  }
}

/* Formulaire code promo */
body#checkout .cart-voucher__form {
  width: 100%;
  min-width: 0;
}

/* Le champ promo peut rétrécir sans élargir le récap */
body#checkout .cart-voucher__form .form-control {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
}

/* Le bouton conserve sa largeur naturelle */
body#checkout .cart-voucher__form .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* =========================================================
   ORDER CONFIRMATION — CONVERSION INVITÉ > COMPTE CLIENT
   ========================================================= */

.order-confirmation__account-transformation.pa-account-conversion {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--pa-color-accent) 22%, var(--pa-color-light));
  border-radius: 12px;
  background: color-mix(in srgb, var(--pa-color-accent) 4%, var(--pa-color-light));
  box-shadow: 0 8px 24px rgba(var(--pa-color-primary-rgb), 0.06);
}

.order-confirmation__account-transformation.pa-account-conversion .card-body {
  padding: 1.5rem;
}

.pa-account-conversion__header {
  max-width: 780px;
}

.pa-account-conversion__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.6rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--pa-color-accent) 12%, var(--pa-color-light));
  color: var(--pa-color-primary);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.pa-account-conversion__title {
  margin-bottom: 0.4rem;
  color: var(--pa-color-primary);
}

.pa-account-conversion__intro {
  color: var(--pa-color-muted);
  line-height: 1.5;
}

.pa-account-conversion__benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.pa-account-conversion__benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--pa-color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--pa-color-ink);
  font-size: 0.92rem;
  line-height: 1.35;
}

.pa-account-conversion__check {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.02rem;
  border-radius: 50%;
  background: var(--pa-color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.pa-account-conversion__form-wrapper {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--pa-color-border);
  border-radius: 10px;
  background: #fff;
}

.pa-account-conversion__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
}

.pa-account-conversion__field .form-label {
  margin-bottom: 0.4rem;
  color: var(--pa-color-primary);
  font-weight: 700;
}

.pa-account-conversion__field .form-control {
  min-height: 48px;
}

.pa-account-conversion__actions {
  display: flex;
}

.pa-account-conversion__submit {
  min-height: 48px;
  padding-right: 1.4rem;
  padding-left: 1.4rem;
  white-space: nowrap;
  font-weight: 700;
}

.pa-account-conversion__note {
  margin-top: 0.7rem;
  color: var(--pa-color-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

@media (max-width: 767.98px) {
  .order-confirmation__account-transformation.pa-account-conversion .card-body {
    padding: 1rem;
  }

  .pa-account-conversion__benefits {
    grid-template-columns: 1fr;
  }

  .pa-account-conversion__form {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .pa-account-conversion__actions,
  .pa-account-conversion__submit {
    width: 100%;
  }
}

#checkout-payment-step button.js-back[data-step="checkout-delivery-step"] {
    display: none !important;
}
#payment-confirmation,
#payment-confirmation .ps-shown-by-js,
#payment-confirmation .btn {
    margin-top: 0.25rem;
    width: 100% !important;
}
/* =========================================================
   19. CART & CHECKOUT
   ========================================================= */

#cart .product-line__item-availability-message {
    display: none;
}    

.js-cart-line-product-quantity {
    border-radius: 0!important;
}

/* CART VOUCHER HIGHLIGHT */

.cart-voucher__highlight {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--pa-color-border);
  border-radius: var(--pa-radius-sm);
  background: var(--pa-color-surface);
}

.cart-voucher__highlight .h5 {
  margin: 0 0 .75rem;
  font-family: var(--pa-font-body);
  color: var(--pa-color-primary);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cart-voucher__offers {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-voucher__code {
  margin: 0;
  color: var(--pa-color-ink);
  font-size: .9rem;
  line-height: 1.5;
}

.cart-voucher__code-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: .35rem;
  padding: .3rem .55rem;
  border: 1px solid var(--pa-color-accent);
  border-radius: .3rem;
  background: var(--pa-color-accent);
  color: var(--pa-color-light);
  font-family: var(--pa-font-body);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color .2s ease,
    border-color .2s ease,
    color .2s ease;
}

.cart-voucher__code-value:hover,
.cart-voucher__code-value:focus {
  border-color: var(--pa-color-primary);
  background: var(--pa-color-primary);
  color: var(--pa-color-light);
  text-decoration: none;
}

.cart-voucher__code-value:focus-visible {
  outline: 2px solid var(--pa-color-accent);
  outline-offset: 2px;
}

@media (max-width: 767.98px) {
  .cart-voucher__highlight {
    padding: .9rem 1rem;
  }

  .cart-voucher__code {
    font-size: .85rem;
  }
}


/* Connexion : « Pas de compte ? » à la taille d'un intertitre, pas d'un titre de section */
body#authentication .login__register-prompt h2 {
  margin-bottom: .75rem;
  font-size: 1.25rem;
}

/* =========================================================
   ORDER CONFIRMATION — POINTS DE FIDÉLITÉ (PrestAI Engagement)
   Encart du module (displayOrderConfirmation) mis en avant :
   carte teintée accent, pastille, message en titre.
   ========================================================= */

body#order-confirmation .prestai-loyalty-cart-incentive--confirmation {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--pa-color-accent) 22%, var(--pa-color-light));
  border-radius: 12px;
  background: color-mix(in srgb, var(--pa-color-accent) 6%, var(--pa-color-light));
  box-shadow: 0 8px 24px rgba(var(--pa-color-primary-rgb), 0.06);
  color: var(--pa-color-ink);
  font-size: 1rem;
  line-height: 1.35;
}

/* Pastille : l'icône choisie dans le module, sinon une étoile */
body#order-confirmation .prestai-loyalty-cart-incentive--confirmation:not(:has(.prestai-loyalty-cart-incentive__mark))::before {
  content: "";
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--pa-color-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2.5l2.94 5.96 6.56.95-4.75 4.63 1.12 6.54L12 17.5l-5.87 3.08 1.12-6.54L2.5 9.41l6.56-.95z'/%3E%3C/svg%3E") center / 1.35rem no-repeat;
}

body#order-confirmation .prestai-loyalty-cart-incentive--confirmation .prestai-loyalty-cart-incentive__mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--pa-color-accent);
  color: var(--pa-color-light);
}

body#order-confirmation .prestai-loyalty-cart-incentive--confirmation .prestai-loyalty-cart-incentive__mark svg {
  width: 1.35rem;
  height: 1.35rem;
  max-width: 1.35rem;
  max-height: 1.35rem;
}

body#order-confirmation .prestai-loyalty-cart-incentive--confirmation .prestai-loyalty-cart-incentive__message {
  color: var(--pa-color-primary);
  font-size: 1.125rem;
  font-weight: 700;
}

body#order-confirmation .prestai-loyalty-cart-incentive--confirmation .prestai-loyalty-cart-incentive__detail {
  margin-top: 0.3rem;
  color: var(--pa-color-muted);
  font-size: 0.875rem;
  opacity: 1;
}

body#order-confirmation .prestai-loyalty-cart-incentive--confirmation .prestai-loyalty-cart-incentive__info {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--pa-color-accent);
  font-size: 0.8rem;
  opacity: 0.85;
}

@media (max-width: 575.98px) {
  body#order-confirmation .prestai-loyalty-cart-incentive--confirmation {
    gap: 0.75rem;
    padding: 0.9rem 1rem;
  }

  body#order-confirmation .prestai-loyalty-cart-incentive--confirmation:not(:has(.prestai-loyalty-cart-incentive__mark))::before,
  body#order-confirmation .prestai-loyalty-cart-incentive--confirmation .prestai-loyalty-cart-incentive__mark {
    width: 2.25rem;
    height: 2.25rem;
  }

  body#order-confirmation .prestai-loyalty-cart-incentive--confirmation .prestai-loyalty-cart-incentive__message {
    font-size: 1rem;
  }
}

/* PrestAI B2B 0.6.0 — totaux d'un client pro (panier, récapitulatif, confirmation) : Total HT et TVA en lignes
   simples, « Total à payer » mis en avant sous un filet. */
body#checkout .cart-summary__total .cart-summary__line--total-excl .cart-summary__label,
body#checkout .cart-summary__total .cart-summary__line--total-excl .cart-summary__value,
body#checkout .cart-summary__total .cart-summary__line--tax .cart-summary__label,
body#checkout .cart-summary__total .cart-summary__line--tax .cart-summary__value {
  font-size: 0.95rem;
  font-weight: 400;
}

body#cart .cart-summary__total .cart-summary__line--to-pay,
body#checkout .cart-summary__total .cart-summary__line--to-pay,
body#order-confirmation .order-confirmation__line--to-pay {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--pa-color-border);
}

body#cart .cart-summary__total .cart-summary__line--to-pay .cart-summary__label,
body#cart .cart-summary__total .cart-summary__line--to-pay .cart-summary__value,
body#checkout .cart-summary__total .cart-summary__line--to-pay .cart-summary__label,
body#checkout .cart-summary__total .cart-summary__line--to-pay .cart-summary__value,
body#order-confirmation .order-confirmation__line--to-pay > div {
  font-size: 1.125rem;
  font-weight: 700;
}
