/* CRAFT V6.129 — consistent WooCommerce notice icons across the site. */

/* Base CRAFT notice card. Keep the message readable and reserve icon space. */
body .woocommerce-message,
body .woocommerce-info,
body .woocommerce-error{
  position:relative!important;
  box-sizing:border-box!important;
  width:100%;
  min-height:56px!important;
  margin-bottom:18px!important;
  border:1px solid rgba(85,72,63,.14)!important;
  border-top:1px solid rgba(85,72,63,.14)!important;
  border-radius:14px!important;
  background:#fff9f1!important;
  color:#55483f!important;
  box-shadow:none!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:13px!important;
  line-height:1.55!important;
  list-style:none!important;
}

/* Single-message/info notices use one icon on the left. */
body div.woocommerce-message,
body div.woocommerce-info,
body p.woocommerce-message,
body p.woocommerce-info{
  display:block!important;
  padding:17px 18px 17px 58px!important;
}
body div.woocommerce-message::before,
body p.woocommerce-message::before,
body div.woocommerce-info::before,
body p.woocommerce-info::before{
  position:absolute!important;
  left:18px!important;
  top:16px!important;
  display:grid!important;
  place-items:center!important;
  width:25px!important;
  height:25px!important;
  margin:0!important;
  padding:0!important;
  border-radius:50%!important;
  color:#fff9f1!important;
  font-family:Arial,sans-serif!important;
  font-size:13px!important;
  font-style:normal!important;
  font-weight:800!important;
  line-height:1!important;
  text-align:center!important;
  transform:none!important;
}
body div.woocommerce-message::before,
body p.woocommerce-message::before{
  content:'✓'!important;
  background:#a7ad95!important;
}
body div.woocommerce-info::before,
body p.woocommerce-info::before{
  content:'i'!important;
  background:#b98a5a!important;
}

/* WooCommerce errors are normally a UL. Give every error row its own icon. */
body ul.woocommerce-error{
  display:grid!important;
  gap:8px!important;
  margin-bottom:18px!important;
  padding:15px 18px!important;
}
body ul.woocommerce-error::before{
  display:none!important;
  content:none!important;
}
body ul.woocommerce-error > li{
  position:relative!important;
  display:block!important;
  min-height:25px!important;
  margin:0!important;
  padding:2px 0 2px 38px!important;
  color:inherit!important;
  font:inherit!important;
  line-height:1.55!important;
  list-style:none!important;
}
body ul.woocommerce-error > li::before{
  content:'!'!important;
  position:absolute!important;
  left:0!important;
  top:0!important;
  display:grid!important;
  place-items:center!important;
  width:25px!important;
  height:25px!important;
  margin:0!important;
  padding:0!important;
  border-radius:50%!important;
  background:#c98268!important;
  color:#fff9f1!important;
  font-family:Arial,sans-serif!important;
  font-size:13px!important;
  font-style:normal!important;
  font-weight:800!important;
  line-height:1!important;
  text-align:center!important;
  transform:none!important;
}

/* Some extensions output an error as a DIV rather than WooCommerce's UL. */
body div.woocommerce-error,
body p.woocommerce-error{
  display:block!important;
  padding:17px 18px 17px 58px!important;
}
body div.woocommerce-error::before,
body p.woocommerce-error::before{
  content:'!'!important;
  position:absolute!important;
  left:18px!important;
  top:16px!important;
  display:grid!important;
  place-items:center!important;
  width:25px!important;
  height:25px!important;
  margin:0!important;
  padding:0!important;
  border-radius:50%!important;
  background:#c98268!important;
  color:#fff9f1!important;
  font-family:Arial,sans-serif!important;
  font-size:13px!important;
  font-style:normal!important;
  font-weight:800!important;
  line-height:1!important;
  text-align:center!important;
  transform:none!important;
}

/* Keep WooCommerce notice action buttons aligned without colliding with icons. */
body .woocommerce-message .button,
body .woocommerce-info .button{
  float:none!important;
  margin-left:12px!important;
}

/* The checkout validation layer already gives each row an icon; keep its layout. */
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-NoticeGroup-checkout ul.woocommerce-error{
  padding:15px 18px!important;
}
body.woocommerce-checkout:not(.woocommerce-order-received) .woocommerce-NoticeGroup-checkout ul.woocommerce-error > li{
  padding-left:38px!important;
}

