.bs24-loop-available-swatches {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  row-gap: 4px;
}
.bs24-loop-available-swatches__row {
  display: flex;
  flex-direction: column;
  column-gap: 6px;
  min-width: 0;
}
.bs24-loop-available-swatches__label {
  font-size: 12px;

  /* line-height: 1; */
  line-height: 2.3;
  align-self: baseline;

  color: #131315;
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
  flex: 0 0 auto;
}
.bs24-loop-available-swatches__label-hint {
  /* color: #6b4b32; */
  font-size: 10px;
}
.bs24-loop-available-swatches__label-hint--hover {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .bs24-loop-available-swatches__label-hint--hover {
    display: inline;
  }
  .bs24-loop-available-swatches__label-hint--touch {
    display: none;
  }
}
.bs24-loop-available-swatches__value {
  display: inline-flex;
  align-items: center;
  column-gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
  /* Leave room for the outer hover ring inside the clipped swatch list. */
  padding: 3px;
}
.bs24-loop-available-swatches .bs24-loop-available-swatches__swatch {
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background-color: #fff;
  overflow: hidden;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}
.bs24-loop-available-swatches__swatch.--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
}
.bs24-loop-available-swatches__swatch.--color {
  background-color: var(--swatch-color, transparent) !important;
}
.bs24-loop-available-swatches__swatch[tabindex] {
  cursor: pointer;
  touch-action: manipulation;
}
.bs24-loop-available-swatches [data-bs24-loop-swatch],
.bs24-loop-available-swatches [data-bs24-loop-swatch] img {
  /* iOS link/image callouts otherwise interrupt the custom long press. */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.bs24-loop-available-swatches [data-bs24-loop-swatch] {
  border: 2px solid #fff;
  box-shadow: var(--wvs-item-box-shadow, 0 0 0 1px #a8a8a8);
  transition: box-shadow 200ms ease;
}
@media (hover: hover) {
  .bs24-loop-available-swatches [data-bs24-loop-swatch][tabindex]:not(.wcplb-selected):hover {
    box-shadow: var(--wvs-hover-item-box-shadow, 0 0 0 3px #ddd);
  }
}
.bs24-loop-available-swatches [data-bs24-loop-swatch]:focus {
  /* Override the legacy theme's important focus outline on samples only. */
  outline: 0 !important;
  outline-offset: 0;
}
.bs24-loop-available-swatches .bs24-loop-available-swatches__swatch.wcplb-selected {
  box-shadow: var(--wvs-selected-item-box-shadow, 0 0 0 2px #000);
}
.bs24-loop-available-swatches .bs24-loop-available-swatches__swatch.wcplb-swatch-loading {
  position: relative;
  overflow: visible;
  box-shadow: 0 0 0 1px #e67e32;
  transition: none;
}
.bs24-loop-available-swatches__swatch.wcplb-swatch-loading > img {
  border-radius: inherit;
}
.bs24-loop-available-swatches__swatch.wcplb-swatch-loading::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid #f8d4b3;
  border-top-color: #e67e32;
  border-right-color: #e67e32;
  border-radius: inherit;
  pointer-events: none;
  animation: wcplb-loading-spin 700ms linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .bs24-loop-available-swatches [data-bs24-loop-swatch] {
    transition: none;
  }
  .bs24-loop-available-swatches__swatch.wcplb-swatch-loading::after {
    animation: none;
  }
}
.bs24-loop-available-swatches__more {
  padding: 0;
  margin: 0;
  min-width: 0;
  min-height: 0;
  font-size: 10px;
  line-height: 1;
  font-weight: 500;
  background-color: #fff;
  color: #131315;
}
.bs24-loop-available-swatches [hidden] {
  display: none !important;
}
.bs24-loop-available-swatches__value[data-wcplb-expanded="1"] {
  flex-wrap: wrap;
  row-gap: 6px;
  white-space: normal;
  overflow: visible;
}
.bs24-loop-available-swatches[aria-busy="true"] {
  opacity: 0.65;
}
ul.products li.product {
  min-width: 0;
}
ul.products li.product .transparentOverlay {
  position: relative;
}
ul.products li.product .transparentOverlay .bs24-product-image-link > img {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
}
.wcplb-gallery {
  position: relative;
  touch-action: pan-y pinch-zoom;
}
ul.products li.product .wcplb-gallery .bs24-product-image-link {
  aspect-ratio: 1;
}
ul.products li.product .wcplb-gallery .bs24-product-image-link > img {
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
}
ul.products li.product .wcplb-gallery-arrow {
  display: none;
  position: absolute;
  top: 38%;
  z-index: 1;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.33);
  color: #222;
  font: 22px/1 sans-serif;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease,
    color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}
/* Match the gallery's translucent controls and the theme's warm accent. */
@media (hover: hover) and (pointer: fine) {
  ul.products li.product .wcplb-gallery:not([aria-busy="true"]) .wcplb-gallery-arrow:hover {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: #e67e32;
    color: #e67e32;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
  }
}
@media (prefers-reduced-motion: reduce) {
  ul.products li.product .wcplb-gallery-arrow {
    transition: none;
    transform: none;
  }
  ul.products li.product .wcplb-gallery:not([aria-busy="true"]) .wcplb-gallery-arrow:hover {
    transform: none;
  }
}
ul.products li.product .wcplb-gallery-ready .wcplb-gallery-arrow:not([hidden]) { display: block; }
.wcplb-gallery-prev { left: 2px; }
.wcplb-gallery-next { right: 2px; }
.wcplb-gallery-arrow:focus-visible { outline: 2px solid #e67e32; outline-offset: 2px; }
.wcplb-gallery[aria-busy="true"] .wcplb-gallery-arrow { opacity: 0.5; cursor: progress; }
ul.products li.product .wcplb-image-stage {
  position: relative;
}
ul.products li.product img.wcplb-image-ghost {
  position: absolute;
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
  user-select: none;
}
ul.products li.product .wcplb-price-stage {
  position: relative;
}
ul.products li.product .wcplb-price-ghost {
  position: absolute;
  margin: 0 !important;
  pointer-events: none;
  user-select: none;
}
ul.products li.product .transparentOverlay .bs24-loop-available-swatches {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  margin-top: 0;
  z-index: 2;
  padding: 6px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.3);
  transition: background-color 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}
ul.products li.product .transparentOverlay .bs24-loop-available-swatches:hover,
ul.products
  li.product
  .transparentOverlay
  .bs24-loop-available-swatches:focus-within {
  background-color: rgba(255, 255, 255, 0.82);
}
ul.products
  li.product
  .transparentOverlay
  .bs24-loop-available-swatches__label {
  font-size: 10px;
}
.wcplb-status--error {
  display: block;
  font-size: 12px;
  line-height: 1.3;
  color: #b32d2e;
  background: #fff;
  padding: 4px;
}
ul.products li.product .bs24-loop-available-swatches.wcplb-swatches-between {
  position: relative;
  inset: auto;
  margin: 4px 0 12px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* Reuse the theme's global loader, revealing it immediately on navigation. */
.preloader.wcplb-page-exit-loading {
  opacity: 1;
  visibility: visible;
  transition: none;
}
.wcplb-preview-backdrop {
  --wcplb-card-radius: 16px;
  z-index: 99999;
}
.wcplb-preview {
  position: fixed;
  box-sizing: border-box;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 180px;
  max-width: calc(100vw - 16px);
  padding: 10px;
  background: #fff;
  color: #131315;
  border-radius: 10px;
  box-shadow: 0 8px 24px #0003;
  pointer-events: none;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}
.wcplb-preview[hidden] {
  display: none;
}
.wcplb-hover-loader {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 16px);
  padding: 8px 12px;
  border-radius: 8px;
  background: #fffffff2;
  box-shadow: 0 2px 12px #0002;
  color: #131315;
  font-size: 12px;
  line-height: 1.4;
  pointer-events: none;
}
.wcplb-hover-loader::before {
  content: '';
  flex: 0 0 16px;
  height: 16px;
  border: 2px solid #ddd;
  border-top-color: #e67e32;
  border-radius: 50%;
  animation: wcplb-loading-spin 700ms linear infinite;
}
/* Price and Omnibus stay readable while loading; their value changes share a crossfade. */
/* Match the warm neutral skeleton palette and 1.2s rhythm of the cart drawer. */
li.product.wcplb-image-loading .bs24-product-image-link,
li.product.wcplb-card-loading :is(.bs24-product-dimensions-summary, .bs24-badge-list .bs24-badge.--sale) {
  position: relative;
  /* Clip the shimmer without changing the thumbnail's collapsing margins. */
  overflow: clip;
  background-color: #f2eee8;
  border-radius: 8px;
  isolation: isolate;
}
li.product.wcplb-image-loading .bs24-product-image-link > img {
  filter: blur(5px);
  opacity: 0.45;
}
li.product.wcplb-card-loading :is(.bs24-product-dimensions-summary, .bs24-badge-list .bs24-badge.--sale) {
  color: transparent;
}
li.product.wcplb-card-loading :is(.bs24-product-dimensions-summary, .bs24-badge-list .bs24-badge.--sale) > * {
  filter: blur(3px);
  opacity: 0.18;
}
li.product.wcplb-card-loading .bs24-badge-list .bs24-badge.--sale {
  border-radius: 9999px;
}
li.product.wcplb-image-loading .bs24-product-image-link::after,
li.product.wcplb-card-loading :is(.bs24-product-dimensions-summary, .bs24-badge-list .bs24-badge.--sale)::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, transparent, #faf8f4cc, transparent);
  transform: translateX(-100%);
  animation: wcplb-skeleton-shimmer 1.2s linear infinite;
  pointer-events: none;
}
@keyframes wcplb-skeleton-shimmer {
  to { transform: translateX(100%); }
}
@keyframes wcplb-loading-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .wcplb-hover-loader::before { animation: none; }
  li.product.wcplb-image-loading .bs24-product-image-link::after,
  li.product.wcplb-card-loading :is(.bs24-product-dimensions-summary, .bs24-badge-list .bs24-badge.--sale)::after {
    animation: none;
    transform: none;
  }
}
.wcplb-preview > img,
.wcplb-preview > span:first-child {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 6px;
}
@media (max-width: 768px) {
  .bs24-loop-available-swatches .bs24-loop-available-swatches__swatch {
    width: 20px;
    height: 20px;
  }
}
