:root {
  --single-max-width: min(700px, calc(100% - var(--standard-padding-side) * 2));
}

.woocommerce-tabs,
.entry-summary {
  width: var(--single-max-width);
}

.entry-summary .inner {
  padding: 1.25rem;
}

.single-product .product {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.single-product .product > div {
  padding-right: var(--container-default-padding-right);
  padding-left: var(--container-default-padding-left);
  display: flex;
  align-items: flex-start;
  align-content: flex-start;
  max-width: var(--container-max-width);
  flex-wrap: wrap;
  gap: min(2vw, 2rem);
}

.single-product .product > div > div {
  flex: 1 1 600px;
}

.entry-summary.text-primary,
.entry-summary.text-primary h1 {
  color: var(--dark);
}

.variations label,
.price,
.variable-item-span {
  font-family: "kaarna", Sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
}

.price del {
  font-size: 1.2rem;
  margin-right: 0.25rem;
}
.price span.woocommerce-Price-currencySymbol:after {
  content: "*";
}

th.label > * {
  font-size: 1rem;
}

th.label > label {
  text-transform: uppercase;
  font-size: 1.25rem;
}

th.label > label:after {
  content: ":";
}

body .price {
  font-size: 2rem;
  margin-bottom: 0.5rem;

  width: 100%;
  display: block;
}
.stock,
.wgm-info:not(:has(> small)) {
  font-size: var(--small);
}

.stock {
  padding: 0;
  margin-top: 0 !important;
}

.stock {
  margin-bottom: 1rem !important;
}

.stock:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  line-height: 1em;
  margin-top: -2px;
  background-color: currentColor;
  border-radius: 50%;
  vertical-align: middle;
}

.in-stock {
  color: green;
}

.woocommerce-de_price_taxrate,
.woocommerce_de_versandkosten {
  display: inline-block;
}

.woocommerce_de_versandkosten:before {
  content: "+ ";
}

/*  */

.breadcumbs,
body .breadcumbs a {
  color: var(--light);
}

.breadcumbs a:hover {
  text-decoration: none;
}

/* related */

.related.products {
  width: 100%;
}

.related.products h2 {
  padding-right: var(--container-default-padding-right);
  padding-left: var(--container-default-padding-left);
  margin: 0 auto;
  margin-top: 3rem;
  width: -webkit-fill-available;
}

/* Gallery */

.custom-product-gallery img {
  margin-bottom: -7px;

  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
}

.custom-featured-image {
  margin-bottom: 1rem;
}

.custom-product-gallery {
  width: 100%;
  width: var(--single-max-width);
}

.custom-product-gallery img {
  width: 100%;
  z-index: -1;
  position: relative;
}

