:root { --qav-ink: #17201d; --qav-muted: #68736f; --qav-brand: #b77a47; --qav-line: #dfe4e1; --qav-bg: #f4f5f2; }
.qav-root *, .qav-root *::before, .qav-root *::after { box-sizing: border-box; }
.qav-root [hidden] { display: none !important; }
.qav-modal-open,.qav-cart-confirm-open { overflow: hidden; }
.qav-open,.qav-generate { appearance: none; border: 0; border-radius: 6px; padding: 13px 20px; background: var(--qav-ink); color: #fff; font: 600 15px/1.2 inherit; cursor: pointer; }
.qav-open:hover,.qav-generate:hover { background: #2f3b37; }
.qav-dialog-backdrop { position: fixed; z-index: 999999; inset: 0; padding: 18px; display: grid; place-items: center; background: rgb(10 18 15 / .76); }
.qav-dialog-backdrop[hidden] { display: none; }
.qav-dialog { width: min(1440px, 100%); max-height: calc(100vh - 36px); overflow: auto; border-radius: 14px; background: #fff; color: var(--qav-ink); box-shadow: 0 30px 90px rgb(0 0 0 / .25); }
.qav-dialog:focus { outline: 3px solid rgb(183 122 71 / .45); outline-offset: 2px; }
.qav-header { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 8px 18px; border-bottom: 1px solid var(--qav-line); }
.qav-header h2 { margin: 0; font-size: clamp(18px, 1.6vw, 23px); line-height: 1.2; }
.qav-eyebrow { color: var(--qav-brand); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.qav-close { border: 0; background: transparent; width: 44px; height: 44px; color: var(--qav-ink); font-size: 32px; cursor: pointer; }
.qav-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(330px, .8fr); min-height: 650px; }
.qav-stage { position: relative; min-height: 520px; display: grid; place-items: center; overflow: hidden; background: #e9ece8; }
.qav-placeholder { display: grid; gap: 8px; max-width: 420px; padding: 30px; text-align: center; color: var(--qav-muted); }
.qav-placeholder-icon { color: var(--qav-brand); font-size: 58px; }
.qav-compare { position: absolute; inset: 0; overflow: hidden; cursor: ew-resize; touch-action: pan-y; }
.qav-compare img { width: 100%; height: 100%; object-fit: contain; background: #1c211f; }
.qav-after-wrap { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.qav-slider { appearance: none; position: absolute; z-index: 3; left: 0; top: 50%; width: 100%; height: 80px; margin: 0; background: transparent; opacity: .001; cursor: ew-resize; touch-action: pan-y; transform: translateY(-50%); }
.qav-slider::-webkit-slider-runnable-track { width: 100%; height: 100%; border: 0; background: transparent; }
.qav-slider::-webkit-slider-thumb { appearance: none; width: 68px; height: 80px; border: 0; background: transparent; cursor: ew-resize; }
.qav-slider::-moz-range-track { width: 100%; height: 100%; border: 0; background: transparent; }
.qav-slider::-moz-range-thumb { width: 68px; height: 80px; border: 0; background: transparent; cursor: ew-resize; }
.qav-slider:focus-visible { opacity: 1; outline: 3px solid #d7a679; outline-offset: -4px; }
.qav-compare::before { content: '↔'; position: absolute; z-index: 2; pointer-events: none; left: var(--qav-slider-position, 50%); top: 50%; display: grid; place-items: center; width: 48px; height: 60px; border: 2px solid #fff; border-radius: 18px; background: rgb(23 32 29 / .76); color: #fff; box-shadow: 0 5px 18px rgb(0 0 0 / .32); font: 700 22px/1 sans-serif; transform: translate(-50%, -50%); }
.qav-compare::after { content: ''; position: absolute; z-index: 1; pointer-events: none; left: var(--qav-slider-position, 50%); top: 0; bottom: 0; width: 3px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .25); transform: translateX(-50%); }
.qav-loading { position: absolute; z-index: 5; inset: 0; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, rgb(15 25 21 / .76), rgb(23 32 29 / .56)); }
.qav-loading[hidden] { display: none; }
.qav-scan-line { position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: 22%; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .08) 44%, rgb(213 161 112 / .68) 50%, rgb(255 255 255 / .08) 56%, transparent); filter: blur(1px); transform: translateX(-130%); animation: qav-scan 5.5s ease-in-out infinite; }
.qav-wait-card { position: relative; z-index: 1; display: grid; gap: 11px; width: min(470px, calc(100% - 40px)); padding: clamp(22px, 4vw, 34px); border: 1px solid rgb(255 255 255 / .18); border-radius: 16px; background: rgb(14 24 20 / .9); color: #fff; box-shadow: 0 24px 70px rgb(0 0 0 / .32); backdrop-filter: blur(12px); text-align: left; }
.qav-wait-eyebrow { color: #d7a679; font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.qav-wait-title { font-size: clamp(23px, 3vw, 34px); line-height: 1.08; }
.qav-wait-lead { color: rgb(255 255 255 / .7); font-size: 13px; line-height: 1.45; }
.qav-wait-progress { position: relative; height: 5px; overflow: hidden; border-radius: 99px; background: rgb(255 255 255 / .14); }
.qav-wait-progress span { position: absolute; inset: 0; width: 42%; border-radius: inherit; background: linear-gradient(90deg, transparent, #d7a679, #fff, #d7a679, transparent); animation: qav-wait-progress 2.2s ease-in-out infinite; }
.qav-wait-phase { display: flex; gap: 9px; align-items: center; min-height: 22px; font-size: 14px; font-weight: 700; }
.qav-wait-pulse { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: #d7a679; box-shadow: 0 0 0 0 rgb(215 166 121 / .55); animation: qav-wait-pulse 1.8s ease-out infinite; }
.qav-wait-dots { display: flex; gap: 7px; }
.qav-wait-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgb(255 255 255 / .22); transition: background-color .3s, transform .3s; }
.qav-wait-dots i.is-active { background: #d7a679; transform: scale(1.15); }
.qav-wait-meta { display: flex; justify-content: space-between; gap: 15px; color: rgb(255 255 255 / .58); font-size: 11px; }
.qav-wait-meta span:last-child { max-width: 58%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.qav-wait-tip { display: grid; gap: 4px; margin: 4px 0 0; padding: 12px 14px; border-left: 2px solid #d7a679; background: rgb(255 255 255 / .06); color: rgb(255 255 255 / .72); font-size: 12px; line-height: 1.45; }
.qav-wait-tip b { color: #d7a679; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
@keyframes qav-scan { 0% { transform: translateX(-130%); } 45%,55% { transform: translateX(455%); } 100% { transform: translateX(-130%); } }
@keyframes qav-wait-progress { 0% { transform: translateX(-110%); } 100% { transform: translateX(340%); } }
@keyframes qav-wait-pulse { 70% { box-shadow: 0 0 0 9px rgb(215 166 121 / 0); } 100% { box-shadow: 0 0 0 0 rgb(215 166 121 / 0); } }
.qav-controls { padding: 22px; overflow: auto; }
.qav-step { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; }
.qav-step > span { flex: 0 0 28px; display: grid; place-items: center; height: 28px; border-radius: 50%; background: var(--qav-brand); color: #fff; font-weight: 700; }
.qav-step strong,.qav-step small { display: block; }
.qav-step small { margin-top: 3px; color: var(--qav-muted); }
.qav-upload { display: grid; place-items: center; min-height: 54px; border: 2px dashed #aeb8b3; border-radius: 8px; background: var(--qav-bg); cursor: pointer; font-weight: 650; }
.qav-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.qav-upload:focus-within { outline: 3px solid rgb(183 122 71 / .35); }
.qav-tips { margin: 10px 0 24px 20px; padding: 0; color: var(--qav-muted); font-size: 13px; }
.qav-photo-section { margin: 0 0 14px; }
.qav-photo-section > summary { position: relative; padding-right: 28px; list-style: none; cursor: pointer; }
.qav-photo-section > summary::-webkit-details-marker { display: none; }
.qav-photo-section > summary::after { content: '⌄'; position: absolute; top: 3px; right: 4px; color: var(--qav-muted); font-size: 22px; line-height: 1; transform: rotate(-90deg); transition: transform .15s ease; }
.qav-photo-section[open] > summary::after { transform: rotate(0); }
.qav-photo-section:not([open]) > summary { margin-bottom: 0; }
.qav-photo-section:not([open]) > summary small { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qav-stage-setup { width: min(560px, calc(100% - 40px)); padding: 28px; border: 1px solid #d8dedb; border-radius: 18px; background: rgb(255 255 255 / .94); box-shadow: 0 18px 50px rgb(35 63 64 / .12); color: var(--qav-ink); text-align: left; }
.qav-stage-setup .qav-photo-section { margin-bottom: 20px; }
.qav-stage-setup .qav-upload { background: #f7f9f7; }
.qav-stage-setup .qav-tips { color: var(--qav-muted); }
.qav-stage-choice { margin-bottom: 0; padding-top: 18px; border-top: 1px solid #dfe4e1; }
.qav-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 210px; overflow: auto; margin-bottom: 18px; }
.qav-product { appearance: none; display: grid; grid-template-rows: 76px auto; gap: 5px; min-width: 0; padding: 7px; border: 1px solid var(--qav-line); border-radius: 8px; background: #fff; color: var(--qav-ink); font: 600 11px/1.25 inherit; text-align: left; cursor: pointer; }
.qav-product img { width: 100%; height: 76px; object-fit: cover; border-radius: 5px; }
.qav-product.is-active { border-color: var(--qav-brand); box-shadow: inset 0 0 0 2px var(--qav-brand); }
.qav-product:disabled { cursor: wait; opacity: .62; }
.qav-no-image { display: grid; place-items: center; background: var(--qav-bg); font-size: 28px; }
.qav-consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; line-height: 1.45; color: var(--qav-muted); }
.qav-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; }
.qav-status { min-height: 22px; margin: 12px 0 8px; font-size: 13px; font-weight: 600; }
.qav-status.is-error { color: #a32626; }
.qav-generate { width: 100%; min-height: 50px; }
.qav-generate:disabled { cursor: not-allowed; opacity: .48; }
.qav-result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.qav-result-actions[hidden] { display: none; }
.qav-secondary { display: grid; place-items: center; min-height: 42px; padding: 6px; border: 1px solid var(--qav-ink); border-radius: 6px; color: var(--qav-ink); font-size: 13px; font-weight: 650; text-decoration: none; text-align: center; }
.qav-disclaimer { margin: 14px 0 0; color: var(--qav-muted); font-size: 11px; line-height: 1.45; }
.qav-is-embedded .qav-dialog-backdrop { position: static; padding: 0; background: transparent; }
.qav-is-embedded .qav-dialog { max-height: none; border: 1px solid var(--qav-line); box-shadow: none; }
@media (max-width: 820px) {
  .qav-dialog-backdrop { padding: 0; place-items: stretch; }
  .qav-dialog { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
  .qav-layout { grid-template-columns: 1fr; min-height: 0; }
  .qav-stage { min-height: min(50vh, 430px); }
  .qav-slider { height: 92px; }
  .qav-slider::-webkit-slider-thumb { width: 76px; height: 92px; }
  .qav-slider::-moz-range-thumb { width: 76px; height: 92px; }
  .qav-compare::before { width: 52px; height: 66px; border-radius: 20px; font-size: 24px; }
  .qav-wait-card { width: min(440px, calc(100% - 24px)); padding: 20px; gap: 9px; }
  .qav-wait-title { font-size: 23px; }
  .qav-controls { padding: 18px; }
  .qav-products { grid-template-columns: repeat(3, minmax(100px, 1fr)); }
  .qav-generate { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -8px 18px #fff; }
  .qav-is-embedded .qav-dialog { height: auto; }
}

/* Storefront entry points. The fixed palette mirrors the established QWALLZ buttons. */
.qav-loop-launch.button { box-sizing: border-box; min-height: 44px !important; height: auto !important; margin: 0 !important; padding: 11px 18px !important; border: 2px solid #233f40 !important; border-radius: 10px !important; background: #233f40 !important; color: #fff !important; font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important; font-size: 15px !important; font-weight: 650 !important; line-height: 1.2 !important; letter-spacing: 0 !important; text-align: center; text-transform: none !important; }
.qav-loop-launch.button:hover, .qav-loop-launch.button:focus { border-color: #b77a47 !important; background: #2f4d4e !important; color: #fff !important; }
.qav-floating-wrap { position: fixed; z-index: 99990; left: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); display: flex; align-items: center; max-width: calc(100vw - 36px); filter: drop-shadow(0 8px 22px rgb(0 0 0 / .24)); }
.qav-floating-wrap[hidden], body.qav-modal-open .qav-floating-wrap { display: none; }
.qav-floating-wrap > .qav-floating-launch { box-sizing: border-box; width: auto !important; min-width: 0 !important; max-width: 100%; min-height: 50px !important; height: auto !important; margin: 0 !important; padding: 12px 48px 12px 20px !important; border: 2px solid #233f40 !important; border-radius: 10px !important; background: #233f40 !important; color: #fff !important; font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important; font-size: 15px !important; font-weight: 650 !important; line-height: 1.2 !important; letter-spacing: 0 !important; text-align: center !important; text-transform: none !important; white-space: nowrap !important; cursor: pointer; }
.qav-floating-wrap > .qav-floating-launch:hover, .qav-floating-wrap > .qav-floating-launch:focus { border-color: #b77a47 !important; background: #2f4d4e !important; color: #fff !important; }
.qav-floating-wrap > .qav-floating-dismiss { position: absolute; right: 3px; display: grid; place-items: center; box-sizing: border-box; width: 42px !important; min-width: 42px !important; height: 42px !important; min-height: 42px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-left: 1px solid rgb(255 255 255 / .3) !important; border-radius: 0 !important; background: transparent !important; color: #fff !important; font-family: system-ui, -apple-system, "Segoe UI", sans-serif !important; font-size: 24px !important; font-weight: 400 !important; line-height: 1 !important; letter-spacing: 0 !important; text-transform: none !important; cursor: pointer; }
.qav-floating-launch:focus-visible, .qav-floating-dismiss:focus-visible, .qav-loop-launch:focus-visible { outline: 3px solid #b77a47; outline-offset: 3px; }
@media (max-width: 820px) {
  .qav-floating-wrap { left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: calc(100vw - 24px); }
  .qav-floating-desktop-only { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .qav-scan-line,.qav-wait-progress span,.qav-wait-pulse { animation: none; }
  .qav-scan-line { display: none; }
  .qav-wait-progress span { width: 100%; opacity: .7; }
  .qav-wait-dots i { transition: none; }
}

/* 0.3 purchase flow: scoped rules override broad theme button and card styles. */
.qav-root .qav-dialog { display: flex; flex-direction: column; height: min(900px, calc(100dvh - 36px)); overflow: hidden; }
.qav-root .qav-header { flex: 0 0 auto; }
.qav-root .qav-layout { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.qav-root .qav-stage { min-height: 0; }
.qav-root.qav-is-embedded .qav-dialog { height: auto; overflow: visible; }
.qav-root.qav-is-embedded .qav-stage { min-height: 520px; }
.qav-root .qav-controls { min-width: 0; }
.qav-root button, .qav-root input, .qav-root select { font-family: inherit; text-transform: none; letter-spacing: normal; }
.qav-root button { white-space: normal; cursor: pointer; }
.qav-root button:disabled { cursor: not-allowed; }
.qav-root button:focus-visible, .qav-root a:focus-visible, .qav-root input:focus-visible, .qav-root select:focus-visible, .qav-root summary:focus-visible { outline: 3px solid #b77a47; outline-offset: 3px; }
.qav-root .qav-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 360px; overflow-x: hidden; overflow-y: auto; padding: 4px; }
.qav-root .qav-product { display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; min-width: 0; padding: 7px; border: 1px solid #dfe4e1; border-radius: 12px; background: #fff; color: #203d3e; font-size: 13px; font-weight: 500; line-height: 1.3; text-align: left; box-shadow: none; }
.qav-root .qav-product img { display: block; width: 100%; height: 84px; object-fit: cover; border-radius: 8px; }
.qav-root .qav-product .qav-card-name { display: -webkit-box; min-height: 34px; overflow: hidden; font-size: 13px; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.qav-root .qav-product small { overflow: hidden; font-size: 11px; color: #52605a; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.qav-root .qav-product:hover { border-color: #b77a47; background: #faf8f4; }
.qav-root .qav-product.is-active { border-color: #b77a47; box-shadow: inset 0 0 0 2px #b77a47; }
.qav-root .qav-catalog-tools { display: grid; gap: 10px; margin: 0 0 15px; }
.qav-root .qav-catalog-nav { display: flex; align-items: center; gap: 10px; min-width: 0; }
.qav-root .qav-catalog-nav[hidden] { display: none; }
.qav-root .qav-catalog-nav > button { flex: 0 0 auto; }
.qav-root .qav-catalog-nav > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qav-root .qav-search, .qav-root .qav-purchase label, .qav-root .qav-email > label, .qav-root [data-qav-code-section] label, .qav-root [data-qav-variation-label] { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.qav-root .qav-search input, .qav-root .qav-purchase input, .qav-root .qav-email input:not([type=checkbox]), .qav-root select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #bac3bc; border-radius: 8px; background: white; color: #17201d; font-size: 16px; }
.qav-root .qav-result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qav-root .qav-purchase { grid-column: 1 / -1; display: grid; gap: 15px; }
.qav-root .qav-purchase-product { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: start; }
.qav-root .qav-purchase-product img { width: 88px; height: 110px; object-fit: cover; border-radius: 10px; }
.qav-root .qav-purchase h3 { margin: 0 0 7px; font-size: 21px; line-height: 1.3; color: #203d3e; overflow-wrap: anywhere; }
.qav-root .qav-purchase p { margin: 4px 0; font-size: 14px; }
.qav-root .qav-purchase details { padding: 14px; background: #f5f6f2; border: 1px solid #dfe4e1; border-radius: 10px; }
.qav-root .qav-purchase summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.qav-root .qav-purchase small, .qav-root .qav-muted { font-size: 12px; line-height: 1.5; color: #52605a; }
.qav-root .qav-cart-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; align-items: end; }
.qav-root .qav-cart-row .qav-cart { min-height: 46px; }
.qav-root .qav-dimensions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.qav-root .qav-secondary { background: white; color: #203d3e; min-height: 44px; font-size: 14px; border-color: #b8c1bc; padding: 10px; line-height: 1.4; }
.qav-root .qav-generate { background: #203d3e; color: white; padding: 15px; font-size: 16px; font-weight: 650; line-height: 1.4; border-radius: 9px; }
.qav-root .qav-email { display: grid; gap: 14px; padding: 18px; border-radius: 14px; background: #f5f6f2; }
.qav-root .qav-email h3, .qav-root .qav-email p { margin: 0; }
.qav-root .qav-email h3 { font-size: 22px; line-height: 1.3; }
.qav-root .qav-email .qav-consent { display: flex; font-size: 12px; font-weight: 400; }
.qav-root [data-qav-code-section] { display: grid; gap: 12px; }
.qav-root .qav-history { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.qav-root .qav-history .qav-card-name { font-size: 11px; }
.qav-root .qav-history small { display: none; }
.qav-root [data-qav-return] { width: 100%; margin-top: 10px; }
.qav-root .qav-cart-confirm { position: fixed; z-index: 1000001; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(10 18 15 / .76); }
.qav-root .qav-cart-confirm[hidden] { display: none; }
.qav-root .qav-cart-confirm-card { position: relative; display: grid; gap: 13px; width: min(440px, 100%); padding: 30px; border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgb(0 0 0 / .3); text-align: center; }
.qav-root .qav-cart-confirm-card h3 { margin: 0; color: #203d3e; font-size: 24px; line-height: 1.2; }
.qav-root .qav-cart-confirm-card p { margin: 0 0 5px; color: #52605a; font-size: 15px; line-height: 1.5; }
.qav-root .qav-cart-confirm-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto; border-radius: 50%; background: #e9f5eb; color: #23733a; font-size: 31px; font-weight: 800; }
.qav-root .qav-cart-confirm-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: transparent; color: #203d3e; font-size: 29px; line-height: 1; }
.qav-root .qav-cart-confirm-card .qav-generate { display: grid; place-items: center; min-height: 52px; text-decoration: none; }
@media (max-width: 820px) {
  .qav-root .qav-dialog { display: block; height: 100dvh; overflow: auto; }
  .qav-root .qav-layout { overflow: visible; }
  .qav-root .qav-stage, .qav-root.qav-is-embedded .qav-stage { min-height: min(50vh, 430px); }
  .qav-root .qav-products { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 360px; }
  .qav-root .qav-controls { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .qav-stage-setup { width: min(520px, calc(100% - 24px)); padding: 18px; border-radius: 14px; }
  .qav-root .qav-cart-row { position: sticky; bottom: 10px; z-index: 4; padding: 7px; border-radius: 10px; background: #fff; box-shadow: 0 5px 20px rgb(0 0 0 / .18); }
	.qav-root .qav-cart-confirm { padding: 14px; }
	.qav-root .qav-cart-confirm-card { padding: 28px 18px 20px; }
}
