#woocommerce-product-data ul.wc-tabs li.shopgs_tab_options a span {
  margin-left: 0.418em;
}
.shopgs-attribute-type-span {
  position: absolute;
  right: 38px;
  margin-top: 0.6em;
  font-weight: 600;
}
li.shopgs_swatch_options.shopgs_swatch_tab a {
  display: flex;
  align-items: center;
}
li.shopgs_swatch_options.shopgs_swatch_tab a::before {
  content: "" !important;
}
li.shopgs_swatch_options.shopgs_swatch_tab.active a svg {
  fill: #555 !important;
}
.shopgs-swatches-taxonomy-section {
  border: 1px solid #eee;
}
.shopgs-metabox > .shopgs-metabox-content {
  display: none;
}
.shopgs-swatches-taxonomy-section h3 {
  font-size: 1em;
  margin: 0;
  font-weight: 700;
}
.wc-metaboxes-wrapper div.shopgs-attribute-wrapper > h3 {
  background-color: #fafafa;
  margin: 0;
  padding: 1em 0.75em 1em 1em;
  cursor: pointer;
  border: 1px solid #eee;
  display: flex;
  justify-content: space-between;
}
.shopgs-swatches-taxonomy-section div.shopgs-metabox > h3 {
  border: 0;
  border-top: 1px solid #eee;
}
.wc-metaboxes-wrapper div.shopgs-metabox.shopgs_open > h3 {
  background-color: #f2f2f2;
}
.shopgs-attribute-type-span label {
  margin-right: 10px;
}

.shopgs-product-settings .select2-container,
.shopgs-attribute-type-span .select2-container {
  min-width: 120px;
}
.shopgs-attribute-itemes {
  margin: 30px;
  border: 1px solid #eee;
}
.shopgs-attribute-itemes .shopgs-attribute-wrapper:first-child h3 {
  border-top: none;
}
.shopgs-attribute-item-container {
  display: none;
}
.shopgs-attribute-item-container > div {
  display: flex;
  padding: 12px 12px;
}
.shopgs-attribute-item-container .shopgs-attribute-label {
  width: 20%;
}
.shopgs-attribute-label > label {
  font-weight: 500;
  vertical-align: text-top;
}

.shopgs-attribute-item-container .shopgs-attribute-field {
  width: 80%;
}
.shopgs-attribute-item-container .shopgs-attribute-field input[type="text"] {
  width: 60%;
}
.shopgs-attribute-field.field-image {
  display: flex;
  justify-content: center;
  grid-gap: 5px;
  flex-direction: column;
}
.shopgs-attribute-field.field-image .button-wrapper {
  display: flex;
  grid-gap: 10px;
}
.shopgs-attribute-field .shopgs-image-preview {
  width: 60px;
  max-height: 80px;
  object-fit: contain;
}
.shopgs-save-reset-swatches.hidden-buttons {
  display: none;
}
.shopgs-save-reset-swatches {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.shopgs-save-reset-swatches > div {
  display: flex;
  grid-gap: 12px;
  align-items: center;
}
.shopgs-save-reset-swatches .shopgs-reset-swatches {
  color: #d63638;
  cursor: pointer;
}
#shopgs_remove_image_attr_item {
  display: none;
}

.shopgs-metabox .shopgs-handlediv {
  line-height: 1;
}
.shopgs-metabox .shopgs-handlediv::before {
  font-family: Dashicons;
  color: #787c82;
  font-size: 20px;
  margin-top: -1.5px;
  display: block;
}
.shopgs-metabox > .shopgs-attribute-heading > .shopgs-handlediv::before {
  content: "\f140" !important;
}

.shopgs-metabox.shopgs_open > .shopgs-attribute-heading > .shopgs-handlediv::before {
  content: "\f142" !important;
}
#shopgs_swatches_settings div.shopgs-swatches-settings-notice {
  display: none;
  margin: 10px !important;
}

#shopgs_swatches_settings div.shopgs-swatches-settings-notice.no-product {
  display: block;
  border: 1px solid #c3c4c7;
  border-left-width: 4px;
  border-left-color: #ef5252;
  padding-left: 12px;
}
.shopgs-swatches-no-visible-attr {
  border: 1px solid #c3c4c7;
  border-left-width: 4px;
  border-left-color: #ef5252;
  margin: 10px;
  padding: 10px;
  padding-left: 12px;
}
/* Product edit setting */
.shopgs-product-settings .shopgs-settings-container {
  display: flex;
  padding: 1em 0.75em 1em 1em;
  align-items: center;
}
.shopgs-product-settings .shopgs-attribute-label {
  flex: 1;
}
.shopgs-product-settings .shopgs-attribute-field {
  font-weight: 600;
  margin-right: 1.8rem;
}
/* Tab not allow attr empty.   */
.shopgs-attribute-wrapper[attr-value-unvailable]
  .shopgs-metabox-content
  .shopgs-attribute-itemes
  .shopgs-attribute-heading {
  cursor: default;
}
.shopgs-attribute-wrapper[attr-value-unvailable]
  .shopgs-metabox-content
  .shopgs-attribute-itemes
  .shopgs-attribute-heading
  .shopgs-handlediv {
  display: none;
}

