
.accordion-shadow {
  box-shadow: 10px -10px 0px rgba(255,255,255,0.5), 20px -20px 0px rgba(255,255,255,0.1);
}

.wp-block-post-title,
.wp-block-post-title a {
  line-height: 1.4;
  text-decoration: none;
}
a.wp-block-post-title:hover,
.wp-block-post-title a:hover {
  text-decoration: underline;
}



/*** IMAGELIFTS BLOCK ***/

.wp-block.imagelift_block .imagelift_container {
  box-sizing: border-box;
  /* height: 21vw;
  max-height: 34rem; */
  position: relative;
}

.wp-block.imagelift_block .imageframe {
  position: relative;
}
.wp-block.imagelift_block .imageframe img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}
.wp-block.imagelift_block .imageframe_large {
  padding-bottom: clamp(2.5rem, 3vw, 5.625rem);
  width: 77.7%;

  &.full_frame {
    width: 100%;
  }
}
.wp-block.imagelift_block .imageframe_large:not(.keep_ratio) {
  aspect-ratio: 5 / 4;
}
.wp-block.imagelift_block .imageframe_small {
  aspect-ratio: 16 / 15;
  bottom: 0;
  left: 0;
  position: absolute;
  width: 46.6%;
}

.wp-block.imagelift_block .imageframe_large img {
  position: relative;
  z-index: 1;
}
.wp-block.imagelift_block .imageframe_small img {
  border: solid 10px white;
  border-radius: 0;
  position: relative;
  z-index: 2;
}

.wp-block.imagelift_block .imagelift_container:not(.reversed_order) .imageframe_large {
  margin-left: auto;
}
.wp-block.imagelift_block .imagelift_container.reversed_order .imageframe_large {
  margin-right: auto;
}
.wp-block.imagelift_block .imagelift_container.reversed_order .imageframe_small {
  left: auto;
  right: 0;
}

.wp-block.imagelift_block .imageframe svg {
  position: absolute;
  z-index: 0;
}
.has-base-2-background-color .wp-block.imagelift_block .imageframe svg {
  fill: var(--wp--preset--color--base);
}

.wp-block.imagelift_block .imageframe_large svg.graphics_dots {
  bottom: 0;
  right: 2.75rem;
}
.wp-block.imagelift_block .imageframe_large svg.graphics_sphere {
  right: -3.5rem;
  top: 2.5rem;
}
.wp-block.imagelift_block .reversed_order .imageframe_large svg.graphics_dots {
  left: 2.75rem;
  right: auto;
}
.wp-block.imagelift_block .reversed_order .imageframe_large svg.graphics_sphere {
  left: -3.5rem;
  right: auto;
}

.wp-block.imagelift_block .imageframe_small svg.graphics_dots {
  left: 50%;
  top: -50%;
  transform: translate(-50%, 50%);
}


@media (max-width: 781px) {
  .wp-block.imagelift_block .imageframe_large.keep_ratio {
    width: 100%;
  }
}



/*** BRANDS BLOCK ***/

.wp-block.brands_block {
  margin-block-start: 0;
  margin-block-end: 0;
}

.wp-block.brands_block .brands_container {
  border-top: solid 1px #e2e2e2;
  display: block;
  column-count: 4;
  column-gap: 2rem;
  position: relative;
}
.wp-block.brands_block .brands_container:before {
  content: " ";
  display: block;
  height: 1px;
  position: absolute;
  top: -1px;
  width: 100%;
  
  background-color: transparent;
  
  /* The actual white gaps at the top */
  background-image: linear-gradient(
    90deg,
    transparent calc(100% - 2rem), /* minus the gap... */
    white 2rem);  /* white-mask width, equal to 'column-gap' */

  /* 4 column layout: background-size = 1/4 of the width + 1/4 of the space between columns */
  background-size: calc(25% + .5rem) 1px;
}

.wp-block.brands_block .brand_item {
  align-items: center;
  border-bottom: solid 1px #e2e2e2;
  border-top: 0;
  display: flex;
  font-size: 1rem;
  font-weight: 300;
  gap: 1rem;
  justify-content: space-between;
  padding: .375rem .625rem;
  position: relative;
  text-decoration: none;
  transition: all .3s ease-in-out;
}
.wp-block.brands_block .brand_item:hover {
  color: #9c9c9c;
}

