/* Universal WooCommerce Quote Pro - public styles. Everything is scoped to .uwqp*. */

.uwqp,
.uwqp-standalone {
	--uwqp-ink: #1c2430;
	--uwqp-soft: #5d6876;
	--uwqp-line: #dfe3e8;
	--uwqp-surface: #fff;
	--uwqp-sunken: #f6f7f9;
	--uwqp-danger: #b42318;
	--uwqp-ok: #18794e;
}
.uwqp { box-sizing: border-box; color: var(--uwqp-ink); font-size: 15px; line-height: 1.55; text-align: left; }
.uwqp *, .uwqp *::before, .uwqp *::after { box-sizing: border-box; }
.uwqp [hidden] { display: none !important; }
.uwqp h1, .uwqp h2, .uwqp h3 { color: inherit; line-height: 1.25; margin: 0; padding: 0; text-transform: none; letter-spacing: normal; }
.uwqp p { margin: 0 0 10px; }
.uwqp .uwqp-muted { color: var(--uwqp-soft); font-size: 13px; display: block; }
.uwqp-locked { overflow: hidden; }

/* Button */
.uwqp-button-wrap { display: flex; margin: 12px 0; clear: both; width: 100%; }
.uwqp-button-wrap--loop { margin: 8px 0 0; }
.uwqp-button-wrap--shortcode { display: inline-flex; width: auto; margin: 0; }
.uwqp-align-center { justify-content: center; }
.uwqp-align-right { justify-content: flex-end; }
.uwqp-full .uwqp-button { width: 100%; }
.uwqp-button.uwqp-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; float: none; margin: 0; }
.uwqp-button__icon { flex: none; width: 1.15em; height: 1.15em; }
.uwqp-button.uwqp-button--small { font-size: .85em; }
.uwqp-button.uwqp-button--large { font-size: 1.15em; }
.uwqp-button.uwqp-button--custom, .uwqp-button.uwqp-button--outline { background: var(--uwqp-btn-bg); color: var(--uwqp-btn-fg); border: var(--uwqp-btn-bw) solid var(--uwqp-btn-bd); border-radius: var(--uwqp-btn-radius); padding: .75em 1.4em; font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; transition: filter .15s; }
.uwqp-button.uwqp-button--outline { background: transparent; }
.uwqp-button.uwqp-button--custom:hover, .uwqp-button.uwqp-button--outline:hover { filter: brightness(.92); }
.uwqp-button:focus-visible, .uwqp button:focus-visible, .uwqp a:focus-visible { outline: 3px solid var(--uwqp-primary); outline-offset: 2px; }
.uwqp-replace-cart .product .single_add_to_cart_button, .uwqp-replace-cart .product form.cart .wc-block-components-product-button { display: none !important; }

