.product-color-picker {
  position: absolute;
  inset: auto 0 0;
  height: 32px;
  display: flex;
  align-items: center;
  direction: ltr;
  min-width: 0;
}

.product-item .product-description.product-description-fixed {
  box-sizing: border-box;
  height: var(--product-description-height);
  flex-shrink: 0;
}

.product-item .product-description.product-description-fixed .stock {
  height: auto;
  min-height: 1rem;
}

.product-item .product-description-compact .product-title {
  -webkit-line-clamp: 1;
  max-height: 1.25em;
}

.product-item .product-description.product-description-compact > div > * {
  margin-top: 0;
}

@media screen and (max-width: 500px) {
  .product-item .product-description.product-description-compact {
    padding-top: 0;
  }

}

.product-color-options {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  justify-content: safe center;
  gap: 2px;
  padding: 2px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.product-color-options::-webkit-scrollbar {
  display: none;
}

.product-color-option,
.product-color-scroll {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.product-color-option {
  width: 27px;
  height: 28px;
}

.product-color-option::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #aaa;
  background: var(--swatch);
}

.product-color-option[aria-pressed="true"]::before {
  box-shadow: 0 0 0 2px #222;
}

.product-color-option:focus-visible,
.product-color-scroll:focus-visible {
  outline: 2px solid #222;
  outline-offset: -2px;
}

.product-color-scroll {
  width: 24px;
  height: 32px;
  font: 24px/1 Arial, sans-serif;
}

.product-color-scroll[hidden] {
  display: none;
}

.product-color-scroll[aria-disabled="true"] {
  opacity: .4;
  cursor: default;
}
