/* Production audit remediation · 2026-07-16 */

.hc-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hc-u-hidden {
  display: none !important;
}

/* The comparison state is already available in the header; keep the floating
   confirmation only where products are actively being selected. */
body:not(.page-catalog) .hc-compare-bar {
  display: none !important;
}

.hc-livechat__form-title {
  margin: 0;
  font-weight: 600;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #a9885f;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  /* Put purchasable content before the large category directory. */
  .page-catalog .hc-cat-main {
    display: flex;
    flex-direction: column;
  }
  .page-catalog .hc-cat-main > * { order: 4; }
  .page-catalog .hc-cat-main > .hc-cat-toolbar { order: 1; }
  .page-catalog .hc-cat-main > .hc-cat-results-wrap { order: 2; }
  .page-catalog .hc-cat-main > .hc-cat-category-directory {
    order: 3;
    margin-top: 24px;
  }

  .hc-cat-toolbar__view-btn,
  .hc-cat-toolbar__filter-trigger,
  .hc-pcard button,
  .hc-pcard [role="button"] {
    min-width: 44px;
    min-height: 44px;
  }

  .hc-mobile-tabbar__item b {
    font-size: 9px;
    letter-spacing: 0;
  }

  /* Keep the chat above the persistent mobile navigation. */
  body:not(.page-pdp) .hc-livechat {
    bottom: 88px;
  }

  body:not(.page-pdp):not(.page-compare) .hc-compare-bar {
    bottom: 88px;
  }

  /* PDP and comparison already expose these actions; floating bars obscured content. */
  body.page-pdp .hc-livechat,
  body.page-pdp .hc-compare-bar,
  body.page-compare .hc-compare-bar {
    display: none;
  }

  .page-pdp-v2 .pv2 .crumbs {
    font-size: 13px;
    line-height: 1.55;
  }
}

@media (max-width: 480px) {
  /* Compare is available in the bottom bar; account remains in the burger menu. */
  .hc-hdr__right a[href="/compare"],
  .hc-hdr__right a[href="/account"] {
    display: none;
  }
  .hc-hdr__burger,
  .hc-hdr__ico {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
}

/* Comparison: keep product columns usable on narrow screens without widening the page. */
.page-compare .hc-cmp-scroll-hint {
  display: none;
  margin: 0 0 8px;
  color: var(--hc-muted, #6d6862);
  font-size: 12px;
}

.page-compare .hc-cmp-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid rgba(180, 151, 115, 0.18);
  border-radius: 14px;
  scrollbar-width: thin;
}

.page-compare .hc-cmp-wrap:focus-visible {
  outline: 3px solid rgba(139, 115, 85, 0.45);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .page-compare .hc-cmp-scroll-hint { display: block; }
  .page-compare .hc-cmp-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
  }
  .page-compare .hc-cmp-head > div:first-child {
    flex: 1 0 100%;
    grid-column: 1;
    grid-row: 1;
    width: 100%;
  }
  .page-compare .hc-cmp-head__controls {
    display: grid;
    flex: 1 0 100%;
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .page-compare .hc-cmp-head__controls > * { width: 100%; }
  .page-compare .hc-chip--toggle {
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .page-compare .hc-cmp-tbl { min-width: max(600px, calc(132px + 220px * var(--compare-count, 2))); }
  .page-compare .hc-cmp-tbl__lbl {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 128px;
    width: 128px;
    box-shadow: 1px 0 0 rgba(180, 151, 115, 0.18);
  }
  .page-compare .hc-cmp-tbl thead .hc-cmp-tbl__lbl { z-index: 4; }
  .page-compare .hc-cmp-tbl tfoot .hc-cmp-tbl__lbl { z-index: 3; }
}
