/* Pages still rendered by Betheme (cart, checkout, account, gift card, legal): brand defaults only.
   Element selectors are wrapped in :where() so they replace Betheme's theme colour at the same
   specificity and never win over the stylesheets of the plugins that own those pages. */
body.dbd-legacy{background:var(--dbo-canvas);color:var(--dbo-ink);font-family:var(--dbo-f-body)}
.dbd-legacy #Wrapper,.dbd-legacy #Content{background:transparent}
.dbd-legacy #Wrapper{max-width:none;margin:0;box-shadow:none;overflow:visible}
.dbd-legacy #Content{padding-top:0;width:100%}
:where(.dbd-legacy) :where(#Content) :where(h1,h2,h3,h4,h5,h6){font-family:var(--dbo-f-display);color:var(--dbo-ink);font-weight:600;letter-spacing:-.01em}
:where(.dbd-legacy) :where(#Content) :where(p,li,td,th,label,dd,dt){font-family:var(--dbo-f-body)}
:where(.dbd-legacy) :where(#Content) a{color:var(--dbo-mint-ink)}
:where(.dbd-legacy) :where(#Content) a:hover{color:var(--dbo-ink)}
:where(.dbd-legacy) :where(#Content) :where(button,.button,input[type="submit"],input[type="button"],a.button){background-color:var(--dbo-mint-dark);color:var(--dbo-vinyl);border-radius:var(--dbo-pill);font-family:var(--dbo-f-body);font-weight:600}
:where(.dbd-legacy) :where(#Content) :where(input[type="text"],input[type="email"],input[type="tel"],input[type="password"],input[type="number"],input[type="search"],select,textarea){border-radius:var(--dbo-r-ctl);border-color:var(--dbo-border);color:var(--dbo-ink);font-family:var(--dbo-f-body)}
:where(.dbd-legacy) :where(#Content) :where(input,select,textarea):focus{border-color:var(--dbo-ink);box-shadow:0 0 0 3px var(--dbo-mint);outline:0}
:where(.dbd-legacy) :where(#Content) :focus-visible{outline:3px solid var(--dbo-ink);outline-offset:2px}
.dbd-legacy ::selection{background:var(--dbo-mint);color:var(--dbo-vinyl)}

/* page title printed by the chrome in place of Betheme's subheader */
.dbd-legacy .dbd-legacy-head{padding-block:10px 18px}
.dbd-legacy .dbd-legacy-title{margin:6px 0 0;font:600 clamp(34px,5.2vw,56px)/1 var(--dbo-f-display);letter-spacing:-.025em;color:var(--dbo-ink);text-wrap:balance}

/* leftovers of the Betheme chrome that are printed outside header.php / footer.php */
.dbd-legacy #mfn-gdpr{font-family:var(--dbo-f-body)}

/* Betheme hides horizontal overflow on <body>, which turns it into a scroll box and
   stops the header from sticking: clip instead, as on the plugin's own templates. */
body.dbd-legacy{overflow-x:clip!important}
