/**
 * MoveQuote — Widget Stylesheet
 *
 * Mobile-first, uses CSS custom properties injected by PHP at render time.
 * BEM-style class names prefixed with "mvq-".
 *
 * THEMING / BRANDING: every color a moving company would want to re-brand
 * is a custom property on #mvq-widget (--mvq-primary, --mvq-primary-dark,
 * --mvq-text, --mvq-border, --mvq-bg, --mvq-success, --mvq-error). Settings
 * → General → Primary Color already re-derives --mvq-primary/-dark for you.
 * For anything beyond a single accent color, Settings → General → Custom
 * CSS (see MVQ_Shortcode::render()) is loaded after this stylesheet, so
 * any selector here can be overridden there without editing this file —
 * e.g. `#mvq-widget { --mvq-bg: #111; --mvq-text: #eee; }` for a dark
 * theme, or target specific classes (`.mvq-btn`, `.mvq-price-table`, etc.)
 * directly for deeper changes.
 *
 * @author Brad Leiphart, NetConnect Digital Agency
 */

/* ==========================================================================
   1. CSS Custom Property Fallbacks
   ========================================================================== */

#mvq-widget {
	--mvq-primary: #e74c3c;
	--mvq-primary-dark: #c0392b;
	--mvq-text: #333333;
	--mvq-border: #dddddd;
	--mvq-bg: #ffffff;
	--mvq-success: #27ae60;
	--mvq-error: #e74c3c;
}

/* ==========================================================================
   2. Widget Shell
   ========================================================================== */

#mvq-widget {
	box-sizing: border-box;
	width: 100%;
	max-width: 680px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--mvq-text);
	background: var(--mvq-bg);
	border: 1px solid var(--mvq-border);
	border-radius: 8px;
	padding: 24px;
}

#mvq-widget *,
#mvq-widget *::before,
#mvq-widget *::after {
	box-sizing: inherit;
}

#mvq-widget-inner {
	width: 100%;
}

/* ==========================================================================
   3. Progress Indicator
   ========================================================================== */

#mvq-progress {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin-bottom: 28px;
	padding: 0;
	list-style: none;
}

.mvq-progress__step {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	flex: 1;
}

/* Connector line between steps */
.mvq-progress__step:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 14px;
	left: calc(50% + 14px);
	right: calc(-50% + 14px);
	height: 2px;
	background: var(--mvq-border);
	z-index: 0;
}

.mvq-progress__step.mvq-progress__step--complete:not(:last-child)::after {
	background: var(--mvq-primary);
}

.mvq-progress__dot {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid var(--mvq-border);
	background: var(--mvq-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 600;
	color: #999;
	position: relative;
	z-index: 1;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mvq-progress__step--active .mvq-progress__dot {
	background: var(--mvq-primary);
	border-color: var(--mvq-primary);
	color: #fff;
}

.mvq-progress__step--complete .mvq-progress__dot {
	background: var(--mvq-primary);
	border-color: var(--mvq-primary);
	color: #fff;
}

.mvq-progress__label {
	margin-top: 6px;
	font-size: 11px;
	color: #999;
	text-align: center;
	white-space: nowrap;
}

.mvq-progress__step--active .mvq-progress__label {
	color: var(--mvq-primary);
	font-weight: 600;
}

.mvq-progress__step--complete .mvq-progress__label {
	color: var(--mvq-text);
}

/* ==========================================================================
   4. Move-Type Toggle
   ========================================================================== */

#mvq-move-type-toggle {
	display: flex;
	gap: 0;
	margin-bottom: 24px;
	border: 1px solid var(--mvq-border);
	border-radius: 6px;
	overflow: hidden;
}

.mvq-toggle-btn {
	flex: 1;
	padding: 10px 16px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	border: none;
	background: var(--mvq-bg);
	color: var(--mvq-text);
	transition: background 0.15s ease, color 0.15s ease;
	line-height: 1.4;
}

.mvq-toggle-btn:focus-visible {
	outline: 2px solid var(--mvq-primary);
	outline-offset: -2px;
}

.mvq-toggle-btn--active {
	background: var(--mvq-primary);
	color: #fff;
}

.mvq-toggle-btn:not(.mvq-toggle-btn--active):hover {
	background: #f5f5f5;
}

/* ==========================================================================
   5. Step Visibility
   ========================================================================== */

.mvq-step {
	display: none;
}

.mvq-step.mvq-step--active {
	display: block;
}

/* ==========================================================================
   6. Section Headings
   ========================================================================== */

.mvq-step__heading {
	font-size: 20px;
	font-weight: 700;
	color: var(--mvq-text);
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--mvq-primary);
}

