/*
 * SANUMCOR shared PDP WooCommerce notice surface.
 */

body.single-product .woocommerce-notices-wrapper {
  width: min(840px, calc(100% - 56px));
  margin: clamp(18px, 3vw, 30px) auto 0;
}

body.single-product .woocommerce-notices-wrapper:empty {
  display: none;
}

body.single-product .woocommerce-notices-wrapper .woocommerce-message,
body.single-product .woocommerce-notices-wrapper .woocommerce-info,
body.single-product .woocommerce-notices-wrapper .woocommerce-error {
  display: flex;
  position: relative;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  margin: 0;
  padding: 18px 20px 18px 24px;
  border: 1px solid color-mix(in srgb, var(--sanumcor-border) 82%, var(--sanumcor-surface-elevated));
  border-left: 4px solid var(--sanumcor-anchor);
  border-top: 1px solid color-mix(in srgb, var(--sanumcor-border) 82%, var(--sanumcor-surface-elevated));
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 252, 0.96), rgba(251, 249, 245, 0.92));
  box-shadow: 0 18px 40px rgba(38, 55, 46, 0.08);
  color: var(--sanumcor-ink);
  font-size: 15px;
  font-weight: 520;
  line-height: 1.55;
  list-style: none;
  overflow-wrap: anywhere;
  width: auto;
}

body.single-product .woocommerce-notices-wrapper .woocommerce-message::before,
body.single-product .woocommerce-notices-wrapper .woocommerce-info::before,
body.single-product .woocommerce-notices-wrapper .woocommerce-error::before,
body.single-product .woocommerce-notices-wrapper .woocommerce-message::after,
body.single-product .woocommerce-notices-wrapper .woocommerce-info::after,
body.single-product .woocommerce-notices-wrapper .woocommerce-error::after {
  content: none;
  display: none;
}

body.single-product .woocommerce-notices-wrapper .woocommerce-message + .woocommerce-message,
body.single-product .woocommerce-notices-wrapper .woocommerce-message + .woocommerce-info,
body.single-product .woocommerce-notices-wrapper .woocommerce-message + .woocommerce-error,
body.single-product .woocommerce-notices-wrapper .woocommerce-info + .woocommerce-message,
body.single-product .woocommerce-notices-wrapper .woocommerce-info + .woocommerce-info,
body.single-product .woocommerce-notices-wrapper .woocommerce-info + .woocommerce-error,
body.single-product .woocommerce-notices-wrapper .woocommerce-error + .woocommerce-message,
body.single-product .woocommerce-notices-wrapper .woocommerce-error + .woocommerce-info,
body.single-product .woocommerce-notices-wrapper .woocommerce-error + .woocommerce-error {
  margin-top: 12px;
}

body.single-product .woocommerce-notices-wrapper .woocommerce-message {
  border-left-color: var(--sanumcor-anchor);
}

body.single-product .woocommerce-notices-wrapper .woocommerce-error {
  align-items: stretch;
  border-left-color: #9f3f34;
  flex-direction: column;
  gap: 0;
}

body.single-product .woocommerce-notices-wrapper .woocommerce-info {
  border-left-color: var(--sanumcor-accent);
}

body.single-product .woocommerce-notices-wrapper .woocommerce-error li,
body.single-product .woocommerce-notices-wrapper .woocommerce-info li,
body.single-product .woocommerce-notices-wrapper .woocommerce-message li {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.single-product .woocommerce-notices-wrapper .woocommerce-error li + li {
  margin-top: 8px;
}

body.single-product .woocommerce-notices-wrapper .button.wc-forward {
  display: inline-flex;
  float: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 42px;
  margin-left: auto;
  padding: 11px 17px;
  border: 1px solid var(--sanumcor-anchor);
  border-radius: 6px;
  background: var(--sanumcor-anchor);
  box-shadow: none;
  color: var(--sanumcor-light-text);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

body.single-product .woocommerce-notices-wrapper .button.wc-forward:hover {
  border-color: var(--sanumcor-anchor-hover);
  background: var(--sanumcor-anchor-hover);
  color: var(--sanumcor-light-text);
}

body.single-product .woocommerce-notices-wrapper .button.wc-forward:focus-visible {
  outline: 2px solid var(--sanumcor-accent-strong);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  body.single-product .woocommerce-notices-wrapper .button.wc-forward {
    transition:
      background-color 160ms ease,
      border-color 160ms ease,
      color 160ms ease;
  }
}

@media (max-width: 640px) {
  body.single-product .woocommerce-notices-wrapper {
    width: min(100% - 40px, 840px);
    margin-top: 16px;
  }

  body.single-product .woocommerce-notices-wrapper .woocommerce-message,
  body.single-product .woocommerce-notices-wrapper .woocommerce-info,
  body.single-product .woocommerce-notices-wrapper .woocommerce-error {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
    min-height: 0;
    padding: 16px 18px;
    font-size: 14px;
  }

  body.single-product .woocommerce-notices-wrapper .button.wc-forward {
    width: 100%;
    min-height: 44px;
    margin-left: 0;
  }
}

@media (max-width: 360px) {
  body.single-product .woocommerce-notices-wrapper {
    width: min(100% - 28px, 840px);
  }

  body.single-product .woocommerce-notices-wrapper .woocommerce-message,
  body.single-product .woocommerce-notices-wrapper .woocommerce-info,
  body.single-product .woocommerce-notices-wrapper .woocommerce-error {
    padding: 15px 16px;
  }
}
