body.jau040-page{
 --jau040-bg:#FFFEFB;--jau040-primary:#50172b;--jau040-surface:#F7F3EA;
 --jau040-border:#D8C9B4;--jau040-text:#1F1F1F;--jau040-accent:#B59A67;
 --jau040-muted:rgba(31,31,31,.62);
 background:var(--jau040-bg);color:var(--jau040-text);
}
body.jau040-page .site-main,
body.jau040-page .content-area,
body.jau040-page .inside-article,
body.jau040-page .entry-content{background:var(--jau040-bg);}

/* Logged-out auth layout only. Do not constrain logged-in account endpoints. */
body.jau040-out .woocommerce{
 width:min(620px,calc(100% - 32px));margin:0 auto;padding:34px 0 48px;
 font-family:"Tajawal",sans-serif;
}
body.jau040-out .jau040-intro{text-align:center;margin:0 auto 14px;}
body.jau040-out .jau040-eyebrow{
 display:block;margin-bottom:5px;color:var(--jau040-accent);
 font-size:10px;font-weight:700;letter-spacing:.16em;direction:ltr;
}
body.jau040-out .jau040-intro h1{
 margin:0;font-family:"El Messiri","Tajawal",sans-serif;
 font-size:38px;font-weight:700;line-height:1.2;color:var(--jau040-text);
}
body.jau040-out .jau040-intro p{
 margin:8px auto 0;max-width:520px;color:var(--jau040-muted);
 font-size:13px;line-height:1.85;
}
body.jau040-out .jau040-tabs{
 display:grid;grid-template-columns:1fr 1fr;gap:4px;
 margin:18px 0 0;padding:4px;border:1px solid var(--jau040-border);
 border-radius:12px;background:var(--jau040-surface);
}
body.jau040-out .jau040-tab{
 min-height:44px;border:0;border-radius:9px;background:transparent;
 color:var(--jau040-muted);font-family:"Tajawal",sans-serif;font-size:12.5px;
 font-weight:700;box-shadow:none;cursor:pointer;transition:background-color .18s ease,color .18s ease;
}
body.jau040-out .jau040-tab.is-active{background:var(--jau040-bg);color:var(--jau040-primary);}
body.jau040-out .jau040-tab:focus-visible{
 outline:2px solid var(--jau040-primary);outline-offset:2px;
}

body.jau040-out #customer_login{
 display:block;width:100%;height:auto;min-height:0;margin:0;padding:0;
 border:0;background:transparent;box-shadow:none;overflow:visible;
}
body.jau040-out #customer_login>.u-column1,
body.jau040-out #customer_login>.u-column2{
 float:none;width:100%;height:auto;min-height:0;margin:0;padding:0;
 border:0;background:transparent;box-shadow:none;
}
body.jau040-out .jau040-auth-card{
 width:100%;height:auto;min-height:0;margin:0;padding:26px 30px 24px;
 border:1px solid var(--jau040-border);border-radius:18px;background:#fff;
 box-shadow:0 12px 30px rgba(31,31,31,.035);
}

/* Woo omits #customer_login when registration is disabled. Keep the same
   approved card language around the remaining native login form. */
body.jau040-out.jau040-registration-disabled form.login{
 width:100%;height:auto;min-height:0;margin:0;padding:26px 30px 24px;
 border:1px solid var(--jau040-border);border-radius:18px;background:#fff;
 box-shadow:0 12px 30px rgba(31,31,31,.035);
}
body.jau040-out.jau040-enhanced #customer_login>.u-column2{display:none;}
body.jau040-out.jau040-enhanced #customer_login.jau040-register>.u-column1{display:none;}
body.jau040-out.jau040-enhanced #customer_login.jau040-register>.u-column2{display:block;}
body.jau040-out #customer_login h2,
body.jau040-out.jau040-registration-disabled .woocommerce h2{display:none;}