/* ==========================================================================
   7. Form Fields — Labels, Inputs, Selects
   ========================================================================== */

.mvq-field {
	margin-bottom: 18px;
}

.mvq-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--mvq-text);
	margin-bottom: 6px;
}

.mvq-label .mvq-required {
	color: var(--mvq-error);
	margin-left: 2px;
}

.mvq-input,
.mvq-select,
.mvq-textarea {
	display: block;
	width: 100%;
	padding: 10px 12px;
	font-size: 15px;
	font-family: inherit;
	color: var(--mvq-text);
	background: var(--mvq-bg);
	border: 1px solid var(--mvq-border);
	border-radius: 5px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	appearance: none;
	-webkit-appearance: none;
}

.mvq-input:focus,
.mvq-select:focus,
.mvq-textarea:focus {
	outline: none;
	border-color: var(--mvq-primary);
	box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.mvq-input--error,
.mvq-select--error,
.mvq-textarea--error {
	border-color: var(--mvq-error);
}

.mvq-input--error:focus,
.mvq-select--error:focus,
.mvq-textarea--error:focus {
	box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

/* Custom select arrow */
.mvq-select-wrapper {
	position: relative;
}

.mvq-select-wrapper::after {
	content: '';
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #666;
	pointer-events: none;
}

.mvq-select-wrapper .mvq-select {
	padding-right: 32px;
}

.mvq-textarea {
	min-height: 90px;
	resize: vertical;
}

/* ==========================================================================
   8. Field Error Messages
   ========================================================================== */

.mvq-field-error {
	font-size: 13px;
	color: var(--mvq-error);
	margin-top: 4px;
	min-height: 18px;
	display: none;
}

.mvq-field-error:not(:empty) {
	display: block;
}

/* Global error banner */
.mvq-error-message {
	background: #fdf2f2;
	border: 1px solid var(--mvq-error);
	border-radius: 5px;
	color: var(--mvq-error);
	padding: 12px 16px;
	font-size: 14px;
	margin-bottom: 16px;
	display: none;
}

.mvq-error-message:not(:empty) {
	display: block;
}

/* Aria-live region for screen readers */
#mvq-aria-live {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   9. Two-Column Grid for Form Rows
   ========================================================================== */

.mvq-field-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0 18px;
}

@media (min-width: 500px) {
	.mvq-field-row {
		grid-template-columns: 1fr 1fr;
	}

	/* Payment step billing address: city / state / zip on one row. */
	.mvq-field-row--3col {
		grid-template-columns: 2fr 1fr 1fr;
	}
}

/* Payment step — total-due display above the billing/card fields. */
.mvq-payment-total {
	font-size: 24px;
	font-weight: 700;
	color: var(--mvq-primary);
	margin: 4px 0 0;
}

/* ==========================================================================
   10. Add-on Checkbox Cards
   ========================================================================== */

.mvq-addons-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-bottom: 24px;
}

@media (min-width: 480px) {
	.mvq-addons-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.mvq-addon-card {
	position: relative;
}

.mvq-addon-card input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.mvq-addon-card__label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	border: 2px solid var(--mvq-border);
	border-radius: 7px;
	cursor: pointer;
	background: var(--mvq-bg);
	transition: border-color 0.15s ease, background 0.15s ease;
	min-height: 70px;
	justify-content: center;
}

.mvq-addon-card input[type="checkbox"]:checked + .mvq-addon-card__label {
	border-color: var(--mvq-primary);
	background: #fdf5f5;
}

