.sfw-wrapper {
  top: 0;
  position: relative;
  width: 100%;
  transition: top 0.5s ease-in-out;
}

.woosg-item-product:hover {
  opacity: 1 !important;
  transition: all 0.3s ease-in-out;
}

.woosg-item-product {
  opacity: 1;
  transition: all 0.3s ease-in-out;
}

.woosg-item-product.sf-opac {
  opacity: 0.5;
  transition: all 0.3s ease-in-out;
}

.sfg-active {
  position: absolute;
}

.woocommerce div.product .clearfix {
  display: flow-root;
}

.sfw-wrapper.sfg-mobile {
  position: fixed;
  margin-top: auto;
  width: 75vw;
  background-color: white;
  display: table;
  margin-bottom: 0;
  bottom: 3px;
  z-index: 100;
  left: 0;
  padding: 10px;
  box-shadow: 3px 3px 3px 3px #c6c6c682;
  top: auto;
}

.woocommerce-tabs.wc-tabs-wrapper {
  transition: all ease-in-out 0.3s;
}

.woocommerce-tabs.wc-tabs-wrapper.sf-tabs {
  margin-top: 260px !important;
  transition: all ease-in-out 0.3s;
}

.yk-wpc-ajax-filter {
  padding-bottom: 30px;
}

/* a3 lazy load speed */
.lazy-loaded {
  -webkit-transition: opacity 0.1s;
  -moz-transition: opacity 0.1s;
  -ms-transition: opacity 0.1s;
  -o-transition: opacity 0.1s;
  transition: opacity 0.1s;
  opacity: 1 !important;
}

/* Image with 'data' attribute is hidden */
img[data-lazy-src] {
  /* we set the opacity to 0 */
  opacity: 0;
}
/* Image without 'data' attribute is (or becomes) visible */
img.lazyloaded {
  /* prepare the future animation */
  -webkit-transition: opacity 0.1s linear 0.1s;
  -moz-transition: opacity 0.1s linear 0.1s;
  transition: opacity 0.1s linear 0.1s;
  /* we set the opacity to 1 to do the magic */
  opacity: 1;
}
/* Hide Zwischensumme from Cart page 
.woocommerce-cart .cart-collaterals .cart_totals table{
display: none; 
}*/

.cart_totals h2 {
  display: none !important;
}
.cart-subtotal {
  display: none !important;
}

/* Styling for custom note on product page and checkout page above button */
div.woosg-alert.woosg-text.woosg-custom-product {
  border-left: 4px solid #cfe2d9 !important;
  font-size: 1rem !important;
  font-family: europa, sans-serif !important;
  /*font-weight: 300 !important;*/
}

div.woosg-alert.woosg-text.woosg-custom-cart-page {
  border-right: 4px solid #cfe2d9 !important;
  border-left: 4px solid rgba(255, 255, 255, 0);
  font-size: 1rem !important;
  font-family: europa, sans-serif !important;
  text-align: right !important;
  /*font-weight: 300 !important;*/
  width: auto !important;
  display: inline-block;
  max-width: 100%;
}

/* Styling Cart page cart-collaterals section  */
/* Align Zwischensumme (subtotal) column to the right */
.woocommerce-cart table.cart .product-subtotal {
  text-align: right;
}

/* Align cart totals block to the right */
.woocommerce .cart-collaterals .cart_totals {
  float: right;
  width: 48%;
  text-align: right;
}

/* Align the total row values to the right */
.woocommerce .cart_totals table th,
.woocommerce .cart_totals table td {
  text-align: right;
}

/* Align checkout button to the right */
.woocommerce .cart_totals .wc-proceed-to-checkout {
  text-align: right;
}

.woocommerce .cart_totals .wc-proceed-to-checkout a.checkout-button {
  display: inline-block;
  float: right;
}

/* Clear float after totals */
.woocommerce .cart-collaterals::after {
  content: "";
  display: table;
  clear: both;
}

/* Stack Gesamtsumme label above price */
.woocommerce .cart_totals .order-total th,
.woocommerce .cart_totals .order-total td {
  display: block;
  width: 100%;
  text-align: right;
  display: inline-block;
  float: right;
}
.woocommerce .cart_totals .order-total td {
  border-top: none !important;
}

.woocommerce div.product div.images.woocommerce-product-gallery {
  width: round(down, 48%, 1px); /* 518.4px → 518px */
}

@media (max-width: 768px) {
  .woocommerce div.product div.images.woocommerce-product-gallery {
    width: round(
      down,
      100%,
      1px
    );
  }
}
