.custom-product-page {
  margin-top: 4rem;
}

.product-images .flickity-button,
.product-thumbnails .flickity-button {
  display: none;
}

.product-thumbnails a {
  border-radius: 3px;
  border: 1px solid rgb(233, 233, 233);
}

.product-thumbnails img {
  margin-bottom: 0;
  opacity: 1;
}

.product-thumbnails .is-nav-selected a img,
.product-thumbnails a:hover img {
  transform: none;
  margin: 0;
}

.product-thumbnails .is-nav-selected a,
.product-thumbnails a:hover {
  border-color: rgb(34, 34, 34);
}

.woocommerce-product-gallery {
  opacity: 1;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgb(233, 233, 233);
  border-radius: 5px;
  aspect-ratio: 1 / 1;
}

h1.product-title {
  font-size: 2rem;
  line-height: 45px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.ux-swatch--color,
.ux-swatch--image {
  width: 40px;
  height: 40px;
  padding: 3px;
  box-shadow: unset;
}

.ux-swatch:hover:not(.selected):not(.disabled) {
  box-shadow: unset;
}

form.variations_form .ux-swatch.selected {
  box-shadow: 0 0 0 1px var(--fs-color-secondary);
}

.ux-swatch--label {
  height: 2.5rem;
  border-radius: 5px;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  font-size: 0.875rem;
  color: #222;
  min-width: 56px;
  border: 1px solid #bdbdbd;
  box-shadow: none;
  font-weight: 600;
}

form.variations_form .ux-swatch.ux-swatch--label.selected {
  box-shadow: none;
  background-color: var(--fs-color-secondary);
  color: #fff;
}

form.variations_form tbody tr {
  display: block;
}

form.variations_form tbody tr:not(:first-child) {
  margin-top: 1.5rem;
}

form.variations_form tbody tr th.label,
form.variations_form tbody tr td.value {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
}

form.variations_form tbody tr th.label {
  font-size: 1rem;
  text-transform: capitalize;
  padding: 0;
  margin: 0;
}

form.variations_form tbody tr th.label label {
  font-size: 16px;
  margin-bottom: 0.75rem;
}

.product-select-toggle {
  border: 1px solid rgb(189, 189, 189);
  padding: 7px 32px 7px 14px;
  height: auto;
  min-height: 1.4375em;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  padding-right: 32px;
  border-radius: 5px;
  cursor: pointer;
}

.product-select-wrapper .label {
  line-height: 1;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.75rem;
}

.product-select-options {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #fff;
  position: absolute;
  width: 100%;
  z-index: 999;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
  box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 5px -3px, rgba(0, 0, 0, 0.14) 0px 8px 10px 1px, rgba(0, 0, 0, 0.12) 0px 3px 14px 2px;
  border-radius: 5px;
}

.product-select-wrapper.open .product-select-options {
  transform: scaleY(1);
  opacity: 1;
  pointer-events: auto;
  padding: 8px 0px;
}

.product-select-options li {
  margin: 0 !important;
  font-size: 16px;
  line-height: 24px;
  padding: 6px 16px;
  cursor: pointer;
}

.product-select-wrapper {
  margin-bottom: 1.5rem;
}

.product-select-options li.disabled {
  background: rgb(233, 233, 233) !important;
}

.product-select-options li:hover {
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0.04);
}

.wcpa_form_outer > .wcpa_row:not(:first-of-type) .wcpa_type_text {
  margin: 0;
  margin-top: -10px;
}

.wcpa_form_outer > .wcpa_row:not(:first-of-type) .wcpa_type_text label {
  display: none;
}

.product-price-container {
  margin-bottom: 1rem;
  position: relative;
}

.product-price-container .variation-price-copy {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #fff;
  width: 100%;
}

.product-price-container span.amount {
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.5rem;
  color: #222;
}

.product-price-container del {
  text-decoration: none;
}

.product-price-container del span.amount {
  color: #dd3730;
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.5rem;
  text-decoration: line-through;
  opacity: 1;
}

.variations .reset_variations,
form.cart .single_variation {
  display: none !important;
}

