/*
 * Nevquo Request a Quote for WooCommerce: storefront styles.
 *
 * Override the look from your theme by redefining the custom properties on
 * .wcrq-dialog, for example:
 *   .wcrq-dialog { --wcrq-accent: #0a5c36; --wcrq-radius: 4px; }
 */

.wcrq-button-wrap {
	margin: 1em 0;
}

.wcrq-dialog {
	--wcrq-ink: #1d2327;
	--wcrq-muted: #646970;
	--wcrq-line: #c3c4c7;
	--wcrq-accent: #1d2327;
	--wcrq-accent-ink: #fff;
	--wcrq-danger: #b32d2e;
	--wcrq-focus: #2271b1;
	--wcrq-radius: 10px;

	box-sizing: border-box;
	width: min(32rem, calc(100% - 2rem));
	/* The browser's own modal-dialog styles cap max-width and max-height; take control of both. */
	max-width: none;
	max-height: calc(100dvh - 2rem);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: var(--wcrq-radius);
	background: #fff;
	color: var(--wcrq-ink);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
	overflow: auto;
	font-size: 1rem;
	line-height: 1.5;
}

.wcrq-dialog *,
.wcrq-dialog *::before,
.wcrq-dialog *::after {
	box-sizing: border-box;
}

.wcrq-dialog::backdrop {
	background: rgba(17, 24, 39, 0.55);
}

body:has(dialog.wcrq-dialog[open]) {
	overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
	.wcrq-dialog[open] {
		animation: wcrq-in 0.18s ease-out;
	}

	@keyframes wcrq-in {
		from {
			opacity: 0;
			transform: translateY(8px);
		}
	}
}

.wcrq-panel {
	padding: 1.5rem;
}

.wcrq-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.wcrq-title {
	margin: 0;
	font-size: 1.375rem;
	line-height: 1.25;
	font-weight: 600;
	color: inherit;
}

.wcrq-close {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: -0.625rem -0.625rem 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--wcrq-muted);
	cursor: pointer;
}

.wcrq-close:hover {
	background: #f0f0f1;
	color: var(--wcrq-ink);
}

.wcrq-product {
	margin: 0.5rem 0 0;
	font-weight: 600;
}

.wcrq-intro {
	margin: 0.25rem 0 0;
	color: var(--wcrq-muted);
}

.wcrq-alert {
	margin: 1rem 0 0;
	padding: 0.75rem 1rem;
	border-left: 4px solid var(--wcrq-danger);
	border-radius: 4px;
	background: #fcf0f1;
	color: #8a1f20;
	font-size: 0.9375rem;
}

.wcrq-alert[hidden],
.wcrq-error[hidden],
.wcrq-success[hidden],
.wcrq-form[hidden] {
	display: none;
}

.wcrq-field {
	margin: 1.125rem 0 0;
}

.wcrq-field label {
	display: block;
	margin: 0 0 0.375rem;
	font-size: 0.9375rem;
	font-weight: 600;
}

.wcrq-optional {
	font-weight: 400;
	color: var(--wcrq-muted);
}

.wcrq-field input[type="text"],
.wcrq-field input[type="email"],
.wcrq-field input[type="tel"],
.wcrq-field input[type="number"],
.wcrq-field select,
.wcrq-field textarea {
	display: block;
	width: 100%;
	min-height: 2.75rem;
	margin: 0;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--wcrq-line);
	border-radius: 6px;
	background: #fff;
	color: var(--wcrq-ink);
	font: inherit;
	box-shadow: none;
}

.wcrq-field textarea {
	min-height: 6rem;
	resize: vertical;
}

.wcrq-field--qty input {
	max-width: 8rem;
}

.wcrq-field input:focus,
.wcrq-field select:focus,
.wcrq-field textarea:focus,
.wcrq-btn:focus-visible,
.wcrq-close:focus-visible {
	outline: 2px solid var(--wcrq-focus);
	outline-offset: 1px;
}

.wcrq-field input[aria-invalid="true"],
.wcrq-field select[aria-invalid="true"],
.wcrq-field textarea[aria-invalid="true"] {
	border-color: var(--wcrq-danger);
	box-shadow: 0 0 0 1px var(--wcrq-danger);
}

.wcrq-error {
	margin: 0.375rem 0 0;
	color: var(--wcrq-danger);
	font-size: 0.875rem;
}

.wcrq-field--check label {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	font-weight: 400;
}

.wcrq-field--check input {
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
	margin: 0.2rem 0 0;
}

/* Visually hidden for people, still reachable for bots. */
.wcrq-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.wcrq-actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.75rem;
	margin: 1.5rem 0 0;
}

.wcrq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.5rem 1.25rem;
	border: 1px solid transparent;
	border-radius: 6px;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.wcrq-btn--primary {
	background: var(--wcrq-accent);
	color: var(--wcrq-accent-ink);
}

.wcrq-btn--primary:hover {
	filter: brightness(1.15);
}

.wcrq-btn--ghost {
	border-color: var(--wcrq-line);
	background: #fff;
	color: var(--wcrq-ink);
}

.wcrq-btn--ghost:hover {
	background: #f6f7f7;
}

.wcrq-btn[disabled] {
	opacity: 0.6;
	cursor: wait;
}

.wcrq-success {
	padding: 1rem 0;
	text-align: center;
}

.wcrq-success:focus {
	outline: none;
}

.wcrq-success-icon {
	margin: 0 auto 0.75rem;
	color: #1a7f37;
}

.wcrq-success p {
	margin: 0.5rem 0 0;
}

.wcrq-success .wcrq-ref {
	color: var(--wcrq-muted);
	font-size: 0.9375rem;
}

.wcrq-success .wcrq-btn {
	margin-top: 1.5rem;
}

@media (max-width: 480px) {
	.wcrq-dialog {
		width: 100%;
		max-width: 100%;
		max-height: calc(100dvh - 1rem);
		margin: auto 0 0;
		border-radius: var(--wcrq-radius) var(--wcrq-radius) 0 0;
	}

	.wcrq-panel {
		padding: 1.25rem 1rem;
	}

	.wcrq-actions {
		flex-direction: column-reverse;
	}

	.wcrq-actions .wcrq-btn {
		width: 100%;
	}
}
