/* 1123: account / sign-in polish. Printed after the account CSS and the light theme (wp_head 112) on account pages.
   1) WooCommerce notices: Satka's #333 box with a currentColor border made success look like an error and stayed
      dark in light. One NXTL notice per meaning, both themes.
   2) Password screens (lost / reset / sent) use the sign-in card; single centred card, no Satka box inside it.
   3) Address edit form: dark fields in dark (they were white).
   4) Order detail on phones: the head's first column kept flex-basis 280px in a column layout (empty 200px band). */

/* ---------- 1) Notices ---------- */
html body.woocommerce-account :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
  --nxn-bg: rgba(255, 255, 255, 0.04);
  --nxn-line: rgba(255, 255, 255, 0.14);
  --nxn-text: #F5F6F8;
  --nxn-icon: #A3AAB8;
  position: relative;
  display: block;
  margin: 0 0 16px !important;
  padding: 14px 16px 14px 46px !important;
  list-style: none !important;
  background: var(--nxn-bg) !important;
  background-image: none !important;
  border: 1px solid var(--nxn-line) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  color: var(--nxn-text) !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
}
html body.woocommerce-account .woocommerce-message { --nxn-bg: rgba(46, 202, 127, 0.10); --nxn-line: rgba(46, 202, 127, 0.38); --nxn-icon: #2ECA7F; }
html body.woocommerce-account .woocommerce-error { --nxn-bg: rgba(255, 61, 90, 0.10); --nxn-line: rgba(255, 61, 90, 0.45); --nxn-icon: #FF5E70; }
html body.woocommerce-account :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before {
  content: "" !important;
  position: absolute !important;
  top: 15px !important;
  left: 16px !important;
  right: auto !important;
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50%;
  background: var(--nxn-icon) !important;
  -webkit-mask: var(--nxn-mask) center / 18px 18px no-repeat;
  mask: var(--nxn-mask) center / 18px 18px no-repeat;
  --nxn-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23000' d='M10 1a9 9 0 1 0 0 18 9 9 0 0 0 0-18zm1 13H9V9h2zm0-7H9V5h2z'/%3E%3C/svg%3E");
}
html body.woocommerce-account .woocommerce-message::before {
  --nxn-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23000' d='M10 1a9 9 0 1 0 0 18 9 9 0 0 0 0-18zm-1.2 13.2L4.6 10l1.4-1.4 2.8 2.8 5.2-5.2 1.4 1.4z'/%3E%3C/svg%3E");
}
html body.woocommerce-account .woocommerce-error::before {
  --nxn-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23000' d='M10 1a9 9 0 1 0 0 18 9 9 0 0 0 0-18zm1 14H9v-2h2zm0-4H9V5h2z'/%3E%3C/svg%3E");
}
html body.woocommerce-account .woocommerce-error li { margin: 0; padding: 0; list-style: none; }
/* WooCommerce focuses the notice (tabindex -1) on load so screen readers announce it; that focus is not a control, so no ring */
html body.woocommerce-account :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)[tabindex="-1"]:focus { outline: none !important; }
html body.woocommerce-account :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) a:not(.button) {
  color: inherit !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
html body.woocommerce-account :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) .button {
  float: none !important;
  display: inline-flex !important;
  align-items: center;
  min-height: 32px;
  margin: 0 0 0 10px !important;
  padding: 0 12px !important;
  background: transparent !important;
  border: 1px solid var(--nxn-line) !important;
  border-radius: 999px !important;
  color: var(--nxn-text) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}
