.variations tr {
  margin: 0;
}

.variations th {
  padding: 0 0 10px;
}

.variations th label {
  font-size: 16px;
  font-weight: 400;
}
.thwvsf-wrapper-ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.attribute_pa_type_product .thwvsf-label-li,
.attribute_pa_type_of_ends .thwvsf-label-li {
  min-width: 200px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid #D5D5D5;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

/* hover */
.attribute_pa_type_product .thwvsf-label-li:hover,
.attribute_pa_type_of_ends .thwvsf-label-li:hover {
  border-color: #2F3E2E;
}

/* selected */
.attribute_pa_type_product .thwvsf-label-li.thwvsf-selected,
.attribute_pa_type_of_ends .thwvsf-label-li.thwvsf-selected {
  border-color: #2F3E2E;
}
.thwvsf-wrapper-ul .thwvsf-item-span.item-span-text{
  display: flex;
  flex-direction: column;
  padding: 0;
}

.thwvsf-item-span.item-span-text::after {
  content: attr(title);
  font-size: 13px;
  color: #666;
}
.attribute_pa_number_of_dreads .thwvsf-label-li,
.attribute_pa_length .thwvsf-label-li {
  padding: 8px 14px;
  border-radius: 10px;
  border: 2px solid #D5D5D5;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
}

/* hover */
.attribute_pa_number_of_dreads .thwvsf-label-li:hover,
.attribute_pa_length .thwvsf-label-li:hover {
  border-color: #2F3E2E;
}

/* selected */
.attribute_pa_number_of_dreads .thwvsf-label-li.thwvsf-selected,
.attribute_pa_length .thwvsf-label-li.thwvsf-selected {
  border-color: #2F3E2E;
}
.thwvsf-color-li {
  width: 44px;
  height: 32px;
  border-radius: 8px;
  border: 2px solid #D5D5D5;
  padding: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* сам цвет */
.thwvsf_fields .thwvsf-wrapper-ul .thwvsf-item-span-color{
  width: 100%;
  height: 100%;
  border-radius: 8px;
}
.thwvsf_fields .thwvsf-wrapper-ul .thwvsf-wrapper-item-li:hover{
  box-shadow:none;
  border: 1px solid #3c4433;
}
/* hover */
.thwvsf-color-li:hover {
  border-color: #2F3E2E;
}

/* selected */
.thwvsf-color-li.thwvsf-selected {
  border-color: #2F3E2E;
}
.thwvsf-wrapper-ul .thwvsf-wrapper-item-li.thwvsf-color-li {
    width: 68px;
    height: 32px;
    border: 1px solid #d5d5d5;
    box-shadow: none;
    margin: 0;
    padding: 2px;
}
.thwvs-select {
  display: none !important;
}
/* Таблицу в блоки */
.variations,
.variations tbody {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.variations tr {
  display: flex;
  flex-direction: column;
}

.variations th,
.variations td {
  display: block;
  padding: 0;
  border: 0;
}
.variations th.label {
  margin-bottom: 12px;
  text-align: left;
}

.variations th.label label {
  font-size: 16px;
  font-weight: 400;
  color: #000;
}
.variations td.value {
  width: 100%;
}
.thwvsf-wrapper-ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.attribute_pa_type_product .thwvsf-label-li,
.attribute_pa_type_of_ends .thwvsf-label-li {
  min-width: 200px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid #D5D5D5;
  background: #fff;
  cursor: pointer;
  transition: border-color .2s;
}

.attribute_pa_type_product .thwvsf-label-li:hover,
.attribute_pa_type_of_ends .thwvsf-label-li:hover {
  border-color: #2F3E2E;
}

.attribute_pa_type_product .thwvsf-label-li.thwvsf-selected,
.attribute_pa_type_of_ends .thwvsf-label-li.thwvsf-selected {
  border-color: #2F3E2E;
}
.thwvsf-item-span.item-span-text {
  display: flex;
  flex-direction: column;
}

.thwvsf-item-span.item-span-text::after {
  content: attr(title);
  font-size: 13px;
  color: #666;
}
.attribute_pa_number_of_dreads .thwvsf-label-li,
.attribute_pa_length .thwvsf-label-li {
  padding: 8px 14px;
  border-radius: 10px;
  border: 2px solid #D5D5D5;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}

.attribute_pa_number_of_dreads .thwvsf-label-li:hover,
.attribute_pa_length .thwvsf-label-li:hover {
  border-color: #2F3E2E;
}

.attribute_pa_number_of_dreads .thwvsf-label-li.thwvsf-selected,
.attribute_pa_length .thwvsf-label-li.thwvsf-selected {
  border-color: #2F3E2E;
}
.thwvsf_fields .thwvsf-wrapper-ul .thwvsf-wrapper-item-li.thwvsf-label-li.attribute_pa_length{
  min-width: 68px;
  height: 32px;
}
.thwvsf_fields .thwvsf-wrapper-ul .thwvsf-wrapper-item-li.thwvsf-label-li.attribute_pa_type_of_ends{
  min-width: 145px;
  height: 45px;
}
.thwvsf_fields .thwvsf-wrapper-ul .thwvsf-wrapper-item-li.thwvsf-label-li.attribute_pa_number_of_dreads{
  height: 42px;
  min-width: 130px;
}
.thwvsf_fields .thwvsf-wrapper-ul .thwvsf-wrapper-item-li.thwvsf-label-li{
  height: 32px;
  min-width: 68px;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  box-shadow: none;
  padding: 0;
  margin: 0;
}
.thwvsf_fields .thwvsf-wrapper-ul .thwvsf-wrapper-item-li.thwvsf-label-li:hover,.thwvsf_fields .thwvsf-wrapper-ul .thwvsf-wrapper-item-li.thwvsf-label-li:focus{
  border-color: #3c4433;
}
.thwvsf_fields .thwvsf-wrapper-ul .thwvsf-wrapper-item-li.thwvsf-selected,.thwvsf_fields .thwvsf-wrapper-ul .thwvsf-wrapper-item-li.thwvsf-selected:hover{
  box-shadow: none;
}
.thwvsf_fields .thwvsf-wrapper-ul .thwvsf-item-span.item-span-text{
  padding: 0;
  margin: 0;
}
.thwvsf_fields .thwvsf-wrapper-ul .thwvsf-wrapper-item-li:before{
  box-shadow: none;
  border: 2px solid transparent;
  border-radius: 8px;
  bottom: 0;
  content: "";
  height: 100%;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  width: 100%;
  z-index: 2;
}
.thwvsf_fields .thwvsf-wrapper-ul .thwvsf-wrapper-item-li.thwvsf-color-li:before {
    border: 2px solid transparent;
    border-radius: 8px;
    content: "";
    height: 100%;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 100%;
}
/*.thwvsf_fields .thwvsf-wrapper-ul .thwvsf-wrapper-item-li.thwvsf-selected::before,*/.thwvsf_fields .thwvsf-wrapper-ul .thwvsf-wrapper-item-li.thwvsf-selected{
  border-color: #3c4433;
}
.thwvsf_fields .thwvsf-wrapper-ul .thwvsf-wrapper-item-li.thwvsf-selected{border-width: 2px;}
.thwvsf_fields .thwvsf-wrapper-ul .thwvsf-wrapper-item-li.thwvsf-color-li.thwvsf-selected:before{
  border-color: transparent;
}