.site-mobile-icon,
.site-mobile-whatsapp,
.site-mobile-sheet:not([open]) {
  display: none;
}

.site-mobile-icon svg,
.site-mobile-whatsapp svg,
.site-mobile-search-field svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

@media (max-width: 767px) {
  body[data-shared-mobile-header] > :is(.announcement, .storefront-nav, .bag-mobile-bar, .item-mobile-bar, .mobile-contact, .language-bar),
  body[data-shared-mobile-header] .collection-variants,
  body[data-shared-mobile-header] .header > :is(nav, .header-photo, .header-contact, .cart-continue),
  body[data-shared-mobile-header] .browse-filters {
    display: none !important;
  }

  body[data-shared-mobile-header] > .header {
    display: grid;
    grid-template-columns: 44px 44px minmax(0, 1fr) 44px 44px;
    gap: 0;
    align-items: center;
    width: 100%;
    height: 58px;
    min-height: 58px;
    box-sizing: border-box;
    padding-inline: clamp(8px, 3vw, 20px);
    border-bottom: 1px solid var(--line, #ded5cd);
  }

  body[data-shared-mobile-header] .header > .wordmark {
    grid-area: 1 / 3;
    justify-self: center;
    min-width: 44px;
    padding: 0;
    margin: 0;
    text-decoration: none;
    font-family: var(--serif, Georgia, serif);
  }

  body[data-shared-mobile-header] .header > .wordmark span {
    font-size: clamp(12px, 3.7vw, 20px);
    letter-spacing: .06em;
    text-align: center;
  }

  .site-mobile-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--ink, #302025);
    background: transparent;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
  }

  .site-mobile-menu { grid-area: 1 / 1; }
  .site-mobile-search { grid-area: 1 / 4; }

  body[data-shared-mobile-header] .header > .header-cart {
    grid-area: 1 / 5;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  body[data-shared-mobile-header] .header-cart > span:not(.cart-bag-icon, .cart-count) {
    display: none;
  }

  body[data-shared-mobile-header] .header-cart .cart-count {
    position: absolute;
    top: 1px;
    right: 0;
    min-width: 16px;
    height: 16px;
    padding-inline: 3px;
    font-size: 10px;
    line-height: 1;
  }

  .site-mobile-whatsapp {
    position: fixed;
    z-index: 12;
    right: max(14px, env(safe-area-inset-right));
    bottom: calc(14px + env(safe-area-inset-bottom));
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: #fff;
    background: var(--wine, #401e24);
    border: 1px solid #fff;
    border-radius: 50%;
    box-shadow: 0 3px 16px #351b2633;
  }

  body[data-shared-mobile-header]:has(dialog[open]) .site-mobile-whatsapp { display: none; }
  .site-mobile-whatsapp svg { width: 27px; height: 27px; }

  .site-mobile-sheet[open] {
    position: fixed;
    inset: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0 18px calc(24px + env(safe-area-inset-bottom));
    overflow: auto;
    overscroll-behavior: contain;
    color: var(--ink, #302025);
    background: #fcfaf7;
    border: 0;
  }

  .site-mobile-drawer[open] { inset-inline: 0 auto; }

  .site-mobile-sheet-heading {
    position: sticky;
    z-index: 1;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding-top: env(safe-area-inset-top);
    background: #fcfaf7;
    border-bottom: 1px solid var(--line, #ded5cd);
  }

  .site-mobile-sheet-heading h2 {
    margin: 0;
    font: 500 24px/1.2 var(--serif, Georgia, serif);
  }

  .site-mobile-collections :is(a, summary),
  .site-mobile-help :is(a, button) {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 0;
    color: inherit;
    border-bottom: 1px solid var(--line, #ded5cd);
    text-align: start;
    text-decoration: none;
    font: inherit;
  }

  .site-mobile-collections summary {
    justify-content: space-between;
    list-style: none;
    cursor: pointer;
  }

  .site-mobile-collections summary::-webkit-details-marker { display: none; }
  .site-mobile-collections summary::after { content: '+'; font-size: 20px; }
  .site-mobile-collections details[open] > summary::after { content: '−'; }
  .site-mobile-collections details a { padding-inline-start: 16px; }
  .site-mobile-collections a[aria-current="page"] { font-weight: 700; }

  .site-mobile-help { margin-top: 16px; }
  .site-mobile-help button { width: 100%; background: none; border-width: 0 0 1px; cursor: pointer; }

  #site-mobile-language .language-bar {
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
  }

  #site-mobile-language .language-bar label,
  #site-mobile-language .language-bar select {
    min-height: 44px;
    font-size: 14px !important;
  }

  #site-mobile-language .language-bar label { display: inline-flex; align-items: center; }
  #site-mobile-language .language-bar select { max-width: none; }

  .site-mobile-search-form {
    display: grid;
    gap: 12px;
    padding-block: 20px;
  }

  .site-mobile-search-form label { font-size: 14px; }

  .site-mobile-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding-inline: 12px;
    color: var(--ink, #302025);
    background: #fff;
    border: 1px solid var(--line, #ded5cd);
    border-radius: 5px;
  }

  .site-mobile-search-field input {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 4px 0;
    color: inherit;
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 16px;
  }

  .site-mobile-search-form > button { min-height: 48px; justify-self: start; }
}

@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .site-mobile-drawer[open] {
    animation: site-mobile-drawer-enter 180ms ease-out both;
  }

  @keyframes site-mobile-drawer-enter {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
  }
}

/* Minimum control bounds for the storefront, including overlays. */
body[data-shared-mobile-header] :is(a[href], button, select, input:not([type="hidden"])):not(.sr-only) {
  min-inline-size: 44px;
  min-block-size: 44px;
}
body[data-shared-mobile-header] a[href]:not(.sr-only) {
  align-content: center;
}
body[data-shared-mobile-header] :is(.footer a, .questions a, .header nav a, .footer-disclosure a, .source-note a, .product-copy h3 a, .locale-credit) {
  display: inline-block;
}
body[data-shared-mobile-header] :is(.shoe-filter-choice, .accessory-filter-choice):has(input) {
  min-block-size: 44px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
}
body[data-shared-mobile-header] input:is([type="checkbox"], [type="radio"]) {
  appearance: none;
  width: 44px;
  height: 44px;
  margin: 0;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
body[data-shared-mobile-header] input:is([type="checkbox"], [type="radio"])::before {
  content: "";
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 3px;
  line-height: 1;
}
body[data-shared-mobile-header] input[type="radio"]::before { border-radius: 50%; }
body[data-shared-mobile-header] input[type="checkbox"]:checked::before {
  content: "✓";
  background: var(--wine, #401e24);
  border-color: var(--wine, #401e24);
  color: white;
}
body[data-shared-mobile-header] input[type="radio"]:checked::before {
  background: var(--wine, #401e24);
  border-color: var(--wine, #401e24);
  box-shadow: inset 0 0 0 3px white;
}
body[data-shared-mobile-header] input:disabled { cursor: default; }
body[data-shared-mobile-header] .footer .locale-credit {
  grid-column: 1 / -1;
  justify-self: start;
}
body[data-shared-mobile-header] .site-mobile-whatsapp[hidden] { display: none; }
@media (max-width: 767px) {
  body[data-shared-mobile-header].cart-page:has(#cart-mobile-summary:not([hidden])) .site-mobile-whatsapp {
    display: none;
  }
}

body[data-shared-mobile-header] :is(#bag-results, #item-results).shoe-catalog-total {
  margin-block: 5px 9px;
}
body[data-shared-mobile-header] .cart-line h2 a {
  display: inline-flex;
  align-items: center;
}

@media (min-width: 768px) {
  body[data-shared-mobile-header] .accessory-listing-head {
    display: block;
    margin-block: 0 14px;
  }
  body[data-shared-mobile-header] .accessory-listing-head .shoe-catalog-breadcrumb {
    display: none;
  }
  body[data-shared-mobile-header] .accessory-listing-head h1 {
    margin: 0;
    font-family: var(--serif, Georgia, serif);
    font-weight: 500;
  }
  body[data-shared-mobile-header][data-accessory-catalog] .collection > .section-heading {
    display: none;
  }
}

body[data-shared-mobile-header] .site-mobile-collections :is(a, summary),
body[data-shared-mobile-header] .site-mobile-help :is(a, button) {
  min-block-size: 48px;
}
/* Match the mobile storefront's hit area on shopping bag controls. */
@media (max-width: 767px) {
  .cart-page .cart-quantity button {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }

  .cart-page .cart-remove,
  .cart-page #cart-quote-retry,
  .cart-page .advisor-notice button,
  .cart-page .inquiry-status button,
  .cart-page .cart-toast button {
    min-width: 44px;
    min-height: 44px;
  }

  .cart-page .cart-line h2 a,
  .cart-page .footer a {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    max-width: 100%;
  }
}
