/* Farmacia 701: modales y páginas de cuentas de clientes */
[x-cloak] { display: none !important; }
body.customer-auth-no-scroll { overflow: hidden; }
.customer-auth-overlay { position: fixed; z-index: 100000; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10, 24, 40, .34); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); overflow-y: auto; }
.customer-auth-dialog { position: relative; width: min(100%, 330px); margin: auto; padding: 23px 35px 32px; background: #fff; border-radius: 30px; box-shadow: 0 18px 35px rgba(0,0,0,.24); color: #131313; font-family: Montserrat, Arial, sans-serif; }
.customer-auth-dialog--wide { width: min(100%, 620px); padding: 29px 49px 35px; border-radius: 32px; }
.customer-auth-dialog h2 { font-size: 25px; font-weight: 800; line-height: 1.2; text-align: center; margin: 0; color: #080808; }
.customer-auth-close { position: absolute; right: 19px; top: 9px; z-index: 1; border: 0; background: transparent; color: #494949; font-size: 27px; font-weight: 700; line-height: 1.2; cursor: pointer; padding: 3px 5px; }
.customer-auth-close:hover { color: #0875bb; }
.customer-auth-subheading { text-align: center; margin: 12px 0 20px; font-size: 14px; line-height: 1.3; }
.customer-auth-subheading--register { margin: 3px 0 10px; }
.customer-auth-text-link { border: 0; background: none; color: #31738e; text-decoration: underline; cursor: pointer; font-size: inherit; padding: 0; font-family: inherit; }
.customer-auth-form { display: flex; flex-direction: column; gap: 0; }
.customer-auth-form label { text-align: left; font-size: 14px; font-weight: 500; margin: 4px 0 5px; color: #111; }
.customer-auth-form input { width: 100%; height: 48px; box-sizing: border-box; border: 1px solid #327b8d; outline: none; border-radius: 999px; background: #fff; color: #111; padding: 0 15px; font-family: inherit; font-size: 14px; margin: 0 0 8px; transition: border-color .2s, box-shadow .2s; }
.customer-auth-form input:focus { border-color: #057cc0; box-shadow: 0 0 0 3px rgba(15, 126, 190, .12); }
.customer-auth-form .customer-auth-field-error { color: #a31c1c; font-size: 11px; line-height: 1.3; margin: -4px 0 6px; }
.customer-auth-forgot { display: block; align-self: center; text-decoration: none; font-size: 13px; margin: 5px 0 17px; }
.customer-auth-submit { display: inline-flex; align-items: center; justify-content: center; align-self: center; width: 177px; min-height: 49px; border: 0; border-radius: 999px; background: #1680c8; color: #fff; text-align: center; font-family: inherit; font-weight: 800; font-size: 17px; line-height: 1.2; cursor: pointer; padding: 8px 16px; box-shadow: 0 2px 2px rgba(0,0,0,.1); transition: background .2s, transform .2s; }
.customer-auth-submit:hover { background: #066aaa; transform: translateY(-1px); }
.customer-auth-submit:disabled { opacity: .65; cursor: progress; transform: none; }
.customer-auth-register-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 35px; align-items: center; }
.customer-auth-register-form label { margin: 0 0 3px; font-size: 13px; }
.customer-auth-register-form input { height: 43px; margin-bottom: 8px; }
.customer-auth-mascot-column { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.customer-auth-mascot { display: block; width: 100%; max-width: 210px; max-height: 295px; height: auto; object-fit: contain; }
.customer-auth-register .customer-auth-submit { width: 175px; }
.customer-auth-register .customer-auth-back-login { text-align: center; margin: 0; font-size: 12px; line-height: 1.4; }
.customer-auth-mobile-submit, .customer-auth-mobile-login { display: none; }
.customer-auth-feedback { width: 100%; font-size: 12px; line-height: 1.5; padding: 9px 11px; margin: 5px 0 12px; background: #e8f7ed; color: #13572b; border-radius: 10px; }
.customer-auth-feedback--error { background: #fff0ed; color: #942b18; }
.customer-auth-small-state { text-align: center; }
.customer-auth-small-state p { margin: 15px 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.customer-auth-small-state .customer-auth-submit { margin-top: 10px; font-size: 14px; }
.customer-auth-small-state .customer-auth-form label { margin-top: 10px; }
.customer-auth-state-icon { margin: 0 auto 15px; color: #087abb; font-size: 45px; }
.customer-auth-return { margin-top: 18px; font-size: 13px; }
.customer-auth-header-button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; padding: 7px 10px; text-decoration: none; white-space: nowrap; }
.customer-auth-header-button:hover { color: #087abb; }
.customer-account-page { min-height: 65vh; max-width: 700px; margin: 45px auto; padding: 0 16px; font-family: Montserrat, Arial, sans-serif; }
.customer-account-panel { background: #fff; padding: 25px; border: 1px solid #e0e8f0; border-radius: 22px; box-shadow: 0 10px 25px rgba(0,0,0,.05); }
.customer-account-panel h1 { margin: 0 0 15px; font-size: 27px; }
.customer-account-panel p { font-size: 14px; }
.customer-account-panel label { display: block; margin: 14px 0 5px; font-size: 13px; }
.customer-account-panel input { box-sizing: border-box; width: 100%; border: 1px solid #82aebb; border-radius: 12px; padding: 13px 15px; font: inherit; }
.customer-account-panel input[readonly] { background: #eef2f5; }
.customer-account-panel button { margin-top: 16px; padding: 12px 22px; border: 0; border-radius: 99px; background: #1680c8; color: white; font-weight: 700; cursor: pointer; }
.customer-account-panel .customer-account-success { padding: 12px; border-radius: 9px; background: #e4f7e9; color: #16602d; }
.customer-account-panel .customer-account-error { color: #a31c1c; font-size: 12px; }
@media (max-width: 700px) {
  .customer-auth-overlay { padding: 14px; }
  .customer-auth-dialog { padding: 24px 23px 27px; border-radius: 26px; }
  .customer-auth-dialog--wide { width: min(100%, 420px); padding: 27px 26px; }
  .customer-auth-dialog h2 { font-size: 23px; }
  .customer-auth-register-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
  .customer-auth-mascot-column { display: none; }
  .customer-auth-mobile-submit { display: inline-flex; margin-top: 6px; }
  .customer-auth-mobile-login { display: block; margin-top: 14px !important; }
  .customer-auth-register-form input { height: 42px; }
  .customer-auth-register-form label { font-size: 13px; }
}
@media (max-width: 370px) {
  .customer-auth-dialog { padding-left: 19px; padding-right: 19px; }
  .customer-auth-dialog--wide { padding-left: 20px; padding-right: 20px; }
}

.customer-auth-submit--link { text-decoration: none; }

/* Entrada accesible desde el menú hamburguesa en pantallas pequeñas. */
.customer-auth-mobile-button { display:block; width:100%; text-align:left; border:0; background:transparent; padding:12px 0; font:inherit; color:inherit; cursor:pointer; }
@media (max-width: 768px) { .header-actions .customer-auth-header-button { display:none; } }

.customer-auth-header-button.customer-auth-header-icon {
    width: 38px;
    min-width: 38px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--blue, #1677c7);
    text-decoration: none;
    cursor: pointer;
}
.customer-auth-header-button.customer-auth-header-icon i { font-size: 24px; }
.customer-auth-header-button.customer-auth-header-icon:hover { color: #0e5fa5; }
@media (max-width: 768px) {
    /* Sobrescribe la regla anterior que escondía el acceso en móviles. */
    .header-actions .customer-auth-header-button.customer-auth-header-icon { display: inline-flex; }
    .customer-auth-header-button.customer-auth-header-icon { min-width: 30px; width: 30px; height: 38px; }
    .customer-auth-header-button.customer-auth-header-icon i { font-size: 21px; }
}
