/* === Product Inquiry Widget === */
.piq-wrapper {
	display: inline-block;
}

.piq-wrapper.piq-full {
	display: block;
}

.piq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 30px;
	font-size: 14px;
	font-weight: 600;
	color: #5A3F00;
	background-color: #fff;
	border: 2px solid #5A3F00;
	border-radius: 0;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
	box-sizing: border-box;
	user-select: none;
}

.piq-full .piq-btn {
	width: 100%;
}

.piq-btn:hover {
	background-color: #5A3F00;
	color: #fff;
	border-color: #5A3F00;
}

.piq-btn i,
.piq-btn svg {
	display: block;
	flex-shrink: 0;
}

/* === Overlay === */
.piq-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 99998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.piq-overlay.piq-show {
	opacity: 1;
	visibility: visible;
}

/* === Modal === */
.piq-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.9);
	z-index: 99999;
	background: #fff;
	border-radius: 0;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
	width: 90vw;
	max-width: 860px;
	max-height: 90vh;
	overflow-y: auto;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.piq-modal.piq-show {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, -50%) scale(1);
}

/* === Close Button === */
.piq-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	border: none;
	border-radius: 0;
	font-size: 22px;
	color: #666;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
	z-index: 2;
	line-height: 1;
}

.piq-modal-close:hover {
	background: #e8e8e8;
	color: #333;
}

/* === Modal Title === */
.piq-modal-title {
	font-size: 20px;
	font-weight: 700;
	color: #333;
	margin: 0;
	padding: 28px 32px 0;
}

/* === Modal Body === */
.piq-modal-body {
	display: flex;
	gap: 32px;
	padding: 24px 32px 32px;
}

/* === Left: Product Info === */
.piq-product {
	flex: 0 0 280px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.piq-product-image {
	width: 100%;
	border-radius: 0;
	overflow: hidden;
	background: #f8f8f8;
}

.piq-product-image img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.piq-product-details {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.piq-product-name {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin: 0;
	line-height: 1.4;
}

.piq-product-sku {
	font-size: 13px;
	color: #999;
}

.piq-product-price {
	font-size: 18px;
	font-weight: 700;
	color: #5A3F00;
}

.piq-product-price del {
	color: #999;
	font-weight: 400;
	font-size: 14px;
}

.piq-product-price ins {
	text-decoration: none;
}

.piq-product-link {
	font-size: 13px;
	color: #5A3F00;
	text-decoration: none;
	transition: opacity 0.2s;
}

.piq-product-link:hover {
	opacity: 0.7;
}

/* === Right: Form === */
.piq-form-wrap {
	flex: 1;
	min-width: 0;
}

.piq-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.piq-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #333;
	margin-bottom: 6px;
}

.piq-required {
	color: #c0392b;
}

.piq-field input,
.piq-field textarea {
	width: 100%;
	padding: 10px 14px;
	font-size: 14px;
	color: #333;
	background: #fff;
	border: 1px solid #dcdcdc;
	border-radius: 0;
	outline: none;
	transition: border-color 0.2s;
	box-sizing: border-box;
	font-family: inherit;
}

.piq-field input:focus,
.piq-field textarea:focus {
	border-color: #5A3F00;
}

.piq-field textarea {
	resize: vertical;
	min-height: 80px;
}

/* === Message === */
.piq-msg {
	font-size: 13px;
	line-height: 1.4;
	min-height: 0;
}

.piq-msg.piq-msg-success {
	color: #27ae60;
}

.piq-msg.piq-msg-error {
	color: #c0392b;
}

/* === Submit Button === */
.piq-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 14px 24px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background-color: #5A3F00;
	border: none;
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.2s;
	box-sizing: border-box;
	user-select: none;
}

.piq-submit:hover {
	background-color: #3d2a00;
}

.piq-submit.piq-submit-disabled {
	opacity: 0.6;
	cursor: not-allowed;
	pointer-events: none;
}

/* === Loading Spinner === */
.piq-submit-loading {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: piq-spin 0.6s linear infinite;
}

@keyframes piq-spin {
	to { transform: rotate(360deg); }
}

/* === Responsive === */
@media (max-width: 680px) {
	.piq-modal {
		width: 95vw;
		max-height: 95vh;
		border-radius: 0;
	}

	.piq-modal-title {
		font-size: 18px;
		padding: 20px 20px 0;
	}

	.piq-modal-body {
		flex-direction: column;
		gap: 20px;
		padding: 16px 20px 24px;
	}

	.piq-product {
		flex: none;
		flex-direction: row;
		align-items: flex-start;
		gap: 14px;
	}

	.piq-product-image {
		width: 100px;
		flex-shrink: 0;
	}

	.piq-product-details {
		flex: 1;
	}

	.piq-product-name {
		font-size: 14px;
	}

	.piq-product-price {
		font-size: 16px;
	}
}