@media(max-width:560px){
  body .woocommerce-message,
  body .woocommerce-info,
  body .woocommerce-error{
    font-size:12.5px!important;
    border-radius:12px!important;
  }
  body div.woocommerce-message,
  body div.woocommerce-info,
  body p.woocommerce-message,
  body p.woocommerce-info,
  body div.woocommerce-error,
  body p.woocommerce-error{
    padding:15px 15px 15px 52px!important;
  }
  body div.woocommerce-message::before,
  body p.woocommerce-message::before,
  body div.woocommerce-info::before,
  body p.woocommerce-info::before,
  body div.woocommerce-error::before,
  body p.woocommerce-error::before{
    left:15px!important;
    top:14px!important;
    width:23px!important;
    height:23px!important;
    font-size:12px!important;
  }
  body ul.woocommerce-error{
    padding:14px 15px!important;
  }
  body ul.woocommerce-error > li{
    padding-left:34px!important;
  }
  body ul.woocommerce-error > li::before{
    width:23px!important;
    height:23px!important;
    font-size:12px!important;
  }
  body .woocommerce-message .button,
  body .woocommerce-info .button{
    display:block!important;
    width:100%!important;
    margin:12px 0 0!important;
  }
}

/* Account/dashboard had an older rule that explicitly removed icons. Re-enable
   the same final CRAFT icon system there as well. */
body.woocommerce-account.logged-in .account-content-card div.woocommerce-message::before,
body.woocommerce-account.logged-in .account-content-card p.woocommerce-message::before{
  display:grid!important;
  content:'✓'!important;
  background:#a7ad95!important;
}
body.woocommerce-account.logged-in .account-content-card div.woocommerce-info::before,
body.woocommerce-account.logged-in .account-content-card p.woocommerce-info::before{
  display:grid!important;
  content:'i'!important;
  background:#b98a5a!important;
}
body.woocommerce-account.logged-in .account-content-card div.woocommerce-error::before,
body.woocommerce-account.logged-in .account-content-card p.woocommerce-error::before{
  display:grid!important;
  content:'!'!important;
  background:#c98268!important;
}
body.woocommerce-account.logged-in .account-content-card ul.woocommerce-error::before{
  display:none!important;
  content:none!important;
}

/* ==========================================================
 * CRAFT V6.155 — account notice icon spacing fix.
 *
 * account.css intentionally owns the account-card layout, but its older
 * padding rules were more specific than the global notice system. That left
 * the final CRAFT icon sitting on top of the first words. Reserve a fixed icon
 * column on every account notice and vertically centre the icon.
 * ========================================================== */
body.woocommerce-account .craft-account div.woocommerce-message,
body.woocommerce-account .craft-account div.woocommerce-info,
body.woocommerce-account .craft-account p.woocommerce-message,
body.woocommerce-account .craft-account p.woocommerce-info,
body.woocommerce-account .craft-account div.woocommerce-error,
body.woocommerce-account .craft-account p.woocommerce-error{
  position:relative!important;
  box-sizing:border-box!important;
  padding-left:58px!important;
}

body.woocommerce-account .craft-account div.woocommerce-message::before,
body.woocommerce-account .craft-account div.woocommerce-info::before,
body.woocommerce-account .craft-account p.woocommerce-message::before,
body.woocommerce-account .craft-account p.woocommerce-info::before,
body.woocommerce-account .craft-account div.woocommerce-error::before,
body.woocommerce-account .craft-account p.woocommerce-error::before{
  left:18px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
}

/* Logged-in endpoint notices can contain an action button. Keep the message
 * and action on one row while retaining the reserved icon column. */
body.woocommerce-account.logged-in .account-content-card div.woocommerce-message,
body.woocommerce-account.logged-in .account-content-card div.woocommerce-info,
body.woocommerce-account.logged-in .account-content-card p.woocommerce-message,
body.woocommerce-account.logged-in .account-content-card p.woocommerce-info{
  display:flex!important;
  align-items:center!important;
  gap:16px!important;
  padding:14px 16px 14px 58px!important;
}

body.woocommerce-account.logged-in .account-content-card div.woocommerce-message::before,
body.woocommerce-account.logged-in .account-content-card div.woocommerce-info::before,
body.woocommerce-account.logged-in .account-content-card p.woocommerce-message::before,
body.woocommerce-account.logged-in .account-content-card p.woocommerce-info::before{
  left:18px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
}

body.woocommerce-account.logged-in .account-content-card .woocommerce-message .button,
body.woocommerce-account.logged-in .account-content-card .woocommerce-info .button{
  flex:0 0 auto!important;
  margin-left:auto!important;
}

