/* Volume attribute swatches — ASCII-safe selectors (data-value), clean layout */
.woo-variation-items-wrapper ul.variable-items-wrapper[data-attribute_name="attribute_pa_volume"],
ul.variable-items-wrapper.image-variable-items-wrapper[data-attribute_name="attribute_pa_volume"] {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  height: auto !important;
  min-height: 0 !important;
}

.elementor-3202 #cart-variation .woo-variation-items-wrapper,
.elementor-3202 #cart-variation td.value.woo-variation-items-wrapper {
  overflow: visible !important;
  height: auto !important;
  vertical-align: top !important;
}

ul.variable-items-wrapper[data-attribute_name="attribute_pa_volume"] .variable-item {
  width: 88px !important;
  min-width: 88px !important;
  max-width: 88px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: none !important;
  background-image: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-sizing: content-box !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: 0 !important;
  float: none !important;
}

/* Defeat WVS fixed square size that clips labels */
.woo-variation-swatches .variable-items-wrapper[data-attribute_name="attribute_pa_volume"] .variable-item,
.wvs-style-squared.variable-items-wrapper[data-attribute_name="attribute_pa_volume"] .variable-item,
.image-variable-items-wrapper[data-attribute_name="attribute_pa_volume"] .variable-item {
  width: 88px !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

ul.variable-items-wrapper[data-attribute_name="attribute_pa_volume"] .variable-item-contents,
ul.variable-items-wrapper[data-attribute_name="attribute_pa_volume"] .variable-item-image {
  display: none !important;
}

ul.variable-items-wrapper[data-attribute_name="attribute_pa_volume"] .shopi-volume-swatch {
  display: block !important;
  width: 88px !important;
  height: 88px !important;
  min-width: 88px !important;
  min-height: 88px !important;
  flex: 0 0 88px !important;
  border-radius: 10px !important;
  border: 1px solid #e6ebf2 !important;
  background-color: #f5f1ea !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 100% auto !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

ul.variable-items-wrapper[data-attribute_name="attribute_pa_volume"] .variable-item.selected .shopi-volume-swatch,
ul.variable-items-wrapper[data-attribute_name="attribute_pa_volume"] .variable-item[aria-checked="true"] .shopi-volume-swatch {
  border-color: #192435 !important;
  border-width: 2px !important;
  box-shadow: 0 0 0 1px rgba(25, 36, 53, 0.08);
}

/* data-value uses ASCII percent-encoding — reliable across LiteSpeed/CSS combine */
ul.variable-items-wrapper[data-attribute_name="attribute_pa_volume"] .variable-item[data-value="30-%d9%85%db%8c%d9%84"] .shopi-volume-swatch {
  background-image: url("../images/volume/30ml.webp") !important;
}

ul.variable-items-wrapper[data-attribute_name="attribute_pa_volume"] .variable-item[data-value="50-%d9%85%db%8c%d9%84"] .shopi-volume-swatch {
  background-image: url("../images/volume/50ml.webp") !important;
}

ul.variable-items-wrapper[data-attribute_name="attribute_pa_volume"] .variable-item[data-value="100-%d9%85%db%8c%d9%84"] .shopi-volume-swatch {
  background-image: url("../images/volume/100ml.webp") !important;
}

ul.variable-items-wrapper[data-attribute_name="attribute_pa_volume"] .shopi-volume-label {
  display: block !important;
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  color: #192435 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  text-align: center !important;
  white-space: nowrap !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
  transform: none !important;
  background: none !important;
  box-shadow: none !important;
  z-index: 1 !important;
}

@media (max-width: 767px) {
  ul.variable-items-wrapper[data-attribute_name="attribute_pa_volume"] {
    gap: 10px !important;
  }

  ul.variable-items-wrapper[data-attribute_name="attribute_pa_volume"] .variable-item {
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
  }

  ul.variable-items-wrapper[data-attribute_name="attribute_pa_volume"] .shopi-volume-swatch {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    min-height: 76px !important;
    flex-basis: 76px !important;
  }

  ul.variable-items-wrapper[data-attribute_name="attribute_pa_volume"] .shopi-volume-label {
    font-size: 11px !important;
    margin-top: 6px !important;
  }
}
