/* Button — intentionally NOT styled here.
   It uses the theme's own ".button" (WooCommerce) class so it matches
   Add to Cart styling automatically. Only spacing is added, plus a
   cursor fix since it's a <button> not an <a>. A background/border
   color is injected inline ONLY if the admin enables "Override theme
   button color" in Form Settings. */
.qrp-btn {
	cursor: pointer;
	display: inline-block !important;
	width: auto !important;
	vertical-align: middle;
	line-height: 1.2 !important;
	padding: 14px 26px !important;
	font-size: 15px !important;
	border-radius: 4px !important;
	box-sizing: border-box !important;
}

@media (max-width: 600px) {
	.qrp-btn {
		display: block !important;
		width: 100% !important;
		margin: 0 0 15px 0 !important;
		text-align: center;
		box-sizing: border-box;
	}
}

/* Overlay */
.qrp-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99999;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.qrp-overlay.qrp-open {
	display: flex;
}

/* Modal */
.qrp-modal {
	background: #fff;
	max-width: 440px;
	width: 100%;
	border-radius: 8px;
	padding: 28px;
	position: relative;
	max-height: 90vh;
	overflow-y: auto;
}
.qrp-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #666;
}
.qrp-title {
	margin: 0 0 6px;
	font-size: 20px;
}
.qrp-product-line {
	margin: 0 0 18px;
	font-size: 14px;
	color: #666;
	font-weight: 600;
}

#qrp-form label {
	display: block;
	margin-bottom: 14px;
	font-size: 13px;
	font-weight: 600;
	color: #333;
}
#qrp-form input,
#qrp-form textarea {
	display: block;
	width: 100%;
	margin-top: 5px;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 400;
	box-sizing: border-box;
}
.qrp-submit-btn {
	width: 100%;
	margin: 6px 0 0;
}
.qrp-error {
	color: #c62828;
	font-size: 13px;
	margin-top: 10px;
}
.qrp-success p {
	font-size: 15px;
	text-align: center;
	padding: 10px 0;
}
