@keyframes woobt-spinner {
  to {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes woobt-spinner {
  to {
    -webkit-transform: rotate(360deg);
  }
}

.woobt-wrap {
  display: block;
  clear: both;
  width: 100%;

  &.woobt-loading {
    position: relative;

    &:before {
      content: '';
      display: block;
      width: 100%;
      height: 100%;
      background-color: rgba(255, 255, 255, .7);
      position: absolute;
      top: 0;
      left: 0;
      z-index: 9;
    }

    &:after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      z-index: 10;
      display: block;
      width: 30px;
      height: 30px;
      margin-top: -15px;
      margin-left: -15px;
      border-width: 4px;
      border-style: solid;
      border-radius: 100%;
      border-top-color: rgba(0, 0, 0, .5);
      border-left-color: rgba(0, 0, 0, .1);
      border-bottom-color: rgba(0, 0, 0, .1);
      border-right-color: rgba(0, 0, 0, .1);
      animation: woobt-spinner 1s linear infinite;
      -webkit-animation: woobt-spinner 1s linear infinite;
    }
  }
}

.woobt-wrap.woobt-layout-separate .woobt-product > .woobt-thumb, .woobt-wrap.woobt-layout-separate .woobt-product > .woobt-price {
  display: none;
}

.woobt-wrap.woobt-layout-separate .woobt-product .woobt-title .woobt-price {
  margin-left: 10px;
}

.woobt-images {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  overflow-x: auto;
}

.woobt-images .woobt-image {
  width: 100px;
  flex: 0 0 100px;
  margin-right: 20px;
  display: block;
  position: relative;
}

.woobt-images .woobt-image:not(.woobt-image-this):before {
  content: '+';
  position: absolute;
  top: 50%;
  left: -10px;
  transform: translate3d(-50%, -50%, 0);
}

.woobt-images .woobt-image:last-child {
  margin-right: 0;
}

.woobt-images .woobt-image.woobt-image-hide {
  opacity: .3;
}

.woobt-images .woobt-image.woobt-image-hide img {
  filter: grayscale(100%);
}

.woobt-images .woobt-image img {
  width: 100%;
  height: auto;
}

.woobt-wrap .woobt-text, .woobt-wrap .woobt-products {
  margin: 0 0 15px 0;
}

.woobt-products {
  border-width: 1px 0 0 0;
  border-style: dotted;
  border-color: #e5e5e5;
}

.woobt-products .woobt-product {
  padding: 10px 0;
  margin: 0;
  justify-content: space-between;
  display: flex;
  align-items: center;
  border-bottom: 1px dotted #e5e5e5;
}

.woobt-products .woobt-product.woobt-hide-this {
  display: none !important;
}

.woobt-products .woobt-product > div {
  padding: 0 5px;
  background-color: transparent;
}

.woobt-products .woobt-product .woobt-thumb {
  width: 50px;
  flex: 0 0 50px;
}

.woobt-products .woobt-product .woobt-thumb img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.woobt-products .woobt-product .woobt-price {
  width: 100px;
  flex: 0 0 100px;
  max-width: 100px;
  text-align: end;
}

.woobt-products .woobt-product-this .woobt-price .woobt-price-new {
  display: none;
}

.woobt-products .woobt-product .woobt-price del {
  opacity: .5;
  text-decoration: line-through;
}

.woobt-products .woobt-product .woobt-price del span {
  text-decoration: line-through;
}

.woobt-products .woobt-product .woobt-price ins {
  font-weight: normal;
}

.woobt-products .woobt-product .woobt-price .amount {
  display: inline-block;
}

.woobt-products .woobt-product .woobt-title {
  flex-grow: 1;
}

.woobt-products .woobt-product .woobt-title a {
  text-decoration: none;
  box-shadow: none;
}

.woobt-products .woobt-product .variations_form {
  margin: 0;
  padding: 0;
}

.woobt-products .woobt-product .woobt-title .woovr-variations-select .woovr-variation-image, .woobt-products .woobt-product .woobt-title .woovr-variations-default .woovr-variation-image, .woobt-products .woobt-product .woobt-title .woovr-variations-select .woovr-variation-price {
  display: none !important;
}

.woobt-products .woobt-product .woobt-quantity {
  text-align: right;
  width: 130px;
  flex: 0 0 130px;
}

.woobt-products .woobt-product .woobt-quantity .quantity {
  float: none !important;
  margin: 0 0 0 0 !important;
}

.woobt-products .woobt-product.woobt-hide .woobt-quantity * {
  opacity: .5;
  pointer-events: none;
}

.woobt-checkbox:disabled {
  cursor: not-allowed;
}

.woobt-products .woobt-product .variations_form .variations {
  display: block;
  width: 100%;
  margin-left: -3px;
  margin-right: -3px;
  padding: 0;
}

.woobt-products .woobt-product .variations_form .variations .variation {
  display: inline-block;
  border-width: 1px;
  border-style: solid;
  border-color: #e5e5e5;
  padding: 5px 10px;
  margin: 5px 3px 0 3px;
  max-width: 100%;
  border-radius: 2px;
}

.woobt-products .woobt-product .variations_form .variations .variation > div {
  display: block;
}

.woobt-products .woobt-product .variations_form .variations .reset {
  display: inline-block;
}

.woobt-products .woobt-product .variations_form .variations .variation:last-child {
  margin-bottom: 0;
}

.woobt-products .woobt-product .variations_form .variations .variation .label {
  font-size: 12px;
  line-height: 1;
}

.woobt-products .woobt-product .variations_form .variations .variation .value {
  line-height: 1;
}

.woobt-products .woobt-product .variations_form .variations .variation .value select {
  width: 100%;
  line-height: 1;
  padding: 0 16px 0 0;
  background-color: transparent;
  border-radius: 0;
  border: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAECAYAAACtBE5DAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpGNEQzN0Y2NTY0NjcxMUU3QjU5NUI5N0U0NjlDMTIzNiIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpGNEQzN0Y2NjY0NjcxMUU3QjU5NUI5N0U0NjlDMTIzNiI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkY0RDM3RjYzNjQ2NzExRTdCNTk1Qjk3RTQ2OUMxMjM2IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkY0RDM3RjY0NjQ2NzExRTdCNTk1Qjk3RTQ2OUMxMjM2Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+pzgqpQAAADdJREFUeNpirKioWMDAwBDPgAoWMQGJLCC+hiR4HYgzQRLfgDgUSoNwCIhmgaq6BtXJCNMNEGAAbM0MK7OUU3AAAAAASUVORK5CYII=');
  background-repeat: no-repeat;
  background-size: auto;
  background-position: 100% 50%;
}

.woobt-products .woobt-product .variations_form .variations a.reset_variations {
  margin: 0;
  font-size: 12px;
}

.woobt-products .woobt-product .woobt-title .stock {
  font-size: 14px;
  margin: 0 !important;
}

.woobt-products .woobt-product .woobt-title .stock.in-stock {
  color: green;
}

.woobt-products .woobt-product .woobt-title .stock.available-on-backorder {
  color: orange;
}

.woobt-products .woobt-product .woobt-title .stock.out-of-stock {
  color: red;
}

.woobt-products .woobt-item-text {
  padding: 10px 0;
  margin: 0;
  border-bottom: 1px dotted #e5e5e5;
}

.woobt-item-text-type-h1 > h1, .woobt-item-text-type-h2 > h2, .woobt-item-text-type-h3 > h3, .woobt-item-text-type-h4 > h4, .woobt-item-text-type-h5 > h5, .woobt-item-text-type-h6 > h6, .woobt-item-text-type-p > p {
  margin: 0 !important;
}

.woobt-disabled {
  opacity: .5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.woobt-alert {
  padding: 6px 10px 6px 14px;
  border-left: 4px solid #222;
  background-color: #eeeeee;
  font-size: 14px;
}

/* hidden by default */
.woobt-additional, .woobt-total, .woobt-alert {
  display: none;
}

.woobt-actions form.cart {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.woobt-quantity-input {
  display: flex;
  align-items: center;
}

.woobt-quantity-plus-minus .plus, .woobt-quantity-plus-minus .minus, .woobt-quantity-plus-minus .minus-btn, .woobt-quantity-plus-minus .plus-btn {
  display: none !important;
}

.woobt-quantity-input-plus, .woobt-quantity-input-minus {
  width: 40px;
  flex: 0 0 40px;
  height: 40px;
  line-height: 38px;
  text-align: center;
  cursor: pointer;
  background-color: #fefefe;
  border: 1px solid #e5e5e5;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.woobt-choose label {
  position: absolute;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.woobt-choose .checkmark {
  display: none;
}

.woobt-count {
  margin-left: 5px;
}

.woobt-count:before {
  content: '(';
}

.woobt-count:after {
  content: ')';
}

.woobt-qty {
  width: 60px;
  text-align: center;
}

.woobt-product .woobt-quantity-input .qty, .woobt-product .woobt-quantity-input .woobt-qty {
  width: 100%;
  min-width: 40px;
  height: 40px;
  line-height: 38px;
  margin: 0;
  padding: 0 10px;
  box-shadow: none;
  border-width: 1px 0;
  border-style: solid;
  border-color: #e5e5e5;
  border-radius: 0;
  background-color: #fefefe;
  -moz-appearance: textfield;
}

.woobt-product .woobt-quantity-input .qty:focus, .woobt-product .woobt-quantity-input .woobt-qty:focus {
  outline: none;
  outline-color: transparent;
}

.woobt-quantity-input input::-webkit-outer-spin-button, .woobt-quantity-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.woobt-quantity-input-plus:hover, .woobt-quantity-input-minus:hover {
  background-color: #f0f0f0;
}

@media only screen and (max-width: 767px) {
  .woobt-wrap-responsive .woobt-products .woobt-product {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
  }

  .woobt-wrap-responsive .woobt-products .woobt-product > div {
    padding: 5px 0 !important;
    width: auto !important;
    flex-basis: 0 !important;
    max-width: 100% !important;
  }

  .woobt-wrap-responsive .woobt-products .woobt-product .woobt-thumb {
    text-align: center;
    flex-basis: 0;
  }

  .woobt-wrap-responsive .woobt-products .woobt-product .woobt-thumb img {
    width: 80px;
    display: block;
    margin: 0 auto;
  }

  .woobt-wrap-responsive .woobt-products .woobt-product .woobt-price {
    width: auto;
    flex-basis: 0;
  }

  .woobt-wrap-responsive .woobt-products .woobt-product .variations_form .variations {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .woobt-wrap-responsive .woobt-products .woobt-product .variations_form .variations .variation {
    max-width: 100%;
    margin-right: 0 !important;
  }

  .woobt-wrap-responsive .woobt-products .woobt-product .variations_form .variations .variation select {
    text-align-last: center;
  }
}

/* Grid */

.woobt-products[class*="woobt-products-layout-grid"] {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
  border: none;
}

.woobt-products[class*="woobt-products-layout-grid"] .woobt-item-text {
  width: 100%;
  margin: 10px;
  padding: 10px 0;
}

.woobt-products[class*="woobt-products-layout-grid"] .woobt-product {
  width: calc(50% - 20px);
  margin: 10px;
  padding: 10px;
  border: 1px solid #dddddd;
  font-size: 14px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.woobt-products[class*="woobt-products-layout-grid"] .woobt-product:hover {
  border-color: green;
}

.woobt-products[class*="woobt-products-layout-grid"] .woobt-product .woobt-title-inner {
  font-weight: 700;
}

.woobt-products.woobt-products-layout-grid-1 .woobt-product {
  width: calc(100% - 20px);
}

.woobt-products.woobt-products-layout-grid-3 .woobt-product {
  width: calc(100% / 3 - 20px);
}

.woobt-products.woobt-products-layout-grid-4 .woobt-product {
  width: calc(25% - 20px);
}

.woobt-products[class*="woobt-products-layout-grid"] .woobt-product > div {
  width: 100% !important;
  flex: 0 0 auto !important;
  text-align: center;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 5px;
}

.woobt-products[class*="woobt-products-layout-grid"] .woobt-product > div:last-child {
  margin-bottom: 0;
}

.woobt-products[class*="woobt-products-layout-grid"] .woobt-product .woobt-quantity-input {
  justify-content: center;
}

.woobt-products[class*="woobt-products-layout-grid"] .woobt-product select {
  text-align: center;
}

.woobt-products[class*="woobt-products-layout-grid"] .woobt-product .variations_form .variations .reset {
  display: none;
}

@media only screen and (max-width: 767px) {
  .woobt-products[class*="woobt-products-layout-grid"] .woobt-product {
    width: calc(50% - 20px);
  }
}

@media only screen and (max-width: 479px) {
  .woobt-products[class*="woobt-products-layout-grid"] .woobt-product {
    width: calc(100% - 20px);
  }
}

/* Carousel */

.woobt-products[class*="woobt-products-layout-carousel"] {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
  border: none;
}

.woobt-products[class*="woobt-products-layout-carousel"] .woobt-item-text {
  width: 100%;
  margin: 10px;
  padding: 10px 0;
}

.woobt-products[class*="woobt-products-layout-carousel"] .woobt-product {
  width: calc(33% - 20px);
  margin: 10px;
  padding: 10px;
  border: 1px solid #dddddd;
  font-size: 14px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.woobt-products[class*="woobt-products-layout-carousel"] .woobt-product:hover {
  border-color: green;
}

.woobt-products[class*="woobt-products-layout-carousel"] .woobt-product .woobt-title-inner {
  font-weight: 700;
}

.woobt-products.woobt-products-layout-carousel-1 .woobt-product {
  width: calc(100% - 20px);
}

.woobt-products.woobt-products-layout-carousel-3 .woobt-product {
  width: calc(100% / 3 - 20px);
}

.woobt-products.woobt-products-layout-carousel-4 .woobt-product {
  width: calc(25% - 20px);
}

.woobt-products[class*="woobt-products-layout-carousel"] .woobt-product > div {
  width: 100% !important;
  flex: 0 0 auto !important;
  text-align: center;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 5px;
}

.woobt-products[class*="woobt-products-layout-carousel"] .woobt-product > div:last-child {
  margin-bottom: 0;
}

.woobt-products[class*="woobt-products-layout-carousel"] .woobt-product .woobt-quantity-input {
  justify-content: center;
}

.woobt-products[class*="woobt-products-layout-carousel"] .woobt-product select {
  text-align: center;
}

.woobt-products[class*="woobt-products-layout-carousel"] .woobt-product .variations_form .variations .reset {
  display: none;
}

.woobt-products[class*="woobt-products-layout-carousel"] {
  display: none !important;
}

.woobt-products[class*="woobt-products-layout-carousel"].woobt-carousel, .woobt-products[class*="woobt-products-layout-carousel"].woobt-no-carousel {
  display: flex !important;
}

.woobt-carousel .slick-dots {
  display: block;
  width: 100%;
  list-style: none;
  text-align: center;
  margin: 0;
  padding: 0;
}

.woobt-carousel .slick-dots li {
  display: inline-block;
  margin: 0 5px;
  font-size: 0;
}

.woobt-carousel .slick-dots li button {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  padding: 0;
  font-size: 0;
  line-height: 0;
  border: none;
  background-color: rgba(0, 0, 0, .3);
  outline: none;
  overflow: hidden;
}

.woobt-carousel .slick-dots li.slick-active button {
  background-color: rgba(0, 0, 0, 1);
}

.woobt-carousel .slick-arrow {
  width: 44px;
  height: 44px;
  line-height: 42px;
  text-align: center;
  padding: 0 0 0 0;
  margin: 0 0 0 0;
  overflow: hidden;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0;
  color: #222;
  background-color: #fff;
  border-radius: 0;
  border: 1px solid #ddd;
  z-index: 8;
  opacity: 0;
  visibility: hidden;
}

.woobt-carousel:hover .slick-arrow {
  opacity: 1;
  visibility: visible;
}

.woobt-carousel .slick-arrow:hover {
  color: #fff;
  background-color: rgba(0, 0, 0, .5);
}

.woobt-carousel .slick-arrow:before {
  font-size: 24px;
  line-height: 44px;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  speak: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.woobt-carousel .slick-arrow:focus {
  outline: none;
}

.woobt-carousel .slick-arrow.slick-prev {
  left: 10px;
}

.woobt-carousel .slick-arrow.slick-prev:before {
  content: '‹';
}

.woobt-carousel .slick-arrow.slick-next {
  right: 10px;
}

.woobt-carousel .slick-arrow.slick-next:before {
  content: '›';
}

/* Compact */

.woobt-wrap.woobt-layout-compact {
  .woobt-inner {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0 0 15px 0;

    .woobt-text {
      margin: 0 0 10px 0;
    }

    .woobt-alert {
      display: none !important;
    }

    .woobt-products {
      display: flex;
      flex-wrap: nowrap;
      max-width: 100%;
      overflow-x: auto;
      margin: 0 10px 0 -10px;
      border: none;

      .woobt-product {
        min-width: 100px;
        max-width: 200px;
        margin: 10px;
        padding: 10px;
        border: 1px solid #dddddd;
        font-size: 14px;
        text-align: center;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: start;

        &:before {
          content: '+';
          position: absolute;
          top: 50%;
          right: -20px;
          transform: translate3d(-50%, -50%, 0);
        }

        &:last-child {
          &:before {
            content: '';
            display: none;
          }
        }

        > div {
          width: 100%;
          flex: 0 0 auto;
          text-align: center;
          margin-left: 0;
          margin-right: 0;
          padding-left: 0;
          padding-right: 0;
          margin-bottom: 5px;
        }

        .woobt-choose {
          position: absolute;
          width: auto;
          top: 10px;
          right: 10px;
        }
      }

      body.rtl & {
        margin: 0 -10px 0 10px;

        .woobt-product {
          &:first-child:before {
            display: none;
          }

          &:last-child:before {
            content: '+';
            display: block;
          }
        }
      }
    }

    .woobt-actions {
      .single_add_to_cart_button {
        white-space: nowrap;
        margin: 0 !important;
      }
    }
  }
}