.mvq-addon-card input[type="checkbox"]:focus-visible + .mvq-addon-card__label {
	outline: 2px solid var(--mvq-primary);
	outline-offset: 2px;
}

.mvq-addon-card__label:hover {
	border-color: var(--mvq-primary);
}

.mvq-addon-card__title {
	font-size: 14px;
	font-weight: 600;
	color: var(--mvq-text);
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Checkmark tick drawn in CSS */
.mvq-addon-card__tick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 4px;
	border: 2px solid var(--mvq-border);
	flex-shrink: 0;
	background: var(--mvq-bg);
	transition: background 0.15s ease, border-color 0.15s ease;
}

.mvq-addon-card input[type="checkbox"]:checked + .mvq-addon-card__label .mvq-addon-card__tick {
	background: var(--mvq-primary);
	border-color: var(--mvq-primary);
}

.mvq-addon-card input[type="checkbox"]:checked + .mvq-addon-card__label .mvq-addon-card__tick::after {
	content: '';
	display: block;
	width: 5px;
	height: 9px;
	border: 2px solid #fff;
	border-top: none;
	border-left: none;
	transform: rotate(45deg) translate(-1px, -1px);
}

.mvq-addon-card__price {
	font-size: 13px;
	color: #777;
}

/* ==========================================================================
   11. Price Breakdown Table
   ========================================================================== */

.mvq-quote-summary {
	margin-bottom: 24px;
}

.mvq-quote-summary__title {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 12px;
}

.mvq-price-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.mvq-price-table tr {
	border-bottom: 1px solid var(--mvq-border);
}

.mvq-price-table tr:last-child {
	border-bottom: none;
}

.mvq-price-table td {
	padding: 10px 4px;
	vertical-align: top;
}

.mvq-price-table td:last-child {
	text-align: right;
	white-space: nowrap;
}

.mvq-price-table__subtotal td {
	border-top: 2px solid var(--mvq-border);
	border-bottom: none;
	color: #555;
}

.mvq-price-table__total td {
	border-top: 3px solid var(--mvq-text);
	font-weight: 700;
	font-size: 17px;
	color: var(--mvq-text);
	padding-top: 12px;
}

.mvq-price-table__tax td {
	color: #666;
	font-size: 14px;
}

.mvq-price-table__coupon-success td {
	color: var(--mvq-success);
	font-weight: 600;
	font-size: 14px;
}

.mvq-price-table__coupon-error td {
	color: var(--mvq-error);
	font-size: 14px;
}

/* ==========================================================================
   12. Stripe Card Element
   ========================================================================== */

.mvq-stripe-element {
	padding: 12px 14px;
	border: 1px solid var(--mvq-border);
	border-radius: 5px;
	background: var(--mvq-bg);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	min-height: 42px;
}

.mvq-stripe-element--focus {
	border-color: var(--mvq-primary);
	box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

#mvq-card-errors {
	font-size: 13px;
	color: var(--mvq-error);
	margin-top: 6px;
	min-height: 18px;
}

/* ==========================================================================
   13. Radio Buttons (Appointment Type)
   ========================================================================== */

.mvq-radio-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mvq-radio-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border: 2px solid var(--mvq-border);
	border-radius: 7px;
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.mvq-radio-card:hover {
	border-color: var(--mvq-primary);
}

