/*
 * Layout safety for the Enquire button only — deliberately no color,
 * background, border-radius, or font declarations here, so the active
 * theme's own button styling (already applied via the shared `.button`
 * class) is untouched. This just prevents overflow on narrow screens and
 * adds a fallback gap if the theme doesn't already space `.cart` out.
 */
.pi-enquiry-cart {
	margin-bottom: 1.5em;
}

.pi-enquiry-button {
	box-sizing: border-box;
	max-width: 100%;
	white-space: normal;
	word-break: break-word;
}

@media ( max-width: 480px ) {
	.pi-enquiry-button {
		width: 100%;
		display: block;
	}
}


.enq-modal[hidden] {
	display: none;
}

.enq-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.enq-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.45 );
}

.enq-modal__dialog {
	position: relative;
	background: #fff;
	border-radius: 8px;
	max-width: 440px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 28px 24px 24px;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, 0.25 );
}

.enq-modal__close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #666;
	padding: 4px;
}

.enq-modal__close:hover,
.enq-modal__close:focus-visible {
	color: #111;
}

.enq-modal__product {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding-bottom: 16px;
	margin-bottom: 16px;
	border-bottom: 1px solid #e4e4e4;
}

.enq-modal__product-image {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
}

.enq-modal__eyebrow {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #888;
	margin: 0 0 2px;
}

.enq-modal__product-name {
	font-size: 15px;
	font-weight: 600;
	margin: 0;
}

.enq-modal__product-meta {
	font-size: 12px;
	color: #777;
	margin: 4px 0 0;
}

.enq-modal__form .enq-field {
	margin-bottom: 12px;
}

.enq-modal__form label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #555;
	margin-bottom: 4px;
}

.enq-modal__form input[type="text"],
.enq-modal__form input[type="email"],
.enq-modal__form input[type="tel"],
.enq-modal__form textarea {
	width: 100%;
	padding: 9px 10px;
	font-size: 14px;
	border: 1px solid #d7d7d7;
	border-radius: 6px;
	box-sizing: border-box;
	font-family: inherit;
}

.enq-modal__form textarea {
	resize: vertical;
}

.enq-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.enq-modal__form input[type="file"] {
	width: 100%;
	font-size: 13px;
	padding: 6px 0;
}

.enq-field-hint {
	font-size: 11px;
	color: #888;
	margin: 4px 0 0;
}

.enq-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.enq-form-error {
	color: #b32d2e;
	font-size: 13px;
	margin: 0 0 12px;
}

.enq-submit-button {
	width: 100%;
	cursor: pointer;
}

.enq-modal__success {
	text-align: center;
	padding: 24px 4px 8px;
}

.enq-modal__success p {
	margin: 0 0 16px;
	color: #333;
}

@media ( max-width: 480px ) {
	.enq-field-row {
		grid-template-columns: 1fr;
	}
}
