/* Icon button placed on each product card in the loop */
.qb-quick-buy-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba( 0, 0, 0, 0.15 );
	color: #222;
	z-index: 5;
	transition: transform 0.2s ease;
}

.qb-quick-buy-btn:hover {
	transform: scale( 1.1 );
}

/* WooCommerce product cards need relative positioning for the icon to anchor to */
ul.products li.product {
	position: relative;
}

/* Lock page scroll while popup is open */
body.qb-modal-open {
	overflow: hidden;
}

/* Darkened background overlay */
.qb-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.55 );
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.qb-overlay.qb-visible {
	opacity: 1;
}

/* Near-fullscreen modal with responsive padding */
.qb-modal {
	position: relative;
	width: 100%;
	height: 100%;
	padding: 30px;
	box-sizing: border-box;
}

.qb-iframe {
	width: 100%;
	height: 100%;
	border: none;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.3 );
}

.qb-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	border: none;
	background: #fff;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	z-index: 10;
	box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.2 );
}

/* Tablet padding */
@media ( max-width: 1024px ) {
	.qb-modal {
		padding: 20px;
	}
}

/* Mobile padding */
@media ( max-width: 600px ) {
	.qb-modal {
		padding: 10px;
	}
}
