.wpcvs-empty, .wpcvs-terms + select:not(.wpcvs-select), .wpcvs-term.wpcvs-disabled:after, .wpcvs-term.wpcvs-disabled:before {
  display: none !important;
}

.wpcvs-terms {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  margin-left: 0;
  margin-right: 0;

  .wpcvs-term {
    display: inline-block;
    cursor: pointer;
    text-align: center;
    margin: 3px 6px 3px 0;
    padding: 3px;
    border-radius: 2px;
    border-width: 1px;
    border-style: solid;
    border-color: #dddddd;
    background-color: #ffffff;
    position: relative;
    box-sizing: border-box;
    float: none;

    .wpcvs-term-inner {
      display: flex;
      align-items: center;
      height: 34px;
      line-height: 34px;
      width: 100%;
      position: relative;
      background-color: #efefef;
    }

    &.wpcvs-selected {
      border-color: green;

      .wpcvs-term-inner:before {
        content: '✓';
        display: block;
        width: 16px;
        height: 16px;
        border-radius: 10px;
        background-color: green;
        color: #ffffff;
        text-align: center;
        line-height: 16px;
        font-size: 10px;
        position: absolute;
        top: -10px;
        right: -10px;
        z-index: 9;
        border: 2px solid #ffffff;
      }
    }

    &.wpcvs-disabled {
      opacity: .4;
      cursor: default;
    }
  }

  &.wpcvs-type-image {
    .wpcvs-term {
      height: 42px;
      width: 42px;

      .wpcvs-term-image {
        font-size: 0;
        border-radius: 2px;
        width: 34px;
        flex: 0 0 34px;

        img {
          width: 100%;
          height: 100%;
          display: block;
          border-radius: 2px;
        }
      }
    }
  }

  &.wpcvs-type-color {
    .wpcvs-term {
      height: 42px;
      width: 42px;

      .wpcvs-term-color {
        font-size: 0;
        border-radius: 2px;
        width: 34px;
        flex: 0 0 34px;
      }
    }
  }

  &.wpcvs-type-button {
    .wpcvs-term {
      height: 42px;
      min-width: 42px;
      line-height: 40px;

      .wpcvs-term-inner {
        border-radius: 2px;

        .wpcvs-term-label {
          padding: 0 10px;
        }
      }
    }
  }

  &.wpcvs-type-radio {
    .wpcvs-term {
      display: block;
      width: calc(100% - 6px);
      text-align: start;

      .wpcvs-term-inner {
        display: flex;
        align-items: center;
      }

      .wpcvs-term-radio {
        width: 34px;
        flex: 0 0 34px;
        text-align: center;
      }

      .wpcvs-term-label {
        padding: 0 10px;
      }

      input[type="radio"] {
        outline: none;
        pointer-events: none;
      }
    }
  }

  &.wpcvs-style-rounded {
    .wpcvs-term {
      border-radius: 21px;

      .wpcvs-term-inner {
        border-radius: 17px;
      }

      .wpcvs-term-image {
        img {
          border-radius: 50%;
        }
      }

      .wpcvs-term-color {
        border-radius: 21px;
      }
    }
  }

  &.wpcvs-show-label-yes {
    .wpcvs-term {
      width: auto;

      .wpcvs-term-label {
        padding-left: 10px;
        padding-right: 10px;
      }
    }
  }
}

.wpcvs-group {
  flex-grow: 1;
  display: block;
  width: 100%;
}

.wpcvs-more {
  display: inline-block;
  margin: 6px 3px 0 3px;
  padding: 3px;
  height: 42px;
  line-height: 42px;
  position: relative;
  float: left;
}

/* Stacked */

.wpcvs-attributes-stacked .wpcvs-attribute-label label {
  font-weight: 700;
  color: #333333;
}

.wpcvs-attributes-stacked .wpcvs-attribute-label label:after {
  content: ':';
}

/* Enable Single Replacement */

.wpcvs-single-replacement-enable:not(.woovr-active) .single_variation_wrap .woocommerce-variation-description, .wpcvs-single-replacement-enable:not(.woovr-active) .single_variation_wrap .woocommerce-variation-price {
  display: none !important;
}

/* Styles */

table.variations.wpcvs-initialized tr {
  display: flex;
  align-items: center;
}

table.variations.wpcvs-initialized tr .label {
  width: 100px;
  flex: 0 0 100px;
}

table.variations.wpcvs-initialized tr .value {
  flex-grow: 1;
}

.wpcev-btn + .wpcvs_add_to_cart {
  display: none !important;
}

/* RTL */

body.rtl .wpcvs-term {
  float: right;
}

/* Tippy */

.wpcvs-tippy-inner {
  padding: 5px 1px;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.wpcvs-tippy-inner .wpcvs-tippy-title {
  font-weight: 700;
}

.wpcvs-tippy-inner > span {
  margin-bottom: 5px;
}

.wpcvs-tippy-inner > span:last-child {
  margin-bottom: 0;
}

.wpcvs-tippy-inner .wpcvs-tippy-swatches span {
  display: block;
  width: 100%;
  min-width: 150px;
  min-height: 150px;
  max-width: 600px;
  font-size: 0;
}

.wpcvs-tippy-swatches--color, .wpcvs-tippy-swatches--image img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  margin: 0 !important;
  padding: 0 !important;
}

/* Extra */

table.wpcvs-variations {
  table-layout: fixed;
  margin: -1em 0 1em;

  tr {
    display: flex;
    align-items: center;

    th, td {
      padding: 0;
      list-style: none;
      background-color: transparent;
      vertical-align: middle;
      display: initial;
    }

    .label {
      width: 100px;
      flex: 0 0 100px;

      label {
        font-weight: 700;
        margin-right: 30px;
        white-space: nowrap;
      }
    }

    .value {
      flex-grow: 1;
    }
  }
}