.wp-block.brands_block .brand_item svg {
  transition: all .3s ease-in-out;
}
.wp-block.brands_block .brand_item:hover svg {
  fill: #9c9c9c;
  transform: translateX(8px);
}

@media (max-width: 1199px) {
  .wp-block.brands_block .brands_container {
    column-count: 3;
    column-gap: 1.5rem;
  }
  .wp-block.brands_block .brands_container:before {
    background-image: linear-gradient(
      90deg,
      transparent calc(100% - 1.5rem),
      white 1.5rem);
    background-size: calc(33.33% + .5rem) 1px;
  }
}

@media (max-width: 1023px) {
  .wp-block.brands_block .brand_item {
    font-size: .875rem;
  }
}

@media (max-width: 823px) {
  .wp-block.brands_block .brands_container {
    column-count: 2;
    column-gap: 1rem;
  }
  .wp-block.brands_block .brands_container:before {
    background-image: linear-gradient(
      90deg,
      transparent calc(100% - 1rem),
      white 1rem);
    background-size: calc(50% + .5rem) 1px;
  }
}



/*** PRODUCT CATEGORY COVER BLOCK ***/

.wp-block.product_category_cover_block {
  align-items: center;
  background-color: black;
  color: #fff;
  display: flex;
  /* height: clamp(12rem, 30vw, 44rem); */
  height: clamp(12rem, 30vw, 25rem);
  justify-content: center;
  position: relative;
  width: 100%;
}
.wp-block.product_category_cover_block.no-image {
  background-color: var(--wp--preset--color--contrast);
  color: #fff;
  height: clamp(10rem, 22vw, 10rem);
}

.wp-block.product_category_cover_block .product-category-title {
  color: inherit;
  position: relative;
  z-index: 2;
}

.wp-block.product_category_cover_block img {
  height: 100%;
  left: 0;
  object-fit: cover;
  opacity: 0.7;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
}



/*** GROUPED PRODUCT CATEGORIES BLOCK ***/

.wp-block.products_grouped_by_category_block .total-products-count {
  margin-bottom: 3rem;
  display: none;
}

.wp-block.products_grouped_by_category_block .category-header {
  margin-bottom: 3rem;
}
.wp-block.products_grouped_by_category_block .category-header .category-title {
  margin-block-end: 0;
}
.wp-block.products_grouped_by_category_block .category-header .category-content {
  display: flex;
  flex-direction: column;
}
.wp-block.products_grouped_by_category_block .category-header img {
  margin-right: 2.5rem;
  margin-top: 0rem;
  max-width: 19rem;
  width: 50%;
}
.wp-block.products_grouped_by_category_block .category-header img + .category-description {
  padding-top: 26px;
}

.wp-block.products_grouped_by_category_block .grouped-products-list .wc-block-product-template__responsive + .wc-block-product-template__responsive {
  margin-top: 4rem;
}

.wp-block.products_grouped_by_category_block .grouped-products-list .subcategory-title {
  margin-bottom: 3rem;
}
.wp-block.products_grouped_by_category_block .grouped-products-list .subcategory-title:not(:first-of-type) {
  border-top: solid 1px lightgray;
  margin-top: 5rem;
  padding-top: 4rem;
}

.wp-block.products_grouped_by_category_block .grouped-products-list .additional-section-title {
  margin-top: 5rem;
}

.wp-block.products_grouped_by_category_block .wc-block-grid__product-price {
  margin-bottom: 2rem;
  margin-top: 1.25rem;
}

.wp-block-woocommerce-product-collection .template-disabled {
  display: none;
  height: 0;
  visibility: hidden;
}

.products_grouped_by_category_block .grouped-products-list {
  display: flex;
  flex-direction: column;
}
.woocommerce .products_grouped_by_category_block form.woocommerce-ordering {
  width: fit-content;
  margin: 0 0 1rem auto;
}
.woocommerce .products_grouped_by_category_block form.woocommerce-ordering select.orderby {
  background-color: transparent;
  border: unset;
  outline: unset;
  box-shadow: unset;
  margin-bottom: unset;
  font-size: .875rem;
  padding: 0 1.25rem 0;
  text-align: right;
  cursor: pointer;
}


