/* ================================================================
   Quote Frontend Layout - Clean PPM Flat Style
   All rounded corners removed intentionally.
   ================================================================ */

.uhl-quote-add-form {
	margin: 0;
}

.uhl-cm-loop-cta-wrap {
	display: flex;
	justify-content: center;
	width: 100%;
}

/* ------------------------------------------------
   Catalog button alignment
   Ensure quote CTAs are centered in product cards
   across Woo blocks and classic product loops.
   ------------------------------------------------ */

/* Center the entire form area in product cards */
:is(.wc-block-product, .woocommerce ul.products li.product, ul.products li.product) .uhl-quote-add-form {
	display: flex;
	justify-content: center;
	width: 100%;
}

/* Keep the submit button sized to content and centered */
:is(.wc-block-product, .woocommerce ul.products li.product, ul.products li.product) .uhl-quote-add-form .uhl-quote-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
}

:is(.wc-block-product, .woocommerce ul.products li.product, ul.products li.product) .uhl-cm-add-to-quote-action.uhl-cm-style-button,
:is(.wc-block-product, .woocommerce ul.products li.product, ul.products li.product) .uhl-cm-configure-link.uhl-cm-style-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0.65rem 1.1rem;
	line-height: 1.2;
	text-align: center;
}

.uhl-quote-add-form .uhl-cm-config-note {
	margin: 0 0 10px;
	font-size: 0.95em;
	line-height: 1.4;
	color: #646970;
}

.uhl-quote-add-form .uhl-cm-config-note.is-ready {
	color: #1e7e34;
}

.uhl-quote-add-form .uhl-cm-config-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.uhl-quote-add-form .uhl-cm-clear-selection {
	display: none;
}

.uhl-cm-configure-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	margin-right: auto;
	text-decoration: none;
}

/* In product cards, ensure the variable-product link always centers */
:is(.wc-block-product, .woocommerce ul.products li.product, ul.products li.product) .uhl-cm-configure-link {
	margin-left: auto;
	margin-right: auto;
}

.uhl-cm-variable-selector-only .single_add_to_cart_button,
.uhl-cm-variable-selector-only button[name="add-to-cart"],
.uhl-cm-variable-selector-only .wp-block-woocommerce-add-to-cart-form button[type="submit"] {
	display: none !important;
}

/* Quote list shortcode layout */
.uhl-quote-list-wrap {
	--uhl-quote-accent: #89bf2c;
	--uhl-quote-accent-dark: #6c9922;
	--uhl-quote-border: #d9dee5;
	--uhl-quote-muted: #5b6673;
	--uhl-quote-surface: #fdfefe;
	--uhl-quote-focus: #1d4ed8;
	background: #fff;
	border: 1px solid var(--uhl-quote-border);
	border-radius: 0;
	padding: clamp(16px, 2.5vw, 28px);
	max-width: 1240px;
	margin: 0 auto 32px;
	color: #0f172a;
	font-size: 16px;
	line-height: 1.45;
}

.uhl-quote-list-wrap,
.uhl-quote-list-wrap * {
	box-sizing: border-box;
}

.uhl-quote-list-wrap .uhl-quote-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	border-bottom: 1px solid #edf1f6;
	padding-bottom: 14px;
	margin-bottom: 18px;
}

.uhl-quote-list-wrap .uhl-quote-header h3 {
	margin: 0;
	font-size: clamp(1.4rem, 2.1vw, 2rem);
	line-height: 1.1;
}

