/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

.blog-post-loop .wd-post-date,
.single-post .wd-post-date {
display: none;
}

/* Haljas Hele Single (product 168414) – hide price, add-ons & cart */
.postid-168414 .price,
.postid-168414 .cart,
.postid-168414 .single_add_to_cart_button,
.postid-168414 .wc-pao-addon-container,
.postid-168414 .product_meta,
.postid-168414 .wc-pao-addons-container,
.postid-168414 form.cart {
	display: none !important;
}

/* CTA block */
.sm-haljas-cta {background:#000000;color:#ffffff;border-radius:8px;
	padding: 28px 24px;
	margin-top: 16px;
	text-align: center;
}
.sm-haljas-cta__headline {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 12px;color:#ffffff;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.sm-haljas-cta__body {
	font-size: 15px;
	line-height: 1.6;color:#000000;
	margin: 0 0 20px;
}
.sm-haljas-cta__phone {
	display: inline-block;background:#ef9035;color:#ffffff;
	font-size: 20px;
	font-weight: 700;
	padding: 14px 32px;border-radius:6px;
	text-decoration: none;
	transition: background 0.2s;
}
.sm-haljas-cta__phone:hover {background:#ef9035;color:#ffffff;
}
.sm-haljas-cta__phone-icon {
	margin-right: 8px;
}
.sm-haljas-cta__sub {
	font-size: 13px;color:#000000;
	margin: 14px 0 0;
}
/* Product Add-Ons: keep add-on blocks inside the summary column (2026-07-07).
   form.cart is display:flex (Woodmart/Elementor); flex items default to
   min-width:auto, so a <select> sized to its longest option label blows the
   whole add-on block past the column and off the right edge of the window
   on screens <=1600px. Force flex items to shrink and selects to fill. */
form.cart .single_variation_wrap,
form.cart .wc-pao-addons-container {
	min-width: 0;
	max-width: 100%;
}
.wc-pao-addon .wc-pao-addon-wrap select.wc-pao-addon-field {
	width: 100%;
	max-width: 100%;
}

/* Kuula 360 virtual tours (2026-07-07): embeds get pasted with missing or tiny
   size attrs (no height = 150px browser default; some are 360x360 squares).
   Covers direct kuula.co iframes and embedly-wrapped ones. */
.entry-content iframe[src*="kuula.co"] {
	display: block;
	width: 100% !important;
	height: clamp(400px, 60vh, 640px) !important;border:0;
}
/* Stray empty bullets pasted into product descriptions (e.g. dimensions lists) */
.entry-content li:empty {
	display: none;
}

/* Mobile editorial/specification tables (2026-08-09).
   Product descriptions use both legacy and current scroll wrappers, while
   older product/page/post content sometimes has a bare table. Keep those
   tables inside the viewport and horizontally touch-scrollable without
   changing WooCommerce's variation, attribute, cart, checkout, or order
   tables. */
@media (max-width: 767px) {
	.table-responsive,
	.smp-table-scroll,
	.wp-block-table {
		display: block;
		width: 100%;
		max-width: 100%;
		overflow-x: auto !important;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}

	.wd-single-content table:not(:where(.shop_attributes, .variations, .cart, .woocommerce-checkout-review-order-table, .woocommerce-orders-table, .woocommerce-table--order-details, .woocommerce-table--order-downloads)),
	.entry-content table:not(:where(.shop_attributes, .variations, .cart, .woocommerce-checkout-review-order-table, .woocommerce-orders-table, .woocommerce-table--order-details, .woocommerce-table--order-downloads)),
	.wd-entry-content table:not(:where(.shop_attributes, .variations, .cart, .woocommerce-checkout-review-order-table, .woocommerce-orders-table, .woocommerce-table--order-details, .woocommerce-table--order-downloads)),
	.woocommerce-product-details__short-description table:not(:where(.shop_attributes, .variations, .cart, .woocommerce-checkout-review-order-table, .woocommerce-orders-table, .woocommerce-table--order-details, .woocommerce-table--order-downloads)) {
		display: block;
		width: 100%;
		max-width: 100%;
		overflow-x: auto !important;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}

	.wd-single-content :is(.table-responsive, .smp-table-scroll, .wp-block-table) > table:not(:where(.shop_attributes, .variations)),
	.entry-content :is(.table-responsive, .smp-table-scroll, .wp-block-table) > table:not(:where(.shop_attributes, .variations)),
	.wd-entry-content :is(.table-responsive, .smp-table-scroll, .wp-block-table) > table:not(:where(.shop_attributes, .variations)),
	.woocommerce-product-details__short-description :is(.table-responsive, .smp-table-scroll, .wp-block-table) > table:not(:where(.shop_attributes, .variations)) {
		display: table;
		width: auto;
		min-width: 100%;
		max-width: none;
		overflow: visible !important;
	}
}