table.wp-list-table .column-preview {
  width: 80px;
  text-align: center;
  white-space: nowrap;
}

table.wp-list-table td.column-preview .shopgs-preview {
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  font-weight: 700;
  border: 1px solid #ddd;
  border-radius: 3px;
  margin: 0 auto;
}

.shopgs-image-preview {
  border: 1px solid #ddd;
  border-radius: 3px;
}

table.wp-list-table tbody td.column-handle {
  vertical-align: inherit !important;
}

/* Global swatches settings */

.shopgs-swatches-container {
  display: flex;
  flex-flow: wrap;
  padding: 0;
  position: relative;
  box-sizing: border-box;
  grid-gap: 8px;
  width: fit-content;
}
.shopgs-swatches-container * {
  box-sizing: border-box;
}
.shopgs-swatches-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-transition: 200ms;
  transition: 200ms;
  text-align: center;
  white-space: nowrap;
  line-height: 1.3;
  cursor: pointer;
  border: 1px solid #fff;
  background: #fff;
  padding: 1px;
  user-select: none; /* supported by Chrome and Opera */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
}

.shopgs-label-option,
.shopgs-image-option {
  border: 1px solid #00000020;
}
.shopgs-swatches-option .shopgs-swatch-inner {
  display: flex;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  border-radius: inherit;
  -webkit-transition: 200ms;
  transition: 200ms;
  align-items: center;
  justify-content: center;
}

.shopgs-swatches-option:not(.shopgs-label-option, .shopgs-image-option) .shopgs-swatch-inner {
  border: 1px solid #00000020;
}