/* Fields */
.uwqp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-bottom: 14px; }
.uwqp-field { margin: 0; min-width: 0; }
.uwqp-form > .uwqp-field, .uwqp-card > .uwqp-field, .uwqp form .uwqp-field + .uwqp-field, .uwqp form > .uwqp-field { margin-bottom: 14px; }
.uwqp-grid > .uwqp-field.uwqp-field { margin-bottom: 0; }
.uwqp-field--wide { grid-column: 1 / -1; }
.uwqp .uwqp-field--short select { max-width: 150px; }
.uwqp .uwqp-field label, .uwqp .uwqp-option label, .uwqp-product__qty label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 5px; color: var(--uwqp-ink); }
.uwqp input[type=text], .uwqp input[type=email], .uwqp input[type=tel], .uwqp input[type=search], .uwqp input[type=number], .uwqp select, .uwqp textarea { width: 100%; max-width: 100%; min-height: 44px; margin: 0; padding: 9px 13px; font: inherit; font-size: 16px; line-height: 1.4; color: var(--uwqp-ink); background-color: var(--uwqp-surface); border: 1px solid #c4cbd4; border-radius: min(var(--uwqp-radius), 22px); box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.uwqp textarea { border-radius: min(var(--uwqp-radius), 14px); min-height: 84px; resize: vertical; }
.uwqp-fields--underline input[type=text], .uwqp-fields--underline input[type=email], .uwqp-fields--underline input[type=tel], .uwqp-fields--underline input[type=search], .uwqp-fields--underline select, .uwqp-fields--underline textarea { border-width: 0 0 1.5px; padding-left: 2px; background-color: transparent; }
.uwqp input:focus, .uwqp select:focus, .uwqp textarea:focus { outline: 0; border-color: var(--uwqp-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--uwqp-primary) 22%, transparent); }
.uwqp-field--error input, .uwqp-field--error select, .uwqp-field--error textarea { border-color: var(--uwqp-danger) !important; }
.uwqp p.uwqp-error { color: var(--uwqp-danger); font-size: 13px; margin: 5px 0 0; }
.uwqp-req { color: var(--uwqp-danger); }
.uwqp .uwqp-choice { border: 0; margin: 0 0 16px; padding: 0; background: none; display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.uwqp .uwqp-choice legend { font-size: 13px; font-weight: 600; margin: 0 0 6px; padding: 0; background: none; color: inherit; }
.uwqp-choice label { flex: 1 1 150px; display: flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid #c4cbd4; border-radius: min(var(--uwqp-radius), 22px); cursor: pointer; margin: 0; }
.uwqp-choice label:has(input:checked) { border-color: var(--uwqp-primary); box-shadow: inset 0 0 0 1px var(--uwqp-primary); }
.uwqp input[type=radio], .uwqp input[type=checkbox] { accent-color: var(--uwqp-primary); width: 18px; height: 18px; flex: none; margin: 2px 0 0; }
.uwqp .uwqp-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.uwqp-trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.uwqp p.uwqp-status { background: #fdecea; color: #8f1d14; padding: 11px 14px; border-radius: 8px; margin: 0 0 12px; font-size: 14px; }
.uwqp p.uwqp-status--ok { background: #e7f5ee; color: #0f5c39; }
.uwqp-notice { background: var(--uwqp-sunken); padding: 14px 16px; border-radius: 8px; border-left: 4px solid var(--uwqp-primary); }
.uwqp-notice--error { border-left-color: var(--uwqp-danger); }

/* Plugin buttons */
.uwqp .uwqp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border: 1px solid var(--uwqp-primary); border-radius: min(var(--uwqp-radius), 999px); background: var(--uwqp-primary); color: var(--uwqp-on-primary); font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; text-transform: none; letter-spacing: normal; cursor: pointer; transition: filter .15s; }
.uwqp .uwqp-btn:hover { filter: brightness(.92); color: var(--uwqp-on-primary); }
.uwqp .uwqp-btn:disabled { opacity: .6; cursor: progress; }
.uwqp .uwqp-btn--ghost, .uwqp .uwqp-btn--ghost:hover { background: transparent; color: var(--uwqp-ink); border-color: #c4cbd4; }
.uwqp .uwqp-btn--ghost:hover { background: var(--uwqp-sunken); filter: none; }
.uwqp .uwqp-btn--danger { background: var(--uwqp-danger); border-color: var(--uwqp-danger); color: #fff; }
.uwqp .uwqp-btn--small { min-height: 40px; padding: 7px 16px; font-size: 14px; }
.uwqp .uwqp-btn--block { width: 100%; }
.uwqp-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.uwqp-actions--start { justify-content: flex-start; }
.uwqp .uwqp-link { background: none; border: 0; padding: 4px 0; color: var(--uwqp-soft); text-decoration: underline; font: inherit; font-size: 13px; cursor: pointer; }

/* Popup */
.uwqp-dialog.uwqp-dialog { width: min(720px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: 0; border-radius: 16px; background: var(--uwqp-surface); box-shadow: 0 30px 80px rgba(16, 24, 40, .28); overflow: hidden; }
.uwqp-dialog[open] { display: flex; flex-direction: column; }
.uwqp-dialog::backdrop { background: rgba(16, 24, 40, .55); }
@media (prefers-reduced-motion: no-preference) {
	.uwqp-dialog[open] { animation: uwqp-in .2s ease-out; }
	@keyframes uwqp-in { from { opacity: 0; transform: translateY(14px); } }
}
.uwqp-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--uwqp-line); }
.uwqp-dialog__head h2 { font-size: 20px; }
.uwqp .uwqp-close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--uwqp-soft); cursor: pointer; }
.uwqp .uwqp-close:hover { background: var(--uwqp-sunken); color: var(--uwqp-ink); }
.uwqp-dialog__body { overflow-y: auto; padding: 22px 24px 24px; margin: 0; }
.uwqp-product { display: grid; grid-template-columns: 88px minmax(0, 1fr) 110px; gap: 14px 16px; background: var(--uwqp-sunken); border-radius: 12px; padding: 16px; margin-bottom: 20px; }
.uwqp .uwqp-product__img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; background: #e9ecef; margin: 0; }
.uwqp-product__info > strong { display: block; font-size: 16px; }
.uwqp-product .uwqp-sum, .uwqp-product .uwqp-note { grid-column: 1 / -1; }
.uwqp .uwqp-note { margin: 0; }
.uwqp-options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.uwqp-option { flex: 1 1 120px; min-width: 0; }
.uwqp .uwqp-option select { min-height: 40px; padding: 7px 10px; font-size: 15px; }
.uwqp-sum { margin: 0; display: grid; gap: 5px; }
.uwqp-sum > div:not(.uwqp-sum__rows), .uwqp-sum__rows > div { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; }
.uwqp-sum__rows { display: grid; gap: 5px; }
.uwqp .uwqp-sum dt { font-weight: 400; color: var(--uwqp-soft); margin: 0; }
.uwqp .uwqp-sum dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.uwqp-sum .uwqp-sum__total.uwqp-sum__total { border-top: 1px solid var(--uwqp-line); padding-top: 9px; margin-top: 4px; font-size: 17px; font-weight: 700; }
.uwqp .uwqp-sum__total dt { color: inherit; font-weight: 700; }
.uwqp-sum--right { max-width: 380px; margin-left: auto; }
.uwqp-done { text-align: center; padding: 44px 28px; outline: 0; }
.uwqp-done svg { color: var(--uwqp-ok); margin: 0 auto 12px; display: block; }
.uwqp-done h2, .uwqp-done h3 { font-size: 22px; margin-bottom: 8px; }

/* Full page */
.uwqp-page { max-width: var(--uwqp-width); margin: 0 auto var(--uwqp-space); }
.uwqp-banner { position: relative; display: flex; align-items: center; min-height: var(--uwqp-banner-h); padding: 32px clamp(20px, 5vw, 64px); border-radius: 16px; overflow: hidden; isolation: isolate; color: var(--uwqp-banner-fg); margin-bottom: 18px; }
.uwqp-banner--full { width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0; }
.uwqp .uwqp-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; max-width: none; }
.uwqp-banner__veil { position: absolute; inset: 0; background: var(--uwqp-banner-bg); opacity: var(--uwqp-banner-op); z-index: -1; }
.uwqp-banner--plain .uwqp-banner__veil { opacity: 1; }
.uwqp-banner__text { max-width: 720px; }
.uwqp .uwqp-banner h1 { font-size: clamp(28px, 4.4vw, 46px); color: inherit; margin: 0 0 8px; text-wrap: balance; }
.uwqp .uwqp-banner p { font-size: clamp(15px, 1.8vw, 19px); margin: 0; color: inherit; }
.uwqp-crumbs { margin-bottom: 18px; font-size: 14px; }
.uwqp .uwqp-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
.uwqp .uwqp-crumbs li { margin: 0; padding: 0; }
.uwqp-crumbs li + li::before { content: "/"; margin: 0 9px; color: var(--uwqp-soft); }
.uwqp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--uwqp-space); align-items: start; margin: 0; }
.uwqp-main { display: grid; gap: var(--uwqp-space); min-width: 0; }
.uwqp-card { background: var(--uwqp-surface); border: 1px solid var(--uwqp-line); border-radius: 14px; padding: clamp(18px, 2.4vw, 28px); }
.uwqp .uwqp-card > h2 { font-size: 19px; margin: 0 0 16px; display: flex; align-items: center; gap: 11px; }
.uwqp-step { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--uwqp-primary); color: var(--uwqp-on-primary); font-size: 14px; flex: none; }
.uwqp-search { display: flex; gap: 10px; margin-bottom: 16px; }
.uwqp .uwqp-search select { flex: 0 0 200px; width: 200px; }
.uwqp-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; min-height: 80px; }
.uwqp-results[aria-busy=true] { opacity: .5; }
.uwqp-item { border: 1px solid var(--uwqp-line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; background: var(--uwqp-surface); }
.uwqp .uwqp-item img { width: 100%; height: 130px; object-fit: cover; background: var(--uwqp-sunken); margin: 0; display: block; border-radius: 0; }
.uwqp-item__body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.uwqp .uwqp-item h3 { font-size: 15px; overflow-wrap: anywhere; }
.uwqp-price { font-weight: 600; }
.uwqp-item .uwqp-btn { margin-top: auto; }
.uwqp-more { text-align: center; margin-top: 14px; }
.uwqp-side { position: sticky; top: 24px; }
.uwqp .uwqp-lines { list-style: none; margin: 0 0 14px; padding: 0; }
.uwqp .uwqp-lines li { display: grid; grid-template-columns: 52px minmax(0, 1fr) 74px 30px; gap: 10px; align-items: center; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--uwqp-line); }
.uwqp .uwqp-lines img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; margin: 0; }
.uwqp-lines strong { font-size: 14px; display: block; line-height: 1.3; overflow-wrap: anywhere; }
.uwqp .uwqp-lines input { min-height: 40px; padding: 6px 8px; text-align: center; }
.uwqp .uwqp-remove { width: 30px; height: 40px; padding: 0; background: none; border: 0; color: var(--uwqp-soft); font-size: 22px; line-height: 1; cursor: pointer; }
.uwqp .uwqp-remove:hover { color: var(--uwqp-danger); background: none; }
.uwqp-summary .uwqp-note { margin: 10px 0 14px; }

