.bnp-buy-now-btn {
	display: block;
	width: 100%;
	border: 1px solid transparent;
	margin-top: 8px;
	cursor: pointer;
	text-align: center;
	box-sizing: border-box;
}
.bnp-buy-now-btn:hover {
	opacity: 0.9;
}

.bnp-overlay {
	display: none;
	position: fixed;
	z-index: 99999;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.55);
	justify-content: center;
	align-items: flex-start;
	overflow-y: auto;
	padding: 30px 10px;
}
.bnp-overlay.bnp-open {
	display: flex;
}

.bnp-popup {
	background: #fff;
	width: 100%;
	max-width: 480px;
	border-radius: 8px;
	overflow: hidden;
	margin: auto;
	box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.bnp-popup-header {
	background: linear-gradient(135deg, #1e7e34, #28a745);
	color: #fff;
	padding: 18px 20px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}
.bnp-popup-header h3 {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	font-weight: 600;
}
.bnp-close {
	cursor: pointer;
	font-size: 24px;
	line-height: 1;
}

.bnp-popup-body {
	padding: 20px;
	max-height: 80vh;
	overflow-y: auto;
}

.bnp-field {
	margin-bottom: 14px;
}
.bnp-field label {
	display: block;
	font-size: 13px;
	margin-bottom: 6px;
	color: #333;
}
.bnp-req {
	color: #e53935;
}
.bnp-input-icon {
	position: relative;
	display: flex;
	align-items: center;
	border: 1px solid #d8d8d8;
	border-radius: 4px;
	padding: 0 10px;
}
.bnp-input-icon .dashicons {
	color: #1e7e34;
	margin-right: 8px;
}
.bnp-input-icon input {
	border: none;
	outline: none;
	flex: 1;
	padding: 10px 0;
	font-size: 14px;
}
.bnp-field textarea {
	width: 100%;
	border: 1px solid #d8d8d8;
	border-radius: 4px;
	padding: 10px;
	font-size: 14px;
	min-height: 70px;
	box-sizing: border-box;
}

.bnp-shipping-option {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border: 1px solid #d8d8d8;
	border-radius: 4px;
	padding: 10px 12px;
	margin-bottom: 8px;
	cursor: pointer;
}
.bnp-shipping-option.bnp-active {
	border-color: #1e7e34;
	background: #f1f9f2;
}
.bnp-shipping-option label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	margin: 0;
	cursor: pointer;
}
.bnp-shipping-cost {
	font-weight: 600;
	font-size: 14px;
}

.bnp-product-row {
	display: flex;
	align-items: center;
	gap: 10px;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
	padding: 12px 0;
	margin: 14px 0;
}
.bnp-product-row img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid #eee;
}
.bnp-product-info {
	flex: 1;
}
.bnp-product-name {
	font-size: 13px;
	margin-bottom: 6px;
}
.bnp-qty-box {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid #c9c9c9;
	border-radius: 5px;
	overflow: hidden;
	background: #fff;
}
.bnp-qty-box button {
	background: #f3f3f3;
	border: none;
	width: 34px;
	height: 34px;
	cursor: pointer;
	font-size: 18px;
	font-weight: 700;
	color: #333;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: background 0.15s ease;
}
.bnp-qty-box button:hover {
	background: #e2e2e2;
}
.bnp-qty-box button:active {
	background: #d5d5d5;
}
.bnp-qty-box span {
	width: 38px;
	text-align: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 600;
	border-left: 1px solid #c9c9c9;
	border-right: 1px solid #c9c9c9;
}
.bnp-product-price {
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
}

.bnp-totals {
	margin-bottom: 14px;
}
.bnp-total-row {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	padding: 4px 0;
}
.bnp-grand-total {
	font-weight: 700;
	font-size: 15px;
	border-top: 1px solid #eee;
	margin-top: 4px;
	padding-top: 8px;
}

.bnp-cod-box {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	border: 1px solid #1e7e34;
	border-radius: 4px;
	padding: 12px;
	margin-bottom: 14px;
	background: #f1f9f2;
}
.bnp-cod-box p {
	margin: 2px 0 0;
	font-size: 12px;
	color: #555;
}

.bnp-coupon-row {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
}
.bnp-coupon-row input {
	flex: 1;
	border: 1px solid #d8d8d8;
	border-radius: 4px;
	padding: 10px;
	font-size: 14px;
}
.bnp-coupon-row button {
	background: #1e7e34;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 0 16px;
	cursor: pointer;
}

.bnp-confirm-btn {
	display: block;
	width: 100%;
	background: #1e7e34;
	color: #fff;
	border: none;
	padding: 14px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
	margin-top: 6px;
}
.bnp-confirm-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}
.bnp-confirm-btn:hover:not(:disabled) {
	background: #176029;
}

.bnp-note-text {
	font-size: 11px;
	color: #888;
	text-align: center;
	margin-top: 8px;
}

#bnp_message {
	margin-top: 10px;
	font-size: 14px;
	text-align: center;
}
#bnp_message.bnp-success {
	color: #1e7e34;
	font-weight: 600;
}
#bnp_message.bnp-error {
	color: #e53935;
	font-weight: 600;
}

@media (max-width: 480px) {
	.bnp-popup {
		max-width: 100%;
	}
}
