/* WC Product Enquiry — frontend styles
   !important use kiya gaya hai taaki theme ka CSS in buttons ko override na kar sake. */

.wpe-buttons {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: stretch !important;
	gap: 14px !important;
	margin: 16px 0 !important;
	padding: 0 !important;
	list-style: none !important;
	font-family: inherit !important;
}

.wpe-buttons .wpe-btn {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	width: auto !important;
	max-width: none !important;
	padding: 12px 22px !important;
	margin: 0 !important;
	font-size: 14px !important;
	font-family: inherit !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	border-radius: 6px !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	cursor: pointer !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	transition: opacity .2s ease, transform .15s ease !important;
}

.wpe-buttons .wpe-btn:hover,
.wpe-buttons .wpe-btn:focus,
.wpe-buttons .wpe-btn:visited {
	opacity: .88 !important;
	transform: translateY(-1px) !important;
	text-decoration: none !important;
}

.wpe-buttons .wpe-btn .wpe-icon {
	width: 17px !important;
	height: 17px !important;
	flex-shrink: 0 !important;
	display: inline-block !important;
	fill: currentColor !important;
	color: inherit !important;
}

/* Default color scheme (Settings me admin override kar sakta hai) */
.wpe-buttons .wpe-btn-enquiry {
	background-color: #2c3e50 !important;
	color: #ffffff !important;
}

.wpe-buttons .wpe-btn-whatsapp {
	background-color: #25D366 !important;
	color: #ffffff !important;
}

/* ===== Popup modal ===== */
.wpe-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.55);
	z-index: 99999;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.wpe-modal-overlay.wpe-open {
	display: flex;
}

.wpe-modal {
	background: #fff;
	width: 100%;
	max-width: 440px;
	border-radius: 8px;
	padding: 28px 24px;
	position: relative;
	font-family: inherit;
	box-shadow: 0 10px 40px rgba(0,0,0,.2);
	max-height: 90vh;
	overflow-y: auto;
}

.wpe-modal-title {
	margin: 0 0 18px;
	font-size: 20px;
	font-family: inherit;
}

.wpe-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #555;
}

.wpe-modal label {
	display: block;
	margin: 12px 0 5px;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
}

.wpe-modal input[type="text"],
.wpe-modal input[type="email"],
.wpe-modal textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
}

.wpe-modal input[readonly] {
	background: #f5f5f5;
	color: #666;
}

.wpe-req {
	color: #d63638;
}

/* Honeypot — screen se off-screen, sirf bots ke liye visible/fillable */
.wpe-hp-wrap {
	position: absolute;
	left: -9999px;
	top: -9999px;
	height: 0;
	overflow: hidden;
}

.wpe-btn-submit {
	margin-top: 18px;
	width: 100%;
	justify-content: center;
	background-color: var(--wc-primary, #2c3e50);
	border-color: var(--wc-primary, #2c3e50);
	color: #fff;
}

.wpe-form-msg {
	margin-top: 12px;
	font-size: 14px;
	font-family: inherit;
}

.wpe-form-msg.wpe-success { color: #1a7f37; }
.wpe-form-msg.wpe-error { color: #d63638; }

@media (max-width: 480px) {
	.wpe-buttons { flex-direction: column; }
	.wpe-btn { width: 100%; }
}
