.scg-color-carousel {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.summary .variations_form table.variations:has(.scg-color-carousel) {
  width: 100%;
}

.summary .variations_form .variations tr:has(.scg-color-carousel) {
  display: flex;
  align-items: center;
  width: 100%;
}

.summary .variations_form .variations tr:has(.scg-color-carousel) > td.label {
  flex: 0 0 auto;
  width: auto !important;
}

.summary .variations_form .variations td.value:has(.scg-color-carousel) {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
}

.summary .color-swatches.with-swatches:has(.scg-color-carousel) {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.summary .color-swatches .scg-color-carousel {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.summary .color-swatches .scg-color-track {
  flex: 1 1 0%;
  width: 1px;
  min-width: 0;
  max-width: 100%;
  min-height: 30px;
}

.scg-color-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  min-width: 0;
  flex: 1 1 auto;
  scroll-behavior: smooth;
  padding: 5px 2px;
  box-sizing: border-box;
}

.scg-color-track::-webkit-scrollbar {
  display: none;
}

.scg-color-track > .swatch {
  flex: 0 0 auto;
}

.scg-color-arrow {
  box-sizing: border-box;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  padding: 0 !important;
  margin: 0;
  border: 1px solid #e3e3e3 !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #333 !important;
  opacity: 1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0 !important;
  flex: 0 0 22px;
  cursor: pointer;
  text-transform: none !important;
}

.scg-color-arrow svg {
  width: 12px;
  height: 12px;
  display: block;
  fill: none;
  stroke: currentColor;
}

.scg-color-arrow:hover,
.scg-color-arrow:focus {
  background: #fff !important;
  color: #111 !important;
  border-color: #cfcfcf !important;
  opacity: 1 !important;
}

.scg-color-arrow[disabled] {
  opacity: 0.35 !important;
  cursor: default;
}

.product-inner .product-image > .scg-color-carousel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  z-index: 5;
  background: #fff;
  padding: 8px 6px 6px;
  opacity: 0;
  transition: all 300ms ease-in-out;
}

.product-inner:hover .product-image > .scg-color-carousel,
.product-inner:focus-within .product-image > .scg-color-carousel {
  bottom: 0;
  opacity: 1;
}

.product-inner .product-image > .scg-color-carousel > .shop-swatches {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  opacity: 1 !important;
  background: transparent !important;
  padding: 5px 2px !important;
  margin: 0 !important;
}
