/* Sally variation shade swatches */
body.single-product select.sally-variation-select-hidden,
body.single-product .woocommerce div.product form.cart .variations select.sally-variation-select-hidden,
body.single-product .woocommerce div.product form.cart .variations select[name^="attribute_"].sally-variation-select-hidden {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body.single-product .sally-variation-ui-hidden,
body.single-product .select2-container.sally-variation-ui-hidden,
body.single-product .nice-select.sally-variation-ui-hidden,
body.single-product .ct-select-dropdown.sally-variation-ui-hidden {
  display: none !important;
}

body.single-product .woocommerce div.product form.cart .variations .sally-variation-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 26px;
  align-items: flex-start;
  margin: 12px 0 18px;
  max-width: 100%;
}

body.single-product .sally-variation-swatch {
  width: 110px;
  min-height: 82px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border: 0;
  background: transparent !important;
  box-shadow: none;
  cursor: pointer;
  padding: 0 4px;
  position: relative;
  text-align: center;
  color: #3d0d2e;
  box-sizing: border-box;
}

body.single-product .sally-variation-swatch::before {
  content: "";
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 999px;
  border: 2px solid rgba(167, 15, 95, .20);
  background-color: var(--sally-swatch-color, #fff0f6);
  background-image: var(--sally-swatch-image, none);
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 20px rgba(167, 15, 95, .09);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

body.single-product .sally-variation-swatch:hover::before {
  transform: translateY(-2px);
  border-color: rgba(167, 15, 95, .42);
  box-shadow: 0 14px 26px rgba(167, 15, 95, .14);
}

body.single-product .sally-variation-swatch.is-selected::before {
  border-color: #3d0d2e;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #3d0d2e, 0 14px 26px rgba(167, 15, 95, .16);
}


body.single-product .sally-variation-swatch-label {
  display: block;
  position: static;
  transform: none;
  width: 100%;
  max-width: 110px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #3d0d2e;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.18;
  opacity: 1;
  pointer-events: none;
  z-index: 1;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

body.single-product .woocommerce div.product form.cart .variations td,
body.single-product .woocommerce div.product form.cart .variations th {
  vertical-align: top;
}

body.single-product .woocommerce div.product form.cart .variations .reset_variations {
  color: #a70f5f !important;
  font-weight: 800;
  margin-left: 8px;
}

@media (max-width: 640px) {
  body.single-product .woocommerce div.product form.cart .variations .sally-variation-swatches {
    gap: 18px 16px;
    margin-top: 10px;
  }

  body.single-product .sally-variation-swatch {
    width: 92px;
    min-height: 78px;
    padding: 0 3px;
  }

  body.single-product .sally-variation-swatch::before {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  body.single-product .sally-variation-swatch-label {
    font-size: 10.5px;
    max-width: 92px;
  }
}

@media (max-width: 390px) {
  body.single-product .woocommerce div.product form.cart .variations .sally-variation-swatches {
    gap: 16px 10px;
  }

  body.single-product .sally-variation-swatch {
    width: calc(33.333% - 8px);
    min-width: 82px;
  }
}