.shopgs-swatches-option:not(.shopgs-swatches-disabled, .shopgs-swatches-out-of-stock):hover {
  border-color: var(--shopgs-swatches-border-color-hover, #00000090);
  box-sizing: border-box;
}
.shopgs-image-option {
  background-repeat: no-repeat;
  background-position: center;
}

.shopgs-label-option {
  font-size: var(--shopgs-swatches-font-size, 12px);
  border-width: var(--shopgs-swatches-border-width, 1px);
  padding: 5px 10px;
}

.shopgs-selected-swatch {
  border-color: var(--shopgs-swatches-border-color, #000) !important;
  border-width: var(--shopgs-swatches-border-width, 1px);
  border-style: var(--shopgs-swatches-border-style, solid);
  box-sizing: border-box;
}

.shopgs-swatches-hide,
.shopgs-swatches-hide-disable {
  display: none;
}

.shopgs-hidden-select {
  display: none !important;
}

.shopgs-swatches-blur-disable::before,
.shopgs-swatches-blur::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #fff;
  opacity: 0.4;
  -webkit-transition: all 200ms;
  transition: all 200ms;
}

.shopgs-swatches-blur-cross-disable::before,
.shopgs-swatches-hide-disable::before,
.shopgs-swatches-blur-cross::before {
  font-family: Dashicons;
  content: "\f335";
  color: rgba(204, 69, 69, 1);
  font-size: 1.8em;
  -webkit-transition: all 200ms;
  transition: all 200ms;
  position: absolute;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
}
/* Swatches tooltip css */
.shopgs-tooltip {
  position: absolute;
  min-width: 10px;
  min-height: 10px;
  width: max-content;
  padding: 0.2em 0.5em;
  content: "";
  background: #000;
  color: #fff;
  border-radius: 5px;
  font-size: 0.8em;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: none;
  border: 1px solid;
}

.shopgs-tooltip::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  bottom: -5px;
  left: calc(50% - 4px);
  transform: rotate(45deg);
  background: #000;
  border-top-left-radius: 10px;
  z-index: -1;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.shopgs-tooltip-preview {
  min-width: 60px;
  min-height: 60px;
  display: block;
  background-color: #fff;
  background-position: center;
}

.shopgs-tooltip-label {
  padding: 0.1em;
  display: flex;
  justify-content: center;
  font-size: var(--shopgs-swatches-tooltip-font-size, 12px);
}

/*  Shop page settings */
table.shopgs-shop-variations {
  width: 100%;
}
table.shopgs-shop-variations,
.shopgs-shop-variations tbody,
.shopgs-shop-variations td,
.shopgs-shop-variations tr {
  margin: 0;
  padding: 3px 0;
  border: 0;
}

.shopgs-shop-variations td.label {
  text-align: left;
}

.shopgs-shop-variations tr td {
  display: flex;
}
.shopgs_shop_align_center table tr td {
  justify-content: center;
}
.shopgs_shop_align_right table tr td {
  justify-content: flex-end;
}
.shopgs-shop-variations .reset_variations {
  display: none !important;
}

.shopgs-shop-variations {
  margin-bottom: auto;
  padding: 0;
}

.shopgs-shop-variations .shopgs-swatches-container {
  padding: 0;
}

.shopgs-shop-variations,
.shopgs-shop-variations td {
  border: none;
}

.shopgs-shop-variations .shopgs-more-link {
  font-size: 12px;
  margin-left: 4px;
  position: absolute;
  left: 100%;
  white-space: nowrap;
  pointer-events: all;
}

.shopgs-original-price,
.shopgs-original-thumbnail {
  display: none;
}

/* Filters css */
.shopgs-filters {
  display: flex;
  flex-wrap: wrap;
}
.shopgs-filters li {
  display: inline-flex;
}

.shopgs-filters li a {
  display: inline-flex;
  align-items: center;
  flex-direction: row-reverse;
  outline: none;
}

.shopgs-filters li.chosen a {
  background-color: #eee;
  margin: 0 0.2em;
  border-radius: none;
  padding: 2px 3px !important;
}

.shopgs-filters li.chosen a::before {
  font-family: Dashicons !important;
  content: "\f158" !important;
  display: inline-flex;
  margin-right: 0.3em !important;
  font-size: 15px;
  color: #999 !important;
}

.shopgs-filters li.chosen .shopgs-swatches-container {
  display: inline-flex;
}

.shopgs-filters li .shopgs-swatches-container .shopgs-swatches-option {
  margin: 3px;
}

/* Product page css*/

.shopgs-product-container .shopgs-swatches-option:first-child {
  margin-left: 0;
}

.shopgs-selected-label {
  content: " : ";
  font-weight: 300;
}

.shopgs-selected-label::before {
  content: " : ";
}

.shopgs-label-none table.variations tr th.label {
  display: none !important;
}

.shopgs-label-inline table.variations td {
  display: table-cell !important;
}

.shopgs-product-page table.variations .label label {
  font-size: var(--shopgs-swatches-label-font-size, "inherit");
}

/* Astra theme compatibility css */
.theme-astra table.variations td.value {
  padding: 5px 0 !important;
}

.theme-astra.shopgs-product-page tr th.label {
  padding-left: 0;
  padding-top: 6px !important;
}

.theme-astra.shopgs-label-stacked tr th.label {
  padding-left: 0;
}

.theme-astra.shopgs-label-stacked tr td.value {
  padding: 6px 0 !important;
}

/* Twenty twenty two theme compatibility css */
.theme-twentytwentytwo.shopgs-product-page:not(.shopgs-label-stacked)
  table.variations
  td.value
  .shopgs-product-container {
  display: inline-flex;
}

.theme-twentytwentytwo.shopgs-label-stacked table.variations th,
.theme-twentytwentytwo.shopgs-label-stacked table.variations td {
  display: flex;
}

.theme-twentytwentytwo table.variations tr {
  margin-bottom: 0.5rem !important;
}

/* Twenty twenty one theme compatibility css */
.theme-twentytwentyone.shopgs-product-page:not(.shopgs-label-stacked)
  table.variations
  td.value
  .shopgs-product-container {
  display: inline-flex;
}

.theme-twentytwentyone.shopgs-label-stacked table.variations th,
.theme-twentytwentyone.shopgs-label-stacked table.variations td {
  display: flex;
}

.theme-twentytwentyone table.variations tr {
  margin-bottom: 0.5rem !important;
}

/* Twenty twenty theme compatibility css */
.theme-twentytwenty table.variations {
  overflow-y: auto;
}

.theme-twentytwenty.shopgs-product-page:not(.shopgs-label-stacked) table.variations td.value .shopgs-product-container {
  display: inline-flex;
}

.shopgs-label-stacked table.variations th,
.shopgs-label-stacked table.variations td {
  display: flex;
}

/* Add to swatches.css */
.shopgs-swatches-option[data-type="bicolor"] {
  position: relative;
  overflow: hidden;
}

.shopgs-swatches-option[data-type="bicolor"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--color1) 50%, var(--color2) 50%);
}

/* Add to swatches.css */
.shopgs-bicolor1, .shopgs-bicolor2 {
  width: 80px;
  margin-right: 5px;
}

[data-container="bicolor"] .wp-picker-container {
  display: inline-block;
  vertical-align: top;
}
