/**
 * Launchpad Request a Quote — Styles
 *
 * Table of contents:
 *   1. Header badge
 *   2. Add to Quote button
 *   3. Quote layout (2-column: items | form)
 *   4. Cart item rows
 *   5. Qty stepper
 *   6. Contact form
 *   7. Modal
 *   8. Quote received page
 *   9. Utilities / states
 *  10. Responsive
 */

/* ==========================================================================
   1. Header badge
   ========================================================================== */
.lraq-header-badge {
	display: inline-flex;
	align-items: center;
	margin-right: 12px;
}

.lraq-cart-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	color: inherit;
	text-decoration: none;
}

.lraq-cart-link svg {
	display: block;
}

.lraq-badge-count {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 10px;
  font-weight: 500;
  color: var(--rz-background-text-color-primary);
  text-align: center;
  line-height: 11px;
  min-width: 18px;
  height: 18px;
  border-radius: 30px;
  padding: 4px;
  background-color: var(--rz-background-color-primary);
  display: inline-block;
}


.lraq-badge-count.lraq-badge--visible {
	display: block;
}

button.lraq-add-to-quote svg,.lraq-cart-link svg{
  width: 18px;
  height: 18px;
}

.site-header .header-cart {
  padding-right: 10px!important;
}

/* ==========================================================================
   2. Add to Quote button
   ========================================================================== */

.lraq-add-to-quote {
	display: inline-flex;
	align-items: center;
	gap: 15px;
	cursor: pointer;
	transition: opacity 0.2s ease, background 0.2s ease;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 14px;
	font-weight: 700;
}

.lraq-add-to-quote svg {
	flex-shrink: 0;
}

.lraq-add-to-quote:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.lraq-add-to-quote.lraq-btn--loading {
	opacity: 0.75;
}

.lraq-add-to-quote.lraq-btn--added {
	opacity: 1;
}

.lraq-loop-button {
	width: 100%;
	justify-content: center;
	margin-top: 8px;
}



/* ==========================================================================
   3. Quote layout (2-column: items | form)
   ========================================================================== */

.lraq-quote-list {
	max-width: 100%;
}

.lraq-empty-cart {
	padding: 40px 0;
	text-align: center;
}

.lraq-empty-cart p {
	font-size: 1.1em;
	margin-bottom: 16px;
	color: #666;
}

.lraq-layout {
	display: flex;
	gap: 48px;
	align-items: flex-start;
}

.lraq-items-col {
	flex: 1 1 55%;
	min-width: 0;
}

.lraq-form-col {
	flex: 0 0 380px;
	max-width: 380px;
}

/* ==========================================================================
   4. Cart item rows
   ========================================================================== */

.lraq-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 0;
	border-bottom: 1px solid #ebebeb;
}

.lraq-item:first-child {
	border-top: 1px solid #ebebeb;
}

.lraq-item__thumb {
	flex-shrink: 0;
}

.lraq-item__thumb img,
.lraq-item__img {
	display: block;
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 4px;
}

.lraq-item__info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.lraq-item__name {
	font-weight: 600;
	font-size: 0.95em;
	line-height: 1.3;
	display: block;
}