.uhl-quote-list-wrap .uhl-quote-title {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.uhl-quote-list-wrap .uhl-quote-widget-icon {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.uhl-quote-list-wrap .uhl-quote-summary {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.uhl-quote-list-wrap .uhl-quote-badge {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--uhl-quote-border);
	background: #f8fafc;
	color: #1f2937;
	border-radius: 0;
	padding: 6px 12px;
	font-size: 0.85rem;
	font-weight: 600;
}

.uhl-quote-list-wrap .uhl-quote-empty {
	background: #f8fafc;
	border: 1px dashed var(--uhl-quote-border);
	border-radius: 0;
	padding: 24px;
	color: #0f172a;
}

.uhl-quote-list-wrap .uhl-quote-notices {
	margin-bottom: 16px;
}

.uhl-quote-list-wrap .uhl-quote-confirmation {
	display: block;
	margin-bottom: 16px;
	padding: 12px 14px;
	border-radius: 0;
	border: 1px solid #b9e2c3;
	background: #ecfdf3;
	color: #166534;
}

.uhl-quote-list-wrap .uhl-quote-confirmation p {
	margin: 0;
	font-weight: 600;
}

.uhl-quote-list-wrap .uhl-quote-success-state {
	border: 1px solid #b9e2c3;
	background: #ecfdf3;
	padding: clamp(16px, 2.5vw, 24px);
}

.uhl-quote-list-wrap .uhl-quote-success-state h3 {
	margin: 0 0 8px;
	font-size: clamp(1.25rem, 1.6vw, 1.55rem);
	line-height: 1.2;
}

.uhl-quote-list-wrap .uhl-quote-success-state p {
	margin: 0;
	max-width: 72ch;
}

.uhl-quote-list-wrap .uhl-quote-success-actions {
	margin-top: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.uhl-quote-list-wrap .uhl-quote-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
	gap: 18px;
}

.uhl-quote-list-wrap .uhl-quote-panel {
	background: var(--uhl-quote-surface);
	border: 1px solid #e7ebf1;
	border-radius: 0;
	padding: 18px;
}

.uhl-quote-list-wrap .uhl-quote-panel h4 {
	margin: 0 0 12px;
	font-size: 1.08rem;
	line-height: 1.2;
}

.uhl-quote-list-wrap .uhl-quote-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.uhl-quote-list-wrap .uhl-quote-table th {
	padding: 10px 8px;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--uhl-quote-muted);
	border-bottom: 1px solid #dce2ea;
	text-align: left;
}

.uhl-quote-list-wrap .uhl-quote-table td {
	padding: 12px 8px;
	border-bottom: 1px solid #eef2f7;
	vertical-align: middle;
}

.uhl-quote-list-wrap .uhl-quote-table th:nth-child(2),
.uhl-quote-list-wrap .uhl-quote-table td:nth-child(2) {
	width: 112px;
}

.uhl-quote-list-wrap .uhl-quote-table th:nth-child(3),
.uhl-quote-list-wrap .uhl-quote-table td:nth-child(3) {
	width: 120px;
	text-align: right;
}

.uhl-quote-list-wrap .uhl-quote-table tr:last-child td {
	border-bottom: none;
}

.uhl-quote-list-wrap .uhl-quote-product-cell {
	display: flex;
	gap: 12px;
	align-items: center;
}

.uhl-quote-list-wrap .uhl-quote-product-cell img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 0;
	border: 1px solid #e1e7ef;
	background: #fff;
}

.uhl-quote-list-wrap .uhl-quote-product-title {
	display: inline-block;
	font-weight: 600;
	color: #0f172a;
	text-decoration: none;
}

.uhl-quote-list-wrap .uhl-quote-product-title:hover {
	text-decoration: underline;
}

.uhl-quote-list-wrap .uhl-quote-variant {
	margin-top: 4px;
	color: var(--uhl-quote-muted);
	font-size: 0.88rem;
	line-height: 1.3;
}

.uhl-quote-list-wrap .uhl-quote-qty-input {
	width: 100%;
	max-width: 96px;
	min-height: 40px;
	text-align: center;
}

.uhl-quote-list-wrap .uhl-quote-remove {
	background: transparent;
	border: 0;
	color: #b42318;
	cursor: pointer;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	padding: 0;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	width: 100%;
}

.uhl-quote-list-wrap .uhl-quote-remove:hover {
	text-decoration: underline;
}

