/* MBVNS phone/tablet menu overlay (template-parts/mobile-menu.php, assets/mobile-menu.js).
   Enqueued with media="(max-width: 1023px)". Measured on the source (mercedes-benz.com.vn/vi),
   real devices, Safari:
   - iPhone 16 Pro (402 x 678): full-viewport white sheet over everything. Bar 68px (16/8px
     padding): 36px close button 8px from the right; on submenus a 36px back button at x8 and
     breadcrumbs at x44 (14/20 bold #333 link, 12px #696969 separator with 8px sides, 14/20 bold
     #696969 current). Title 26/32 MBCorpo Title, 32px sides, 24px under it. Search 338 x 56
     (32px sides), 1px #9f9f9f border, radius 12, placeholder 16px #4f4f4f 16px from the left,
     24px icon in a 48px slot 8px from the right edge; 28px under it the rows: 16/23 #333,
     8px vertical padding (39px pitch), 16px chevron at the right edge. Submenu groups are 33px
     apart with a 1px rule; AMG/Maybach pills 59px, 1px #9f9f9f, fully rounded, 16px apart.
     Legal row pinned to the bottom: 1px #e5e5e5 rule, 24px, 16/22 text, 8px bottom.
   - iPad Pro 11 (834): the same content in a white panel (radius 12) starting 76px from the
     top at the 7vw gutter, 2/3 of the content width wide, close 16px from its corner; the page
     behind stays visible (not dimmed); a 16px #4f4f4f hint 4px under the search box. */

.mb-mm[hidden] { display: none; }
.mb-mm { position: fixed; inset: 0; z-index: 2000; display: block; }
.mb-mm__backdrop { position: absolute; inset: 0; background: transparent; }
.mb-mm__sheet { position: absolute; inset: 0; height: 100dvh; display: flex; flex-direction: column;
  background: #fff; color: #333; overflow: hidden; }
.mb-mm .screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.mb-mm__bar { flex: none; display: flex; align-items: center; height: 68px; padding: 16px 8px;
  box-sizing: border-box; }
.mb-mm__icon-btn { display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: #333; cursor: pointer; }
.mb-mm__icon-btn[hidden] { display: none; }
.mb-mm__close { margin-left: auto; }
.mb-mm__icon-btn:focus-visible, .mb-mm__row:focus-visible, .mb-mm__pill:focus-visible,
.mb-mm__search-btn:focus-visible, .mb-mm__crumbs button:focus-visible, .mb-mm__legal a:focus-visible {
  outline: 2px solid #0078d6; outline-offset: 2px; }

.mb-mm__crumbs { display: flex; align-items: center; min-width: 0; margin: 0; padding: 0; list-style: none;
  font-family: var(--mb-font-text); font-size: 14px; line-height: 20px; font-weight: 700; white-space: nowrap; }
.mb-mm__crumbs[hidden] { display: none; }
.mb-mm__crumbs li { display: flex; align-items: center; min-width: 0; }
.mb-mm__crumbs li + li::before { content: ">"; padding: 0 8px; font-size: 12px; color: #696969; }
.mb-mm__crumbs button { padding: 0; border: 0; background: none; font: inherit; color: #333;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mb-mm__crumbs [aria-current] { color: #696969; overflow: hidden; text-overflow: ellipsis; }

.mb-mm__body { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; }
.mb-mm__panel { display: flex; flex-direction: column; min-height: 100%; box-sizing: border-box; }
.mb-mm__panel[hidden] { display: none; }
.mb-mm__title { margin: 0; padding: 0 32px 24px; font-family: var(--mb-font-title); font-size: 26px;
  line-height: 32px; font-weight: 400; color: #000; }

.mb-mm__search { position: relative; flex: none; display: flex; align-items: center; height: 56px; margin: 0 32px;
  border: 1px solid #9f9f9f; border-radius: 12px; background: #fff; box-sizing: border-box; }
.mb-mm__search-input { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0 56px 0 15px; border: 0;
  border-radius: 12px; background: transparent; font-family: var(--mb-font-text); font-size: 16px; color: #333;
  text-overflow: ellipsis; -webkit-appearance: none; appearance: none; }
.mb-mm__search-input::placeholder { color: #4f4f4f; opacity: 1; text-overflow: ellipsis; }
.mb-mm__search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.mb-mm__search-input:focus { outline: none; }
.mb-mm__search:focus-within { border-color: #333; }
.mb-mm__search-btn { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); display: grid;
  place-items: center; width: 48px; height: 40px; padding: 0; border: 0; background: none; color: #000; cursor: pointer; }
.mb-mm__search-hint { display: none; }

.mb-mm__list { margin: 0; padding: 0 32px; list-style: none; }
.mb-mm__panel--root .mb-mm__list { margin-top: 28px; }
.mb-mm__list + .mb-mm__list { margin-top: 16px; padding-top: 16px; position: relative; }
.mb-mm__list + .mb-mm__list::before { content: ""; position: absolute; top: 0; left: 32px; right: 32px;
  border-top: 1px solid #e5e5e5; }
.mb-mm__row { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 0;
  border: 0; background: none; font-family: var(--mb-font-text); font-size: 16px; line-height: 23px; font-weight: 400;
  color: #333; text-align: left; text-decoration: none; cursor: pointer; }
.mb-mm__chevron { flex: none; margin-left: 16px; color: #333; }

.mb-mm__pills { display: flex; flex-direction: column; gap: 16px; margin: 12px 32px 32px; }
.mb-mm__pill { display: grid; place-items: center; height: 59px; border: 1px solid #9f9f9f; border-radius: 9999px;
  box-sizing: border-box; }
.mb-mm__pill img { display: block; height: 12px; width: auto; filter: brightness(0); }

.mb-mm__legal { margin: auto 32px 0; padding: 24px 0 8px; border-top: 1px solid #e5e5e5; }
.mb-mm__panel--root .mb-mm__list + .mb-mm__legal { margin-top: auto; }
.mb-mm__legal a { display: block; font-family: var(--mb-font-text); font-size: 16px; line-height: 22px; color: #333;
  text-decoration: none; }

/* Tablets: a panel under the header instead of a full-viewport sheet. */
@media (min-width: 601px) {
  .mb-mm__sheet { inset: 76px auto 0 7vw; width: calc(86vw * 2 / 3); height: auto; border-radius: 12px 12px 0 0;
    box-shadow: 0 0 2px rgba(0, 0, 0, .1), 0 2px 4px rgba(0, 0, 0, .1); }
  .mb-mm__bar { padding: 16px; }
  .mb-mm__search-hint { display: block; margin: 4px 32px 0; padding-left: 16px; font-family: var(--mb-font-text);
    font-size: 16px; line-height: 21px; color: #4f4f4f;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mb-mm__panel--root .mb-mm__list { margin-top: 28px; }
}

/* Body scroll lock while open (assets/mobile-menu.js pins the page at its scroll position). */
body.mb-mm-open { position: fixed; left: 0; right: 0; overflow: hidden; }