html body.woocommerce-account :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) :is(a, .button):focus-visible { outline: 2px solid #FF3D5A; outline-offset: 2px; }

html[data-theme="light"] body.woocommerce-account :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
  --nxn-bg: #FFFFFF;
  --nxn-line: rgba(17, 20, 31, 0.14);
  --nxn-text: #11141F;
  --nxn-icon: #5A6174;
}
html[data-theme="light"] body.woocommerce-account .woocommerce-message { --nxn-bg: #EEFBF3; --nxn-line: #9FDDB9; --nxn-icon: #12804A; }
html[data-theme="light"] body.woocommerce-account .woocommerce-error { --nxn-bg: #FFF1F3; --nxn-line: #F4A8B5; --nxn-icon: #BE123C; }

/* ---------- 2) Password screens: one centred sign-in card ---------- */
html body.woocommerce-account .nxtl-v2-login--single .nxtl-v2-login__grid {
  grid-template-columns: minmax(0, 1fr) !important;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
html body.woocommerce-account .nxtl-v2-login--single form.lost_reset_password,
html body.woocommerce-account .nxtl-v2-login--single .woocommerce-ResetPassword {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
html body.woocommerce-account .nxtl-v2-login--single h1.nxtl-v2-login__title { margin-top: 0; }
html body.woocommerce-account .nxtl-v2-login--single .nxtl-v2-login__notice { margin: 4px 0 18px; }
html body.woocommerce-account .nxtl-v2-login__btn--link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none !important;
}
html body.woocommerce-account .nxtl-v2-login--single .nxtl-v2-login__foot a {
  color: #FF8496;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
html[data-theme="light"] body.woocommerce-account .nxtl-v2-login--single .nxtl-v2-login__foot a { color: #BE123C; }
/* WooCommerce's password strength meter on the reset form */
html body.woocommerce-account .nxtl-v2-login .woocommerce-password-strength {
  margin: -6px 0 14px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
html body.woocommerce-account .nxtl-v2-login .woocommerce-password-hint { display: block; margin: 0 0 14px; font-size: 12.5px; line-height: 1.5; color: #A3AAB8; }
html[data-theme="light"] body.woocommerce-account .nxtl-v2-login .woocommerce-password-hint { color: #4A5263; }

/* ---------- 3) Address edit form fields (dark) ---------- */
html:not([data-theme="light"]) body.woocommerce-account .woocommerce-address-fields :is(input.input-text, select, textarea),
html:not([data-theme="light"]) body.woocommerce-account .woocommerce-address-fields .select2-selection {
  min-height: 44px;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  color: #F5F6F8 !important;
}
html:not([data-theme="light"]) body.woocommerce-account .woocommerce-address-fields :is(input.input-text, select, textarea):focus {
  border-color: #FF3D5A !important;
  box-shadow: 0 0 0 3px rgba(255, 61, 90, 0.20) !important;
  outline: none;
}
html:not([data-theme="light"]) body.woocommerce-account .woocommerce-address-fields .select2-selection__rendered { color: #F5F6F8 !important; line-height: 42px !important; }

/* ---------- 4) Order detail head on phones ---------- */
@media (max-width: 680px) {
  html body.nxtl-account :is(#moreDetailOrders, #moreDetailOrderDetail, #moreDetailPayment, #moreDetailAddPaymentMethod, #moreDetailProfile, #moreDetailPrivacy, #moreDetailReferrals) .kit-more-card__head--split > div:first-child {
    flex: 0 0 auto;
  }
}

/* ---------- 5) Email notifications (1123): master switch + category group ---------- */
html body.nxtl-account .nxtl-email-prefs__group {
  min-width: 0;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  transition: opacity 0.2s ease;
}
html body.nxtl-account .nxtl-email-prefs__legend {
  display: block;
  width: 100%;
  margin: 8px 0 2px;
  padding: 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0;
  color: #A3AAB8;
}
html body.nxtl-account .nxtl-email-prefs__master { padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
html body.nxtl-account .nxtl-email-prefs__group:disabled { opacity: 0.45; }
html body.nxtl-account .nxtl-email-prefs__group:disabled .kit-switch,
html body.nxtl-account .nxtl-email-prefs__group:disabled label { cursor: not-allowed; }
html body.nxtl-account .nxtl-email-prefs__off {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 13px;
  line-height: 1.5;
  color: #D5D9E4;
}
html body.nxtl-account .nxtl-email-prefs__off[hidden] { display: none; }
html body.nxtl-account .nxtl-email-prefs__always { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; }
html[data-theme="light"] body.nxtl-account .nxtl-email-prefs__legend { color: #4A5263; }
html[data-theme="light"] body.nxtl-account .nxtl-email-prefs__master { border-bottom-color: rgba(17, 20, 31, 0.08); }
html[data-theme="light"] body.nxtl-account .nxtl-email-prefs__off { background: #F6F7FA; border-color: rgba(17, 20, 31, 0.10); color: #2A3040; }
@media (prefers-reduced-motion: reduce) {
  html body.nxtl-account .nxtl-email-prefs__group { transition: none; }
}
