/* R440: компактные штатные формы Woo в существующих светлых и тёмных цветах. */
.hg-auth-dialog-r440{width:min(460px,calc(100vw - 32px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--hg-line);border-radius:14px;background:var(--hg-white);color:var(--hg-ink);overflow:auto;margin:auto;overscroll-behavior:contain}
.hg-auth-dialog-r440::backdrop{background:rgb(0 0 0/.48)}
.hg-auth-dialog-body{padding:24px}
.hg-auth-dialog-head{display:flex;align-items:start;gap:12px;justify-content:space-between;margin-bottom:20px}
.hg-auth-dialog-r440 .hg-auth-dialog-head h2{font-size:22px!important;line-height:1.4!important;font-weight:700!important;letter-spacing:-.02em;margin:0!important}
.hg-auth-close-r440{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border:0;background:transparent;color:var(--hg-ink);flex-shrink:0;padding:0}
.hg-auth-dialog-tabs{display:flex;border-bottom:1px solid var(--hg-line);margin-bottom:20px;gap:24px}
.hg-auth-dialog-tabs button{min-height:44px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--hg-muted);padding:0 0 10px;font-size:15px;font-weight:600}
.hg-auth-dialog-tabs button[aria-selected=true]{color:var(--hg-ink);border-bottom-color:var(--hg-red)}
.hg-auth-dialog-r440 .hg-auth{margin:0!important;padding:0!important}
.hg-auth-dialog-r440 .hg-member-lead,.hg-auth-dialog-r440 .hg-auth>.hg-mascot-slot,.hg-auth-dialog-r440 .hg-auth .hg-c1-mascot,.hg-auth-dialog-r440 .hg-auth-perks{display:none}
.hg-auth-dialog-r440 .hg-auth-grid{display:block!important;margin:0!important;gap:0!important}
.hg-auth-dialog-r440 .hg-auth>.hg-mascot{--hg-mascot-h:72px;gap:10px;margin:0 0 18px!important}
.hg-auth-dialog-r440 .hg-auth>.hg-mascot .hg-mascot-figure{width:48px;height:72px;flex-basis:48px}
.hg-auth-dialog-r440 .hg-auth>.hg-mascot .hg-mascot-bubble{padding:10px 12px;box-shadow:none;font-size:13px;line-height:1.6}
.hg-auth-dialog-r440 .hg-auth>.hg-mascot .hg-mascot-bubble p{font-size:13px;line-height:1.6;margin:0 0 6px}
.hg-auth-dialog-r440 .hg-auth>.hg-mascot .hg-mascot-bubble a{font-size:13px}
.hg-auth-dialog-r440 .hg-member-panel{padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;min-width:0}
.hg-auth-dialog-r440 .hg-login-panel>h2,.hg-auth-dialog-r440 .hg-register-panel>h2{display:none}
.hg-auth-dialog-r440 [hidden]{display:none!important}
.hg-auth-dialog-r440 p,.hg-auth-dialog-r440 label{font-size:14px;line-height:1.65}
.hg-auth-dialog-r440 .form-row{padding:0;margin:0 0 16px!important;display:block;float:none;width:auto}
.hg-auth-dialog-r440 .form-row label{display:block;font-weight:600;margin-bottom:6px}
.hg-auth-dialog-r440 input:not([type=hidden]):not([type=checkbox]){width:100%;min-width:0;min-height:46px;padding:10px 12px;border:1px solid var(--hg-line);border-radius:8px;background:var(--hg-white);color:var(--hg-ink);font-size:16px}
.hg-auth-dialog-r440 .hg-auth-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:4px 0 20px;flex-wrap:wrap}
.hg-auth-dialog-r440 .hg-auth-row a{min-height:36px;display:inline-flex;align-items:center}
.hg-auth-dialog-r440 .hg-form-actions{margin:0!important}
.hg-auth-dialog-r440 .hg-form-actions button{width:100%;min-height:46px;border:0;border-radius:8px;background:var(--hg-red);color:var(--hg-white);font-size:15px;font-weight:700;padding:12px 18px}
html[data-theme=dark] .hg-auth-dialog-r440 .hg-form-actions button{color:var(--hg-action-ink,#231b1b)}
.hg-auth-dialog-r440 .hg-auth-dialog-fallback{margin:18px 0 0;font-size:13px}
.hg-auth-dialog-fallback a{display:inline-flex;align-items:center;gap:8px;min-height:36px;color:var(--hg-muted)}
.hg-auth-dialog-r440 :is(button,input,a):focus-visible{outline:3px solid var(--hg-red);outline-offset:3px}
.hg-auth-dialog-r440 .woocommerce-error{list-style:none;margin:0 0 16px!important;padding:12px!important;font-size:14px!important;line-height:1.6;color:var(--hg-ink);border:1px solid var(--hg-red);background:var(--hg-soft)}
body.hg-auth-lock-r440{overflow:hidden;padding-right:var(--hg-auth-scrollbar,0px)}
@media(max-width:767px){.hg-auth-dialog-r440{width:calc(100vw - 24px);max-height:calc(100dvh - 24px - env(safe-area-inset-bottom));border-radius:12px}.hg-auth-dialog-body{padding:20px}.hg-auth-dialog-head{margin-bottom:16px}.hg-auth-dialog-r440 .hg-auth-dialog-head h2{font-size:20px!important}.hg-auth-dialog-r440 .hg-auth-row{gap:4px 12px}}
@media(prefers-reduced-motion:reduce){.hg-auth-dialog-r440 *{scroll-behavior:auto!important;transition:none!important}}

/* Штатный Woo переключатель использует ту же оригинальную маску и theme tokens, что кабинет. */
.hg-auth-dialog-r440 .show-password-input{position:absolute;top:2px;right:2px;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:5px;background:var(--hg-muted);opacity:1;cursor:pointer;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12s3.5-6.5 9.5-6.5 9.5 6.5 9.5 6.5-3.5 6.5-9.5 6.5S2.5 12 2.5 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/22px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12s3.5-6.5 9.5-6.5 9.5 6.5 9.5 6.5-3.5 6.5-9.5 6.5S2.5 12 2.5 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center/22px no-repeat}
.hg-auth-dialog-r440 .show-password-input.display-password{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12s3.5-6.5 9.5-6.5 9.5 6.5 9.5 6.5-3.5 6.5-9.5 6.5S2.5 12 2.5 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M4 20 20 4'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12s3.5-6.5 9.5-6.5 9.5 6.5 9.5 6.5-3.5 6.5-9.5 6.5S2.5 12 2.5 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M4 20 20 4'/%3E%3C/svg%3E")}
.hg-auth-dialog-r440 .show-password-input:hover{background:var(--hg-ink)}
.hg-auth-dialog-r440 .show-password-input::after{content:none;display:none}
.hg-auth-dialog-r440 .password-input:has(.show-password-input:focus-visible){outline:3px solid var(--hg-red);outline-offset:3px;border-radius:8px}
.hg-auth-dialog-r440[data-mode="reset"] .hg-auth-dialog-forms{display:none}
.hg-auth-dialog-r440 .hg-reset-panel>h2{font-size:22px!important;line-height:1.4!important;margin:0 0 16px!important;letter-spacing:0!important}
