/* Base: Woo + CartFlows + login */
:where(.woocommerce, .wcf-embed-checkout-form, form.checkout, form.login) .password-input{position:relative;display:block}
:where(.woocommerce, .wcf-embed-checkout-form, form.checkout, form.login) .password-input>input[type="password"],
:where(.woocommerce, .wcf-embed-checkout-form, form.checkout, form.login) .password-input>input[type="text"]{padding-right:52px!important}

/* Botón ojo (gana a tema/core) */
:where(.woocommerce, .wcf-embed-checkout-form, form.checkout, form.login) .password-input .show-password-input{
  position:absolute!important;top:50%!important;right:12px!important;transform:translateY(-50%)!important;
  width:34px!important;height:34px!important;min-width:0!important;border-radius:999px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  background:#fff!important;border:1px solid #e7e7ea!important;box-shadow:0 1px 2px rgba(16,24,40,.06)!important;
  cursor:pointer!important;z-index:2!important;padding:0!important;margin:0!important;font-size:0!important;line-height:1!important
}
:where(.woocommerce, .wcf-embed-checkout-form, form.checkout, form.login) .password-input .show-password-input::before{content:none!important}
:where(.woocommerce, .wcf-embed-checkout-form, form.checkout, form.login) .password-input .show-password-input::after{
  content:"\e010";font-family:"WooCommerce";font-size:16px;line-height:1;color:#c03a77
}
:where(.woocommerce, .wcf-embed-checkout-form, form.checkout, form.login) .password-input .show-password-input.display-password::after{content:"\e011"}

/* CartFlows login: quitar fondo naranjita */
.wcf-embed-checkout-form .woocommerce-form-login .form-row .password-input .show-password-input{background:#fff!important}

/* Focus accesible */
:where(.woocommerce, .wcf-embed-checkout-form, form.checkout, form.login) .password-input .show-password-input:focus{
  outline:none;box-shadow:0 0 0 2px rgba(192,58,119,.25)!important
}

/* Responsive */
@media (max-width:480px){
  :where(.woocommerce, .wcf-embed-checkout-form, form.checkout, form.login) .password-input .show-password-input{width:36px!important;height:36px!important;right:10px!important}
  :where(.woocommerce, .wcf-embed-checkout-form, form.checkout, form.login) .password-input>input[type="password"],
  :where(.woocommerce, .wcf-embed-checkout-form, form.checkout, form.login) .password-input>input[type="text"]{padding-right:60px!important}
}

/* Woo: Reset + Editar cuenta (refuerzos específicos + z-index alto en reset) */
.woocommerce form.woocommerce-ResetPassword .password-input,
.woocommerce form.lost_reset_password .password-input{position:relative}

.woocommerce form.woocommerce-ResetPassword .password-input .show-password-input,
.woocommerce form.lost_reset_password .password-input .show-password-input,
.woocommerce form.woocommerce-EditAccountForm .password-input .show-password-input,
.woocommerce form.edit-account .password-input .show-password-input{
  position:absolute;top:50%;right:12px;transform:translateY(-50%);
  width:34px;height:34px;min-width:0;display:flex;align-items:center;justify-content:center;
  background:#fff;border:1px solid #e7e7ea;border-radius:999px;box-shadow:0 1px 2px rgba(16,24,40,.06);
  padding:0;margin:0;font-size:0!important;line-height:1!important
}
/* en reset, asegura que nada lo tape */
.woocommerce form.woocommerce-ResetPassword .password-input .show-password-input,
.woocommerce form.lost_reset_password .password-input .show-password-input{z-index:999!important}

.woocommerce form.woocommerce-ResetPassword .password-input .show-password-input::before,
.woocommerce form.lost_reset_password .password-input .show-password-input::before,
.woocommerce form.woocommerce-EditAccountForm .password-input .show-password-input::before,
.woocommerce form.edit-account .password-input .show-password-input::before{content:none!important}

.woocommerce form.woocommerce-ResetPassword .password-input .show-password-input::after,
.woocommerce form.lost_reset_password .password-input .show-password-input::after,
.woocommerce form.woocommerce-EditAccountForm .password-input .show-password-input::after,
.woocommerce form.edit-account .password-input .show-password-input::after{
  content:"\e010";font-family:"WooCommerce";font-size:16px;line-height:1;color:#c03a77
}
.woocommerce form.woocommerce-ResetPassword .password-input .show-password-input.display-password::after,
.woocommerce form.lost_reset_password .password-input .show-password-input.display-password::after,
.woocommerce form.woocommerce-EditAccountForm .password-input .show-password-input.display-password::after,
.woocommerce form.edit-account .password-input .show-password-input.display-password::after{content:"\e011"}
