/* PAPAREIL Commerce Studio 4.3.10 — notices WooCommerce unifiées.
   Corrige le conflit historique : pseudo-icône Woo absolute + padding compact 4.3.7.
   Aucune réécriture du HTML WooCommerce, aucun changement d'action/bouton. */
body.papcs-notices-ui {
  --pn-navy: #14345e;
  --pn-radius: 15px;
}
/* Règles appliquées aux messages WooCommerce natifs, y compris dans l'espace client.
   La classe body ne modifie ni les notices WP admin ni celles d'Asgaros. */
body.papcs-notices-ui :is(.woocommerce-message,.woocommerce-info,.woocommerce-error) {
  position: relative !important;
  display: flow-root;
  clear: both;
  box-sizing: border-box !important;
  width: 100%;
  min-height: 65px;
  margin: 0 0 18px !important;
  padding: 18px 20px 18px 63px !important;
  border: 1px solid #dbe8f5 !important;
  border-top: 3px solid #3f9dbd !important;
  border-radius: var(--pn-radius) !important;
  box-shadow: 0 6px 19px rgba(19,52,94,.055);
  background-color: #f4f9fe !important;
  background-image: url('icons/notice-info.svg') !important;
  background-position: 19px 17px !important;
  background-repeat: no-repeat !important;
  background-size: 26px 26px !important;
  color: var(--pn-navy) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  text-align: left;
  overflow-wrap: anywhere;
}
/* Ancien CSS de compte V4.3.7 : sélecteur plus spécifique qui ramenait
   le retrait à 20 px malgré le thème. La surcharge ci-dessous est intentionnelle. */
body.papcs-notices-ui.woocommerce-account .ppac-main :is(.woocommerce-message,.woocommerce-info,.woocommerce-error) {
  padding: 18px 20px 18px 63px !important;
  border-radius: var(--pn-radius) !important;
}
/* WooCommerce ajoute traditionnellement un glyphe absolu : on le retire.
   L'icône est désormais une image de fond non interactive avec espace réservé. */
body.papcs-notices-ui :is(.woocommerce-message,.woocommerce-info,.woocommerce-error)::before {
  content: none !important;
  display: none !important;
}
body.papcs-notices-ui .woocommerce-message {
  border-color: #cfe8df !important;
  border-top-color: #249c78 !important;
  background-color: #f2fbf6 !important;
  background-image: url('icons/notice-success.svg') !important;
  color: #1c624e !important;
}
body.papcs-notices-ui .woocommerce-error {
  border-color: #f1d8dd !important;
  border-top-color: #d44e63 !important;
  background-color: #fff6f7 !important;
  background-image: url('icons/notice-error.svg') !important;
  color: #8e273a !important;
  list-style: none !important;
}
body.papcs-notices-ui ul.woocommerce-error li {
  margin: 0 0 5px !important;
  padding: 0 !important;
  list-style: none !important;
  line-height: 1.5;
}
body.papcs-notices-ui ul.woocommerce-error li:last-child {margin-bottom: 0 !important;}
body.papcs-notices-ui :is(.woocommerce-message,.woocommerce-info,.woocommerce-error) a:not(.button) {
  color: #185d98;
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* Boutons dans les notices : le float natif reste à droite sur PC.
   On ne transforme pas les boutons en pseudo éléments et on préserve les liens. */
body.papcs-notices-ui :is(.woocommerce-message,.woocommerce-info,.woocommerce-error) :is(a.button,button.button,a.wc-forward) {
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  float: right;
  max-width: 100%;
  margin: 0 0 6px 17px !important;
  padding: 10px 15px !important;
  min-height: 42px;
  border: 0 !important;
  border-radius: 11px !important;
  background: #153a66 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  white-space: normal;
  text-align: center;
}
body.papcs-notices-ui :is(.woocommerce-message,.woocommerce-info,.woocommerce-error) :is(a.button,button.button,a.wc-forward):hover {
  background: #235a91 !important;
  color: #fff !important;
}
body.papcs-notices-ui :is(.woocommerce-message,.woocommerce-info,.woocommerce-error) :is(a.button,button.button,a.wc-forward):focus-visible {
  outline: 3px solid #2c83c4 !important;
  outline-offset: 3px !important;
}
/* Blocks WooCommerce : conserver leurs icônes natives et leurs interactions. */
body.papcs-notices-ui .wc-block-components-notice-banner {
  box-sizing: border-box;
  min-width: 0;
  border-radius: var(--pn-radius) !important;
  padding: 13px 17px !important;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
body.papcs-notices-ui .wc-block-components-notice-banner > svg {
  flex-shrink: 0;
  margin: 0 12px 0 0;
}
body.papcs-notices-ui .wc-block-components-notice-banner__content {min-width: 0;}
@media (max-width: 620px) {
  body.papcs-notices-ui :is(.woocommerce-message,.woocommerce-info,.woocommerce-error) {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 9px;
    min-height: 0;
    padding: 17px 14px 17px 53px !important;
    background-position: 15px 16px !important;
    background-size: 24px 24px !important;
    border-radius: 13px !important;
  }
  body.papcs-notices-ui :is(.woocommerce-message,.woocommerce-info,.woocommerce-error) :is(a.button,button.button,a.wc-forward) {
    order: 2;
    float: none !important;
    margin: 5px 0 0 !important;
    max-width: 100%;
    min-height: 43px;
  }
  body.papcs-notices-ui.woocommerce-account .ppac-main :is(.woocommerce-message,.woocommerce-info,.woocommerce-error) {
    padding: 17px 14px 17px 53px !important;
    border-radius: 13px !important;
  }
  body.papcs-notices-ui ul.woocommerce-error {display: block !important;}
  body.papcs-notices-ui .wc-block-components-notice-banner {padding: 12px 13px !important;}
}
@media (prefers-reduced-motion: reduce) {
  body.papcs-notices-ui :is(.woocommerce-message,.woocommerce-info,.woocommerce-error) :is(a.button,button.button) {transition: none !important;}
}
