/* Shainstore account UI: self-contained, light/dark adaptable */
.ss-auth-overlay[hidden]{display:none!important}.ss-auth-overlay{position:fixed;inset:0;z-index:999999;background:rgba(5,7,14,.78);display:grid;place-items:center;padding:18px;backdrop-filter:blur(9px)}.ss-auth-lock{overflow:hidden}.ss-auth-modal{position:relative;width:min(100%,440px);max-height:calc(100dvh - 36px);overflow:auto;background:#fff;color:#1d202b;border-radius:26px;padding:34px;box-shadow:0 30px 90px #0007;direction:rtl;text-align:right}.ss-auth-dismiss{position:absolute;left:18px;top:16px;width:38px;height:38px;border:0;border-radius:12px;background:#f1f2f5;color:#222;font-size:26px;cursor:pointer}.ss-auth-mark{font-size:18px;font-weight:900;color:#b5122a}.ss-auth-mark span{color:#dfad58}.ss-auth-modal h2{font-size:29px;color:#1d202b;margin:24px 0 5px}.ss-auth-sub{color:#656b78;margin:0 0 22px}.ss-auth-modal form{display:grid;gap:12px}.ss-auth-modal form p{margin:0}.ss-auth-modal form label{display:block;margin:0 0 7px;color:#343b4b;font-weight:700}.ss-auth-modal input[type=text],.ss-auth-modal input[type=password]{width:100%;box-sizing:border-box;background:#f5f6f9!important;color:#181c28!important;border:1px solid #d8dce5;border-radius:12px;padding:13px;min-height:48px}.ss-auth-modal .login-remember label{display:flex;gap:8px;align-items:center;font-size:13px}.ss-auth-modal input[type=submit],.ss-register-form button{width:100%;border:0;border-radius:13px;background:#b5122a;color:white;font-size:16px;font-weight:800;padding:15px;cursor:pointer}.ss-auth-help{font-size:13px;margin:10px 0 20px}.ss-auth-bottom{border-top:1px solid #e6e7eb;padding-top:18px;text-align:center;font-size:14px}.ss-auth-bottom a,.ss-auth-help a,.ss-register-signin a{color:#b5122a;font-weight:800}.ss-register-page{padding-block:50px 80px}.ss-register-layout{display:grid;grid-template-columns:1fr 1fr;min-height:600px;border-radius:28px;overflow:hidden;box-shadow:0 24px 75px #0002;background:#fff;color:#20232c;direction:rtl}.ss-register-form-side{padding:clamp(25px,5vw,65px)}.ss-register-back{font-size:13px;color:#686d7a}.ss-register-eyebrow{color:#b5122a;font-weight:800;margin-top:40px}.ss-register-form-side h1{font-size:clamp(27px,3vw,42px);color:#1d202b;margin:6px 0 10px}.ss-register-intro{color:#666d79}.ss-register-form{display:grid;gap:18px;margin-top:30px}.ss-register-form label{display:grid;gap:8px;font-weight:700;color:#303544}.ss-register-form input{min-width:0;width:100%;box-sizing:border-box;min-height:50px;border-radius:12px;background:#f5f6f9!important;color:#181c28!important;border:1px solid #d8dce5;padding:12px}.ss-register-signin{margin-top:24px}.ss-register-error{padding:12px;background:#fff0f0;color:#9c1624;border-radius:10px}.ss-auth-trap{position:absolute!important;left:-9999px!important}.ss-register-brand-side{background:radial-gradient(circle at 10% 10%,#b82740 0%,#941027 42%,#1b1c29 100%);color:#fff;display:grid;place-items:center;padding:45px;text-align:center}.ss-register-brand-inner img{width:100px;height:100px;object-fit:contain;border-radius:25px;margin:0 auto 20px}.ss-register-brand-kicker{letter-spacing:5px;opacity:.8;font-size:12px}.ss-register-brand-side h2{color:white;font-size:clamp(32px,4vw,54px);margin:14px 0}.ss-register-brand-side p{color:#f8e4e8}.ss-register-benefits{display:grid;gap:14px;text-align:right;margin-top:42px}.ss-register-benefits span{background:#ffffff18;border:1px solid #ffffff30;border-radius:12px;padding:13px 18px}.woocommerce-account .woocommerce-MyAccount-navigation{background:transparent!important}.woocommerce-account .woocommerce-MyAccount-navigation ul{display:flex;flex-wrap:wrap;gap:10px;list-style:none;padding:0;margin:0 0 25px}.woocommerce-account .woocommerce-MyAccount-navigation li{margin:0}.woocommerce-account .woocommerce-MyAccount-navigation a{display:block;padding:12px 18px;border:1px solid #8d8d8d35;border-radius:13px;text-decoration:none;transition:.2s}.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,.woocommerce-account .woocommerce-MyAccount-navigation a:hover{background:#b5122a;color:#fff!important;border-color:#b5122a}.woocommerce-account .woocommerce-MyAccount-content{min-width:0;width:100%;line-height:2}.woocommerce-account .woocommerce-MyAccount-content a:not(.button){text-decoration:underline;text-underline-offset:3px}.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses{display:grid;gap:18px}.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Address{min-width:0;max-width:100%}@media(max-width:760px){.ss-register-layout{grid-template-columns:1fr}.ss-register-brand-side{grid-row:1;padding:28px}.ss-register-brand-inner img{width:60px;height:60px}.ss-register-brand-side h2{font-size:28px;margin:6px}.ss-register-benefits{display:none}.ss-register-form-side{padding:26px}.ss-register-eyebrow{margin-top:20px}.ss-auth-modal{padding:25px}.woocommerce-account .woocommerce-MyAccount-navigation ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.woocommerce-account .woocommerce-MyAccount-navigation a{font-size:13px;text-align:center;padding:11px 5px;overflow-wrap:anywhere}}body.dark-mode .ss-auth-modal,body[data-theme=dark] .ss-auth-modal,body.theme-dark .ss-auth-modal{background:#20232c;color:#f7f7fa}body.dark-mode .ss-auth-modal h2,body[data-theme=dark] .ss-auth-modal h2,body.theme-dark .ss-auth-modal h2{color:#fff}body.dark-mode .ss-auth-modal form label,body[data-theme=dark] .ss-auth-modal form label{color:#f5f5f8}body.dark-mode .ss-auth-bottom,body[data-theme=dark] .ss-auth-bottom{border-color:#444855}

/* v1.0.65 – accessible auth modal and responsive registration layout */
.ss-auth-overlay,.ss-auth-overlay *,.ss-register-page,.ss-register-page *{box-sizing:border-box}
.ss-auth-overlay{width:100%;max-width:100vw;overflow-x:hidden}
.ss-auth-modal{width:min(440px,100%);max-width:100%;min-width:0}
.ss-auth-modal .ss-auth-dismiss{display:grid!important;place-items:center!important;opacity:1!important;visibility:visible!important;font-size:26px!important;line-height:1!important;font-weight:700!important;background:#eceef2!important;color:#151924!important;border:1px solid #cdd2da!important;z-index:3}
.ss-auth-modal :is(.ss-auth-sub,.ss-auth-bottom,.ss-auth-help,.login-remember,.login-remember label){color:#424958!important}
.ss-auth-modal :is(.ss-auth-bottom a,.ss-auth-help a){color:#a20e27!important;text-decoration:underline;text-underline-offset:3px}
html.ss-dark-mode .ss-auth-modal,html.ss-dark-mode body .ss-auth-modal,body.dark-mode .ss-auth-modal,body[data-theme="dark"] .ss-auth-modal,body.theme-dark .ss-auth-modal{background:#20232c!important;color:#f7f8fc!important;border:1px solid #454b59!important}
html.ss-dark-mode .ss-auth-modal :is(h2,.ss-auth-mark,.ss-auth-sub,.ss-auth-bottom,.ss-auth-help,.login-remember,.login-remember label,form label),body.dark-mode .ss-auth-modal :is(h2,.ss-auth-sub,.ss-auth-bottom,.ss-auth-help,form label){color:#f3f5fb!important}
html.ss-dark-mode .ss-auth-modal .ss-auth-dismiss,body.dark-mode .ss-auth-modal .ss-auth-dismiss,body[data-theme="dark"] .ss-auth-modal .ss-auth-dismiss,body.theme-dark .ss-auth-modal .ss-auth-dismiss{background:#363c49!important;color:#fff!important;border:1px solid #737b8c!important;opacity:1!important}
html.ss-dark-mode .ss-auth-modal :is(.ss-auth-bottom a,.ss-auth-help a),body.dark-mode .ss-auth-modal :is(.ss-auth-bottom a,.ss-auth-help a){color:#ff9eaf!important}
html.ss-dark-mode .ss-auth-modal input:not([type=submit]):not([type=checkbox]),body.dark-mode .ss-auth-modal input:not([type=submit]):not([type=checkbox]){background:#2c3240!important;color:#fff!important;border-color:#626b7b!important}
html.ss-dark-mode .ss-auth-modal .ss-auth-bottom,body.dark-mode .ss-auth-modal .ss-auth-bottom{border-color:#555d6c!important}
/* Registration must not expand the document viewport or force mobile browser zoom-out. */
body:has(.ss-register-page){max-width:100%;overflow-x:clip}
.ss-register-page.container{display:block!important;position:relative;width:calc(100% - 32px)!important;max-width:1180px!important;min-width:0!important;margin:0 auto!important;padding:36px 0 70px!important;overflow:visible!important}
.ss-register-layout{width:100%!important;max-width:100%!important;min-width:0!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:stretch!important}
.ss-register-layout > *,.ss-register-brand-inner,.ss-register-form,.ss-register-form label{min-width:0!important;max-width:100%!important}
.ss-register-form-side{padding:clamp(20px,4vw,54px)!important}
.ss-register-brand-side{padding:clamp(20px,3vw,44px)!important}
.ss-register-brand-inner{width:100%;overflow-wrap:anywhere}
.ss-register-brand-inner img{max-width:100%;height:auto;max-height:100px;object-fit:contain}
.ss-register-form input{max-width:100%!important;min-width:0!important}
.ss-auth-trap{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;left:auto!important;right:0!important;top:0!important;opacity:0!important;pointer-events:none!important}
@media(max-width:760px){
 .ss-register-page.container{width:calc(100% - 24px)!important;max-width:100%!important;padding:18px 0 40px!important}
 .ss-register-layout{display:flex!important;flex-direction:column!important;grid-template-columns:none!important;min-height:0!important;border-radius:18px!important}
 .ss-register-brand-side{order:0!important;padding:22px 16px!important}
 .ss-register-form-side{order:1!important;padding:24px 18px!important}
 .ss-register-brand-inner img{max-height:64px;width:64px}
 .ss-register-brand-side h2{font-size:25px!important}
 .ss-register-form-side h1{font-size:26px!important}
 .ss-auth-overlay{padding:12px!important}
 .ss-auth-modal{padding:25px 18px!important;max-height:calc(100dvh - 24px)}
}

/* v1.0.66: keep WooCommerce legacy login from appearing beneath custom login entry. */
body:not(.logged-in).woocommerce-account .woocommerce .woocommerce-form-login,
body:not(.logged-in).woocommerce-account .woocommerce .woocommerce-form-register,
body:not(.logged-in).woocommerce-account .woocommerce .u-columns,
body:not(.logged-in).woocommerce-account .woocommerce > h2 {display:none!important}
.ss-auth-account-entry{max-width:520px;margin:30px auto;padding:32px;border:1px solid #ddd;border-radius:20px;background:#fff;color:#1c2430;text-align:center}
.ss-auth-account-entry h2{color:#1c2430!important}.ss-auth-account-entry p{color:#3c4555!important}.ss-auth-account-entry button{background:#b5122a;color:#fff;border:0;padding:14px 24px;border-radius:12px;cursor:pointer;font-weight:800}.ss-auth-account-entry a{color:#b5122a!important}
html.ss-dark-mode .ss-auth-account-entry,body.dark-mode .ss-auth-account-entry{background:#252b37;color:#f5f6fa;border-color:#525c6d}
html.ss-dark-mode .ss-auth-account-entry :is(h2,p),body.dark-mode .ss-auth-account-entry :is(h2,p){color:#f5f6fa!important}
/* Registration form remains legible on white desktop backgrounds in both modes. */
.ss-register-page .ss-register-form-side{background:#fff!important;color:#20242e!important}
.ss-register-page .ss-register-form-side :is(h1,h2,label,.ss-register-intro,.ss-register-back,.ss-register-signin){color:#252a35!important;opacity:1!important}
.ss-register-page .ss-register-form-side input{background:#f5f6f9!important;color:#161c28!important;border-color:#9aa2b2!important}
.ss-register-page .ss-register-form-side input::placeholder{color:#5d6574!important;opacity:1!important}
.ss-register-page .ss-register-form-side a{color:#a20e27!important}
.ss-register-page .ss-register-form-side .ss-register-eyebrow{color:#a20e27!important}

/* v1.0.67: tidy account tabs across the full desktop row. */
@media(min-width:761px){
 body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation{float:none!important;width:100%!important;max-width:100%!important;clear:both!important;margin:0 0 24px!important}
 body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul{display:flex!important;flex-flow:row wrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:10px!important;margin:0 0 20px!important;padding:0!important}
 body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation li{float:none!important;width:auto!important;flex:0 0 auto!important;list-style:none!important}
 body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation a{white-space:nowrap!important;min-height:46px;display:flex!important;align-items:center;justify-content:center}
 body.woocommerce-account.logged-in .woocommerce-MyAccount-content{float:none!important;width:100%!important;max-width:100%!important;clear:both!important}
}
.ss-auth-login-error:not([hidden]){display:block;padding:12px 14px;border-radius:12px;background:#fff0f0;color:#9b142a;font-weight:700;margin-top:12px}
html.ss-dark-mode .ss-auth-login-error:not([hidden]),body.dark-mode .ss-auth-login-error:not([hidden]){background:#552533;color:#ffe4e9}