body.jau040-out form.login,
body.jau040-out form.register{
 margin:0;padding:0;border:0;background:transparent;height:auto;min-height:0;
}
body.jau040-out .form-row{margin:0 0 14px;padding:0;}
body.jau040-out .form-row label{
 display:block;margin-bottom:6px;color:var(--jau040-text);font-size:12px;font-weight:700;
}
body.jau040-out input.input-text,
body.jau040-out input[type=email],
body.jau040-out input[type=password],
body.jau040-out input[type=text]{
 width:100%;min-height:48px;padding:0 14px;border:1px solid var(--jau040-border);
 border-radius:10px;background:#fff;box-shadow:none;color:var(--jau040-text);
 font-family:"Tajawal",sans-serif;
}
body.jau040-out input:focus{
 border-color:var(--jau040-primary);box-shadow:0 0 0 3px rgba(80,23,43,.12);outline:0;
}
body.jau040-out .woocommerce button.button,
body.jau040-out .woocommerce input.button{
 width:100%;min-height:48px;border:1px solid var(--jau040-primary);border-radius:10px;
 background:var(--jau040-primary);color:var(--jau040-bg);font-family:"Tajawal",sans-serif;
 font-size:13px;font-weight:700;box-shadow:none;
}
body.jau040-out .woocommerce button.button:focus-visible,
body.jau040-out .woocommerce input.button:focus-visible,
body.jau040-out .woocommerce a:focus-visible{
 outline:2px solid var(--jau040-primary);outline-offset:3px;
}
body.jau040-out .woocommerce-form-login__rememberme{
 display:inline-flex;align-items:center;gap:6px;margin:0;font-size:12px;color:var(--jau040-muted);
}
body.jau040-out .woocommerce-LostPassword{
 margin:9px 0 0;text-align:center;font-size:12px;line-height:1.5;
}
body.jau040-out .woocommerce-LostPassword a{
 color:var(--jau040-primary);text-decoration-thickness:1px;text-underline-offset:3px;
}

/* Google remains provider-owned. We only place its original iframe below the native Woo login CTA. */
body.jau040-out .jau040-google-slot{
 width:100%;margin:16px 0 0;padding-top:16px;border-top:1px solid rgba(216,201,180,.55);
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
}
body.jau040-out .jau040-google-slot::before{
 content:"أو";display:block;margin-top:-26px;padding:0 10px;background:#fff;
 color:var(--jau040-muted);font-size:11px;line-height:20px;
}
body.jau040-out .jau040-google-slot iframe{
 display:block;margin:0 auto;max-width:100%;border-radius:9px;
}

/* Collapse only provider wrappers that JS proves are leftover after iframe relocation. */
body.jau040-out .jau040-provider-placeholder{
 display:none;width:0;height:0;min-height:0;max-height:0;margin:0;padding:0;border:0;overflow:hidden;
}

body.jau040-out .woocommerce-privacy-policy-text,
body.jau040-out form.register p:not(.form-row){
 margin-top:10px;font-size:11.5px;line-height:1.85;color:var(--jau040-muted);
}
body.jau040-out .woocommerce-privacy-policy-text a,
body.jau040-out form.register p:not(.form-row) a{color:var(--jau040-primary);}

@media(max-width:767px){
 body.jau040-out .woocommerce{width:calc(100% - 20px);padding:22px 0 34px;}
 body.jau040-out .jau040-intro h1{font-size:29px;}
 body.jau040-out .jau040-intro p{font-size:12px;line-height:1.75;}
 body.jau040-out .jau040-auth-card,
 body.jau040-out.jau040-registration-disabled form.login{padding:20px 16px 20px;border-radius:15px;}
 body.jau040-out input.input-text,
 body.jau040-out input[type=email],
 body.jau040-out input[type=password],
 body.jau040-out input[type=text]{font-size:16px;min-height:50px;}
}

@media(prefers-reduced-motion:reduce){
 body.jau040-out .jau040-tab{transition:none;}
}

/* V0.4.3: only the active Woo panel participates in layout. The complete
   provider-owned Google root is moved into the slot by JS. */
body.jau040-out #customer_login::before,
body.jau040-out #customer_login::after{content:none;display:none;}
body.jau040-out #customer_login>.u-column2[hidden],
body.jau040-out #customer_login>.u-column1[hidden]{display:none;}
body.jau040-out .jau040-google-slot:empty{display:none;}
body.jau040-out .jau040-google-slot:empty::before{display:none;}
body.jau040-out .jau040-google-slot>.googlesitekit-sign-in-with-google__frontend-output-button{
 margin:0;max-width:100%;
}
body.jau040-out .jau040-google-slot .nsl-container,
body.jau040-out .jau040-google-slot [class*="nsl-"],
body.jau040-out .jau040-google-slot [class*="nextend"]{max-width:100%;margin-inline:auto;}

/* V0.4.4: the visible card is an inner content-owned wrapper. WooCommerce
   columns may be stretched by third-party/theme layout without stretching
   the visible bordered card. */
