/* One email-only surface; all fonts and interactions are local. */
.km-auth-root[data-auth-auto-open="0"] { display:none; }
.km-auth-dialog .km-auth-root { display:block; }
.km-auth-dialog { width:440px; max-width:calc(100vw - 32px); max-height:calc(100dvh - 32px); margin:auto; padding:0; border:0; border-radius:14px; background:#fff; color:#242424; overflow:auto; overscroll-behavior:contain; box-shadow:0 18px 70px #0003; }
.km-auth-is-open { overflow:hidden; padding-right:var(--km-auth-scrollbar-gap,0px); }
.km-auth-dialog::backdrop { background:#0009; }
#km-auth-root { width:440px; max-width:100%; margin:0 auto; color:#242424; font-family:var(--km-font-ui); }
#km-auth-root,#km-auth-root * { box-sizing:border-box; }
#km-auth-root .km-auth-card { position:relative; width:100%; padding:34px 40px 30px; border-radius:14px; background:#fff; }
#km-auth-root .km-auth-close { position:absolute; top:16px; right:16px; display:grid; place-items:center; width:24px; height:24px; color:#929292; }
#km-auth-root .km-auth-close:hover { color:#242424; }
#km-auth-root .km-auth-view { display:flex; flex-direction:column; min-height:430px; }
#km-auth-root .km-auth-view[hidden] { display:none; }
#km-auth-root .km-auth-view + .km-auth-view:not([hidden]) { margin-top:36px; padding-top:30px; border-top:1px solid #eee; }
#km-auth-root.km-auth-enhanced .km-auth-view + .km-auth-view { margin:0; padding:0; border:0; }
#km-auth-root h2 { margin:0 0 24px; color:#292929; text-align:center; font-size:22px; font-weight:700; line-height:32px; letter-spacing:0; }
#km-auth-root .km-auth-channel { display:flex; justify-content:center; margin-bottom:22px; border-bottom:1px solid #eee; }
#km-auth-root .km-auth-channel span { padding:0 7px 10px; border-bottom:3px solid var(--km-red,#e60027); color:var(--km-red,#e60027); font-size:15px; font-weight:600; line-height:22px; }
#km-auth-root form { margin:0; padding:0; border:0; background:transparent; }
#km-auth-root .form-row { margin:0 0 22px; padding:0; }
#km-auth-root input.input-text { display:block; width:100%; height:46px; min-height:46px; padding:12px 16px; border:1px solid transparent; border-radius:7px; background:#f1f1f2; color:#242424; font-size:14px; line-height:20px; box-shadow:none; }
#km-auth-root input.input-text:focus { background:#f1f1f2; border-color:#e4e4e7; outline:0; box-shadow:none; }
#km-auth-root input.input-text::placeholder { color:#999; opacity:1; }
#km-auth-root .password-input { display:block; }
#km-auth-root .show-password-input { display:none; }
#km-auth-root .km-auth-submit { display:block; float:none; width:100%; min-height:44px; margin:32px 0 12px; padding:11px 16px; border:0; border-radius:6px; background:#242424; color:#fff; font-size:14px; font-weight:600; line-height:22px; text-align:center; box-shadow:none; }
#km-auth-root .km-auth-submit:hover { background:#111; color:#fff; }
#km-auth-root .km-auth-submit:disabled { opacity:.5; cursor:not-allowed; }
#km-auth-root .km-auth-links { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; color:#333; font-size:13px; line-height:22px; }
#km-auth-root .km-auth-links-center { justify-content:center; margin-top:20px; }
#km-auth-root a { text-decoration:none; }
#km-auth-root .km-auth-links a,#km-auth-root .woocommerce-privacy-policy-text a { color:var(--km-red,#e60027); }
#km-auth-root .km-auth-links a:hover { color:#bb0021; }
#km-auth-root .km-auth-legal { margin:auto 0 0; padding-top:32px; color:#555; text-align:center; font-size:12px; line-height:22px; }
#km-auth-root .km-auth-legal a { color:#444; }
#km-auth-root .woocommerce-privacy-policy-text { margin:20px 0 0; color:#7b7b84; font-size:12px; line-height:1.8; }
#km-auth-root .woocommerce-privacy-policy-text p { margin:0; color:inherit; font-size:inherit; }
#km-auth-root .km-auth-notices:empty { display:none; }
#km-auth-root .km-auth-notices .woocommerce-error,#km-auth-root .km-auth-notices .woocommerce-info,#km-auth-root .km-auth-notices .woocommerce-message { margin:14px 0 22px; padding:12px 14px; border:1px solid #f1d1d8; border-radius:7px; background:#fff3f5; color:#9d2039; font-size:13px; line-height:1.7; list-style:none; }
#km-auth-root .km-auth-notices :is(.woocommerce-error,.woocommerce-info,.woocommerce-message)::before { display:none; }
#km-auth-root .km-auth-notices li { margin:0; }
/* Keep feedback in the dialog's top layer, outside the form's layout. */
#km-auth-root.km-auth-enhanced .km-auth-notices { position:fixed; z-index:1; top:max(24px,env(safe-area-inset-top)); left:50%; width:max-content; max-width:min(420px,calc(100vw - 32px)); transform:translateX(-50%); pointer-events:none; }
#km-auth-root.km-auth-enhanced .km-auth-notices :is(.woocommerce-error,.woocommerce-info,.woocommerce-message) { margin:0; padding:12px 18px; border-radius:10px; background:#fff3f5; box-shadow:0 8px 28px #0002; overflow-wrap:anywhere; animation:km-auth-toast-in .15s ease-out; }
@keyframes km-auth-toast-in { from { opacity:0; translate:0 -6px; } to { opacity:1; translate:0 0; } }
@media(prefers-reduced-motion:reduce) { #km-auth-root.km-auth-enhanced .km-auth-notices :is(.woocommerce-error,.woocommerce-info,.woocommerce-message) { animation:none; } }
.km-auth-ready .km-auth-launch { text-align:center; margin:40px 0; }
html:not(.km-auth-ready) .km-auth-launch { display:none; }
@media(max-width:480px) {
  #km-auth-root .km-auth-card { padding:32px 24px 26px; }
  #km-auth-root .km-auth-view { min-height:400px; }
  #km-auth-root .km-auth-links { font-size:12px; }
}
