/* 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;
  }
}