.mvq-radio-card input[type="radio"] {
	accent-color: var(--mvq-primary);
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.mvq-radio-card input[type="radio"]:checked ~ span {
	font-weight: 600;
}

.mvq-radio-card:has(input[type="radio"]:checked) {
	border-color: var(--mvq-primary);
	background: #fdf5f5;
}

/* Reuses .mvq-radio-card for each option; this just supplies the same
   flex-column grouping .mvq-radio-group provides, under the estimate type
   fieldset's own class name. Shared by both the long-distance fieldset
   (.mvq-ld-estimate-type) and the local fieldset (.mvq-estimate-type) --
   two independent forms on the page, same visual treatment. */
.mvq-ld-estimate-type,
.mvq-estimate-type {
	display: flex;
	flex-direction: column;
	gap: 10px;
	border: none;
	padding: 0;
	margin: 0 0 16px;
}

.mvq-ld-estimate-type legend,
.mvq-estimate-type legend {
	font-weight: 600;
	font-size: 14px;
	color: var(--mvq-text);
	margin-bottom: 4px;
	padding: 0;
}

/* Single-option disclosure: shown in place of the fieldset above when only
   one of Binding/Non-Binding is enabled for local moves, so there's no real
   choice to render as radios but the customer still sees what they're
   getting (see buildStep2LocalHTML() in mvq-widget.js). Kept visually quiet
   -- a plain notice, not an interactive control. */
.mvq-estimate-type-notice {
	font-size: 13px;
	line-height: 1.5;
	color: var(--mvq-text);
	background: #f7f7f7;
	border: 1px solid var(--mvq-border);
	border-radius: 7px;
	padding: 12px 16px;
	margin: 0 0 16px;
}

/* ==========================================================================
   13b. Checkbox (survey waiver acknowledgment, etc.)
   ========================================================================== */

.mvq-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 16px;
	border: 2px solid var(--mvq-border);
	border-radius: 7px;
	cursor: pointer;
	font-size: 13px;
	line-height: 1.5;
	color: var(--mvq-text);
	transition: border-color 0.15s ease;
	margin-bottom: 16px;
}

.mvq-checkbox:has(input:checked) {
	border-color: var(--mvq-primary);
	background: #fdf5f5;
}

.mvq-checkbox input[type="checkbox"] {
	accent-color: var(--mvq-primary);
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 1px;
}

/* ==========================================================================
   14. Buttons
   ========================================================================== */

.mvq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	border: none;
	border-radius: 6px;
	background: var(--mvq-primary);
	color: #fff;
	transition: background 0.15s ease, transform 0.1s ease;
	text-decoration: none;
	line-height: 1.3;
}

.mvq-btn:hover:not(:disabled) {
	background: var(--mvq-primary-dark);
}

.mvq-btn:active:not(:disabled) {
	transform: translateY(1px);
}

.mvq-btn:focus-visible {
	outline: 2px solid var(--mvq-primary);
	outline-offset: 3px;
}

.mvq-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.mvq-btn--secondary {
	background: transparent;
	color: var(--mvq-text);
	border: 2px solid var(--mvq-border);
}

.mvq-btn--secondary:hover:not(:disabled) {
	background: #f5f5f5;
	border-color: #bbb;
}

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

.mvq-btn--small {
	padding: 6px 14px;
	font-size: 13px;
}

.mvq-btn-group {
	display: flex;
	gap: 12px;
	margin-top: 24px;
	flex-wrap: wrap;
}

.mvq-btn-group .mvq-btn--secondary {
	flex: 0 0 auto;
}

.mvq-btn-group .mvq-btn:not(.mvq-btn--secondary) {
	flex: 1 1 auto;
}

/* ==========================================================================
   15. Loading Spinner
   ========================================================================== */

/* Fixed + centered (not static in-flow) so the overlay is always visible
   regardless of scroll position — it's literally the first element of the
   widget markup, so without this it can render off-screen once the
   customer has scrolled down and a background recalculation triggers it. */
.mvq-loading {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 9999;
	padding: 28px 36px;
	gap: 16px;
	color: #777;
	font-size: 14px;
	background: var(--mvq-bg);
	border: 1px solid var(--mvq-border);
	border-radius: 8px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.mvq-loading.mvq-loading--visible {
	display: flex;
}

.mvq-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid var(--mvq-border);
	border-top-color: var(--mvq-primary);
	border-radius: 50%;
	animation: mvq-spin 0.7s linear infinite;
}

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

/* Inline button spinner (small) */
.mvq-btn .mvq-btn-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: mvq-spin 0.7s linear infinite;
	flex-shrink: 0;
}

/* ==========================================================================
   16. Confirmation / Success Step
   ========================================================================== */

.mvq-confirmation {
	text-align: center;
	padding: 20px 0;
}

.mvq-confirmation__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--mvq-success);
	color: #fff;
	font-size: 36px;
	margin-bottom: 20px;
}

