.swatches {
  /* display: flex; */
  flex-wrap: wrap;
  flex-direction: column;
}

.swatch {
  margin: 10px;
}

.swatch-item {
  display: inline-block;
  margin: 10px 10px 10px 0;
  border: 1px solid #ddd;
  width: 70px;
}

.swatch-item label {
  display: block;
  text-align: center;
}

.swatch-item img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  height: 65px !important;
}

.swatch-item input[type="checkbox"] {
  display: none;
}

.swatch-item input[type="checkbox"]:checked + label {
  border-color: #333;
  background-color: #f0f0f0;
}

.swatch-item.selected {
  border: 1px solid #000;
}

.swatch-item img {
  max-width: 70px !important;
  margin-bottom: 0;
}

.custom_variations tr th.label{
  vertical-align: middle;
  text-align: left;
}

ul.select2-selection__rendered{
  margin-left: 0;
}

textarea.select2-search__field{
  line-height: 1;
}

.addon_variations tr th.label {
  vertical-align: middle;
  text-align: left;
}

.custom_variations{
  margin-bottom: 0;
}

th.label {
  width: 250px;
}

span.select2.select2-container.select2-container--default {
  max-width: 260px;
}

.select2-container--default .select2-selection--multiple {
  border-radius: 0px;
  border: 1px solid var(--global-gray-400);
}

.woocommerce div.product form.cart .woocommerce-variation-add-to-cart {
  margin-top: 0 !important;
}

.woocommerce div.product form.cart .variations {
  margin-bottom: 0 !important;
}

.woocommerce-variation-availability{
  display: none;
}

.wapf--inner > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.swatch-item label {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0 !important;
}

th.label {
  text-align: left;
}

.woocommerce-page .select2-container .select2-selection {
  height: max-content !important;
  padding: 0 10px;
  width: 200px !important;
}

.wapf-product-total.price.amount .woocommerce-variation.single_variation{
  margin-bottom: 0;
}

.wapf-product-totals {
  padding: 20px 0;
}

.wapf-grand-total.price.amount{
  font-weight: bold;
}

.wapf-input {
  display: flex;
  flex-wrap: wrap;
}
.wapf-input input[type="checkbox"] {
  margin-right: 10px;
}
.wapf-input label {
  margin-right: 20px;
}


/* Show 3d product image and details in 50 50 */
@media (min-width: 1024px) {
  .wp-block-columns.alignwide .wp-block-column {
    flex-basis: 50% !important; /* Force 50% width */
    max-width: 50% !important; /* Prevent exceeding 50% width */
  }
}

.wp-block-woocommerce-product-image-gallery {
  max-width: 98% !important;
}
/* End show 3d product image and details in 50 50 */

/* Make selected option in cart more readable */
p:has(#variation-data) {
  margin-top: 0;
}

dd.variation-Addon {
  margin: revert !important;
}
/* End make selected option in cart more readable */

canvas:focus {
  border: none;
  outline: none;
}

/* Swatch dropdown accordian */
.variation-accordion {
  /* margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden; */
  border: 0;
  padding: 8px;
  font-size: 16px;
  width: 100%;
  text-align: left;
  font-weight: 400;
  background: #f0f0f0;
  border-radius: 0;
  margin-bottom: 18px;
}

.swatch-dropdown-accordion-toggle {
  width: 100%;
  background: #f0f0f0;
  border: none;
  text-align: left;
  padding: 8px;
  font-size: 16px !important;
  cursor: pointer;
  position: relative;
  margin-bottom: 0;
  font-size: 16px;
  color: #000000;
  font-weight: 400 !important;
}

.swatch-dropdown-accordion-toggle .option-toggle-icon {
  float: right;
  /*content: '\f068';*/
  /*font-size: 1rem;*/
  /*display: inline-block;*/
  /*font-family: 'FontAwesome';*/
  /*color: #000000;*/
}
span.option-toggle-icon {
  /* Base styles */
  font-family: 'FontAwesome';
  font-size: 1rem;
  display: inline-block;
  position: relative;
  padding-left: 1.2em; /* space for the icon */
}