.uhl-quote-list-wrap .uhl-quote-remove-form {
	margin: 0;
}

.uhl-quote-list-wrap .uhl-quote-actions {
	margin-top: 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.uhl-quote-list-wrap .uhl-quote-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	border-radius: 0;
	border: 1px solid transparent;
	padding: 0 18px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.uhl-quote-list-wrap .uhl-quote-btn-primary {
	background: var(--uhl-quote-accent);
	color: #fff;
}

.uhl-quote-list-wrap .uhl-quote-btn-primary:hover {
	background: var(--uhl-quote-accent-dark);
	color: #fff;
}

.uhl-quote-list-wrap .uhl-quote-btn-secondary {
	background: #fff;
	border-color: #c8d2dd;
	color: #0f172a;
}

.uhl-quote-list-wrap .uhl-quote-btn-secondary:hover {
	background: #f8fafc;
	border-color: #94a3b8;
	color: #0f172a;
}

.uhl-quote-list-wrap .uhl-quote-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 14px;
}

.uhl-quote-list-wrap .uhl-quote-form-row {
	margin: 0;
}

.uhl-quote-list-wrap .uhl-quote-form-row.is-full {
	grid-column: 1 / -1;
}

.uhl-quote-list-wrap .uhl-quote-form-row label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.uhl-quote-list-wrap .uhl-quote-form-row input,
.uhl-quote-list-wrap .uhl-quote-form-row textarea {
	width: 100%;
	max-width: none;
	border: 1px solid #c8d2dd;
	border-radius: 0;
	padding: 10px 12px;
	min-height: 42px;
	background: #fff;
}

.uhl-quote-list-wrap .uhl-quote-form-row textarea {
	min-height: 130px;
	resize: vertical;
}

.uhl-quote-list-wrap .uhl-quote-form-row input:focus,
.uhl-quote-list-wrap .uhl-quote-form-row textarea:focus,
.uhl-quote-list-wrap .uhl-quote-qty-input:focus,
.uhl-quote-list-wrap .uhl-quote-btn:focus,
.uhl-quote-list-wrap .uhl-quote-remove:focus {
	outline: 2px solid var(--uhl-quote-focus);
	outline-offset: 1px;
}

.uhl-quote-list-wrap .uhl-quote-form-row input::placeholder,
.uhl-quote-list-wrap .uhl-quote-form-row textarea::placeholder {
	color: #6b7280;
	opacity: 1;
}

.uhl-quote-list-wrap .uhl-quote-submit {
	margin-top: 8px;
}

.uhl-quote-list-wrap .uhl-quote-honeypot-field {
	position: absolute;
	left: -9999px;
	opacity: 0;
	pointer-events: none;
}

@media (max-width: 980px) {

	.uhl-quote-list-wrap .uhl-quote-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {

	.uhl-quote-list-wrap .uhl-quote-form {
		grid-template-columns: 1fr;
	}

	.uhl-quote-list-wrap .uhl-quote-table thead {
		display: none;
	}

	.uhl-quote-list-wrap .uhl-quote-table tr {
		display: block;
		border-bottom: 1px solid #eef2f7;
		padding: 8px 0;
	}

	.uhl-quote-list-wrap .uhl-quote-table td {
		display: block;
		border-bottom: none;
		padding: 8px 0;
		width: 100% !important;
		text-align: left !important;
	}

	.uhl-quote-list-wrap .uhl-quote-table td::before {
		content: attr(data-title);
		display: block;
		font-size: 0.78rem;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.02em;
		color: var(--uhl-quote-muted);
		margin-bottom: 6px;
	}

	.uhl-quote-list-wrap .uhl-quote-qty-input {
		max-width: 140px;
	}

	.uhl-quote-list-wrap .uhl-quote-remove {
		justify-content: flex-start;
	}

	.uhl-quote-list-wrap .uhl-quote-actions .uhl-quote-btn {
		width: 100%;
	}
}