body.jau040-out #customer_login>.u-column1,
body.jau040-out #customer_login>.u-column2{align-self:start;min-block-size:0;}
body.jau040-out .jau040-auth-card{display:flow-root;align-self:start;}
body.jau040-out .jau040-auth-card>:last-child{margin-bottom:0;}
/* V0.4.6: native WooCommerce notices, scoped to guest auth/password routes. */
body.jau040-page .woocommerce-notices-wrapper:empty{display:none;}
body.jau040-page .woocommerce-notices-wrapper{
 width:100%;max-width:620px;margin:0 auto 14px;direction:rtl;
 font-family:"Tajawal",sans-serif;
}
body.jau040-page .woocommerce-error,
body.jau040-page .woocommerce-message,
body.jau040-page .woocommerce-info{
 position:relative;width:100%;margin:0 0 14px;padding:13px 16px;
 border:1px solid transparent;border-radius:12px;box-shadow:none;
 list-style:none;text-align:start;font-size:12.5px;line-height:1.75;
 overflow-wrap:anywhere;unicode-bidi:plaintext;isolation:isolate;
}
body.jau040-page .woocommerce-error::before,
body.jau040-page .woocommerce-message::before,
body.jau040-page .woocommerce-info::before{content:none;display:none;}
body.jau040-page .woocommerce-error{
 border-color:rgba(147,72,72,.24);border-inline-start:4px solid #934848;
 background:#FFF8F7;color:#6F3434;
}
body.jau040-page .woocommerce-message{
 border-color:rgba(80,23,43,.20);border-inline-start:4px solid var(--jau040-primary);
 background:#F5FAF7;color:#50172b;
}
body.jau040-page .woocommerce-info{
 border-color:rgba(181,154,103,.28);border-inline-start:4px solid var(--jau040-accent);
 background:#FCFAF5;color:#5C5039;
}
body.jau040-page .woocommerce-error li,
body.jau040-page .woocommerce-message li,
body.jau040-page .woocommerce-info li{
 margin:0;padding:0;text-align:start;unicode-bidi:plaintext;isolation:isolate;
}
body.jau040-page .woocommerce-error a,
body.jau040-page .woocommerce-message a,
body.jau040-page .woocommerce-info a{
 color:inherit;display:inline-block;font-weight:700;text-decoration:underline;
 text-underline-offset:3px;unicode-bidi:isolate;overflow-wrap:anywhere;
}
body.jau040-page .woocommerce-error:focus-visible,
body.jau040-page .woocommerce-message:focus-visible,
body.jau040-page .woocommerce-info:focus-visible{
 outline:2px solid var(--jau040-primary);outline-offset:2px;
}

/* V0.4.6: native password-reset screens; no custom reset processing or JS. */
body.jau040-password-page .woocommerce{
 width:min(760px,calc(100% - 32px));margin:0 auto;padding:34px 0 48px;
 font-family:"Tajawal",sans-serif;
}
body.jau040-password-page .jau046-password-card{
 width:100%;margin:0;padding:26px 30px 24px;border:1px solid var(--jau040-border);
 border-radius:18px;background:#fff;box-shadow:0 12px 30px rgba(31,31,31,.035);
 direction:rtl;text-align:right;
}
body.jau040-password-page .jau046-password-card>p:first-child,
body.jau040-password-page .jau046-password-card form>p:first-child{
 margin:0 0 18px;color:var(--jau040-muted);font-size:12.5px;line-height:1.85;
}
body.jau040-password-page form.lost_reset_password{
 width:100%;margin:0;padding:0;border:0;background:transparent;
}
body.jau040-password-page .jau046-password-card .clear{display:none;}
body.jau040-password-page .jau046-password-card>:last-child,
body.jau040-password-page .jau046-password-card form>:last-child{margin-bottom:0;}

/* Hide an alternate official Google root only after one verified root has
   been safely placed in the live slot. OAuth ownership remains provider-side. */
body.jau040-auth-page .jau046-provider-duplicate{display:none;}
body.jau040-auth-page .jau040-google-slot>.nsl-container,
body.jau040-auth-page .jau040-google-slot>.googlesitekit-sign-in-with-google__frontend-output-button{
 width:100%;max-width:320px;margin-inline:auto;
}

@media(max-width:767px){
 body.jau040-page .woocommerce-notices-wrapper{width:100%;margin-bottom:10px;}
 body.jau040-page .woocommerce-error,
 body.jau040-page .woocommerce-message,
 body.jau040-page .woocommerce-info{padding:11px 13px;border-radius:10px;font-size:12px;line-height:1.7;}
 body.jau040-password-page .woocommerce{width:calc(100% - 20px);padding:22px 0 34px;}
 body.jau040-password-page .jau046-password-card{padding:20px 16px;border-radius:15px;}
}
/* V0.4.7: if the official server-rendered Nextend Google fallback exists,
   keep it visible before JS and suppress alternate explicit provider roots.
   The condition is satisfied only by a real Nextend Google control. */
