.d8f-variation-select {
  display: none !important;
}

.d8f-variation-group-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 3px;
  color: #222;
  font-size: 12px;
  line-height: 1.2;
  flex-wrap: wrap;
}

.d8f-variation-group-header__label {
  font-weight: 500;
  color: #4b5563;
}

.d8f-variation-group-header__value {
  font-weight: 700;
}

.d8f-variation-group-header__guide {
  margin-left: auto;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.d8f-variation-group-header__guide:hover,
.d8f-variation-group-header__guide:focus {
  color: #111827;
  text-decoration: underline;
}

.d8f-variation-group-header:not(.has-selection) .d8f-variation-group-header__value::after {
  content: "Choose an option";
  color: #8a8a8a;
  font-weight: 500;
}

.d8f-variation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
}

.d8f-variation-button {
  min-width: 38px;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: #222;
  font-size: 11px;
  line-height: 1.2;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color .16s ease, box-shadow .16s ease, color .16s ease;
}

.d8f-variation-button:hover,
.d8f-variation-button:focus {
  border-color: #111;
  color: #111;
  outline: none;
}

.d8f-variation-button.is-selected {
  border-color: #111;
  background: #fff;
  color: #111;
  box-shadow: 0 0 0 1px #111 inset;
}

.d8f-variation-button.is-image-option {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: #fff;
}

.d8f-variation-button.is-image-option:hover,
.d8f-variation-button.is-image-option:focus {
  background: #fff;
}

.d8f-variation-button.is-image-option.is-selected {
  background: #fff;
  color: inherit;
  box-shadow: 0 0 0 1px #111 inset;
}

.d8f-variation-button__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.d8f-variation-buttons.is-color-group {
  gap: 8px;
}

.d8f-variation-button.is-color-swatch {
  position: relative;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 2px;
  border-radius: 999px;
  background: #fff;
}

.d8f-variation-button.is-color-swatch:hover,
.d8f-variation-button.is-color-swatch:focus {
  border-color: #111;
  background: #fff;
}

.d8f-variation-button.is-color-swatch.is-selected {
  border-color: #111;
  background: #fff;
  box-shadow: 0 0 0 1px #111;
}

.d8f-color-swatch {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: inherit;
}

.d8f-variation-button.is-disabled,
.d8f-variation-button:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.variations tr td.label,
.variations tr th.label,
.variations tr .label {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.variations td.value,
.variations th.value {
  display: block;
  width: 100%;
  padding-bottom: 0;
}

.variations tr {
  display: block;
  margin-bottom: 0;
  padding: 0;
}

.single-product .variations_form {
  margin: 6px 0 8px;
}

.single-product .variations_form .variations {
  margin: 0;
  padding: 8px 9px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 8px;
  background: #fcfbf8;
}

.single-product .variations_form .variations tr + tr {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.variations .reset_variations {
  top: 0;
  right: 0;
  bottom: auto;
  color: #9c9489;
  font-size: 11px;
  font-weight: 500;
  opacity: 1;
  letter-spacing: 0;
}

.single-product .variations {
  margin-bottom: 0;
}

.single-product .variations_button {
  padding-top: 2px;
}

.single-product .summary .cart {
  margin-top: 4px;
}

.single-product .summary .quantity {
  margin-bottom: 0;
}

.single-product .summary .variations .label,
.single-product .summary .variations label {
  margin: 0;
}

@media only screen and (max-width: 48em) {
  .d8f-variation-group-header {
    gap: 4px;
    margin-bottom: 3px;
    font-size: 11px;
  }

  .d8f-variation-group-header__guide {
    font-size: 10px;
  }

  .d8f-variation-buttons {
    gap: 4px;
  }

  .d8f-variation-button {
    min-width: 34px;
    min-height: 29px;
    padding: 4px 7px;
    font-size: 11px;
  }

  .d8f-variation-button.is-color-swatch {
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
  }

  .variations td.value,
  .variations th.value {
    padding-bottom: 0;
  }

  .single-product .variations_form {
    margin: 5px 0 7px;
  }

  .single-product .variations_form .variations {
    padding: 6px 7px;
    border-radius: 7px;
  }

  .single-product .variations_form .variations tr + tr {
    margin-top: 5px;
    padding-top: 5px;
  }

  .single-product .summary .cart {
    margin-top: 4px;
  }
}