.custom-gallery-images {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.custom-gallery-image {
  cursor: pointer;
}

.custom-gallery-image:hover img {
  cursor: pointer;
  opacity: 0.7;
}

.custom-gallery-images > div {
  width: 12%;
  aspect-ratio: 1/1;
}

/* */

body {
  --wvs-selected-item-background-color: black;
  --wvs-selected-item-text-color: white;
  --wvs-single-product-item-width: calc(25% - (6px));
}

table.variations {
  width: 100%;
}

.woo-variation-swatches
  .variable-items-wrapper
  .variable-item:not(.radio-variable-item).color-variable-item.selected:not(
    .no-stock
  )
  .variable-item-contents:before,
.woo-variation-swatches
  .variable-items-wrapper
  .variable-item:not(.radio-variable-item).image-variable-item.selected:not(
    .no-stock
  )
  .variable-item-contents:before {
  background-size: 20% !important;
}

body.woo-variation-swatches .wvs-style-squared.variable-items-wrapper {
}

/* active */
body.woo-variation-swatches
  .wvs-style-squared.variable-items-wrapper
  .variable-item:not(.radio-variable-item) {
  border-radius: 0;

  border-radius: 0 !important;

  padding: 0;

  height: fit-content;

  border: 4px solid black;
  box-shadow: none;
}

body.woo-variation-swatches .variable-items-wrapper {
  gap: 0.5rem;
}

body.woo-variation-swatches
  .variable-items-wrapper
  .variable-item:not(.radio-variable-item) {
  margin: 0;
}

body.woo-variation-swatches
  .variable-items-wrapper:not([data-attribute_name="attribute_pa_color"])
  .variable-item:not(.radio-variable-item):focus,
body.woo-variation-swatches
  .variable-items-wrapper:not([data-attribute_name="attribute_pa_color"])
  .variable-item:not(.radio-variable-item):hover {
  box-shadow: none;
}

body a.reset_variations {
  color: var(--dark);
  margin: 0.5rem 0;

  display: inline-block;

  font-size: var(--small);

  font-weight: bold;
}
body a.reset_variations:hover {
  text-decoration: none;
}

.woocommerce-variation.single_variation,
.variations label {
  padding-top: 0.5rem;
  padding-bottom: 0.25rem;
}

/* paypal */

.ppc-button-wrapper:before {
  content: "- oder -";
  width: 100%;
  display: block;
  text-align: center;
  font-size: var(--small);
  margin-bottom: 0.5rem;
}

.ppc-button-wrapper {
  min-height: calc(55px + 33px + 0.5rem);
  display: block;
  margin-top: 1rem;
}

/*add to cart */

.cart {
  margin-top: 2rem;
}

.variations_form.cart {
  margin-top: 1rem;
}

body button.single_add_to_cart_button[type="submit"],
body .woocommerce-variation-add-to-cart button[type="submit"] {
  border: 4px solid var(--dark);
  background-color: var(--dark);
  color: var(--light);
  width: -webkit-fill-available;
}

body button.single_add_to_cart_button[type="submit"]:hover,
body .woocommerce-variation-add-to-cart button[type="submit"]:hover {
  background-color: var(--light);
  color: var(--dark);
  border: 4px solid var(--dark);
}

.custom-text-field label {
  font-family: "kaarna", Sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.custom-text-field {
  width: 100%;
}

.custom-text-field input {
  width: -webkit-fill-available;
  border: 4px solid var(--dark);
  font-size: 1.5rem;
  padding: 0.5rem;
  border-radius: 0;
}

#char_count {
  font-size: var(--small);
  padding: 0;
  margin: 0;
  text-align: right;
}

/* qty */

.quantity {
  display: flex;
}
.qty {
  width: 2rem;
}

/* variations */

body.woo-variation-swatches
  .variable-items-wrapper.color-variable-items-wrapper {
  gap: 0.25rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: flex-start;
}
.woo-variation-swatches
  .variable-items-wrapper.color-variable-items-wrapper
  .variable-item:not(.radio-variable-item) {
  width: 40px;
}

body.woocommerce.woo-variation-swatches
  .wvs-style-squared.variable-items-wrapper
  .variable-item:not(.radio-variable-item).button-variable-item
  .variable-item-span {
  padding-top: 8px;
  padding-bottom: 8px;
}

.variable-item-contents > span {
  padding: 16px 0 16px 0;
}

.woo-variation-swatches
  .variable-items-wrapper
  .variable-item:not(.radio-variable-item).color-variable-item.selected:not(
    .no-stock
  )
  .variable-item-contents {
}

.variable-item:not(.radio-variable-item).color-variable-item:not(.selected) {
  opacity: 0.6;
  border-width: 4px;
}
.variable-item:not(.radio-variable-item).color-variable-item:not(
    .selected
  ):hover {
  opacity: 1;
}

body.woo-variation-swatches
  .variable-items-wrapper
  .variable-item:not(.radio-variable-item).color-variable-item.selected:not(
    .no-stock
  )
  .variable-item-contents:before {
  background-size: 50% !important;
  color: black;
}