@media(max-width:600px){
  body.woocommerce-account .craft-account div.woocommerce-message,
  body.woocommerce-account .craft-account div.woocommerce-info,
  body.woocommerce-account .craft-account p.woocommerce-message,
  body.woocommerce-account .craft-account p.woocommerce-info,
  body.woocommerce-account .craft-account div.woocommerce-error,
  body.woocommerce-account .craft-account p.woocommerce-error,
  body.woocommerce-account.logged-in .account-content-card div.woocommerce-message,
  body.woocommerce-account.logged-in .account-content-card div.woocommerce-info,
  body.woocommerce-account.logged-in .account-content-card p.woocommerce-message,
  body.woocommerce-account.logged-in .account-content-card p.woocommerce-info{
    padding:15px 15px 15px 52px!important;
  }

  body.woocommerce-account .craft-account div.woocommerce-message::before,
  body.woocommerce-account .craft-account div.woocommerce-info::before,
  body.woocommerce-account .craft-account p.woocommerce-message::before,
  body.woocommerce-account .craft-account p.woocommerce-info::before,
  body.woocommerce-account .craft-account div.woocommerce-error::before,
  body.woocommerce-account .craft-account p.woocommerce-error::before,
  body.woocommerce-account.logged-in .account-content-card div.woocommerce-message::before,
  body.woocommerce-account.logged-in .account-content-card div.woocommerce-info::before,
  body.woocommerce-account.logged-in .account-content-card p.woocommerce-message::before,
  body.woocommerce-account.logged-in .account-content-card p.woocommerce-info::before{
    left:15px!important;
  }

  body.woocommerce-account.logged-in .account-content-card div.woocommerce-message,
  body.woocommerce-account.logged-in .account-content-card div.woocommerce-info,
  body.woocommerce-account.logged-in .account-content-card p.woocommerce-message,
  body.woocommerce-account.logged-in .account-content-card p.woocommerce-info{
    display:block!important;
  }

  body.woocommerce-account.logged-in .account-content-card .woocommerce-message .button,
  body.woocommerce-account.logged-in .account-content-card .woocommerce-info .button{
    display:flex!important;
    width:100%!important;
    margin:12px 0 0!important;
  }
}

/* ==========================================================
 * CRAFT V6.157 — My Account notice action ordering fix.
 *
 * Some WooCommerce account notices output the action <a.button> before the
 * message text (for example the email verification notice). In a flex row that
 * makes the button appear first/top-right and pushes the message onto a second
 * line. Always render anonymous notice text first and the action last.
 * ========================================================== */
body.woocommerce-account.logged-in .account-content-card div.woocommerce-message,
body.woocommerce-account.logged-in .account-content-card div.woocommerce-info,
body.woocommerce-account.logged-in .account-content-card p.woocommerce-message,
body.woocommerce-account.logged-in .account-content-card p.woocommerce-info{
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:18px!important;
}

body.woocommerce-account.logged-in .account-content-card .woocommerce-message .button,
body.woocommerce-account.logged-in .account-content-card .woocommerce-info .button{
  order:99!important;
  flex:0 0 auto!important;
  margin-left:auto!important;
  align-self:center!important;
}

@media(max-width:760px){
  body.woocommerce-account.logged-in .account-content-card div.woocommerce-message,
  body.woocommerce-account.logged-in .account-content-card div.woocommerce-info,
  body.woocommerce-account.logged-in .account-content-card p.woocommerce-message,
  body.woocommerce-account.logged-in .account-content-card p.woocommerce-info{
    display:block!important;
  }

  body.woocommerce-account.logged-in .account-content-card .woocommerce-message .button,
  body.woocommerce-account.logged-in .account-content-card .woocommerce-info .button{
    display:flex!important;
    width:100%!important;
    margin:12px 0 0!important;
  }
}

/* CRAFT v1.8.72 — Checkout pickup-only info notice: reserve permanent
   physical space for the info icon. Avoid overwritten mobile padding. */
body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout .craft-checkout-notices div.woocommerce-info,
body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout .craft-checkout-notices p.woocommerce-info {
  display:block!important;
  position:relative!important;
  box-sizing:border-box!important;
  min-height:60px!important;
  padding:16px 20px 16px 64px!important;
  line-height:1.55!important;
  text-indent:0!important;
  overflow-wrap:break-word!important;
}
body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout .craft-checkout-notices div.woocommerce-info::before,
body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout .craft-checkout-notices p.woocommerce-info::before {
  content:'i'!important;
  position:absolute!important;
  box-sizing:border-box!important;
  inset:auto!important;
  left:20px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:26px!important;
  height:26px!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  text-align:center!important;
  border-radius:50%!important;
  background:#b98a5a!important;
  color:#fff9f1!important;
  font:700 14px/1 Arial,sans-serif!important;
  pointer-events:none!important;
}
@media(max-width:600px) {
  body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout .craft-checkout-notices div.woocommerce-info,
  body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout .craft-checkout-notices p.woocommerce-info {
    padding:14px 14px 14px 54px!important;
    min-height:56px!important;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout .craft-checkout-notices div.woocommerce-info::before,
  body.woocommerce-checkout:not(.woocommerce-order-received) main#checkout .craft-checkout-notices p.woocommerce-info::before {
    left:15px!important;
  }
}
