/* Customer-facing accessibility, touch-target and overflow corrections. */

.template-product {
  overflow-x: clip !important;
  max-width: 100%;
  width: 100%;
}

.template-product .f-media-gallery,
.template-product .f-media-gallery__inner,
.template-product .f-media-gallery__wrapper,
.template-product .f-product-media--wrapper,
.template-product .f-product-media--slider,
.template-product .f-product-media--slider__images {
  min-width: 0;
  max-width: 100%;
}

.template-product .f-media-gallery__inner {
  overflow: hidden;
}

html:has(body.template-product) {
  max-width: 100%;
  overflow-x: clip;
}

:where(a, button, input, select, textarea, [role="button"]):focus-visible {
  outline: 3px solid #b78a35 !important;
  outline-offset: 2px !important;
}

.kiki-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;
}

button.f-menu-button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  pointer-events: auto;
}

button.f-menu-mobile__toggle-button {
  min-width: 48px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  appearance: none;
}

.f-menu-mobile__link {
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

button.f-menu-mobile__link {
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  appearance: none;
}

.policy-bottom-bar button.ck-button {
  min-height: 44px;
  border: 0;
  border-radius: 2px;
  font-family: inherit;
  appearance: none;
}

.f-header__search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.f-header-cart {
  min-width: 44px;
  min-height: 44px;
}

@media screen and (max-width: 767px) {
  .f-product-card__action .f-product-quickview-button,
  .f-product-card__action-icons .f-button--icon {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  .f-collection-toolbar .f-sidebar--open,
  .f-collection-toolbar .f-sortby--open {
    min-height: 44px !important;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .f-dot {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin: 0 -8px !important;
    background: transparent !important;
  }

  .f-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
  }

  .f-dot--active::before {
    background: currentColor;
  }

  /* Tiny image-pagination dots are redundant with swipe navigation. */
  .f-product-media--mobile .swiper-pagination {
    display: none !important;
  }
}

.social-media-links--item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
