/**
 * Eager dark canvas for optional editorial Account, before lazy Woo/PIN styles.
 * Source: Codela — Giriş ve Menü Tasarımı. Do not alter auth visibility gates.
 */
.sf-shell.has-editorial-account #sf-panel.is-account-panel{
  --sf-ui-page:#06060a;
  --sf-ui-ink:#f8f7fa;
  --sf-ui-control-ink:#f8f7fa;
  --sf-ui-glass-ink:#f8f7fa;
  --sf-ui-surface:#1d1c1e;
  --sf-ui-surface-muted:#252426;
  --sf-ui-border:rgba(255,255,255,.15);
  --sf-muted:#b8b2aa;
  --sf-smart-ink:#f8f7fa;
  --sf-smart-line:rgba(255,255,255,.15);
  --sf-quick-ink:#f8f7fa;
  --sf-quick-muted:#b8b2aa;
  --cdl-agency-glass-back:linear-gradient(180deg,rgba(255,255,255,.02),transparent);
  --cdl-agency-glass-body:rgba(24,24,29,.64);
  --cdl-agency-glass-rim:linear-gradient(rgba(255,255,255,.07),rgba(255,255,255,.07));
  --cdl-agency-glass-main:linear-gradient(180deg,rgba(255,255,255,.015),transparent);
  --cdl-agency-glass-body-main:rgba(28,28,33,.72);
  --cdl-agency-glass-rim-main:linear-gradient(rgba(255,255,255,.09),rgba(255,255,255,.09));
  --cdl-agency-glass-filter:blur(20px) saturate(115%);
  background:
    radial-gradient(ellipse 56% 42% at 78% 8%,rgba(211,164,128,.17),transparent 68%),
    radial-gradient(ellipse 48% 38% at 12% 5%,rgba(183,125,70,.075),transparent 64%),
    #06060a!important;
  color:#f8f7fa!important;color-scheme:dark;
}
/* Account has only the native right-side X; no duplicated page-name or logo.
 * This eager rule prevents a label flash before guest login CSS loads. */
.sf-shell.has-editorial-account #sf-panel.is-account-panel .sf-panel-top{
  background:transparent!important;border-bottom:0!important;
  justify-content:flex-end!important;
}
.sf-shell.has-editorial-account #sf-panel.is-account-panel #sf-panel-title{
  position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;
  overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;
}
.sf-shell.has-editorial-account #sf-panel.is-account-panel .sf-panel-app-title--account,
.sf-shell.has-editorial-account #sf-panel.is-account-panel .sf-editorial-menu-brand{
  display:none!important;
}
.sf-shell.has-editorial-account #sf-panel.is-account-panel .sf-panel-top .sf-close{
  color:#f8f7fa!important;border:1px solid transparent!important;border-radius:999px;
  background:
    var(--cdl-agency-glass-back) padding-box,
    linear-gradient(var(--cdl-agency-glass-body),var(--cdl-agency-glass-body)) padding-box,
    var(--cdl-agency-glass-rim) border-box!important;
  -webkit-backdrop-filter:var(--cdl-agency-glass-filter)!important;
  backdrop-filter:var(--cdl-agency-glass-filter)!important;
  box-shadow:0 6px 18px -6px rgba(0,0,0,.24)!important;
}
.sf-shell.has-editorial-account #sf-panel.is-account-panel .sf-panel-top .sf-close .sf-icon{
  filter:brightness(0) invert(1)!important;
}
/* The panel body itself is the available-height scrollport. Center the single
 * real Woo/remembered account card inside it; safe centering avoids clipping
 * when the content grows taller than the viewport. No fixed heights/transforms. */
.sf-shell.has-editorial-account #sf-panel.is-account-panel .sf-account-body{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:center;
  justify-content:safe center;
  min-height:0;
}
.sf-shell.has-editorial-account #sf-panel.is-account-panel .sf-account-body>.woocommerce{
  flex:0 0 auto;
  width:100%;
  margin-inline:auto;
}
/* Native password focus or expanded PIN must scroll normally above iOS keyboard. */
.sf-shell.has-editorial-account #sf-panel.is-account-panel .sf-account-body:has(.woocommerce.sf-auth-focus-mode,.sf-quick-login.is-inline-open){
  justify-content:flex-start;
}
@media(max-height:620px){
  .sf-shell.has-editorial-account #sf-panel.is-account-panel .sf-account-body{
    justify-content:flex-start;
  }
}

