/* MeinAboWein 2.6.7: ausschliesslich WooCommerce Passwort-Zuruecksetzen.
   Ursache: das normale MyAccount-Grid gibt dem WooCommerce-Reset-Formular
   sonst nur die 230px-Navigationsspalte. Keine Auswirkung auf das Dashboard. */

/* Fallback fuer WooCommerce-Endpoint-Klassen und moderner :has()-Selektor. */
body.woocommerce-account.woocommerce-lost-password .woocommerce,
body.woocommerce-account .woocommerce:has(form.woocommerce-ResetPassword) {
  display: block !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  grid-template-areas: none !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: 780px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword.lost_reset_password {
  display: block !important;
  width: 100% !important;
  max-width: 620px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  float: none !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword.lost_reset_password > p:first-child {
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword.lost_reset_password .form-row,
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword.lost_reset_password .form-row-first,
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword.lost_reset_password .form-row-last {
  display: block !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword.lost_reset_password .form-row > label {
  display: block !important;
  font-size: 1rem !important;
  font-weight: 650 !important;
  color: #232f37 !important;
  margin: 0 0 .45rem !important;
  line-height: 1.45 !important;
}
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword.lost_reset_password input[type="password"] {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 48px !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  padding: 12px 48px 12px 14px !important;
  border: 1px solid #afa9a0 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-sizing: border-box !important;
}
body.woocommerce-account .woocommerce form.woocommerce-ResetPassword.lost_reset_password input[type="password"]:focus-visible {
  outline: 3px solid rgba(198,165,114,.42) !important;
  outline-offset: 2px;
  border-color: #9d7949 !important;
}
/* WooCommerce-Wertung bei der Eingabe bleibt sichtbar, aber lesbar. */
body.woocommerce-account form.woocommerce-ResetPassword .woocommerce-password-strength,
body.woocommerce-account form.woocommerce-ResetPassword .password-strength {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 9px 12px !important;
  margin: 8px 0 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  border-radius: 10px !important;
}
/* Statt des mehrzeiligen WordPress-Standardtextes erscheint darunter eine
   kurze, klar formulierte und uebersetzte Passwortempfehlung. */
body.woocommerce-account form.woocommerce-ResetPassword .woocommerce-password-hint {
  display: none !important;
}
body.woocommerce-account form.woocommerce-ResetPassword .mab-password-guidance {
  display: block !important;
  clear: both !important;
  margin: 1.1rem 0 1.2rem !important;
  padding: 14px 16px !important;
  background: #f6f4ef !important;
  border-left: 3px solid #c6a572 !important;
  border-radius: 10px !important;
  color: #232f37 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}
body.woocommerce-account form.woocommerce-ResetPassword .mab-password-guidance strong {
  display: block;
  margin-bottom: .25rem;
}
body.woocommerce-account form.woocommerce-ResetPassword button[type="submit"],
body.woocommerce-account form.woocommerce-ResetPassword button.button {
  min-height: 46px !important;
  font-size: 16px !important;
  padding: 12px 24px !important;
  border-radius: 999px !important;
  cursor: pointer;
}
@media (max-width: 600px) {
  body.woocommerce-account.woocommerce-lost-password .woocommerce,
  body.woocommerce-account .woocommerce:has(form.woocommerce-ResetPassword) {
    padding: 18px 14px 20px !important;
    margin-top: 1.25rem !important;
  }
  body.woocommerce-account .woocommerce form.woocommerce-ResetPassword.lost_reset_password {
    max-width: 100% !important;
  }
}
