/**
 * Cedra Parts — "Contact for Pricing" products + Request a Quote modal.
 * Scoped to .cedra-rfq*, .cedra-call-price and .is-rfq modifiers.
 *
 * @package CedraParts
 */

.cedra-call-price {
	font-weight: 600;
	color: var(--cedra-navy, #0B1C2C);
}

/* Product card: longer button label needs room, so let the footer wrap. */
.pcard__foot--rfq {
	flex-wrap: wrap;
	gap: 8px;
}

.pcard__btn.is-rfq {
	white-space: nowrap;
}

/* Single product page. */
.cedra-pdp__rfq-btn {
	width: 100%;
	justify-content: center;
}

.cedra-rfq-product .cedra-pdp__currency {
	display: none;
}

/* Modal. */
html.cedra-rfq-open {
	overflow: hidden;
}

.cedra-rfq[hidden],
.cedra-rfq [hidden] {
	display: none !important;
}

.cedra-rfq {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.cedra-rfq__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(11, 28, 44, 0.55);
}

.cedra-rfq__panel {
	position: relative;
	width: 100%;
	max-width: 580px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: #FFFFFF;
	border-radius: 12px;
	padding: 28px;
	box-shadow: 0 24px 60px -20px rgba(11, 28, 44, 0.5);
	outline: none;
}

.cedra-rfq__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 8px;
	background: var(--cedra-surface-neutral, #F5F5F3);
	cursor: pointer;
}

.cedra-rfq__close:hover {
	background: #EAEAE6;
}

.cedra-rfq__title {
	margin: 0 0 6px;
	padding-right: 40px;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--cedra-navy, #0B1C2C);
}

.cedra-rfq__intro {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--cedra-ink-body, #3D4652);
}

/* Product summary: image + title + SKU. */
.cedra-rfq__product {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--cedra-surface-lavender, #F3EDF9);
	color: var(--cedra-navy, #0B1C2C);
}

.cedra-rfq__product-img {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	object-fit: contain;
	border-radius: 6px;
	background: #FFFFFF;
}

.cedra-rfq__product-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.cedra-rfq__product-title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.cedra-rfq__product-sku {
	font-family: var(--cedra-font-mono, 'Geist Mono', ui-monospace, monospace);
	font-size: 13px;
	color: var(--cedra-ink-body, #3D4652);
}

.cedra-rfq__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.cedra-rfq__field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.cedra-rfq__field--full {
	grid-column: 1 / -1;
}

.cedra-rfq__field label {
	font-size: 13px;
	font-weight: 600;
	color: var(--cedra-navy, #0B1C2C);
}

.cedra-rfq__field label span {
	color: #B32D2E;
}

.cedra-rfq__field input,
.cedra-rfq__field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #CFD3D8;
	border-radius: 8px;
	background: #FFFFFF;
	font: inherit;
	font-size: 15px;
	color: var(--cedra-navy, #0B1C2C);
}

.cedra-rfq__field textarea {
	min-height: 96px;
	resize: vertical;
}

.cedra-rfq__field input:focus,
.cedra-rfq__field textarea:focus {
	outline: none;
	border-color: var(--cedra-accent, #7024AB);
	box-shadow: 0 0 0 2px rgba(112, 36, 171, 0.18);
}

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

.cedra-rfq__status {
	min-height: 20px;
	margin-top: 12px;
	font-size: 14px;
	color: #B32D2E;
}

.cedra-rfq__actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 8px;
}

.cedra-rfq__done {
	text-align: center;
	padding: 18px 4px 6px;
}

.cedra-rfq__done h3 {
	margin: 0 0 8px;
	font-size: 20px;
	color: var(--cedra-navy, #0B1C2C);
}

.cedra-rfq__done p {
	margin: 0 0 18px;
	color: var(--cedra-ink-body, #3D4652);
}

@media (max-width: 560px) {
	.cedra-rfq__panel {
		padding: 22px 16px;
	}

	.cedra-rfq__grid {
		grid-template-columns: 1fr;
	}

	.cedra-rfq__actions {
		flex-direction: column-reverse;
	}
}