/* Direct My Account guest page gets the same dark presentation, not the store canvas. */
body.sf-account-editorial.woocommerce-account:not(.logged-in):not(.codela-my-account-layout){
  /* Standalone Account does not inherit token overrides from the hidden dialog. */
  --cdl-agency-glass-back:linear-gradient(180deg,rgba(255,255,255,.02),transparent);
  --cdl-agency-glass-body:rgba(24,24,29,.64);
  --cdl-agency-glass-rim:linear-gradient(rgba(255,255,255,.07),rgba(255,255,255,.07));
  --cdl-agency-glass-main:linear-gradient(180deg,rgba(255,255,255,.015),transparent);
  --cdl-agency-glass-body-main:rgba(28,28,33,.72);
  --cdl-agency-glass-rim-main:linear-gradient(rgba(255,255,255,.09),rgba(255,255,255,.09));
  --cdl-agency-glass-filter:blur(20px) saturate(115%);
  --sf-ui-page:#06060a;
  --sf-ui-ink:#f8f7fa;
  --sf-ui-control-ink:#f8f7fa;
  --sf-ui-border:rgba(255,255,255,.15);
  --sf-muted:#b8b2aa;
  background:#06060a!important;color:#f8f7fa;color-scheme:dark;
}
body.sf-account-editorial.woocommerce-account:not(.logged-in):not(.codela-my-account-layout) .sf-content:has(.sf-account-intro){
  background:
    radial-gradient(ellipse 58% 42% at 72% 8%,rgba(211,164,128,.15),transparent 70%),
    radial-gradient(ellipse 43% 36% at 15% 3%,rgba(183,125,70,.075),transparent 67%),
    #06060a!important;
  color:#f8f7fa;
}
/* Standalone guest Account matches the open dialog, not the store document.
 * Only the guest welcome root is converted; password recovery, signed-in
 * dashboards, Woo endpoints and other presentation modes retain their shells. */
body.sf-account-editorial.woocommerce-account:not(.logged-in):not(.codela-my-account-layout):has(.sf-content .sf-account-intro) .sf-shell{
  padding-top:0!important; /* Override the fixed store header's 68/76px reserved space. */
}
body.sf-account-editorial.woocommerce-account:not(.logged-in):not(.codela-my-account-layout):has(.sf-content .sf-account-intro) .sf-shell .sf-header{
  position:absolute!important;top:0!important;left:0!important;
  width:0!important;height:0!important;min-height:0!important;
  margin:0!important;padding:0!important;border:0!important;
  background:transparent!important;box-shadow:none!important;
  pointer-events:none!important;overflow:visible!important;
}
body.sf-account-editorial.woocommerce-account:not(.logged-in):not(.codela-my-account-layout):has(.sf-content .sf-account-intro) .sf-shell .sf-header > :not(.sf-editorial-account-exit){
  display:none!important;
}
body.sf-account-editorial.woocommerce-account:not(.logged-in):not(.codela-my-account-layout):has(.sf-content .sf-account-intro) :is(.sf-shell .sf-mobile-dock,.sf-footer){
  display:none!important;
}
body.sf-account-editorial.woocommerce-account:not(.logged-in):not(.codela-my-account-layout) .sf-editorial-account-exit{
  position:fixed;z-index:1200;top:clamp(12px,3.5svh,30px);right:clamp(16px,5vw,32px);
  display:grid;place-items:center;width:48px;height:48px;
  border:1px solid transparent;border-radius:999px;
  color:#f8f7fa!important;text-decoration:none;
  background:var(--cdl-agency-glass-back) padding-box,
    linear-gradient(var(--cdl-agency-glass-body),var(--cdl-agency-glass-body)) padding-box,
    var(--cdl-agency-glass-rim) border-box;
  -webkit-backdrop-filter:var(--cdl-agency-glass-filter);
  backdrop-filter:var(--cdl-agency-glass-filter);
  box-shadow:0 6px 18px -6px rgba(0,0,0,.24);
  pointer-events:auto;
}
body.sf-account-editorial.woocommerce-account:not(.logged-in) .sf-editorial-account-exit .sf-icon{
  width:22px;height:22px;filter:brightness(0) invert(1);
}
body.sf-account-editorial.woocommerce-account:not(.logged-in) .sf-editorial-account-exit:focus-visible{
  outline:2px solid #d3a480;outline-offset:4px;
}
body.sf-account-editorial.woocommerce-account:not(.logged-in):not(.codela-my-account-layout) main.sf-content:has(.sf-account-intro){
  box-sizing:border-box;display:flex;flex-direction:column;
  align-items:stretch;justify-content:center;justify-content:safe center;
  width:100%;max-width:560px;min-height:100svh;min-height:100dvh;
  margin-inline:auto;
  padding:clamp(78px,10svh,112px) clamp(16px,5vw,32px)
    clamp(24px,4svh,48px)!important;
}
body.sf-account-editorial.woocommerce-account:not(.logged-in):not(.codela-my-account-layout) main.sf-content:has(.sf-account-intro) > :is(.wp-block-post-content,.wp-block-shortcode,.woocommerce){
  width:100%;margin-block:0;
}
body.sf-account-editorial.woocommerce-account:not(.logged-in):not(.codela-my-account-layout) main.sf-content:has(.woocommerce.sf-auth-focus-mode,.sf-quick-login.is-inline-open){
  justify-content:flex-start;
}
@media(max-height:620px){
  body.sf-account-editorial.woocommerce-account:not(.logged-in):not(.codela-my-account-layout) main.sf-content:has(.sf-account-intro){
    justify-content:flex-start;
  }
}

@media(prefers-reduced-transparency:reduce){
  .sf-shell.has-editorial-account #sf-panel.is-account-panel :is(.sf-panel-app-title--account,.sf-panel-top .sf-close){
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  }
}
@media(forced-colors:active){
  .sf-shell.has-editorial-account #sf-panel.is-account-panel{
    background:Canvas!important;color:CanvasText!important;
  }
}