@media (max-width: 639px) {
  .wp-block.products_grouped_by_category_block .category-header .category-content {
    flex-direction: column;
  }
  .wp-block.products_grouped_by_category_block .grouped-products-list .wc-block-product-template__responsive + .wc-block-product-template__responsive {
    margin-top: 2rem;
  }
}




/*** PRODUCT CATEGORIES BLOCK ***/

.wp-block.product_categories_block {
  margin-block-start: 0;
  margin-block-end: 0;
}

.wp-block.product_categories_block .product_cat_container {
  border-top: solid 1px #e2e2e2;
  display: block;
  column-count: 2;
  column-gap: 2.375rem;
  position: relative;
}
.wp-block.product_categories_block .product_cat_container:before {
  content: " ";
  display: block;
  height: 1px;
  position: absolute;
  top: -1px;
  width: 100%;
  
  background-color: transparent;
  
  /* The actual white gaps at the top */
  background-image: linear-gradient(
    90deg,
    transparent calc(100% - 2.375rem), /* minus the gap... */
    white 2rem);  /* white-mask width, equal to 'column-gap' */

  /* 2 column layout: background-size = 1/2 of the width + 1/2 of the space between columns */
  background-size: calc(50% + 1.1875rem) 1px;
}

.wp-block.product_categories_block .category_item {
  align-items: center;
  border-bottom: solid 1px #e2e2e2;
  border-top: 0;
  display: flex;
  font-size: 1rem;
  font-weight: 300;
  gap: 1rem;
  hyphens: auto;
  justify-content: space-between;
  padding: .375rem .625rem;
  position: relative;
  text-decoration: none;
  transition: all .3s ease-in-out;
}
.wp-block.product_categories_block .category_item:hover {
  color: #9c9c9c;
}

.wp-block.product_categories_block .category_item svg {
  transition: all .3s ease-in-out;
}
.wp-block.product_categories_block .category_item:hover svg {
  fill: #9c9c9c;
  transform: translateX(8px);
}

@media (max-width: 1199px) {
  .wp-block.product_categories_block .product_cat_container {
    column-gap: 1rem;
  }
  .wp-block.product_categories_block .product_cat_container:before {
    background-image: linear-gradient(
      90deg,
      transparent calc(100% - 1rem),
      white 2rem); 
  
    background-size: calc(50% + 0.5rem) 1px;
  }
  .wp-block.product_categories_block .category_item {
    font-size: .875rem;
  }
  .wp-block.product_categories_block .category_item svg {
    width: .875rem;
  }
}

@media (max-width: 1023px) {

}



/*** PRODUCT CHILD CATEGORIES ***/

.wc-block-product-categories-list .current-category-item,
.wc-block-product-categories-list .current-category-item a {
  /*color: var(--wp--preset--color--accent);
  text-decoration: none; */
  text-decoration: underline;
}


/*** RECOMMENDED PRODUCTS BLOCK ***/

.wp-block.recommended_products_block {
  display: block;
  padding: 3.875rem var(--wp--preset--spacing--30) 5rem;
  position: relative;
}

.wp-block.recommended_products_block .recommended-products-title {
  margin-bottom: 3rem;
  margin-top: 0;
  text-align: center;
}

.wp-block.recommended_products_block .recommended-products-template {
  justify-content: center;
}

.wp-block.recommended_products_block .recommended-products-template .wc-block-product-template > li {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}


/* additional recommendations */
.wp-block.recommended_products_block .additional-recommendation {
  background-color: #222;
  color: white;
  padding: 2.5rem;
  position: relative;
  text-decoration: none;
}

.wp-block.recommended_products_block .additional-recommendation svg {
  opacity: 0.1;
  position: absolute;
  bottom: 0;
  right: 0;
  -webkite-transition: all .3s ease;
  transition: all .3s ease;
}

.wp-block.recommended_products_block a.additional-recommendation:hover svg {
  transform: scale(1.2);
}

.wp-block.recommended_products_block .additional-recommendation-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  row-gap: 2rem;
  position: relative;
  z-index: 2;
}


.wp-block.recommended_products_block .additional-recommendation-content p {
  font-weight: 300;
}
.wp-block.recommended_products_block .additional-recommendation-content p:first-child {
  margin-top: 0;
}
.wp-block.recommended_products_block .additional-recommendation-content p:last-child {
  margin-bottom: 0;
}

