/*
 * SNEXUS account / WooCommerce notices
 * Version 3.1.1
 */

/* Remove WooCommerce's legacy icon glyph. */
body.woocommerce-account .woocommerce-message::before,
body.woocommerce-account .woocommerce-info::before,
body.woocommerce-account .woocommerce-error::before,
body.woocommerce-account .woocommerce-notice::before,
body.woocommerce-account .woocommerce-message:before,
body.woocommerce-account .woocommerce-info:before,
body.woocommerce-account .woocommerce-error:before,
body.woocommerce-account .woocommerce-notice:before {
  content: none !important;
  display: none !important;
}

/*
 * Colored left edge is intentionally square.
 * The opposite side remains softly rounded.
 */
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-error,
body.woocommerce-account .woocommerce-notice {
  position: relative !important;
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 0 18px !important;
  padding: 15px 18px !important;

  background: #fff !important;
  color: #344054 !important;

  border: 1px solid #dfe4ea !important;
  border-left-width: 4px !important;
  border-radius: 0 12px 12px 0 !important;
  box-shadow: none !important;
  outline: 0 !important;

  list-style: none !important;
  font-size: .95rem !important;
  line-height: 1.55 !important;
}

body.woocommerce-account .woocommerce-message {
  border-left-color: #22a447 !important;
}

body.woocommerce-account .woocommerce-info {
  border-left-color: #f97316 !important;
}

body.woocommerce-account .woocommerce-error {
  border-left-color: #dc2626 !important;
}

body.woocommerce-account ul.woocommerce-error,
body.woocommerce-account ul.woocommerce-info,
body.woocommerce-account ul.woocommerce-message {
  padding: 15px 18px !important;
}

body.woocommerce-account .woocommerce-error li,
body.woocommerce-account .woocommerce-info li,
body.woocommerce-account .woocommerce-message li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  color: inherit !important;
}

body.woocommerce-account .woocommerce-message a,
body.woocommerce-account .woocommerce-info a,
body.woocommerce-account .woocommerce-error a {
  font-weight: 650 !important;
}

/* Password request/reset pages need their own vertical breathing room. */
body.snexus-password-flow .snx-standard-page {
  padding-top: clamp(42px, 6vw, 68px) !important;
  padding-bottom: clamp(54px, 7vw, 82px) !important;
}

body.snexus-password-flow .woocommerce {
  box-sizing: border-box !important;
  width: min(760px, calc(100% - 32px)) !important;
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.snexus-password-flow .woocommerce-notices-wrapper {
  margin: 0 0 20px !important;
  padding: 0 !important;
}

/* Confirmation text after "E-Mail sent". */
body.snexus-password-flow .woocommerce > p {
  margin-top: 0 !important;
  margin-bottom: 18px !important;
  color: #344054 !important;
  line-height: 1.65 !important;
}

/* Request and actual new-password forms. */
body.snexus-password-flow form.lost_reset_password,
body.snexus-password-flow form.woocommerce-ResetPassword {
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: clamp(24px, 4vw, 32px) !important;
  background: #fff !important;
  border: 1px solid #e2e7ec !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

body.snexus-password-flow form.lost_reset_password > p:first-child,
body.snexus-password-flow form.woocommerce-ResetPassword > p:first-child {
  margin-top: 0 !important;
}

@media (max-width: 640px) {
  body.woocommerce-account .woocommerce-message,
  body.woocommerce-account .woocommerce-info,
  body.woocommerce-account .woocommerce-error,
  body.woocommerce-account .woocommerce-notice {
    padding: 13px 14px !important;
    border-radius: 0 10px 10px 0 !important;
    font-size: .92rem !important;
  }

  body.snexus-password-flow .snx-standard-page {
    padding-top: 30px !important;
    padding-bottom: 54px !important;
  }

  body.snexus-password-flow .woocommerce {
    width: min(100% - 20px, 760px) !important;
  }
}

/* 3.1.7 – threaded support history */
.snexus-portal .snx-support-thread{display:grid;gap:12px;margin:8px 0 20px}
.snexus-portal .snx-support-message{margin:0;padding:14px 16px;border:1px solid #e0e5eb;border-left:3px solid #98a2b3;border-radius:0 10px 10px 0;background:#f8fafc}
.snexus-portal .snx-support-message.is-admin{border-left-color:var(--snx-orange,#f97316);background:#fffaf7}
.snexus-portal .snx-support-message-head{display:flex;justify-content:space-between;gap:16px;margin-bottom:7px;font-size:13px}
.snexus-portal .snx-support-message-head span{color:#667085}
.snexus-portal .snx-support-message p{margin:0;color:#344054;line-height:1.6}
.snexus-portal .snx-support-followup{padding-top:16px;border-top:1px solid #eaecf0}
