.acf-product-video {
    width: 100%;
    max-width: 800px;
    margin: 40px 0;
}

.acf-product-video iframe,
.acf-product-video video {
    width: 100%;
    max-height: 450px;  /* ← limit the height without cutting controls */
    aspect-ratio: 16 / 9; /* ← maintains shape */
    object-fit: contain; /* ← prevents stretching */
    display: block;
    border: 0;
}


/* Single product main image: force a square crop visually */
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image {
  aspect-ratio: 1 / 1;    /* change to 4/3, 16/9, etc. */
  overflow: hidden;
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* crop without distortion */
}

/* Make gallery thumbnails consistent too (optional) */
.single-product .flex-control-thumbs li {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.single-product .flex-control-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hide the trailing duplicate currency code in CART totals */
.wc-block-cart .wc-block-components-totals
  .wc-block-components-totals-item__value
  .wc-block-components-formatted-money-amount__currency-code:last-child {
  display: none !important;
}

/* Hide only the default Add to Cart button for product 6771 */
.postid-6771 .single_add_to_cart_button { display: none !important; }

/*hide currency banner */
.woocommerce-store-notice.demo_store { display: none !important; }


/* ForestryLink Eastonmade embedded product pages */

/* Hide original WooCommerce gallery */
body.fl-eastonmade-embed .woocommerce-product-gallery,
body.fl-eastonmade-embed .product > .images,
body.fl-eastonmade-embed .product div.images {
    display: none !important;
}

/* Hide original price and purchasing controls */
body.fl-eastonmade-embed .summary > .price,
body.fl-eastonmade-embed .summary > form.cart,
body.fl-eastonmade-embed .summary > .cart,
body.fl-eastonmade-embed .summary > .product_meta,
body.fl-eastonmade-embed .summary > .woocommerce-product-rating,
body.fl-eastonmade-embed .summary > .woocommerce-product-details__short-description,
body.fl-eastonmade-embed .summary > .woocommerce-variation,
body.fl-eastonmade-embed .summary > .single_add_to_cart_button,
body.fl-eastonmade-embed .summary > .deposit-buttons,
body.fl-eastonmade-embed .summary > .wc-deposits-wrapper {
    display: none !important;
}

/* Hide duplicate product description tabs */
body.fl-eastonmade-embed .woocommerce-tabs {
    display: none !important;
}

/* Remove the original two-column layout */
body.fl-eastonmade-embed .woocommerce div.product div.summary,
body.fl-eastonmade-embed div.product div.summary,
body.fl-eastonmade-embed .product .summary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Expand embedded content */
body.fl-eastonmade-embed .fl-embedded-content {
    width: 100% !important;
    max-width: 100% !important;
    clear: both;
    margin-top: 20px;
}

/* Manufacturer iframe */
body.fl-eastonmade-embed.single-product
iframe[src*="eastonmadewoodsplitters.com"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 1800px !important;
    border: 0 !important;
}

@media (max-width: 1000px) {
    body.fl-eastonmade-embed.single-product
    iframe[src*="eastonmadewoodsplitters.com"] {
        height: 600px !important;
    }
}