.lraq-item__name a.lp-product-link,
.lraq-group__title a.lp-product-link {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.lraq-item__name a.lp-product-link:hover,
.lraq-group__title a.lp-product-link:hover {
	color: var(--e-global-color-accent, #1ddd85);
}

.lraq-item__sku {
	font-size: 0.8em;
	color: #999;
	display: block;
}

.lraq-item__attrs {
	font-size: 0.82em;
	color: #777;
	display: block;
}

.lraq-item__art {
	font-size: 0.8em;
	color: #888;
	display: block;
	word-break: break-all;
}

.lraq-item__actions {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

/* ==========================================================================
   5. Qty stepper
   ========================================================================== */

.lraq-qty-wrap {
	display: flex;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 3px;
	overflow: hidden;
	padding: 0 5px;
}

.lraq-qty-btn {
	width: 20px;
	height: 20px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #444;
	transition: background 0.15s ease;
	flex-shrink: 0;
	border-radius: 50%
}

.lraq-qty-btn:hover {
	background: #f5f5f5;
}
.product-qty-number .widget_shopping_cart_content .quantity .qty {
  width: 60px!important;
}
.lraq-qty-input {
	width: 60px;
	height: 40px;
	padding: 0 4px;
	border: 0!important;
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
	text-align: center;
	font-size: 0.9em;
	-moz-appearance: textfield;
	appearance: textfield;
}

.lraq-qty-input::-webkit-outer-spin-button,
.lraq-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.lraq-qty-input:focus {
	outline: none;
}

.lraq-remove-item {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	color: #aaa;
	font-size: 0.8em;
	white-space: nowrap;
	transition: color 0.15s ease;
	line-height: 1;
}

.lraq-remove-item:hover {
	color: #c00;
}

.lraq-min-qty-notice {
	display: none;
	font-size: 10px;
	color: #c00;
	line-height: 1;
}

/* ==========================================================================
   6. Contact form
   ========================================================================== */

.lraq-form-col .lraq-form-row {
	margin-bottom: 10px;
}

.lraq-form-col input[type="text"],
.lraq-form-col input[type="email"],
.lraq-form-col input[type="tel"],
.lraq-form-col textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #e5e5e5;
	border-radius: 3px;
	font-size: 0.875em;
	color: #333;
	background: #fff;
	transition: border-color 0.15s ease;
	box-sizing: border-box;
}

.lraq-form-col input[type="text"]:focus,
.lraq-form-col input[type="email"]:focus,
.lraq-form-col input[type="tel"]:focus,
.lraq-form-col textarea:focus {
	outline: none;
	border-color: #888;
}

.lraq-form-col input::placeholder,
.lraq-form-col textarea::placeholder {
	color: #aaa;
}

.lraq-form-col textarea {
	resize: vertical;
	min-height: 90px;
}

.lraq-form-submit {
	margin-top: 16px;
}

.lraq-submit-quote.button,
.lraq-submit-quote.button.alt {
	display: block;
	width: 100%;
	text-align: center;
	font-size: 0.875em;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	box-sizing: border-box;
	padding-left: 0;
	padding-right: 0;
}

.lraq-submitting-msg {
	display: block;
	margin-top: 10px;
	font-size: 0.9em;
	color: #888;
	text-align: center;
}

/* ==========================================================================
   7. Modal
   ========================================================================== */

.lraq-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lraq-modal[hidden] {
	display: none;
}

.lraq-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.55 );
}

.lraq-modal__content {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 4px;
	width: 92vw;
	max-width: 900px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, 0.2 );
}

.lraq-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 24px;
	border-bottom: 1px solid #ebebeb;
}

.lraq-modal__title {
	margin: 0;
	font-size: 1em;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.lraq-modal__close {
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	color: #666;
	line-height: 1;
	font-size: 1.4em;
	border-radius: 3px;
	transition: color 0.15s ease, background 0.15s ease;
}

.lraq-modal__close:hover {
	color: #111;
	background: #f5f5f5;
}

.lraq-modal__body {
	flex: 1;
	overflow-y: auto;
	padding: 24px;
	-webkit-overflow-scrolling: touch;
}

.lraq-modal__loading {
	padding: 40px;
	text-align: center;
	color: #999;
}

body.lraq-modal-open {
	overflow: hidden;
}

/* Modal inner layout — items left, form right */
.lraq-modal__body .lraq-form-col {
	flex: 0 0 320px;
	max-width: 320px;
}

/* ==========================================================================
   8. Quote received page
   ========================================================================== */

.lraq-quote-received {
	padding: 60px 20px;
	text-align: center;
	max-width: 500px;
	margin: 0 auto;
}

.lraq-received-icon {
	display: block;
	margin: 0 auto 20px;
	color: #2e7d32;
}

.lraq-received-heading {
	font-size: 1.6em;
	font-weight: 700;
	margin-bottom: 12px;
}

.lraq-received-message {
	color: #555;
	font-size: 1.05em;
	margin-bottom: 28px;
	line-height: 1.6;
}

.lraq-back-to-shop {
	display: inline-block;
}

/* ==========================================================================
   9. Utilities / states + form validation
   ========================================================================== */

.lraq-error-notice {
	animation: lraq-fade-in 0.2s ease;
}

@keyframes lraq-fade-in {
	from { opacity: 0; transform: translateY( -4px ); }
	to   { opacity: 1; transform: translateY( 0 ); }
}

/* Validation state — shown after a failed submit attempt */
.lraq-contact-form input.lraq-field-invalid,
.lraq-contact-form textarea.lraq-field-invalid {
	border-color: #c00;
}

.lraq-field-error {
	display: block;
	font-size: 0.78em;
	color: #c00;
	margin-top: 4px;
	animation: lraq-fade-in 0.15s ease;
}

/* Clear invalid state once the user starts correcting the field */
.lraq-contact-form input:not(.lraq-field-invalid),
.lraq-contact-form textarea:not(.lraq-field-invalid) {
	border-color: #e5e5e5;
}

/* Item loading state during qty AJAX — CSS fallback when blockUI is absent */
.lraq-item--updating {
	position: relative;
	pointer-events: none;
}

.lraq-item--updating::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba( 255, 255, 255, 0.55 );
	border-radius: 6px;
	z-index: 1;
}

