/* Scoped to storefronts; account/admin navigation keeps its own layout. */
html body.web-order .main-head.has-realm-segments {
  display:flex!important; flex-wrap:wrap; align-items:center; gap:8px 16px;
  position:sticky; top:0; z-index:30; padding:10px 24px;
  background:var(--tdf-surface,#fffefa); border-bottom:1px solid #dce3dd;
  box-shadow:0 2px 8px #173c2910;
}
html body.web-order .main-head .realm-segments:not([hidden]) {
  display:inline-flex; flex:0 0 auto; align-items:center; gap:2px;
  padding:3px; border:1px solid #d7dfd9; border-radius:24px;
  background:#f0f3ef; width:max-content; max-width:100%;
}
html body.web-order .realm-segments button {
  appearance:none; border:0; border-radius:20px; background:transparent;
  color:#294337; font-family:inherit;
  font-size:13px; font-weight:600; line-height:1.2;
  padding:8px 16px; min-height:36px; white-space:nowrap; cursor:pointer;
}
html body.web-order .realm-segments button[aria-pressed=true] {background:var(--tdf-primary,#123e31);color:white;box-shadow:0 1px 3px #123e3120}
html body.web-order .realm-segments button:focus-visible {outline:2px solid #087a45;outline-offset:3px}
html body.web-order .realm-segments button:not([aria-pressed=true]):hover {background:#e0e8e1}
html body.web-order .realm-segments button:disabled {cursor:wait;opacity:.65}
html body.web-order .has-realm-segments .commerce-account-name {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html body.web-order .has-realm-segments .commerce-realm-tools {width:auto;flex:0 0 auto}
html body.web-order .has-realm-segments .commerce-realm-tools:has(.commerce-gift-link) {margin-left:auto}
html body.web-order .has-realm-segments .commerce-realm-tools:not(:has(.commerce-gift-link)) {display:none}
html:has(.has-realm-segments) {scroll-padding-top:calc(var(--realm-header-height,110px) + 12px)}
@media(max-width:700px) {
  html body.web-order .main-head.has-realm-segments {gap:4px 8px;padding:8px 12px}
  html body.web-order .has-realm-segments .wordmark {order:0;flex:1 1 auto;margin:0}
  html body.web-order .has-realm-segments .wordmark strong {font-size:18px}
  html body.web-order .has-realm-segments .wordmark .brand-logo {width:32px;height:32px}
  html body.web-order .has-realm-segments #search-shortcut {order:1;margin:0}
  html body.web-order .has-realm-segments .header-account-cart {order:2;width:auto;margin:0;flex:0 0 auto}
  html body.web-order .has-realm-segments .header-account-cart .v9-account {font-size:0;max-width:32px;min-width:32px;flex:0 0 32px}
  html body.web-order .has-realm-segments .header-account-cart .v9-account:before {display:block;content:'♙';font-size:24px}
  html body.web-order .has-realm-segments .header-account-cart #cart-open {display:none}
  html body.web-order .has-realm-segments:before {content:'';order:3;flex-basis:100%;height:0}
  html body.web-order .has-realm-segments .realm-segments {order:4;padding:0 2px}
  html body.web-order .realm-segments button {min-height:44px;padding:8px 14px}
  html body.web-order .has-realm-segments .commerce-realm-tools {order:5;margin-left:auto;flex:1 1 0;min-width:0;width:0}
  html body.web-order .has-realm-segments .commerce-gift-link {display:block;align-content:center;padding:5px 8px;font-size:12px;min-width:0;max-width:100%!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
  html body.web-order .has-realm-segments .reader-tools {order:6}
  html body.web-order--product .has-realm-segments>.wordmark {flex:1 1 140px}
  html body.web-order--product .has-realm-segments>#cart-open {order:1;font-size:0!important;padding:6px;min-height:44px;min-width:44px;width:58px;max-width:58px}
  html body.web-order--product .has-realm-segments>#cart-open:before {content:'🛒';font-size:18px}
  html body.web-order--product .has-realm-segments>#cart-open:after {display:none}
  html body.web-order--product .has-realm-segments>#cart-open span {display:none}
  html body.web-order--product .has-realm-segments>#cart-open #cart-count {display:inline;font-size:12px;margin-left:3px}
  html body.web-order--product .has-realm-segments>.store-management-menu.mobile {order:2}
  html body.web-order--product .has-realm-segments>.store-management-menu.mobile summary {font-size:0;padding:6px;min-width:30px}
  html body.web-order--product .has-realm-segments>.store-management-menu.mobile summary:after {content:'⚙';font-size:18px}
}
@media(max-width:360px) {
  html body.web-order .has-realm-segments .wordmark {flex:1 1 125px;gap:4px}
  html body.web-order .has-realm-segments .wordmark strong {font-size:16px}
  html body.web-order .has-realm-segments .wordmark .brand-logo {width:26px;height:26px}
  html body.web-order .has-realm-segments .store-management-menu.mobile summary {font-size:0;padding:6px;min-width:30px}
  html body.web-order .has-realm-segments .store-management-menu.mobile summary:after {content:'⚙';font-size:18px}
  html body.web-order .has-realm-segments #search-shortcut {width:30px;min-width:30px;flex-basis:30px}
}
