/**
 * Notices: the one design for every WooCommerce message on the site ("added to your cart", "removed. Undo?", coupon and
 * form errors, "have a coupon?" prompts, account messages). Loaded on every page; the cart/checkout and My Account
 * stylesheets used to carry their own copies, and the product page had none (a bare full-width bar).
 *
 *  - a soft card: tinted edge fading into white, hairline border, gentle shadow, 16px corners
 *  - a solid round icon badge (check / info / alert), text in the dark navy, actions as a navy pill button
 *  - one line on desktop; on a phone the button drops to its own full-width row
 *  - keyboard focus ring only (WooCommerce focuses a new notice with a script, which used to draw a blue box)
 *
 * Text is always --color-navy on a near-white surface (>= 14:1); the icon and button colours meet 3:1 / 4.5:1.
 */

:root {
  --nt-green: #16A34A;
  --nt-gutter: clamp(16px, 3vw, 32px);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  --nt: var(--color-blue, #2F6FED);
  --nt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 11.2v5.3'/%3E%3Cpath d='M12 7.6h.01'/%3E%3C/svg%3E");
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--nt) 24%, var(--gray-200, #E2E8F0));
  border-radius: 16px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--nt) 11%, #fff) 0%, #fff 64%);
  box-shadow: 0 10px 26px -14px rgba(13, 27, 62, .28), 0 1px 2px rgba(13, 27, 62, .05);
  color: var(--color-navy, #0D1B3E);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  list-style: none;
  scroll-margin-top: 120px;
  animation: dxs-notice-in .3s cubic-bezier(.16, 1, .3, 1) both;
}

.woocommerce-message { --nt: var(--nt-green); --nt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 12.5 4.2 4.2L18.5 8'/%3E%3C/svg%3E"); }
.woocommerce-error   { --nt: var(--color-red-strong, #D32F3D); --nt-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v6.2'/%3E%3Cpath d='M12 16.9h.01'/%3E%3C/svg%3E"); }

/* The round icon badge (replaces Storefront's icon-font glyph). */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  content: '' !important;
  position: static;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 50%;
  background: var(--nt-icon) center / 18px 18px no-repeat, var(--nt);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--nt) 16%, transparent);
  font: inherit;
  transform: none;
}

.woocommerce-message a:not(.button),
.woocommerce-info a:not(.button),
.woocommerce-error a:not(.button) {
  color: var(--color-navy, #0D1B3E);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--nt) 60%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.woocommerce-message a:not(.button):hover,
.woocommerce-info a:not(.button):hover,
.woocommerce-error a:not(.button):hover { text-decoration-color: var(--nt); }
.woocommerce-message strong,
.woocommerce-info strong,
.woocommerce-error strong { font-weight: 800; }

/* Action ("View cart", "Undo") - a navy pill on the right; on hover it turns blue with white text. */
.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-error a.button {
  order: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0 auto;
  padding: 10px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--color-navy, #0D1B3E);
  box-shadow: 0 8px 16px -8px rgba(13, 27, 62, .55);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.woocommerce-message a.button:hover,
.woocommerce-info a.button:hover,
.woocommerce-error a.button:hover,
.woocommerce-message a.button:focus-visible,
.woocommerce-info a.button:focus-visible,
.woocommerce-error a.button:focus-visible {
  background: var(--color-blue, #2F6FED);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 18px -8px rgba(47, 111, 237, .6);
}

/* Error lists: the badge on the first line, one line per problem beside/below it (each <li> is its own row). */
.woocommerce-error { align-items: flex-start; }
.woocommerce-error::before { margin-top: 1px; }
.woocommerce-error li {
  display: flex;
  flex: 1 1 calc(100% - 48px);
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  min-width: 0;
  margin: 0;
  padding: 5px 0 0;
  list-style: none;
}
.woocommerce-error li ~ li { margin-left: 48px; padding-top: 0; }

/* WooCommerce moves focus to a new notice from a script so screen readers announce it. The box is not a control (tabindex -1), so no
   ring on it; the button and links inside keep the normal keyboard focus ring. */
.woocommerce-message:focus,
.woocommerce-info:focus,
.woocommerce-error:focus,
.woocommerce-message:focus-visible,
.woocommerce-info:focus-visible,
.woocommerce-error:focus-visible { outline: none; }

/* Storefront prints shop and product page notices straight into its full-width .col-full wrapper, so they ran edge to edge above
   the page container. Line them up with the container (the cart, checkout and account pages place theirs inside their own layout). */
.col-full > .woocommerce > .woocommerce-message,
.col-full > .woocommerce > .woocommerce-info,
.col-full > .woocommerce > .woocommerce-error {
  width: calc(100% - 2 * var(--nt-gutter));
  max-width: calc(var(--container-max, 1280px) - 2 * var(--nt-gutter));
  margin: 20px auto 4px;
}

@keyframes dxs-notice-in {
  from { opacity: 0; transform: translateY(-8px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .woocommerce-message,
  .woocommerce-info,
  .woocommerce-error { animation: none; }
  .woocommerce-message a.button,
  .woocommerce-info a.button,
  .woocommerce-error a.button { transition: none; }
}

/* Phone: icon + text on the first row, the action full width underneath. */
@media (max-width: 600px) {
  .woocommerce-message,
  .woocommerce-info,
  .woocommerce-error { gap: 10px 12px; padding: 12px 14px; font-size: 14.5px; border-radius: 14px; }
  .woocommerce-message a.button,
  .woocommerce-info a.button { flex: 1 1 100%; order: 3; margin: 2px 0 0; padding: 12px 16px; font-size: 14.5px; }
  .woocommerce-error li a.button { flex: 1 1 100%; order: 3; margin: 2px 0 0; padding: 12px 16px; font-size: 14.5px; }
}
