/* Keep the original bottom navigation on desktop and mobile. */
@media (min-width:1200px) {
 html body.client-website .client-brand-header { gap:24px!important; }
 html body.client-website .client-brand-header .db-header-search { flex:1 1 240px; max-width:350px; min-width:180px; margin-left:auto!important; }
 html body.client-website .client-header-account { margin-left:0; }
}
@media (max-width:600px) {
 html body.client-website .client-auth { margin-top:24px!important; }
 html body.client-website .client-auth-card { padding:24px 20px!important; }
}
@media (prefers-reduced-motion:reduce) {
 html body.client-app dialog.db-product-dialog[open] { animation:none!important; }
}

/* Authentication has its own back link; do not cover its primary action with the dock. */
html body.client-app:has(main .client-auth) .client-mobile-nav.db-client-dock { display:none!important; }

/* Keep desktop service configuration visible while the catalogue scrolls. */
@media (min-width:961px) {
 html body:has(.db-sales-desk-ready) { overflow-x:clip; }
 .db-sales-desk-ready > .db-service-detail {
  position:sticky;
  top:24px;
  align-self:start;
  max-height:calc(100vh - 48px);
  max-height:calc(100dvh - 48px);
  overflow-y:auto;
  scrollbar-width:thin;
 }
}

/* Compact order filters and per-branch payment switches. */
.db-order-advanced { margin:16px 0 24px; }
.db-order-advanced > summary { display:inline-flex; align-items:center; gap:10px; list-style:none; cursor:pointer; }
.db-order-advanced > summary::-webkit-details-marker { display:none; }
.db-order-advanced > summary::after { content:'⌄'; }
.db-order-advanced[open] > summary::after { transform:rotate(180deg); }
.db-order-advanced-body { display:grid; gap:20px; margin-top:20px; }
html body .workspace .db-branch-row { display:flex!important; flex-wrap:wrap; gap:12px; align-items:center; }
html body .workspace .db-branch-row > input[name=name] { flex:1 1 240px; min-width:0; }
html body .workspace label.db-payment-switch { display:inline-flex!important; align-items:center; gap:10px; position:relative; cursor:pointer; flex-shrink:0; min-height:44px; }
.db-payment-switch > input { position:absolute; width:1px; height:1px; opacity:0; }
.db-switch-track { display:block!important; width:44px; height:26px; flex:none; border:1px solid var(--line-strong); border-radius:999px; background:var(--surface-raised); position:relative; }
.db-switch-track::before { content:''; position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%; background:var(--text-muted); transition:transform .15s; }
.db-payment-switch > input:checked + .db-switch-track { background:var(--a); border-color:var(--a); }
.db-payment-switch > input:checked + .db-switch-track::before { transform:translateX(18px); background:var(--ai); }
.db-payment-switch > input:focus-visible + .db-switch-track { outline:3px solid var(--focus-ring); outline-offset:3px; }
@media(max-width:600px) { html body .workspace .db-branch-row > input[name=name] { flex-basis:100%; } }
@media(prefers-reduced-motion:reduce) { .db-switch-track::before { transition:none; } }

/* Keep the bundle purchase action readable on its lime background. */
html body .db-game-bundle-card .button:not(.secondary),html body .db-game-bundle-card .button:not(.secondary) span{color:#101014!important}

/* Keep product content and its scrollbar inside the rounded dialog frame. */
html body.client-app dialog.db-product-dialog:not(.db-topup-dialog)[open] {
 display:flex!important; flex-direction:column; overflow:hidden!important;
}
html body.client-app dialog.db-product-dialog:not(.db-topup-dialog) > .store-dialog-head { flex:none; }
html body.client-app dialog.db-product-dialog:not(.db-topup-dialog) > .store-dialog-body {
 flex:1 1 auto; min-height:0; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain;
}
/* Align the search control and its action on every screen size. */
html body .client-brand-header .db-header-search input[type=search],
html body .client-brand-header .db-header-search button {
 box-sizing:border-box; height:48px!important; min-height:48px!important;
}
html body .client-brand-header .db-header-search button { flex:0 0 48px!important; width:48px!important; }
/* Login controls form a compact, clear group. */
html body .client-auth-login .client-auth-remember {
 display:inline-flex!important; align-items:center; justify-content:flex-start;
 gap:8px; width:fit-content; min-height:32px; margin-top:-8px;
 padding:0!important; border:0!important; background:transparent!important; cursor:pointer;
}
html body .client-auth-login .client-auth-remember input[type=checkbox] {
 flex:0 0 16px; width:16px!important; height:16px!important; min-height:16px!important; margin:0!important;
}
html body .client-auth-login > button.button,
html body .client-auth-login > a.button { justify-content:center!important; text-align:center; gap:10px; }
html body .client-auth-login > button.button,
html body .client-auth-login > button.button span { color:#101014!important; }

/* Equal, borderless search controls; keep a visible keyboard focus indicator. */
html body .client-brand-header form.db-header-search{display:flex!important;align-items:center!important;gap:8px}
html body .client-brand-header .db-header-search input[type=search],
html body .client-brand-header .db-header-search button{box-sizing:border-box!important;height:48px!important;min-height:48px!important;max-height:48px!important;margin:0!important;border:0!important;box-shadow:none!important;align-self:center}
html body .client-brand-header .db-header-search input[type=search]:focus-visible,
html body .client-brand-header .db-header-search button:focus-visible{outline:2px solid var(--accent,#a9f23a)!important;outline-offset:2px}
html body.client-app .client-shell .client-brand-header form.db-header-search input[type=search],
html body.client-app .client-shell .client-brand-header form.db-header-search button{border:0!important;box-shadow:none!important}

/* Homepage preview hides complete cards, never their purchase dialogs. */
html body .client-shell [data-home-preview] > article.db-shop-product[hidden]{display:none!important}
html body .client-shell .db-home-more{display:flex;width:max-content;max-width:100%;margin:20px auto 8px}
html body .client-shell .db-home-more[hidden]{display:none!important}

/* Product artwork fills a square frame without distorting its proportions. */
body .client-shell .db-product-dialog .store-dialog-art{aspect-ratio:1 / 1}
body .client-shell .db-product-dialog .store-dialog-art img{object-fit:cover!important;object-position:center}
