/* Buy Now Pro for WooCommerce — front-end styles */

.bnp-buy-now {
	display: inline-block;
	cursor: pointer;
	text-align: center;
	border: none;
	font-weight: 600;
	padding: .7em 1.4em;
	line-height: 1.2;
	text-decoration: none;
	transition: opacity .2s ease;
}

.bnp-buy-now:hover {
	text-decoration: none;
}

/* Single product: stack neatly under (or above) the Add to Cart button */
.woocommerce div.product form.cart .bnp-buy-now {
	margin-top: 10px;
	display: block;
	width: 100%;
}

/* Shop / archive listings */
.woocommerce ul.products li.product .bnp-buy-now {
	margin-top: 6px;
	display: inline-block;
}

/* ---- Checkout popup modal ---- */
.bnp-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .6);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.bnp-modal {
	background: #fff;
	width: 100%;
	max-width: 900px;
	height: 90vh;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.bnp-modal iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

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

.bnp-modal-loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	color: #555;
}
