/* HorecaDepot unified WooCommerce notices: success, error and information. */
body :is(.woocommerce-message, .woocommerce-error, .woocommerce-info) {
  --hd-notice-accent: #fdb913;
  position: relative;
  display: flex !important;
  min-height: 62px;
  align-items: center;
  flex-direction: row !important;
  gap: 12px;
  margin: 0 0 22px !important;
  padding: 16px 20px 16px 22px !important;
  border: 1px solid #e1e7ec !important;
  border-inline-start: 4px solid var(--hd-notice-accent) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(17, 29, 43, .07) !important;
  color: #263443 !important;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  list-style: none !important;
}

body .woocommerce-message {
  --hd-notice-accent: #3c9b65;
}

body .woocommerce-error {
  --hd-notice-accent: #d94a4a;
}

body .woocommerce-info {
  --hd-notice-accent: #f2ad13;
}

/* Remove WooCommerce/WoodMart icon glyphs before adding one HorecaDepot icon. */
body :is(.woocommerce-message, .woocommerce-error, .woocommerce-info)::before,
body :is(.woocommerce-message, .woocommerce-error, .woocommerce-info) > li::before {
  display: none !important;
  content: none !important;
}

body :is(.woocommerce-message, .woocommerce-error, .woocommerce-info)::after {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  order: -1;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--hd-notice-accent) 13%, #fff);
  color: var(--hd-notice-accent);
  content: "i";
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

body .woocommerce-message::after {
  content: "\2713";
}

body .woocommerce-error::after {
  content: "!";
}

body :is(.woocommerce-message, .woocommerce-error, .woocommerce-info) :is(a, strong) {
  color: #17212e;
  font-weight: 800;
}

body :is(.woocommerce-message, .woocommerce-error, .woocommerce-info) :is(ul, ol) {
  flex: 1 1 min(100%, 360px);
  margin: 0;
  padding: 0;
  list-style: none;
}

body :is(.woocommerce-message, .woocommerce-error, .woocommerce-info) li {
  margin: 0;
}

body :is(.woocommerce-message, .woocommerce-error, .woocommerce-info) li + li {
  margin-top: 5px;
}

body .woocommerce-message .button {
  min-height: 38px;
  margin: -3px 0 -3px auto;
  padding: 8px 13px;
  border-radius: 8px;
  background: #17212e;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
}

body .woocommerce-message .button:hover {
  background: #fdb913;
  color: #17212e;
}

@media (max-width: 575px) {
  body :is(.woocommerce-message, .woocommerce-error, .woocommerce-info) {
    gap: 10px;
    padding: 14px 16px 14px 18px !important;
    font-size: 13px;
  }

  body .woocommerce-message .button {
    width: 100%;
    margin: 2px 0 0;
    text-align: center;
  }
}
