/* Shared customer chrome. The source header controls and footer translations
   stay intact; only their presentation and compact-header placement change. */
body[data-customer-chrome-v3] .soul-footer-brand,
body[data-customer-chrome-v3] .soul-footer-bottom {
  display: none !important;
}
body[data-customer-chrome-v3] .soul-site-footer {
  padding: 36px max(24px, 6vw) 28px;
}
body[data-customer-chrome-v3] .soul-footer-top {
  grid-template-columns: minmax(220px, .8fr) minmax(240px, 1.2fr);
  gap: 36px 64px;
  align-items: start;
}
body[data-customer-chrome-v3] .soul-footer-contact > div:last-child {
  margin-bottom: 0;
}

/* The shop has a separate editorial footer theme. Keep that palette while
   removing its redundant brand column and retaining readable contact details. */
body[data-customer-chrome-v3].purchase-page:not(.purchase-commerce-active) .soul-site-footer {
  padding: 36px max(24px, 6vw) 28px;
}
body[data-customer-chrome-v3].purchase-page:not(.purchase-commerce-active) .soul-footer-top {
  grid-template-columns: minmax(220px, .8fr) minmax(240px, 1.2fr);
  align-items: start;
  gap: 36px 64px;
}
body[data-customer-chrome-v3].purchase-page:not(.purchase-commerce-active) .soul-footer-section:last-child {
  grid-column: auto;
  border-top: 0;
  padding-top: 0;
}
body[data-customer-chrome-v3].purchase-page:not(.purchase-commerce-active) .soul-footer-section summary {
  display: block;
}
body[data-customer-chrome-v3].purchase-page:not(.purchase-commerce-active) .soul-footer-links {
  display: grid;
  justify-content: start;
  gap: 2px;
}
body[data-customer-chrome-v3].purchase-page:not(.purchase-commerce-active) .soul-footer-links a {
  font-size: 15px;
  color: #d5dfe1;
}
body[data-customer-chrome-v3].purchase-page:not(.purchase-commerce-active) .soul-footer-contact {
  display: block;
  margin: 4px 0 0;
}
body[data-customer-chrome-v3].purchase-page:not(.purchase-commerce-active) .soul-footer-contact > div {
  display: block;
  margin: 0 0 20px;
}
body[data-customer-chrome-v3].purchase-page:not(.purchase-commerce-active) .soul-footer-contact > div:last-child {
  margin-bottom: 0;
}
body[data-customer-chrome-v3].purchase-page:not(.purchase-commerce-active) .soul-footer-contact dt {
  position: static;
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
  white-space: normal;
  margin: 0 0 7px;
  font-size: 13px;
  line-height: 1.6;
  color: #aebfc5;
}
body[data-customer-chrome-v3].purchase-page:not(.purchase-commerce-active) .soul-footer-contact dt::after {
  content: none;
}
body[data-customer-chrome-v3].purchase-page:not(.purchase-commerce-active) .soul-footer-contact dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #e0e8e9;
}
body[data-customer-chrome-v3].purchase-page:not(.purchase-commerce-active) .soul-footer-contact address {
  max-width: 415px;
}

/* Use the existing compact-navigation breakpoint, including narrower tablets.
   The white bar participates in normal document flow and scrolls with the page. */
@media (max-width: 1200px) {
  body[data-customer-chrome-v3] {
    --header-height: calc(76px + env(safe-area-inset-top));
  }
  body[data-customer-chrome-v3] .site-header.has-auth {
    position: relative;
    inset: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    height: var(--header-height);
    min-height: var(--header-height);
    padding: env(safe-area-inset-top) 16px 0;
    margin: 0;
    z-index: 40;
    background: #fff;
    color: #1d323b;
    border-bottom: 1px solid #e6e6e6;
    overflow: visible;
  }
  body[data-customer-chrome-v3] .site-header.has-auth .brand {
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    width: clamp(140px, 44vw, 200px);
    max-width: calc(100% - 112px);
    margin: 0;
  }
  body[data-customer-chrome-v3] .site-header .desktop-nav,
  body[data-customer-chrome-v3] .site-header .header-actions {
    display: none;
  }
  body[data-customer-chrome-v3] .site-header > .mobile-navigation {
    position: static;
    inset: auto;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
    margin: 0 0 0 auto;
    padding: 0;
    z-index: auto;
  }
  body[data-customer-chrome-v3] .mobile-navigation > .mobile-language-toggle {
    position: static;
    inset: auto;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    min-width: 44px;
    height: 44px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #a2aaac;
    border-radius: 999px;
    background: #fff;
    color: #26343b;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    backdrop-filter: none;
    z-index: auto;
  }
  body[data-customer-chrome-v3] .mobile-navigation > .menu-toggle {
    position: static;
    inset: auto;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    padding: 11px;
    margin: 0;
    border: 1px solid #10232d;
    border-radius: 50%;
    color: #fff;
    background: #10232d;
  }
  body[data-customer-chrome-v3] .mobile-navigation > .menu-toggle svg {
    display: block;
    width: 20px;
    height: 20px;
  }
  body[data-customer-chrome-v3] .mobile-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    left: auto;
    width: min(320px, calc(100vw - 32px));
    max-height: calc(100dvh - var(--header-height) - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 1;
  }
  body[data-customer-chrome-v3] .mobile-navigation > button:focus-visible {
    outline: 2px solid #a47d37;
    outline-offset: 4px;
  }
}
@media (max-width: 767px) {
  /* This space formerly accommodated controls floating over the catalogue. */
  body[data-customer-chrome-v3].purchase-page .purchase-content {
    padding-top: 0;
  }
  body[data-customer-chrome-v3] .soul-site-footer,
  body[data-customer-chrome-v3].purchase-page:not(.purchase-commerce-active) .soul-site-footer {
    padding: 18px 24px max(94px, calc(44px + env(safe-area-inset-bottom)));
  }
  body[data-customer-chrome-v3] .soul-footer-top,
  body[data-customer-chrome-v3].purchase-page:not(.purchase-commerce-active) .soul-footer-top {
    display: block;
  }
  body[data-customer-chrome-v3] .soul-footer-section:nth-child(2) {
    border-top: 0;
  }
  body[data-customer-chrome-v3].purchase-page:not(.purchase-commerce-active) .soul-footer-section:last-child {
    border-top: 1px solid #ffffff26;
  }
  body[data-customer-chrome-v3].purchase-page:not(.purchase-commerce-active) .soul-footer-links a {
    font-size: 16px;
  }
}