.wp-block.recommended_products_block .additional-recommendation-content strong {
  font-size: 1.25rem;
  line-height: 1.4;
}

.wp-block.recommended_products_block .content-link {
  color: var(--wp--preset--color--accent);
}
.wp-block.recommended_products_block a.additional-recommendation:hover .content-link {
  text-decoration: underline;
}


.wp-block.recommended_products_block .recommended-products-template .product-content {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  padding: 0 .75rem;
  row-gap: .5rem;
}

.wp-block.recommended_products_block .wc-block-grid__product-image {
  border: 0;
}
.wp-block.recommended_products_block .product-purchase-details {
  margin-top: auto;
}

.wp-block.recommended_products_block .wc-block-grid__product-price {
  margin-bottom: 1.5rem;
}


@media (max-width: 639px) {
  .wp-block.recommended_products_block .additional-recommendation {
    padding: 1rem;
  }
}



/*** LOGO BLOCK ***/

.wp-block.logo_block {
  margin-block-start: 0;
  margin-block-end: 0;
}

.wp-block.logo_block .logo_container {
  display: grid;
  gap: 5.75rem;
  grid-template-columns: repeat(7, 1fr);
}
.wp-block.logo_block .logo-image {
  align-items: center;
  display: flex;
  height: 100%;
}
.wp-block.logo_block .logo-image img {
  height: auto;
  width: 100%;
}
.wp-block.logo_block .logo-image .logo-link {
  display: flex;
  height: auto;
  width: 100%;
}


@media (max-width: 1439px) {
  .wp-block.logo_block .logo_container {
    gap: 3.5rem;
  }
}

@media (max-width: 1199px) {
  .wp-block.logo_block {
    margin-left: 5rem !important;
    margin-right: 5rem !important;
  }
}

@media (max-width: 1023px) {
  .wp-block.logo_block .logo_container {
    gap: 2.5rem;
  }
}

@media (max-width: 823px) {
  .wp-block.logo_block {
    margin-left: 2.5rem !important;
    margin-right: 2.5rem !important;
  }
}

@media (max-width: 639px) {
  .wp-block.logo_block {
    margin-left: 2rem !important;
    margin-right: 2rem !important;
  }
  .wp-block.logo_block .logo_container {
    gap: 1rem 3rem;
    grid-template-columns: repeat(3, 1fr);
  }
}




/***  VIDEO BLOCK (Popup)  ***/