/* Portal */
.uwqp-standalone { margin: 0; background: #f3f4f6; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--uwqp-ink); }
.uwqp-standalone__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding: 18px clamp(16px, 4vw, 48px); background: #fff; border-bottom: 1px solid var(--uwqp-line); font-size: 14px; }
.uwqp-standalone__head a { color: inherit; text-decoration: none; font-size: 18px; }
.uwqp-standalone__head img { max-height: 52px; width: auto; display: block; }
.uwqp-standalone main { max-width: 960px; margin: 0 auto; padding: 28px 16px 64px; }
.uwqp-portal { display: grid; gap: 18px; }
.uwqp-portal > * { min-width: 0; }
.uwqp-quote-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.uwqp .uwqp-quote-head h1 { font-size: 26px; margin: 0 0 6px; }
.uwqp .uwqp-quote-head p { margin: 0; }
.uwqp .uwqp-eyebrow { color: var(--uwqp-soft); font-size: 13px; }
.uwqp-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; }
.uwqp-facts--stack { display: grid; gap: 8px; }
.uwqp .uwqp-facts dt { font-size: 12px; font-weight: 400; color: var(--uwqp-soft); margin: 0; }
.uwqp .uwqp-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.uwqp-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.uwqp .uwqp-columns h2 { font-size: 17px; margin-bottom: 10px; }
.uwqp-table-wrap { overflow-x: auto; }
.uwqp .uwqp-table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; border: 0; background: none; }
.uwqp .uwqp-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--uwqp-soft); padding: 8px 10px; border: 0; border-bottom: 1px solid var(--uwqp-line); background: none; }
.uwqp .uwqp-table td { padding: 12px 10px; border: 0; border-bottom: 1px solid var(--uwqp-line); vertical-align: top; background: none; }
.uwqp .uwqp-table .uwqp-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.uwqp .uwqp-table .uwqp-muted { display: inline; }
.uwqp-row-actions a { margin-right: 12px; }
.uwqp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.uwqp .uwqp-tab { min-height: 44px; padding: 8px 18px; border: 1px solid #c4cbd4; border-radius: 999px; background: none; color: var(--uwqp-ink); font: inherit; font-weight: 600; cursor: pointer; }
.uwqp .uwqp-tab[aria-expanded=true] { background: var(--uwqp-ink); border-color: var(--uwqp-ink); color: #fff; }
.uwqp .uwqp-pad { display: block; width: 100%; max-width: 560px; aspect-ratio: 900 / 260; border: 1px dashed #aab3be; border-radius: 10px; background: #fff; touch-action: none; cursor: crosshair; }
.uwqp blockquote { margin: 12px 0 0; padding: 12px 16px; border-left: 3px solid var(--uwqp-line); background: var(--uwqp-sunken); }
.uwqp-pages { display: flex; gap: 8px; }
.uwqp-pages a { padding: 6px 12px; border: 1px solid var(--uwqp-line); border-radius: 8px; text-decoration: none; }
.uwqp-pages [aria-current] { background: var(--uwqp-primary); color: var(--uwqp-on-primary); }

/* Status badges */
.uwqp-badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.5; background: #eceff3; color: #3c4653; white-space: nowrap; }
.uwqp-badge--new { background: #e3efff; color: #164a9b; }
.uwqp-badge--pending, .uwqp-badge--awaiting_payment { background: #fff3d6; color: #7a4b00; }
.uwqp-badge--validated, .uwqp-badge--sent { background: #e4ecfb; color: #234a91; }
.uwqp-badge--viewed { background: #efe7fb; color: #5b2d9c; }
.uwqp-badge--accepted, .uwqp-badge--paid, .uwqp-badge--converted { background: #ddf3e6; color: #0f5c39; }
.uwqp-badge--deposit_received, .uwqp-badge--partially_paid { background: #d9f2f0; color: #0b5a55; }
.uwqp-badge--refused, .uwqp-badge--cancelled { background: #fde4e1; color: #8f1d14; }

@media (max-width: 900px) {
	.uwqp-layout { grid-template-columns: minmax(0, 1fr); }
	.uwqp-side { position: static; }
}
@media (max-width: 600px) {
	.uwqp-grid { grid-template-columns: minmax(0, 1fr); }
	.uwqp-search { flex-direction: column; }
	.uwqp .uwqp-search select { width: 100%; flex: none; }
	.uwqp-results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.uwqp-dialog.uwqp-dialog { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; margin: 0; }
	.uwqp-dialog__head { padding: 12px 16px; }
	.uwqp-dialog__body { padding: 16px; flex: 1; }
	.uwqp-product { grid-template-columns: 72px minmax(0, 1fr); }
	.uwqp .uwqp-product__img { width: 72px; height: 72px; }
	.uwqp-product__qty { grid-column: 1 / -1; }
	.uwqp-actions .uwqp-btn { flex: 1 1 auto; }
	.uwqp .uwqp-table thead { display: none; }
	.uwqp .uwqp-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--uwqp-line); }
	.uwqp .uwqp-table td { display: block; padding: 3px 0; border: 0; text-align: left; }
	.uwqp .uwqp-table td[data-label] { display: flex; justify-content: space-between; gap: 14px; text-align: right; }
	.uwqp .uwqp-table td[data-label]::before { content: attr(data-label); color: var(--uwqp-soft); text-align: left; white-space: normal; }
}