.mvq-confirmation__heading {
	font-size: 24px;
	font-weight: 700;
	color: var(--mvq-text);
	margin: 0 0 12px;
}

.mvq-confirmation__subheading {
	font-size: 15px;
	color: #666;
	margin: 0 0 24px;
}

.mvq-confirmation__ref {
	display: inline-block;
	background: #f5f5f5;
	border: 1px solid var(--mvq-border);
	border-radius: 5px;
	padding: 8px 18px;
	font-family: monospace;
	font-size: 15px;
	font-weight: 600;
	color: var(--mvq-text);
	margin-bottom: 24px;
	letter-spacing: 1px;
}

.mvq-confirmation__summary {
	background: #fafafa;
	border: 1px solid var(--mvq-border);
	border-radius: 7px;
	padding: 16px 20px;
	text-align: left;
	margin-bottom: 24px;
}

.mvq-confirmation__summary-row {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	padding: 5px 0;
	border-bottom: 1px solid var(--mvq-border);
}

.mvq-confirmation__summary-row:last-child {
	border-bottom: none;
}

.mvq-confirmation__summary-row span:first-child {
	color: #666;
}

.mvq-confirmation__summary-row span:last-child {
	font-weight: 600;
}

.mvq-gcal-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--mvq-primary);
	text-decoration: none;
	font-weight: 500;
}

.mvq-gcal-link:hover {
	text-decoration: underline;
}

/* ==========================================================================
   17. Calendly / Phone Schedule Step
   ========================================================================== */

.mvq-calendly-wrap {
	width: 100%;
	border-radius: 7px;
	overflow: hidden;
	border: 1px solid var(--mvq-border);
	margin-bottom: 16px;
}

.mvq-calendly-wrap iframe {
	display: block;
	width: 100%;
	border: none;
}

.mvq-phone-schedule {
	text-align: center;
	padding: 32px 16px;
}

.mvq-phone-schedule__label {
	font-size: 14px;
	color: #666;
	margin-bottom: 8px;
}

.mvq-phone-schedule__number {
	font-size: 32px;
	font-weight: 700;
	color: var(--mvq-primary);
	text-decoration: none;
	display: block;
	margin-bottom: 16px;
}

.mvq-phone-schedule__number:hover {
	color: var(--mvq-primary-dark);
}

.mvq-lead-ref {
	font-size: 13px;
	color: #888;
	margin-top: 16px;
}

.mvq-lead-ref strong {
	color: var(--mvq-text);
}

/* ==========================================================================
   18. Long-Distance Non-Binding Estimate Notice
   ========================================================================== */

.mvq-ld-estimate-notice {
	background: #fff8e6;
	border: 1px solid #f0d999;
	border-left: 4px solid var(--mvq-primary);
	border-radius: 6px;
	padding: 14px 16px;
	margin: 16px 0 20px;
	font-size: 13px;
	color: #555;
	line-height: 1.6;
}

.mvq-ld-estimate-notice__label {
	font-size: 14px;
	font-weight: 700;
	color: var(--mvq-text);
	margin: 0 0 6px;
}

.mvq-ld-estimate-notice p {
	margin: 0 0 6px;
}

.mvq-ld-estimate-notice p:last-child {
	margin-bottom: 0;
}

.mvq-ld-estimate-notice a {
	color: var(--mvq-primary);
	font-weight: 600;
	text-decoration: underline;
}

/* ==========================================================================
   19. Divider
   ========================================================================== */

.mvq-divider {
	border: none;
	border-top: 1px solid var(--mvq-border);
	margin: 24px 0;
}

/* ==========================================================================
   20. Long-Distance Inventory Builder ("Build My Inventory" mode)
   ========================================================================== */

.mvq-inventory-mode-toggle {
	display: flex;
	gap: 0;
	margin-bottom: 20px;
	border: 1px solid var(--mvq-border);
	border-radius: 6px;
	overflow: hidden;
}

/* Bounds the itemized picker (32 items across 7 categories, seeded) so it
   scrolls internally instead of pushing the running total, add-ons,
   binding choice, waiver checkbox, and "Get My Estimate" button far below
   the fold. */