/* Closed state: show plus icon */
span.option-toggle-icon::before {
  content: '\f067'; /* FontAwesome plus icon unicode */
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'FontAwesome';
}

/* Open state: show minus icon */
span.option-toggle-icon.open::before {
  content: '\f068'; /* FontAwesome minus icon unicode */
}

.accordion-content {
  background: #fff;
  padding: 20px 10px 10px 10px;
  display: none;
}

.addon-accordion-header
.customdropdown {
  width: 100%;
  padding: 8px;
  /* border: 1px solid #ccc; */
}
.customdropdown {
  border-bottom: 0 !important;
  padding: 0em 1em !important;
}

.variations th.label {
  display: none;
}
.variation-accordion tr th.label {
  display: block;
  width: 100%;
}

.variations td.value {
  width: 100%;
  display: block;
}

.swatches {
  margin-bottom: 0 !important;
  /* padding-bottom: 10px !important; */
  padding: 0 10px;
}
.variations tr {
  margin-bottom: 0 !important;
}
.swatch-dropdown-accordion-toggle:focus {
  border: none;
  outline: none;
}
.accordion-content select:focus {
  outline: none;
  border: 1px solid #000;
}
/* End Swatch dropdown accordian */

.reset_variations {
  margin-top: 0 !important;
}


/* Addon Accordian */
.woocommerce div.product form.cart .variations td {
  line-height: 1em !important;
}
.addon-accordion {
  /* border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden; */
  /* padding: 10px; */
  margin-top: 30px;
  width: 100%;
}
.addon-accordion-header {
  border: 0;
  padding: 15px;
  font-size: 16px;
  width: 100%;
  text-align: left;
  font-weight: 400;
  background: #f0f0f0;
}
.accordion_toggle {
  /* font-size: 18px;
  font-weight: 400;
  padding: 5px; */
  float: right;
  /*content: '\f068';*/
  /*font-size: 1rem;*/
  /*display: inline-block;*/
  /*font-family: 'FontAwesome';*/
  color: #000000;
}
.accordion_toggle {
  font-family: 'FontAwesome';
  position: relative;
  padding-left: 1.2em; /* room for icon */
  display: inline-block;
  font-size: 1rem;
}

.accordion_toggle::before {
  content: '\f067'; /* FontAwesome plus icon */
  position: absolute;
  left: 0;
  top: -15px;
  font-family: 'FontAwesome';
}

/* When open (active), show minus icon */
.accordion_toggle.open::before {
  content: '\f068'; /* FontAwesome minus icon */
}

.accordion_content {
  display: none;
  padding: 10px;
  background: #fff;
}
.checkbox_wapf_group {
  margin-bottom: 8px;
  display: flex;
}

.addon_option {
  margin: 0 5px 5px 0 !important;
}

.accordion-toggle {
  width: 100%;
  background: #f8f8f8;
  border: none;
  text-align: left;
  padding: 10px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-toggle .accordion-icon {
  font-size: 18px;
}

.addon-accordion-header label {
    margin-bottom: 0;
    font-size: 16px;
    text-transform: CAPITALIZE;
    color: #000000;
}
/* End Addon Accordian */


/* Dimension toggle button in product details page */
.dimension-toggle-section {
  background-color: #e6e8e8;
}
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 25px;
  margin-bottom: 0 !important;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: -15px;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 25px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #17181aef;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.dimension-toggle label {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  vertical-align: middle;
}

.dimension-toggle {
  padding: 10px 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: absolute;
  right: 0;
}
.toggle-label {
  margin-right: 10px;
  margin-bottom: 0 !important;
}

.woocommerce-product-gallery {
    display: flow !important;
}
/* End Dimension toggle button in product details page */

@media screen and (max-width: 479px) {
  .lqd-woo-single-layout-3 div.product form.cart table.variations td.value, .lqd-woo-single-layout-3 div.product form.cart table.variations th.label {
    margin-bottom: 0 !important;
  }
}