.product-miniature__variants {
  position: relative;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
  min-height: 13px;
}

.product-miniature__variants > a.color,
.product-miniature__variants > a.texture {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(21, 49, 79, 0.22);
}

/* Match the virtual-gallery dots even when the global theme loads afterwards. */
body .product-miniature .product-miniature__variants > a.color,
body .product-miniature .product-miniature__variants > a.texture {
  box-shadow: 0 0 0 1px rgba(21, 49, 79, 0.22);
}

.product-miniature__variant-more {
  position: relative;
  flex: 0 0 auto;
}

.product-miniature__variant-more-trigger {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  height: 13px;
  padding: 0;
  color: #17314d;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  list-style: none;
  cursor: pointer;
  letter-spacing: -0.02em;
  white-space: nowrap;
  background: transparent;
  border: 0;
}

body .product-miniature .product-miniature__variant-more-trigger {
  box-shadow: none;
}

.product-miniature__variant-more-trigger::-webkit-details-marker,
.product-miniature__variant-more-trigger::marker {
  content: "";
  display: none;
}

.product-miniature__variant-more[open] .product-miniature__variant-more-trigger,
.product-miniature__variant-more-trigger:hover,
.product-miniature__variant-more-trigger:focus-visible {
  color: var(--bs-primary);
  outline: none;
}

.product-miniature__variant-more-list {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.5rem);
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(6, 13px);
  gap: 5px;
  width: max-content;
  max-width: min(17rem, calc(100vw - 2rem));
  padding: 0.75rem;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  box-shadow: var(--bs-box-shadow-md);
}

.product-miniature__variant-more-list::after {
  position: absolute;
  right: 0.75rem;
  bottom: -0.375rem;
  width: 0.75rem;
  height: 0.75rem;
  content: "";
  background: var(--bs-body-bg);
  border-right: 1px solid var(--bs-border-color);
  border-bottom: 1px solid var(--bs-border-color);
  transform: rotate(45deg);
}

.product-miniature__variant-more-list a {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(21, 49, 79, 0.22);
}

body .product-miniature .product-miniature__variant-more-list a {
  box-shadow: 0 0 0 1px rgba(21, 49, 79, 0.22);
}