#mvq-ld-inventory-items {
	max-height: 420px;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 4px;
	margin-bottom: 12px;
}

.mvq-inventory-category {
	border: 1px solid var(--mvq-border);
	border-radius: 6px;
	padding: 12px 16px 16px;
	margin: 0 0 16px;
}

.mvq-inventory-category legend {
	font-weight: 700;
	font-size: 14px;
	padding: 0 6px;
}

.mvq-inventory-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--mvq-border);
}

.mvq-inventory-row:last-child {
	border-bottom: none;
}

.mvq-inventory-row__label {
	font-size: 14px;
	color: var(--mvq-text);
}

.mvq-inventory-row__weight {
	color: #888;
	font-size: 12px;
}

.mvq-inventory-qty {
	width: 64px;
	flex: 0 0 auto;
	padding: 6px 8px;
	font-size: 14px;
	border: 1px solid var(--mvq-border);
	border-radius: 4px;
	text-align: center;
}

.mvq-inventory-qty:focus-visible {
	outline: 2px solid var(--mvq-primary);
	outline-offset: 1px;
}

.mvq-inventory-total {
	font-weight: 600;
	font-size: 14px;
	color: var(--mvq-primary);
	margin-top: 8px;
	min-height: 20px;
}

.mvq-inventory-summary__row {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: var(--mvq-text);
	padding: 4px 0;
}

.mvq-inventory-summary__row em {
	font-style: normal;
	color: #888;
	font-size: 11px;
}

.mvq-inventory-custom-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
}

.mvq-inventory-custom-label {
	flex: 1 1 auto;
	min-width: 0;
	padding: 8px 10px;
	font-size: 14px;
	border: 1px solid var(--mvq-border);
	border-radius: 4px;
}

.mvq-inventory-custom-weight {
	width: 110px;
	flex: 0 0 auto;
	padding: 8px 10px;
	font-size: 14px;
	border: 1px solid var(--mvq-border);
	border-radius: 4px;
}

.mvq-inventory-custom-label:focus-visible,
.mvq-inventory-custom-weight:focus-visible {
	outline: 2px solid var(--mvq-primary);
	outline-offset: 1px;
}

.mvq-inventory-custom-remove {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	line-height: 1;
	color: #888;
	background: transparent;
	border: 1px solid var(--mvq-border);
	border-radius: 4px;
	cursor: pointer;
}

.mvq-inventory-custom-remove:hover {
	color: var(--mvq-primary);
	border-color: var(--mvq-primary);
}

/* ==========================================================================
   21. Pikaday Overrides (keep theme consistent)
   ========================================================================== */