/* Attribute label styling */
.lraq-item__attrs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	font-size: 0.82em;
	color: #666;
	margin-top: 2px;
}

.lraq-attr-pair {
	display: inline-flex;
	gap: 3px;
}

.lraq-attr-label {
	font-weight: 600;
	color: #444;
}

.lraq-attr-sep {
	color: #bbb;
	padding: 0 2px;
}

/* ==========================================================================
  10. Responsive
   ========================================================================== */

@media ( max-width: 900px ) {
	.lraq-layout {
		gap: 32px;
	}

	.lraq-form-col {
		flex: 0 0 300px;
		max-width: 300px;
	}
}

@media ( max-width: 680px ) {
	.lraq-layout {
		flex-direction: column;
		gap: 32px;
	}

	.lraq-form-col {
		flex: none;
		max-width: 100%;
		width: 100%;
	}

	.lraq-item {
		flex-wrap: wrap;
	}

	.lraq-item__actions {
		flex-direction: row;
		align-items: center;
		gap: 16px;
		width: 100%;
	}

	.lraq-modal__content {
		width: 100vw;
		max-width: 100%;
		max-height: 100vh;
		border-radius: 0;
	}

	.lraq-modal__body .lraq-layout {
		flex-direction: column;
	}

	.lraq-modal__body .lraq-form-col {
		flex: none;
		max-width: 100%;
		width: 100%;
	}
}

/* ==========================================================================
   8. Per-parent-product MOQ grouping
   ========================================================================== */

.lraq-group {
	border: 1px solid #ececec;
	border-radius: 8px;
	padding: 0;
	margin-bottom: 18px;
	overflow: hidden;
	background: #fff;
}

.lraq-group__header {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	padding: 12px 16px;
	background: #f9fafb;
	border-bottom: 1px solid #ececec;
	font-size: 14px;
}

.lraq-group__title {
	font-weight: 600;
	color: #111;
	flex: 1 1 auto;
	min-width: 180px;
}

.lraq-group__progress {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 999px;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	font-size: 13px;
	background: #fef2f2;
	color: #c0392b;
	border: 1px solid #fecaca;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.lraq-group--met .lraq-group__progress {
	background: #ecfdf5;
	color: #047857;
	border-color: #a7f3d0;
}

.lraq-group__progress-divider {
	opacity: 0.6;
	font-weight: 400;
}

.lraq-group__progress-label {
	margin-left: 4px;
	font-weight: 400;
	opacity: 0.7;
	font-size: 12px;
}

.lraq-group__status {
	flex: 1 1 100%;
	font-size: 12px;
	color: #c0392b;
}

.lraq-group--met .lraq-group__status {
	color: #047857;
}

.lraq-group .lraq-item {
	border-bottom: 1px solid #f3f4f6;
}

.lraq-group .lraq-item:last-child {
	border-bottom: none;
}

.lraq-moq-warning {
	margin: 12px 0;
	padding: 10px 14px;
	border-radius: 6px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	font-size: 13px;
}

.lraq-submit-quote[disabled],
.lraq-submit-quote[aria-disabled="true"] {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