.product-payments {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 0.5rem;
  padding-bottom: 1.5rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.woocommerce-variation-add-to-cart {
  display: block;
}

form.cart .single_add_to_cart_button,
form.cart  .ux-buy-now-button {
  display: block;
  width: 100%;
  background-color: #008945;
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: none;
  line-height: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  text-transform: none;
  width: 100%;
  min-height: 48px;
  border-radius: 99px;
}

form.cart  .ux-buy-now-button {
	background-color: #222;
	margin-top: 15px;
}

.custom-quantity-wrapper {
  display: block;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}

.quantity-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.quantity input[type="button"].is-form {
  width: 35px;
  height: 35px;
  border-radius: 5px;
  box-shadow: none !important;
  min-height: unset;
  line-height: 1;
}

.quantity input[type="number"] {
  width: 35px;
  height: 35px;
  box-shadow: none !important;
}

.woocommerce-variation-add-to-cart,
form.cart {
  margin-bottom: 0;
}

.accordion .accordion-title {
  display: flex;
  flex-direction: column;
  border-bottom-width: 1px;
  padding-top: 1rem;
  padding-bottom: 1rem;
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: #e0e0e0;
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  padding-inline: 0;
}

.accordion .accordion-title.active {
  background-color: transparent;
}

.accordion .accordion-inner {
  padding: 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.25rem;
}

.accordion .toggle {
  margin: 0;
  right: 0;
  left: unset;
  top: 12px;
  color: #222;
  opacity: 1;
  font-size: 14px;
}

#accordion-custom_share-label {
  display: flex;
  flex-direction: unset;
  justify-content: space-between;
  align-items: center;
  border-bottom-width: 1px;
  padding-top: 1rem;
  padding-bottom: 1rem;
  outline: 2px solid transparent;
  outline-offset: 2px;
  border-color: #e0e0e0;
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  padding-inline: 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

#accordion-custom_share-label a {
  width: 24px;
  height: 24px;
}

.product-section {
  border-top: 0;
}

.product-section h3 {
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  padding: 0;
  margin-bottom: 15px;
}

.product-small .box-text {
  padding-top: 15px;
  padding-bottom: 0;
}

.product-small .ux-swatches {
  display: none !important;
}

.product-small .product-title {
  white-space: unset;
  margin-bottom: 0.25rem;
}

.related-products-wrapper .product-small {
  display: none;
}

.related-products-wrapper.show-all .product-small {
  display: block;
}

.related-products-wrapper .product-small:nth-child(-n + 3) {
  display: block;
}

.related-products-wrapper.show-all .product-small:nth-child(n + 4) {
  display: block;
}

#toggle-related-products {
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  height: unset;
  min-height: unset;
  line-height: 1.6;
}

.col-content .related {
  display: none !important;
}

.wcpa_form_outer .wcpa_form_item {
  margin-bottom: 0;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  padding: 16px;
  margin-top: 16px;
  background: rgb(247, 248, 250);
  border-radius: 8px;
}

.wcpa_form_outer .wcpa_form_item label {
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 22px !important;
  letter-spacing: 0.02em !important;
  margin-bottom: 0.5rem !important;
}

.wcpa_form_outer .wcpa_form_item .wcpa_helptext {
  font-size: 14px;
  color: rgb(34, 34, 34);
  margin-bottom: 8px;
}

.wcpa_form_outer .wcpa_form_item input[type="text"] {
  margin-bottom: 0;
  color: rgb(88, 88, 88);
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 16px;
  border: 1px solid #eee;
  border-radius: 6px;
  background-color: #fbfbfb;
}

.wcpa_form_outer .wcpa_error_msg {
  position: absolute;
  bottom: -5px;
  top: unset;
  font-size: 12px;
}

.wcpa_form_outer .wcpa_error_msg p {
  font-size: 12px;
}

form.variations_form tbody tr th.label.has-size-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#btn-size-guide {
  line-height: 24px;
  letter-spacing: 0.02em;
  color: #222;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

#btn-size-guide svg {
  font-size: 20px;
  width: 24px;
  height: 24px;
  margin-bottom: -6px;
}

@media screen and (min-width: 850px) {
  .col-gallery .large-2 {
    flex-basis: 80px;
    max-width: 80px;
  }

  .col-gallery .large-10 {
    flex-basis: calc(100% - 80px);
    max-width: calc(100% - 80px);
  }
}

@media only screen and (max-width: 48em) {
  .product-thumbnails {
    display: none !important;
  }

  .col-gallery .related {
    display: none !important;
  }

  .custom-product-page {
    margin-top: 2rem;
  }

  .col-gallery,
  .col-gallery .col {
    padding-bottom: 0;
  }

  h1.product-title {
    margin-top: 15px;
  }

  .col-content .related {
    display: block !important;
    margin-top: 30px;
  }

  .related-products-wrapper .product-small {
    display: block;
  }
}