@supports selector(form:has(*)){
 body.jau040-auth-page form.login:has(.jau047-server-provider-slot a[data-plugin="nsl"][data-provider="google"])
 .googlesitekit-sign-in-with-google__frontend-output-button:not(.jau047-server-provider-slot *){display:none;}
 body.jau040-auth-page form.login:has(.jau047-server-provider-slot a[data-plugin="nsl"][data-provider="google"])
 .nsl-container:not(.jau047-server-provider-slot .nsl-container){display:none;}
}
body.jau040-page .woocommerce-error strong,
body.jau040-page .woocommerce-message strong,
body.jau040-page .woocommerce-info strong{unicode-bidi:isolate;}


/* V0.4.9: visual-only polish for the verified provider already rendered in
   the auth slot. Provider markup, URLs, icon, and behavior remain untouched. */
body.jau040-auth-page .jau040-google-slot>.nsl-container{
 width:100%;max-width:none;margin-inline:0;
}
body.jau040-auth-page .jau040-google-slot .nsl-container-buttons{
 display:grid;width:100%;max-width:none;padding:0;grid-template-columns:minmax(0,1fr);
}
body.jau040-auth-page .jau040-google-slot a[data-plugin="nsl"][data-provider="google"]{
 display:block;width:100%;max-width:none;min-height:0;margin:0;
 border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;
}
body.jau040-auth-page .jau040-google-slot a[data-plugin="nsl"][data-provider="google"] .nsl-button-google{
 width:100%;max-width:none;min-height:48px;align-items:center;direction:ltr;
 border:1px solid var(--jau040-border);border-radius:10px;background-color:#fff!important;
 box-shadow:none;overflow:hidden;
 transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease;
}
body.jau040-auth-page .jau040-google-slot a[data-plugin="nsl"][data-provider="google"]:hover .nsl-button-google{
 border-color:var(--jau040-primary);background-color:#FFFEFB!important;
}
body.jau040-auth-page .jau040-google-slot a[data-plugin="nsl"][data-provider="google"]:focus-visible{
 outline:0;
}
body.jau040-auth-page .jau040-google-slot a[data-plugin="nsl"][data-provider="google"]:focus-visible .nsl-button-google{
 outline:2px solid var(--jau040-primary);outline-offset:3px;
}
body.jau040-auth-page .jau040-google-slot .nsl-button-google .nsl-button-svg-container{
 flex:0 0 auto;padding:8px;transform:none;
}
body.jau040-auth-page .jau040-google-slot .nsl-button-google svg,
body.jau040-auth-page .jau040-google-slot .nsl-button-google img{
 width:24px;height:24px;max-width:24px;max-height:24px;object-fit:contain;transform:none;
}
body.jau040-auth-page .jau040-google-slot .nsl-button-google .nsl-button-label-container{
 min-width:0;margin:0;padding:10px 16px 10px 8px;text-align:center;
}

/* V0.4.8: one coherent inner grid for native Woo password forms. */
body.jau040-password-page .jau046-password-card form.lost_reset_password,
body.jau040-password-page .jau046-password-card form.woocommerce-ResetPassword{
 width:min(100%,640px);margin-inline:auto;
}
body.jau040-password-page .jau046-password-card form.lost_reset_password>p,
body.jau040-password-page .jau046-password-card form.woocommerce-ResetPassword>p{
 width:100%;max-width:none;float:none;clear:both;margin-inline:0;
}
body.jau040-password-page .jau046-password-card form.lost_reset_password .form-row,
body.jau040-password-page .jau046-password-card form.woocommerce-ResetPassword .form-row{
 width:100%;max-width:none;float:none;margin-inline:0;
}
body.jau040-password-page .jau046-password-card form.lost_reset_password label,
body.jau040-password-page .jau046-password-card form.woocommerce-ResetPassword label{
 display:block;width:100%;text-align:start;
}
body.jau040-password-page .jau046-password-card form.lost_reset_password input.input-text,
body.jau040-password-page .jau046-password-card form.woocommerce-ResetPassword input.input-text,
body.jau040-password-page .jau046-password-card form.lost_reset_password button.button,
body.jau040-password-page .jau046-password-card form.woocommerce-ResetPassword button.button{
 width:100%;max-width:none;margin-inline:0;
}
