/* WC Product Enquiry Form – Public Styles */

/* ---- FIX 1: Button wrap and vertical centering ---- */
.wcpe-button-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	margin-bottom: 4px;
}

/* Enquiry button — vertically centered text via flex */
.wcpe-enquiry-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer;
	line-height: 1 !important;
	transition: background-color .2s, border-color .2s;
}

/* WhatsApp button */
.wcpe-whatsapp-btn {
	display: inline-flex !important;
	align-items: center !important;
	gap: 6px;
	background-color: #25d366 !important;
	color: #fff !important;
	border-color: #25d366 !important;
	line-height: 1 !important;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s;
}
.wcpe-whatsapp-btn:hover {
	background-color: #1da851 !important;
	color: #fff !important;
}

/* ---- Inline form ---- */
.wcpe-inline-form-wrap {
	margin-top: 20px;
	padding: 24px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fafafa;
}
.wcpe-inline-form-wrap h3 { margin-top: 0; }

.wcpe-product-name {
	margin-bottom: 16px;
	color: #555;
	font-weight: 600;
	font-size: 14px;
}

/* ---- Form fields ---- */
.wcpe-field { margin-bottom: 14px; }

.wcpe-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 5px;
	font-size: 14px;
}

.wcpe-field input[type="text"],
.wcpe-field input[type="email"],
.wcpe-field input[type="tel"],
.wcpe-field input[type="number"],
.wcpe-field select,
.wcpe-field textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
	background: #fff;
	font-family: inherit;
	transition: border-color .2s, box-shadow .2s;
}
.wcpe-field input:focus,
.wcpe-field textarea:focus,
.wcpe-field select:focus {
	border-color: #2271b1;
	outline: none;
	box-shadow: 0 0 0 2px rgba(34,113,177,.15);
}

/* ---- Notices ---- */
.wcpe-notice {
	padding: 10px 14px;
	border-radius: 4px;
	margin-bottom: 12px;
	font-size: 14px;
}
.wcpe-notice.wcpe-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}
.wcpe-notice.wcpe-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* ---- Submit button ---- */
.wcpe-submit-btn {
	display: inline-flex !important;
	align-items: center !important;
	cursor: pointer;
	font-size: 15px;
	padding: 10px 24px !important;
	margin-top: 4px;
}
.wcpe-submit-btn:disabled {
	opacity: .65;
	cursor: not-allowed;
}

/* ---- Popup overlay ---- */
.wcpe-modal-overlay {
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0,0,0,.6);
	z-index: 999999;
	/* display managed by JS */
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

body.wcpe-modal-open { overflow: hidden; }

/* ---- Popup box ---- */
.wcpe-modal-box {
	background: #fff;
	border-radius: 8px;
	padding: 32px;
	width: 100%;
	max-width: 520px;
	position: relative;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 12px 48px rgba(0,0,0,.25);
}
.wcpe-modal-box h3 { margin-top: 0; font-size: 20px; }

.wcpe-modal-product-name {
	margin-top: -8px;
	margin-bottom: 16px;
	padding: 8px 12px;
	background: #f0f4ff;
	border-left: 3px solid #2271b1;
	border-radius: 3px;
	font-size: 13px;
	font-weight: 600;
	color: #333;
}

.wcpe-modal-close {
	position: absolute;
	top: 12px; right: 16px;
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #888;
	padding: 4px 8px;
	border-radius: 4px;
}
.wcpe-modal-close:hover { color: #000; background: #f0f0f0; }

/* ---- Cart enquiry wrap ---- */
.wcpe-cart-enquiry-wrap { margin-top: 16px; }

/* ---- Responsive ---- */
@media ( max-width: 480px ) {
	.wcpe-button-wrap { flex-direction: column; align-items: flex-start; }
	.wcpe-modal-box { padding: 20px; }
}