.wp-block.video_popup_block .video-frame {
  align-items: center;
  aspect-ratio: 5 / 3;
  display: flex;
  justify-content: center;
}
.wp-block.video_popup_block .video_image {
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

@media (min-width: 2000px) {
  .wp-block.video_popup_block {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 2000px;
  }
}


.wp-block.video_popup_block > .wp-block-columns {
  gap: 2.5rem;
}

@media (min-width: 992px) and (max-width: 1439px) {
  .wp-block.video_popup_block > .wp-block-columns {
    column-gap: 0;
  }
}

.wp-block.video_popup_block .wp-block-column {
  box-sizing: border-box;
}

.video_popup_block .video-frame {
  cursor: pointer;
  position: relative;
}
header .video_popup_block .video-frame {
  max-width: 300px;
}

.video_popup_block .icon-play-video {
  filter: drop-shadow(0 0 1rem rgba(0,0,0,0.16));
  height: auto;
  position: absolute;
  width: 5rem;
}
section.header-block-wrapper .video_popup_block .icon-play-video {
  width: 2.5625rem;
}




/* Round Frame Layout */
.video_popup_block .video-round-frame {
  height: 34vw;
  max-height: 650px;
  width: 100%;
}

.video_popup_block .video-round-frame .video_image {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

@media (max-width: 991px) {
  .video_popup_block .video-round-frame {
    height: 70vw;
  }
}

/* Full Frame Layout */
.video_popup_block .video-full-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.video_popup_block .video-full-frame .video_image {
  height: 100%;
  object-fit: cover;
  width: 100%;
}
    


section.videolift-section .block-content {
  max-width: 504px;
}


.popup {
  display: none;
  position: fixed;
  z-index: 100001;  /* this value allows popup always to open on top of the menu navigation */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  padding-top: 60px;
}

.popup-content {
  background-color: rgba(255,255,255, 0.8);
  border: 1px solid #888;
  margin: 5% auto;
  max-width: 1140px;
  padding: 20px;
  position: relative;
  width: 80%;
}

.popup-content .video_frame {
  height: 44.9vw;
  max-height: 640px;
  width: 100%;
}

.closePopup {
  background-color: var(--wp--preset--color--contrast);
  color: #fff;
  cursor: pointer;
  float: right;
  font-size: 40px;
  padding: 0 2px 4px 2px;
  position: absolute;
  left: calc(100% + .75rem);
  top: -65px;
  
  height: 60px;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;

  transition: all .3s ease-in-out;
}

.closePopup:hover,
.closePopup:focus {
  background-color: var(--wp--preset--color--accent);
  cursor: pointer;
  text-decoration: none;
}


/* Breakpoint: Custom Wide */
@media (max-width: 1439px) {
  .closePopup {
    border-width: 2px;
    font-size: 30px;
    padding: 0 0 1px 0;
    left: 100%;
    top: -44px;
    
    height: 40px;
    width: 40px;
  }
}

/* Breakpoint: Laptop */
@media (max-width: 1199px) {
  .video_popup_block .icon-play-video {
    width: 3.875rem;
  }
}

/* Breakpoint: Tablet (landscape) */
@media (max-width: 991px) {
  .video_popup_block .video_image {
    height: 73.5vw;
  }
}

/* Breakpoint: Tablet (portrait) */
@media (max-width: 767px) {
  .popup-content {
    padding: 10px 10px 0 10px;
  }
  .closePopup {
    left: auto;
    right: -14px;
    top: -14px;
  }
}



/* Iston hot fix */
.tuotemerkit-etusivu.wp-block.brands_block .brands_container {
  border-top: solid 1px #e2e2e2;
  display: block;
  column-count: unset;
  column-gap: unset;
  position: unset;
}
.tuotemerkit-etusivu.wp-block.brands_block .brands_container:before {
  display: none;
}


/** pickup alterations */
.page.woocommerce-checkout.is-consumer-customer label.wc-block-components-radio-control__option[for="radio-control-0-pickup_location:0"],
.page.woocommerce-checkout.is-consumer-customer .wp-block-woocommerce-checkout fieldset#shipping-method,
.page.woocommerce-checkout.is-consumer-customer .wp-block-woocommerce-checkout-pickup-options-block,
.page.woocommerce-cart.is-consumer-customer label.wc-block-components-radio-control__option[for="radio-control-0-pickup_location:0"],
.page.woocommerce-cart.is-consumer-customer .wp-block-woocommerce-checkout fieldset#shipping-method {

  display: none!important;
}

/* Cross sells tuotteet korissa, tama pitaisi siirtaa oikeaan paikkaan */
.wp-block-woocommerce-cart-cross-sells-block .wp-block-cart-cross-sells-product__product-image {
  height: 0;
  overflow: hidden;
  padding-bottom: 100%;
  position: relative;
  display: block;
  border: solid 1px #e5e5e5;
}
.wp-block-woocommerce-cart-cross-sells-block .wp-block-cart-cross-sells-product__product-image a {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ffffff;
}
.wp-block-woocommerce-cart-cross-sells-block .wp-block-cart-cross-sells-product__product-image a img {
  object-fit: cover;
  max-width: calc(100% - 6rem);
  max-height: calc(100% - 6rem);
  padding: 3rem;
}
.wp-block-woocommerce-cart .wp-block-woocommerce-cart-cross-sells-block .cross-sells-product div .wc-block-components-product-name {
  font-size: var(--wp--preset--font-size--small) !important;
  font-style: normal;
  font-weight: 300;
  margin-top: 0;
  text-align: center;
  margin-bottom: 0;
  text-decoration: none;
}
.wp-block-woocommerce-cart-cross-sells-block .wc-block-components-product-rating-stars {
  display: none;
}
.wp-block-woocommerce-cart .wp-block-woocommerce-cart-cross-sells-block .cross-sells-product div .wc-block-components-product-price {
  display: block;
  font-weight: 600;
  margin-bottom: .5em;
  font-size: unset;
}
.wp-child-theme-plvaraosat_wp span.wc-block-formatted-money-amount.wc-block-components-formatted-money-amount.wc-block-components-product-price__value {
  align-items: start;
}