/* Child-theme radio swatches for WoodMart single product variations. No JavaScript override. */
.single-product .variations_form .wd-swatches-single {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}

/* Remove the colon that WoodMart/CSS may add after variation labels. */
.single-product .variations_form .variations th.label label::after,
.single-product .variations_form .variations th.wd-child-variation-label label::after {
  content: none !important;
  display: none !important;
}

.single-product .variations_form .wd-swatches-single > .wd-swatch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 40px;
  height: auto;
  padding: 0;
  border: 0 !important;
  border-radius: 10px;
  background: transparent !important;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: none !important;
  outline: none !important;
}

.single-product .variations_form .wd-swatches-single > .wd-swatch .wd-swatch-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.single-product .variations_form .wd-swatches-single > .wd-swatch .wd-swatch-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 0 16px;
  border: 2px solid #eaeaea;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  line-height: 1;
  text-decoration: none !important;
  transition: border-color .15s ease;
}

.single-product .variations_form .wd-swatches-single > .wd-swatch.wd-active .wd-swatch-label,
.single-product .variations_form .wd-swatches-single > .wd-swatch.selected .wd-swatch-label {
  border-color: #212121;
}

/* Keep a keyboard-visible focus state without creating the double border on mouse click. */
.single-product .variations_form .wd-swatches-single > .wd-swatch .wd-swatch-radio:focus-visible + .wd-swatch-label {
  outline: 2px solid #212121;
  outline-offset: 2px;
}

.single-product .variations_form .wd-swatches-single > .wd-swatch::before,
.single-product .variations_form .wd-swatches-single > .wd-swatch::after,
.single-product .variations_form .wd-swatches-single > .wd-swatch .wd-swatch-text::before,
.single-product .variations_form .wd-swatches-single > .wd-swatch .wd-swatch-text::after,
.single-product .variations_form .wd-swatches-single > .wd-swatch .wd-swatch-label::before,
.single-product .variations_form .wd-swatches-single > .wd-swatch .wd-swatch-label::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  transform: none !important;
  animation: none !important;
  box-shadow: none !important;
}

.single-product .variations_form .wd-swatches-single > .wd-swatch .wd-swatch-text {
  line-height: 1;
  text-decoration: none !important;
}