.pika-single {
	font-family: inherit;
	border-color: var(--mvq-border);
	border-radius: 6px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.pika-button:hover,
.pika-button:focus {
	background: var(--mvq-primary) !important;
	color: #fff !important;
}

.is-selected .pika-button {
	background: var(--mvq-primary) !important;
}

.is-today .pika-button {
	color: var(--mvq-primary);
}

/* ==========================================================================
   22. Save My Quote / Welcome Back Banner
   ========================================================================== */

.mvq-save-quote {
	background: #f9f9f9;
	border: 1px solid var(--mvq-border);
	border-radius: 6px;
	padding: 16px;
	margin: 16px 0;
}

.mvq-save-quote__title {
	font-size: 14px;
	font-weight: 700;
	color: var(--mvq-text);
	margin: 0 0 4px;
}

.mvq-save-quote__desc {
	font-size: 13px;
	color: #666;
	margin: 0 0 12px;
}

.mvq-save-quote__form {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	flex-wrap: wrap;
}

.mvq-save-quote__form .mvq-field {
	flex: 1 1 220px;
	margin-bottom: 0;
}

.mvq-save-quote__form .mvq-btn--secondary {
	flex-shrink: 0;
	margin-top: 26px;
}

.mvq-save-quote__success {
	font-size: 14px;
	font-weight: 600;
	color: var(--mvq-success);
}

.mvq-welcome-back {
	background: #eef7ee;
	border: 1px solid #bfe3bf;
	border-left: 4px solid var(--mvq-success);
	border-radius: 6px;
	padding: 12px 16px;
	margin-bottom: 20px;
	font-size: 14px;
	color: var(--mvq-text);
	line-height: 1.5;
}

/* ==========================================================================
   23. Responsive — full-width below 600px
   ========================================================================== */

@media (max-width: 600px) {
	#mvq-widget {
		padding: 16px;
		border-left: none;
		border-right: none;
		border-radius: 0;
		max-width: 100%;
	}

	.mvq-step__heading {
		font-size: 18px;
	}

	.mvq-btn-group {
		flex-direction: column;
	}

	.mvq-btn-group .mvq-btn,
	.mvq-btn-group .mvq-btn--secondary {
		width: 100%;
	}

	#mvq-progress {
		gap: 0;
	}

	.mvq-progress__label {
		font-size: 10px;
	}

	.mvq-confirmation__icon {
		width: 60px;
		height: 60px;
		font-size: 28px;
	}

	.mvq-confirmation__heading {
		font-size: 20px;
	}

	.mvq-phone-schedule__number {
		font-size: 26px;
	}

	.mvq-save-quote__form {
		flex-direction: column;
		align-items: stretch;
	}

	.mvq-save-quote__form .mvq-btn--secondary {
		margin-top: 4px;
		width: 100%;
	}
}

/* ==========================================================================
   24. Company logo
   ========================================================================== */

.mvq-widget-logo {
	display: block;
	max-height: 48px;
	margin: 0 auto 16px;
}

/* ==========================================================================
   25. Customer Reviews
   ========================================================================== */

.mvq-reviews {
	margin: 16px 0;
}

.mvq-reviews__title {
	font-size: 14px;
	font-weight: 700;
	color: var(--mvq-text);
	margin: 0 0 10px;
}

.mvq-reviews__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mvq-review-card {
	background: #f9f9f9;
	border: 1px solid var(--mvq-border);
	border-radius: 6px;
	padding: 12px 16px;
}

.mvq-review-card__stars {
	color: #f5a623;
	font-size: 14px;
	letter-spacing: 1px;
	margin-bottom: 4px;
}

.mvq-review-card__text {
	font-size: 13px;
	color: var(--mvq-text);
	line-height: 1.5;
	margin: 0 0 4px;
}

.mvq-review-card__author {
	font-size: 12px;
	font-weight: 600;
	color: #666;
	margin: 0;
}

/* ==========================================================================
   26. Cancellation Policy Note
   ========================================================================== */

.mvq-cancellation-note {
	font-size: 12px;
	color: #666;
	line-height: 1.5;
	margin: 12px 0 0;
}

/* ==========================================================================
   27. Order for Service / Bill of Lading Signature Step
   ========================================================================== */

.mvq-signature-text {
	max-height: 220px;
	overflow-y: auto;
	background: #fafafa;
	border: 1px solid var(--mvq-border);
	border-radius: 6px;
	padding: 14px 16px;
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--mvq-text);
	white-space: pre-wrap;
	margin-bottom: 18px;
}

.mvq-signature-canvas-wrap {
	margin-bottom: 12px;
}

.mvq-signature-canvas {
	display: block;
	width: 100%;
	max-width: 500px;
	height: 200px;
	border: 1px solid var(--mvq-border);
	border-radius: 6px;
	background: #ffffff;
	/* Prevents the page from scrolling while a touch drag draws on the
	   canvas -- belt-and-suspenders alongside the touch handlers'
	   own preventDefault() calls. */
	touch-action: none;
	cursor: crosshair;
}

.mvq-signature-actions {
	display: flex;
	gap: 10px;
	margin-bottom: 8px;
}

.mvq-signature-skip {
	display: block;
	margin-top: 14px;
	font-size: 13px;
	color: #777;
	text-decoration: underline;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}

.mvq-signature-skip:hover {
	color: var(--mvq-primary);
}

.mvq-signature-success {
	text-align: center;
	padding: 20px 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--mvq-success);
}
