/* Shared shortcuts for the native InSales favorites and cart components. */

.kw-header-utilities {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 2px;
  min-width: 90px;
  max-width: 100%;
}

.kw-header-utility {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

.kw-header-utility__icon {
  display: block;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.kw-header-utility__count {
  position: absolute;
  top: 1px;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding-inline: 4px;
  border: 1px solid #ffffff;
  border-radius: 999px;
  background: #262625;
  color: #ffffff;
  font: 500 10px/1 Arial, Helvetica, sans-serif;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.kw-header-utility__count[hidden],
.kw-header-utility__count.cart-empty,
.kw-header-utility__count.favorites-empty {
  display: none !important;
}

.kw-header-utility[aria-current="page"]::after {
  position: absolute;
  right: 10px;
  bottom: 5px;
  left: 10px;
  height: 1px;
  background: currentColor;
  content: "";
}

.kw-welcome-offer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 3px 0 1px;
  color: #66625e;
  font: 500 12px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: 0.025em;
  text-align: center;
}

.kw-welcome-offer__label,
.kw-welcome-offer__copy {
  white-space: nowrap;
}

.kw-welcome-offer__copy {
  appearance: none;
  padding: 0 1px;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.kw-welcome-offer__copy:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.kw-welcome-offer__status {
  min-width: 0;
  color: #262625;
}

@media (hover: hover) {
  .kw-welcome-offer__copy:hover {
    border-bottom-style: dashed;
  }
}

@media (max-width: 430px) {
  .kw-welcome-offer {
    min-height: 28px;
    gap: 5px;
    font-size: 11px;
  }

  .kw-welcome-offer__status:not(:empty) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (hover: hover) {
  .kw-header-utility:hover .kw-header-utility__icon {
    transform: translateY(-1px);
  }
}

.kw-header-utility:active .kw-header-utility__icon {
  transform: translateY(1px);
}

@media (prefers-reduced-motion: no-preference) {
  .kw-header-utility__icon {
    transition: transform 140ms ease;
  }
}

/* Informational/search pages share the same readable brand header without
   opting their page content into the Design Lab commerce presentation. */
body[data-kw-shop-template="true"]:not([data-kw-design-lab]) .kw-shop-header {
  padding: 0;
  background: var(--kwdl-porcelain, #f7f4ef);
  color: var(--kwdl-ink, #252522);
  font-family: var(--kwdl-font-sans, "PT Root UI", Arial, Helvetica, sans-serif);
}

body[data-kw-shop-template="true"]:not([data-kw-design-lab]) .kw-shop-header__bar {
  min-height: 76px;
  gap: clamp(1.25rem, 2.5vw, 3rem);
}

body[data-kw-shop-template="true"]:not([data-kw-design-lab]) .kw-shop-header .kw-shop-wordmark {
  min-height: 44px;
  justify-content: center;
  color: inherit;
  font-size: 1.3125rem;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.035em;
}

body[data-kw-shop-template="true"]:not([data-kw-design-lab]) .kw-shop-wordmark__craft {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
}

body[data-kw-shop-template="true"]:not([data-kw-design-lab]) .kw-shop-navigation__list {
  gap: clamp(1.25rem, 2.25vw, 2.25rem);
}

body[data-kw-shop-template="true"]:not([data-kw-design-lab]) .kw-shop-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--kwdl-ink-soft, #44433f);
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0.012em;
}

body[data-kw-shop-template="true"]:not([data-kw-design-lab]) .kw-welcome-offer {
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  color: var(--kwdl-ink-soft, #44433f);
  font-family: inherit;
  font-size: 0.875rem;
}

@media (min-width: 760px) {
  body[data-kw-shop-template="true"]:not([data-kw-design-lab]) .kw-shop-header__bar {
    grid-template-columns: minmax(170px, 1fr) auto auto;
  }
}

@media (min-width: 760px) and (max-width: 1023px) {
  body[data-kw-shop-template="true"]:not([data-kw-design-lab]) .kw-shop-header__bar {
    gap: 1rem;
  }

  body[data-kw-shop-template="true"]:not([data-kw-design-lab]) .kw-shop-navigation__list {
    gap: 1.25rem;
  }
}

@media (max-width: 759px) {
  body[data-kw-shop-template="true"]:not([data-kw-design-lab]) .kw-shop-header__bar {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 0.25rem;
  }

  body[data-kw-shop-template="true"]:not([data-kw-design-lab]) .kw-shop-header .kw-shop-wordmark {
    font-size: 1rem;
    letter-spacing: 0.04em;
  }

  body[data-kw-shop-template="true"]:not([data-kw-design-lab]) .kw-shop-wordmark__craft {
    margin-top: 0.2rem;
    font-size: 0.625rem;
  }

  body[data-kw-shop-template="true"]:not([data-kw-design-lab]) .kw-shop-navigation__list {
    gap: 0;
  }

  body[data-kw-shop-template="true"]:not([data-kw-design-lab]) .kw-shop-navigation a {
    display: flex;
    min-height: 46px;
    font-size: 0.9375rem;
  }

  body[data-kw-shop-template="true"]:not([data-kw-design-lab]) .kw-welcome-offer {
    gap: 0.2rem 0.75rem;
  }

  body[data-kw-shop-template="true"]:not([data-kw-design-lab]) .kw-welcome-offer__separator {
    display: none;
  }
}
