/*!
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: A child theme for the Kadence Theme.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

/* Checkout "Your Order": product thumbnail next to each item name. */
.woocommerce-checkout-review-order-table .product-name img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 4px;
	float: left;
	margin-right: 12px;
}

/* Checkout "Your Order": the per-item Remove link, on its own line below
   the product title (clear: both drops it past the floated thumbnail). */
.woocommerce-checkout-review-order-table .product-name a.order-review-remove {
	display: block;
	clear: both;
	margin-top: 4px;
	font-size: 0.8em;
	line-height: 1.4;
	color: #999;
	text-decoration: none;
}

.woocommerce-checkout-review-order-table .product-name a.order-review-remove:hover,
.woocommerce-checkout-review-order-table .product-name a.order-review-remove:focus {
	color: #b71c1c;
	text-decoration: underline;
}

.woocommerce-checkout-review-order-table .product-name a.order-review-remove.removing {
	opacity: 0.5;
	pointer-events: none;
}

/* Preview-stamped images (cart thumbnail, checkout "Your Order" thumbnail):
   hint that the image opens a preview overlay. */
img[data-full-src] {
	cursor: zoom-in;
}

/* Image preview modal (opened by assets/cart-image-preview.js). */
.cart-image-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	z-index: 1000;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.cart-image-modal .cart-image-close {
	position: absolute;
	top: 20px;
	right: 30px;
	color: white;
	font-size: 40px;
	line-height: 1;
	cursor: pointer;
	z-index: 1001;
}

.cart-image-modal .cart-image-content {
	max-width: 90%;
	max-height: 90vh;
	margin: 0;
	text-align: center;
}

.cart-image-modal img {
	max-width: 100%;
	max-height: calc(90vh - 60px);
	object-fit: contain;
}

.cart-image-modal figcaption {
	margin-top: 12px;
	color: white;
	font-size: 16px;
}

body.cart-image-modal-open {
	overflow: hidden;
}
