/* ==========================================================================
   Ma3aak Parts — /parts pages (glass/parts/*). Builds on ma3aak-glass.css:
   same tokens (--fg, --well, --sh, --deep, --lime…), logical properties for RTL,
   and the [data-theme="light"] channels, so both themes work without overrides.
   Availability colours: in stock = lime, other branch = amber, can source = grey,
   on request = outlined. Prices are never shown on these pages.
   ========================================================================== */

.pq-hero { padding-block-end: 40px; }
.pq-hero--compact { padding-block-end: 22px; }
.pq-hero--compact .h-sec { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.pq-hero .lead { margin-block-end: 26px; }

/* ---------- Status dots & colours ---------- */
.pq-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; background: rgba(var(--fg), .35); }
.is-in-stock .pq-dot, .pq-dot.is-in-stock { background: var(--lime); box-shadow: 0 0 0 3px rgba(146, 199, 59, .22); }
.is-other-branch .pq-dot, .pq-dot.is-other-branch { background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 184, 65, .2); }
.is-no-stock .pq-dot, .pq-dot.is-no-stock { background: rgba(var(--fg), .42); }
.is-not-in-catalogue .pq-dot, .pq-dot.is-not-in-catalogue { background: transparent; box-shadow: inset 0 0 0 2px rgba(var(--fg), .55); }

.pq-status { display: flex; align-items: center; gap: 10px; font: 600 15px/1.4 var(--f-display); margin-block: 12px 4px; }
.pq-status.is-in-stock { color: var(--lime-hi); }
.pq-status.is-other-branch { color: var(--amber); }
[data-theme="light"] .pq-status.is-other-branch { color: #A86C00; }
.pq-status.is-no-stock, .pq-status.is-not-in-catalogue { color: var(--text-2); }

.pq-fit { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding-inline: 10px; border-radius: 99px; font: 500 12.5px/1 var(--f-body); }
.pq-fit .ic { width: 14px; height: 14px; }
.pq-fit--fits { color: var(--lime-hi); background: rgba(146, 199, 59, .12); box-shadow: inset 0 0 0 1px rgba(146, 199, 59, .35); }
.pq-fit--unconfirmed { color: var(--text-2); background: rgba(var(--fg), .06); box-shadow: inset 0 0 0 1px var(--line); }
.tag--amber { color: #0A1408; background: var(--amber); box-shadow: none; font-weight: 600; }

/* ---------- Finder (landing hero) ---------- */
.pq-finder { display: grid; gap: 20px; padding: clamp(18px, 3vw, 30px); border-radius: var(--r-xl); max-width: 880px; }
.pq-label { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--f-display); margin-block-end: 12px; }
.pq-label .ic { color: var(--lime); }
.pq-car__selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pq-hint { margin-block-start: 10px; font-size: 13.5px; color: var(--text-3); }

.pq-select { position: relative; display: block; }
.pq-select select {
    appearance: none; -webkit-appearance: none; width: 100%; height: 52px; padding-inline: 16px 40px; border: 0; border-radius: 16px;
    color: var(--text); font: 500 15px/1.2 var(--f-body); cursor: pointer;
    background: rgba(var(--well), .45); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .3s, background .3s;
}
.pq-select select:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--lime), 0 0 0 4px rgba(146, 199, 59, .15); }
.pq-select select:disabled { opacity: .55; cursor: not-allowed; }
.pq-select select option { color: #14202E; background: #fff; }
.pq-select::after {
    content: ""; position: absolute; inset-inline-end: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; pointer-events: none;
    border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg); /* physical: a down chevron in both directions */
}

.pq-search { position: relative; display: flex; align-items: center; gap: 10px; }
.pq-search__ic { position: absolute; inset-inline-start: 16px; width: 20px; height: 20px; color: var(--text-3); pointer-events: none; }
.pq-search input {
    flex: 1; min-width: 0; height: 50px; padding-inline: 46px 16px; border: 0; border-radius: 99px;
    color: var(--text); font: 400 15.5px/1.4 var(--f-body);
    background: rgba(var(--well), .45); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .3s, background .3s;
}
.pq-search input::placeholder { color: var(--text-3); }
.pq-search input:focus { outline: none; background: rgba(var(--well), .6); box-shadow: inset 0 0 0 1.5px var(--lime), 0 0 0 4px rgba(146, 199, 59, .15); }
.pq-search input::-webkit-search-cancel-button { filter: grayscale(1); }
.pq-search--big input { height: 60px; font-size: 16.5px; padding-inline-start: 50px; }
.pq-search--big .pq-search__ic { width: 22px; height: 22px; }

/* ---------- Toolbar: car + search on inner pages ---------- */
.pq-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pq-toolbar .pq-search { flex: 1 1 340px; }
.pq-carbar { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 6px 8px 6px 16px; border-radius: 99px; max-width: 100%; }
[dir="rtl"] .pq-carbar { padding: 6px 16px 6px 8px; }
.pq-carbar .ic { color: var(--lime); }
.pq-carbar__label { font-size: 13px; color: var(--text-3); }
.pq-carbar__name { font: 600 14.5px/1.3 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ---------- Empty / meta / notes ---------- */
.pq-empty { padding: clamp(28px, 5vw, 48px) 24px; text-align: center; color: var(--text-2); border-radius: var(--r-lg); }
.pq-empty b { display: block; font: 600 19px/1.4 var(--f-display); color: var(--text); margin-block-end: 6px; }
.pq-empty .btn { margin: 18px 6px 0; }
.pq-meta { color: var(--text-3); font-size: 14px; margin-block-end: 16px; }
.pq-note { display: flex; align-items: center; gap: 8px; margin-block-start: 16px; font-size: 13.5px; color: var(--text-3); }
.pq-note .ic { width: 16px; height: 16px; color: var(--teal-hi); }
.pq-subhead { font: 600 17px/1.4 var(--f-display); margin-block-end: 12px; }

/* ---------- Systems & diagram tiles ---------- */
.pq-systems { padding-block-start: clamp(30px, 5vw, 60px); }
.pq-sysgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.pq-sys {
    display: grid; gap: 6px; text-align: start; padding: 18px 18px 16px; border: 0; border-radius: var(--r-md); cursor: pointer;
    transition: transform .4s var(--ease);
}
.pq-sys:hover { transform: translateY(-4px); }
.pq-sys b { font: 600 15.5px/1.35 var(--f-display); }
.pq-sys span { font-size: 13px; color: var(--text-3); }
.pq-sys[aria-expanded="true"] { box-shadow: inset 0 0 0 1.5px var(--lime), 0 18px 40px -24px rgba(146, 199, 59, .6); }
.pq-dlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-block-start: 18px; }
.pq-dcard { display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden; text-decoration: none; transition: transform .4s var(--ease); }
.pq-dcard:hover { transform: translateY(-4px); }
.pq-dcard__img { aspect-ratio: 4 / 3; margin: 8px 8px 0; border-radius: 12px; overflow: hidden; background: #F4F5F1; }
.pq-dcard__img img { width: 100%; height: 100%; object-fit: contain; }
.pq-dcard b { padding: 12px 14px 2px; font: 600 14.5px/1.4 var(--f-display); }
.pq-dcard span { padding: 0 14px 14px; font-size: 12.5px; color: var(--text-3); }

/* ---------- How it works ---------- */
.pq-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-block-end: 30px; counter-reset: none; }
.pq-step { padding: 22px 20px; border-radius: var(--r-lg); display: grid; gap: 8px; align-content: start; }
.pq-step__n {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
    font: 700 16px/1 var(--f-mono); color: #0A1408; background: linear-gradient(180deg, #ADDD55, #88BB35);
}
.pq-step b { font: 600 17px/1.35 var(--f-display); }
.pq-step p { color: var(--text-2); font-size: 14.5px; }
.pq-trust { margin: 0; }

/* ---------- Part cards ---------- */
.pq-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.pq-card { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; text-decoration: none; min-height: 140px; }
.pq-card__media { position: relative; display: block; aspect-ratio: 4 / 3; margin: 8px 8px 0; border-radius: 18px; overflow: hidden; background: var(--deep); }
.pq-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pq-card:hover .pq-card__media img { transform: scale(1.04); }
.pq-card__media--none { aspect-ratio: 16 / 7; }
.pq-card__ph { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(var(--fg), .25); }
.pq-card__ph .ic { width: 44px; height: 44px; }
.pq-card__media .tag { position: absolute; top: 10px; inset-inline-start: 10px; }
.pq-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.pq-card__name { font: 600 16px/1.4 var(--f-display); text-decoration: none; color: var(--text); }
.pq-card__name:hover { color: var(--lime-hi); }
.pq-card__oem, .pq-oem b, .pq-dg__names small { font: 500 12.5px/1.3 var(--f-mono); color: var(--text-3); letter-spacing: .02em; }
.pq-card .pq-status { font-size: 13.5px; margin: 4px 0 0; }
.pq-mini { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 4px; }
.pq-mini li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 99px; font-size: 12px; color: var(--text-2); background: rgba(var(--fg), .05); box-shadow: inset 0 0 0 1px var(--line); }
.pq-mini .pq-dot { width: 7px; height: 7px; box-shadow: none; }
.pq-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: auto; padding-block-start: 10px; }
.pq-card--skeleton { min-height: 330px; background: linear-gradient(100deg, rgba(var(--fg), .04) 30%, rgba(var(--fg), .09) 50%, rgba(var(--fg), .04) 70%); background-size: 300% 100%; animation: pqShimmer 1.6s linear infinite; }
@keyframes pqShimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.btn.is-done { pointer-events: none; opacity: .75; }

/* ---------- Part page ---------- */
.pq-part__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(18px, 3vw, 36px); align-items: start; margin-block-end: 26px; }
.pq-gallery { padding: 10px; border-radius: var(--r-xl); }
.pq-gallery__main { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 22px; background: var(--deep); }
.pq-gallery__none { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 22px; background: var(--deep); color: rgba(var(--fg), .2); }
.pq-gallery__none .ic { width: 72px; height: 72px; }
.pq-gallery__thumbs { display: flex; gap: 8px; margin-block-start: 10px; overflow-x: auto; }
.pq-gallery__thumbs button { flex: none; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--deep); box-shadow: inset 0 0 0 1px var(--line); }
.pq-gallery__thumbs button[aria-current="true"] { box-shadow: 0 0 0 2px var(--lime); }
.pq-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pq-oem { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 13px; color: var(--text-3); }
.pq-part__title { font: 700 clamp(1.6rem, 3.4vw, 2.4rem)/1.25 var(--f-display); margin-block: 6px 6px; text-wrap: balance; }
.pq-conds { display: grid; gap: 8px; margin-block-end: 18px; }
.pq-conds li { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(var(--fg), .04); box-shadow: inset 0 0 0 1px var(--line); }
.pq-conds b { font: 600 14.5px/1.3 var(--f-display); }
.pq-conds span { font-size: 13px; color: var(--text-2); text-align: end; }
.pq-addform { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.pq-addform .pq-select { flex: 1 1 180px; }
.pq-addform .pq-select select { height: 50px; }
.pq-qty { display: inline-flex; align-items: center; height: 50px; border-radius: 99px; background: rgba(var(--well), .45); box-shadow: inset 0 0 0 1px var(--line-2); }
.pq-qty button { width: 42px; height: 100%; border: 0; background: none; cursor: pointer; font: 600 20px/1 var(--f-display); color: var(--text-2); }
.pq-qty button:hover { color: var(--lime-hi); }
.pq-qty output { min-width: 26px; text-align: center; font: 600 15px/1 var(--f-mono); }
.pq-addform .btn { height: 50px; }
.pq-block { margin-block-end: 24px; }
.pq-block.glass { padding: 20px 22px; border-radius: var(--r-lg); }
.pq-desc { color: var(--text-2); }
.pq-years { color: var(--text-3); font-family: var(--f-mono); font-size: 12px; }
.pq-links { display: flex; flex-wrap: wrap; gap: 10px; }
.pq-pinno { font-family: var(--f-mono); color: var(--text-3); }

/* ---------- Diagram viewer ---------- */
.pq-dg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 16px; align-items: start; }
.pq-dg__viewer { padding: 12px; border-radius: var(--r-xl); }
.pq-dg__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 4px 12px; }
.pq-legend { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; }
.pq-legend li[hidden] { display: none; }
.pq-legend button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border: 0; border-radius: 99px; cursor: pointer; font: inherit; color: var(--text-2); background: rgba(var(--fg), .05); transition: background .2s, color .2s, box-shadow .2s; }
.pq-legend button:disabled { cursor: default; }
.pq-legend button:not(:disabled):hover { color: var(--text); background: rgba(var(--fg), .1); }
.pq-legend button[aria-pressed="true"] { color: var(--text); background: rgba(146, 199, 59, .16); box-shadow: inset 0 0 0 1.5px var(--lime); }
.pq-legend b { font: 700 12px/1 var(--f-mono); color: var(--text); }
.pq-legend b:empty { display: none; }
.pq-legend .pq-dot { width: 10px; height: 10px; box-shadow: none; }
.pq-legend .is-not-in-catalogue .pq-dot { box-shadow: inset 0 0 0 2px #8A96A3; }
.pq-dg__hint { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0 6px 10px; font-size: 14px; font-weight: 600; color: var(--text); }
.pq-dg__hint .ic { width: 19px; height: 19px; color: var(--lime-hi); }
.pq-dg__hint small { font-size: 12.5px; font-weight: 400; color: var(--text-2); }
.pq-dg__tools { display: flex; align-items: center; gap: 8px; }
.pq-dg__tools [aria-pressed="true"] { color: #0A1408; background: linear-gradient(180deg, #ADDD55, #88BB35); box-shadow: none; }
.pq-zoom { display: inline-flex; border-radius: 99px; overflow: hidden; }
.pq-zoom button { width: 36px; height: 34px; border: 0; background: none; cursor: pointer; font: 600 18px/1 var(--f-display); color: var(--text); display: grid; place-items: center; }
.pq-zoom button:hover { background: rgba(var(--fg), .08); }
.pq-zoom .ic { width: 15px; height: 15px; }
/* Without JS the diagram simply flows at full width; parts.js adds .is-live for pan & zoom. */
.pq-dg__stage {
    position: relative; overflow: hidden; border-radius: 20px;
    background: #F7F8F5; box-shadow: inset 0 0 0 1px rgba(28, 40, 54, .08);
    -webkit-user-select: none; user-select: none;
}
.pq-dg__stage.is-live { touch-action: none; cursor: grab; min-height: 260px; }
.pq-dg__stage.is-dragging { cursor: grabbing; }
.pq-dg__canvas { position: relative; width: 100%; transform-origin: 0 0; --z: 1; }
.pq-dg__stage.is-live .pq-dg__canvas { position: absolute; top: 0; left: 0; will-change: transform; }
.pq-dg__canvas img { width: 100%; height: auto; pointer-events: none; }
/* A pin is a small button in its stock colour. It sits on the number the drawing prints, or steps aside: never on the part. */
.pq-pin {
    position: absolute; z-index: 2; width: 36px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; --c: #2B3949; --t: rgba(43, 57, 73, .1); --i: 0;
    transform: translate(-50%, -50%) scale(calc(1 / var(--z, 1))) translate(var(--ox, 0px), var(--oy, 0px)); transition: opacity .25s;
}
.pq-pin__b {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 99px;
    font: 700 11.5px/1 var(--f-mono); color: #fff; background: var(--c); box-shadow: 0 0 0 1.5px #fff, 0 2px 6px rgba(20, 32, 46, .38), inset 0 1px 0 rgba(255, 255, 255, .28); transition: transform .18s var(--ease), box-shadow .18s, background .18s;
}
.pq-pin__l { display: none; position: absolute; left: 50%; top: 50%; width: var(--len, 0); height: 0; border-top: 1.4px solid var(--c); transform-origin: 0 0; transform: rotate(var(--ang, 0rad)); pointer-events: none; }
.pq-pin.is-off .pq-pin__l { display: block; }
.pq-pin__l::after { content: ""; position: absolute; right: -2px; top: -3.2px; width: 5px; height: 5px; border-radius: 50%; background: var(--c); }
.pq-pin.is-in-stock { --c: #4F7F10; --t: rgba(146, 199, 59, .2); }
.pq-pin.is-other-branch { --c: #C9851A; --t: rgba(245, 184, 65, .22); }
.pq-pin.is-other-branch .pq-pin__b { color: #1B1405; background: #F0B03A; }
.pq-pin.is-no-stock { --c: #66727F; --t: rgba(102, 114, 127, .14); }
.pq-pin.is-not-in-catalogue { --c: #66727F; --t: rgba(102, 114, 127, .07); }
.pq-pin.is-not-in-catalogue .pq-pin__b { color: #25313D; background: #fff; box-shadow: inset 0 0 0 2px var(--c), 0 2px 6px rgba(20, 32, 46, .32); }
.pq-pin:hover .pq-pin__b, .pq-pin.is-hover .pq-pin__b, .pq-pin:focus-visible .pq-pin__b { transform: translate(-50%, -50%) scale(1.22); box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px #92C73B, 0 6px 16px rgba(20, 32, 46, .4); }
.pq-pin:active .pq-pin__b { transform: translate(-50%, -50%) scale(.94); }
.pq-pin:focus-visible { outline: none; }
.pq-pin:hover, .pq-pin.is-hover, .pq-pin:focus-visible, .pq-pin.is-active { z-index: 4; }
.pq-pin.is-active .pq-pin__b { color: #fff; background: #14202E; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #92C73B; }
.pq-pin.is-selected .pq-pin__b { color: #0A1408; background: #ADDD55; box-shadow: 0 0 0 2px #14202E; }
.pq-pin.is-out { opacity: .22; pointer-events: none; }
.pq-pin.is-out .pq-pin__b { transform: translate(-50%, -50%) scale(.62); box-shadow: none; }
.pq-pin.is-added .pq-pin__b::after { content: "✓"; position: absolute; top: -6px; right: -7px; width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; font: 700 9px/1 sans-serif; color: #0A1408; background: #C6F46B; box-shadow: 0 0 0 1.5px #fff; }
.pq-dg__list button.is-added .pq-num { color: #0A1408; background: #ADDD55; }
.pq-dg__list li[hidden] { display: none; }
/* First look: pins pop up one after another, then breathe until the first tap. */
.is-wave .pq-pin__b { animation: pqPop .55s var(--ease) backwards; animation-delay: calc(var(--i) * 60ms); }
@keyframes pqPop { 0% { transform: translate(-50%, -50%) scale(.2); opacity: 0; } 60% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; } 100% { transform: translate(-50%, -50%); } }
.is-inviting .pq-pin:not(.is-out)::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: var(--c); opacity: 0; pointer-events: none; animation: pqInvite 2.6s ease-out 4; animation-delay: calc(.7s + var(--i) * 90ms); }
@keyframes pqInvite { 0% { transform: scale(1); opacity: .42; } 55%, 100% { transform: scale(2); opacity: 0; } }
.pq-hand { position: absolute; z-index: 6; left: 50%; top: 50%; width: 34px; height: 34px; margin: -4px 0 0 -12px; pointer-events: none; animation: pqHand 4.6s var(--ease) both; }
.pq-hand svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 8px rgba(20, 32, 46, .4)); }
.pq-hand path { fill: #fff; stroke: #14202E; stroke-width: 1.6; stroke-linejoin: round; }
@keyframes pqHand { 0% { transform: translate(34px, 40px); opacity: 0; } 18%, 30% { transform: translate(6px, 8px); opacity: 1; } 36% { transform: translate(0, 0) scale(.86); } 44%, 58% { transform: translate(6px, 8px); } 64% { transform: translate(0, 0) scale(.86); } 72%, 86% { transform: translate(6px, 8px); opacity: 1; } 100% { transform: translate(18px, 24px); opacity: 0; } }
.pq-tip { position: absolute; z-index: 5; left: 0; top: 0; display: grid; gap: 4px; width: max-content; max-width: 230px; padding: 10px 13px; border-radius: 14px; font-size: 13px; line-height: 1.4; color: #EAF0F4; background: rgba(17, 27, 39, .95); box-shadow: 0 12px 30px -8px rgba(20, 32, 46, .6); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.pq-tip.is-on { opacity: 1; transform: none; }
.pq-tip b { font-weight: 600; }
.pq-tip b i { font: 700 11px/1 var(--f-mono); color: #C6F46B; }
.pq-tip span { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #C3CED8; }
.pq-tip span.is-not-in-catalogue .pq-dot { box-shadow: inset 0 0 0 2px #8A96A3; }
.pq-tip em { font-style: normal; font-size: 11.5px; color: #C6F46B; }
/* The highlight is a hollow ring around the spot: the part inside stays visible. */
.pq-pin.is-active::before { content: ""; position: absolute; left: calc(50% - var(--ox, 0px)); top: calc(50% - var(--oy, 0px)); width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 2px solid #92C73B; border-radius: 50%; pointer-events: none; }
.pq-pin.is-pulse::before { animation: pqRing 1.1s var(--ease) 2; }
@keyframes pqRing { 0% { transform: scale(2); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
/* Zoomed in far enough to read the printed numbers: a tinted, clear button around each. */
.has-numbers.is-legible .pq-pin { transform: translate(-50%, -50%) scale(calc(1 / var(--z, 1))); width: calc(var(--numd) * var(--z)); height: calc(var(--numd) * var(--z)); }
.has-numbers.is-legible .pq-pin__l, .has-numbers.is-legible .pq-pin::before, .has-numbers.is-legible .pq-pin::after { display: none; }
.has-numbers.is-legible .pq-pin .pq-pin__b { width: 100%; height: 100%; font-size: 0; background: var(--t); box-shadow: inset 0 0 0 2.5px var(--c), 0 3px 10px rgba(20, 32, 46, .16); }
.has-numbers.is-legible .pq-pin:hover .pq-pin__b, .has-numbers.is-legible .pq-pin.is-hover .pq-pin__b, .has-numbers.is-legible .pq-pin:focus-visible .pq-pin__b { transform: translate(-50%, -50%) scale(1.08); box-shadow: inset 0 0 0 3px var(--c), 0 0 0 3px #92C73B, 0 8px 18px rgba(20, 32, 46, .25); }
.has-numbers.is-legible .pq-pin.is-active .pq-pin__b { background: rgba(146, 199, 59, .14); box-shadow: inset 0 0 0 3px #14202E, 0 0 0 3.5px #92C73B; }
.has-numbers.is-legible .pq-pin.is-selected .pq-pin__b { background: rgba(173, 221, 85, .4); box-shadow: inset 0 0 0 3px #4F7F10; }
.is-bare .pq-pin { opacity: 0; pointer-events: none; }
.is-bare .pq-pin.is-active { opacity: 1; }
.pq-dg__tools .btn .ic { width: 16px; height: 16px; }
.pq-dg__detail { margin-block-end: 16px; padding: 4px 4px 10px; border-block-end: 1px solid var(--line-2); }
.pq-dg__detail[hidden] { display: none; }
.pq-dg__dhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-block-end: 10px; }
.pq-dg__dhead b { font: 700 16px/1.2 var(--f-display); }
.pq-dg__dhead span { display: flex; gap: 6px; }
.pq-dg__dhead button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; color: var(--text); font: 600 20px/1 var(--f-display); background: rgba(var(--fg), .07); }
.pq-dg__dhead button:disabled { opacity: .35; cursor: default; }
.pq-dg__dhead button .ic { width: 15px; height: 15px; }
.pq-dg__detail .pq-item:last-child { margin-block-end: 0; }
@media (max-width: 900px) {
    .pq-dg__detail { position: fixed; z-index: 96; inset-inline: 0; bottom: 0; margin: 0; padding: 14px 16px max(16px, env(safe-area-inset-bottom)); max-height: 46vh; overflow: auto; border: 0; border-radius: 22px 22px 0 0; background: var(--deep); box-shadow: 0 -18px 50px -10px rgba(var(--sh), .7), inset 0 0 0 1px var(--line-2); }
    .pq-dg-open .fab, .pq-dg-open .pc-fab, .pq-dg-open .pq-listfab { visibility: hidden; }
    .pq-dg__stage { scroll-margin-top: calc(var(--nav-h) + 20px); }
}
@media (max-width: 560px) {
    .pq-dg__hint { display: grid; grid-template-columns: auto 1fr; align-items: start; }
    .pq-dg__hint small { grid-column: 2; }
    .pq-pin__b { min-width: 20px; height: 20px; padding: 0 4px; font-size: 10.5px; }
    .pq-dg__tools { flex-wrap: wrap; width: 100%; }
    .pq-dg__tools .pq-zoom { margin-inline-start: auto; }
    .pq-dg__tools [data-dg-bare] { position: relative; padding-inline: 10px; }
    .pq-dg__tools [data-dg-bare] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.pq-dg__side { padding: 18px 14px 14px; border-radius: var(--r-xl); position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100vh - var(--nav-h) - 48px); overflow: auto; }
.pq-dg__side .pq-subhead { padding-inline: 6px; }
.pq-dg__list { display: grid; gap: 4px; }
.pq-dg__list button { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 9px 8px; border: 0; border-radius: 12px; background: none; cursor: pointer; text-align: start; }
.pq-dg__list button:hover, .pq-dg__list button.is-hover, .pq-dg__list button.is-active { background: rgba(var(--fg), .06); }
.pq-dg__list button.is-selected { box-shadow: inset 0 0 0 1.5px var(--lime); }
.pq-num { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 5px; border-radius: 9px; font: 700 12px/1 var(--f-mono); background: rgba(var(--fg), .08); }
.pq-dg__names { display: grid; gap: 2px; font-size: 13.5px; line-height: 1.4; }
.pq-dg__names small { display: inline; font-size: 11.5px; }

/* Selection bar (multi-select on the diagram) */
.pq-selbar {
    position: fixed; z-index: 95; inset-inline: 0; bottom: max(20px, env(safe-area-inset-bottom)); margin-inline: auto; width: max-content; max-width: calc(100% - 32px);
    display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 99px;
}
[dir="rtl"] .pq-selbar { padding: 8px 18px 8px 8px; }
.pq-selbar b { font: 600 14.5px/1 var(--f-display); white-space: nowrap; }

/* App-only panel */
.pq-apponly { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 26px; align-items: center; padding: clamp(22px, 4vw, 40px); border-radius: var(--r-xl); }
.pq-apponly__art { color: var(--lime); }
.pq-apponly__art svg { width: 120px; height: 120px; }
.pq-apponly__title { font: 600 clamp(1.4rem, 3vw, 2rem)/1.3 var(--f-display); margin-block-end: 8px; }
.pq-apponly .lead { margin-block-end: 18px; }
.pq-apponly__search { margin-block-start: 16px; }

/* ---------- Inquiry list page ---------- */
.pq-listpage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 360px); gap: 18px; align-items: start; }
.pq-list { display: grid; gap: 12px; }
.pq-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 22px; }
[dir="rtl"] .pq-row { padding: 10px 10px 10px 14px; }
.pq-row--skeleton { min-height: 104px; background: linear-gradient(100deg, rgba(var(--fg), .04) 30%, rgba(var(--fg), .09) 50%, rgba(var(--fg), .04) 70%); background-size: 300% 100%; animation: pqShimmer 1.6s linear infinite; }
.pq-row__img { width: 84px; height: 84px; border-radius: 16px; overflow: hidden; background: var(--deep); display: grid; place-items: center; color: rgba(var(--fg), .25); }
.pq-row__img img { width: 100%; height: 100%; object-fit: cover; }
.pq-row__info { display: grid; gap: 2px; min-width: 0; }
.pq-row__info a { font: 600 15.5px/1.4 var(--f-display); text-decoration: none; }
.pq-row__info .pq-status { font-size: 13px; margin: 2px 0 0; }
.pq-row__ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.pq-row__ctl .pq-select select { height: 42px; font-size: 13.5px; min-width: 150px; }
.pq-row__ctl .pq-qty { height: 42px; }
.pq-row__ctl .pq-qty button { width: 34px; }
.pq-remove { width: 42px; height: 42px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--text-3); background: rgba(var(--fg), .05); }
.pq-remove:hover { color: var(--red); background: rgba(255, 107, 91, .12); }
.pq-remove .ic { width: 16px; height: 16px; }
.pq-askbox { display: grid; gap: 16px; padding: 20px; border-radius: var(--r-xl); position: sticky; top: calc(var(--nav-h) + 24px); }
.pq-askbox .pq-carbar { border-radius: 18px; width: 100%; }
.pq-askbox .pq-carbar .btn { margin-inline-start: auto; }
.pq-field { display: grid; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.pq-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14.5px; }
.pq-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pq-switch__ui { position: relative; flex: none; width: 46px; height: 28px; border-radius: 99px; background: rgba(var(--fg), .14); box-shadow: inset 0 0 0 1px var(--line-2); transition: background .3s; }
.pq-switch__ui::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .3s var(--ease); }
.pq-switch input:checked + .pq-switch__ui { background: var(--lime); }
.pq-switch input:checked + .pq-switch__ui::after { transform: translateX(18px); }
[dir="rtl"] .pq-switch input:checked + .pq-switch__ui::after { transform: translateX(-18px); }
.pq-switch input:focus-visible + .pq-switch__ui { outline: 2px solid var(--lime); outline-offset: 3px; }
.pq-wait { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; color: var(--text-2); background: rgba(91, 146, 133, .12); box-shadow: inset 0 0 0 1px rgba(91, 146, 133, .3); }
.pq-wait .ic { width: 18px; height: 18px; color: var(--teal-hi); margin-block-start: 2px; }
.pq-wait:empty, .pq-wait span:empty { display: none; }
.pq-askbtn { width: 100%; }
.pq-askbox .pq-note { margin: 0; }

/* ---------- Floating list badge, toast, modal ---------- */
.pq-listfab {
    position: fixed; z-index: 90; bottom: max(20px, env(safe-area-inset-bottom)); inset-inline-start: 20px;
    display: inline-flex; align-items: center; gap: 10px; height: 52px; padding-inline: 16px 8px; border-radius: 99px;
    text-decoration: none; font: 600 14px/1 var(--f-display); animation: fadeUp .5s var(--ease) both;
}
[dir="rtl"] .pq-listfab { padding-inline: 16px 8px; }
.pq-listfab .ic { color: var(--lime); }
.pq-listfab b { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 99px; font: 700 14px/1 var(--f-mono); color: #0A1408; background: linear-gradient(180deg, #ADDD55, #88BB35); }
.pq-body--list .pq-listfab { display: none; }
.pq-listfab.is-bump b { animation: pqBump .5s var(--ease); }
@keyframes pqBump { 40% { transform: scale(1.3); } }

.pq-toast {
    position: fixed; z-index: 120; inset-inline: 0; bottom: max(88px, calc(env(safe-area-inset-bottom) + 70px)); margin-inline: auto; width: max-content; max-width: calc(100% - 32px);
    padding: 12px 18px; border-radius: 16px; font-size: 14px; text-align: center; animation: fadeUp .35s var(--ease) both;
}
.pq-toast.is-bad { box-shadow: inset 0 0 0 1.5px var(--red); }

.pq-modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; }
.pq-modal__scrim { position: absolute; inset: 0; background: rgba(var(--well), .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: pqFade .3s var(--ease) both; }
.pq-modal__box { position: relative; width: min(560px, 100%); max-height: min(86vh, 760px); overflow: auto; padding: 22px; border-radius: var(--r-xl); animation: fadeUp .4s var(--ease) both; }
.pq-modal__box:focus { outline: none; }
.pq-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 12px; }
.pq-modal__head h2 { font: 600 19px/1.35 var(--f-display); display: flex; align-items: center; gap: 10px; }
.pq-modal__x { width: 38px; height: 38px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: rgba(var(--fg), .07); }
.pq-modal__x .ic { width: 16px; height: 16px; }
.pq-modal__box p { color: var(--text-2); }
.pq-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 20px; }
.pq-modal .pq-car__selects { grid-template-columns: 1fr; }
.pq-item { padding: 14px; border-radius: 16px; background: rgba(var(--fg), .04); box-shadow: inset 0 0 0 1px var(--line); margin-block-end: 10px; }
.pq-item__name { font: 600 15.5px/1.4 var(--f-display); }
.pq-item .pq-status { font-size: 13.5px; margin: 6px 0; }
.pq-item .pq-card__actions { padding-block-start: 8px; }
.pq-input { width: 100%; height: 50px; padding-inline: 16px; border: 0; border-radius: 16px; color: var(--text); font: 400 15.5px/1.4 var(--f-body); background: rgba(var(--well), .45); box-shadow: inset 0 0 0 1px var(--line-2); }
.pq-input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--lime), 0 0 0 4px rgba(146, 199, 59, .15); }
@keyframes pqFade { from { opacity: 0; } }
body.pq-locked { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .pq-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .pq-dg { grid-template-columns: 1fr; }
    .pq-dg__side { position: static; max-height: none; }
    .pq-listpage { grid-template-columns: 1fr; }
    .pq-askbox { position: static; }
}
@media (max-width: 760px) {
    .pq-part__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .pq-car__selects { grid-template-columns: 1fr; }
    .pq-steps { grid-template-columns: 1fr; }
    .pq-cards { grid-template-columns: 1fr; }
    .pq-search--big input { height: 54px; }
    .pq-search .btn { padding-inline: 16px; }
    .pq-apponly { grid-template-columns: 1fr; text-align: center; }
    .pq-apponly__art svg { margin-inline: auto; width: 90px; height: 90px; }
    .pq-apponly .stores { justify-content: center; }
    .pq-row { grid-template-columns: 64px minmax(0, 1fr); }
    .pq-row__img { width: 64px; height: 64px; }
    .pq-row__ctl { grid-column: 1 / -1; justify-content: flex-start; }
    .pq-row__ctl .pq-select { flex: 1; }
    .pq-row__ctl .pq-select select { min-width: 0; }
    .pq-listfab span { display: none; }
    .pq-carbar__label { display: none; }
    .pq-listfab { padding-inline: 12px 8px; }
    .pq-modal { place-items: end center; padding: 0; }
    .pq-modal__box { width: 100%; border-radius: 26px 26px 0 0; max-height: 82vh; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
    .pq-dg__viewer { padding: 8px; }
    .pq-dg__tools .btn { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .pq-card--skeleton, .pq-row--skeleton, .pq-pin.is-pulse::before, .is-wave .pq-pin__b, .is-inviting .pq-pin::after { animation: none; }
    .pq-hand { display: none; }
}

/* ==========================================================================
   Pricing chat (parts-chat.js): AI first, then the parts team. Slide-over on
   desktop, full-screen sheet on phones. Prices appear only in .pc-price.
   ========================================================================== */
.pc { position: fixed; inset: 0; z-index: 140; }
.pc__scrim { position: absolute; inset: 0; background: rgba(var(--well), .55); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); animation: pqFade .3s var(--ease) both; }
.pc__box {
    position: absolute; top: 12px; bottom: 12px; inset-inline-end: 12px; width: min(440px, calc(100% - 24px));
    display: flex; flex-direction: column; border-radius: 28px; overflow: hidden;
    animation: pcIn .45s var(--ease) both;
}
@keyframes pcIn { from { opacity: 0; transform: translateX(24px); } }
[dir="rtl"] .pc__box { animation-name: pcInRtl; }
@keyframes pcInRtl { from { opacity: 0; transform: translateX(-24px); } }

.pc__head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.pc__avatar { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; color: #0A1408; background: linear-gradient(180deg, #ADDD55, #88BB35); }
.pc__avatar .ic { width: 22px; height: 22px; }
.pc__who { display: grid; gap: 2px; flex: 1; min-width: 0; }
.pc__who b { font: 600 16px/1.3 var(--f-display); }
.pc__who small { font-size: 12.5px; color: var(--text-3); }

/* Status strip: request number + live wait */
.pc__strip { display: flex; align-items: flex-start; gap: 10px; margin: 10px 14px 0; padding: 10px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.45; }
.pc__strip span { display: grid; gap: 2px; }
.pc__strip b { font: 600 13.5px/1.4 var(--f-display); }
.pc__strip small { color: var(--text-2); }
.pc__strip .ic { width: 18px; height: 18px; flex: none; margin-block-start: 1px; }
.pc__strip.is-wait { background: rgba(91, 146, 133, .13); box-shadow: inset 0 0 0 1px rgba(91, 146, 133, .32); }
.pc__strip.is-staff { background: rgba(91, 146, 133, .16); box-shadow: inset 0 0 0 1px rgba(140, 194, 180, .45); color: var(--teal-hi); }
[data-theme="light"] .pc__strip.is-staff { color: #2F6D60; }
.pc__strip.is-done { background: rgba(146, 199, 59, .12); box-shadow: inset 0 0 0 1px rgba(146, 199, 59, .35); }
.pc__strip.is-done .ic { color: var(--lime); }
.pc__strip.is-off { background: rgba(var(--fg), .05); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); }
.pc__spin { flex: none; width: 16px; height: 16px; margin-block-start: 2px; border-radius: 50%; border: 2px solid rgba(140, 194, 180, .35); border-top-color: var(--teal-hi); animation: pcSpin .9s linear infinite; }
@keyframes pcSpin { to { transform: rotate(360deg); } }

/* Messages */
.pc__log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 14px 10px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.pc__msg { display: grid; gap: 4px; max-width: 86%; animation: fadeUp .35s var(--ease) both; }
.pc__msg--customer { margin-inline-start: auto; justify-items: end; }
.pc__msg--card { max-width: 100%; width: 100%; }
.pc__by { font-size: 11.5px; color: var(--text-3); padding-inline: 6px; }
.pc__by--staff { color: var(--teal-hi); font-weight: 600; }
[data-theme="light"] .pc__by--staff { color: #2F6D60; }
.pc__bubble { padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.6; word-break: break-word; white-space: normal; }
.pc__msg--ai .pc__bubble { background: rgba(var(--fg), .07); box-shadow: inset 0 0 0 1px var(--line); border-start-start-radius: 6px; }
.pc__msg--staff .pc__bubble { background: rgba(91, 146, 133, .18); box-shadow: inset 0 0 0 1px rgba(140, 194, 180, .38); border-start-start-radius: 6px; }
.pc__msg--customer .pc__bubble { color: #0A1408; background: linear-gradient(180deg, #B4E35D, #92C73B); border-start-end-radius: 6px; }
.pc__msg.is-pending { opacity: .72; }
.pc__msg.is-failed .pc__bubble { box-shadow: inset 0 0 0 1.5px var(--red); }
.pc__event { align-self: center; max-width: 92%; text-align: center; font-size: 12.5px; color: var(--text-2); padding: 5px 12px; border-radius: 99px; background: rgba(var(--fg), .05); }
.pc__event--bad { color: var(--red); box-shadow: inset 0 0 0 1px rgba(255, 107, 91, .35); }

/* Live progress (what the advisor is doing right now) */
.pc__steps { align-self: flex-start; display: grid; gap: 6px; padding: 10px 14px; border-radius: 18px; border-start-start-radius: 6px; background: rgba(var(--fg), .05); box-shadow: inset 0 0 0 1px var(--line); min-width: 120px; }
.pc__steps ul { display: grid; gap: 6px; }
.pc__steps ul:empty { display: none; }
.pc__steps li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-2); animation: fadeUp .3s var(--ease) both; }
.pc__steps li i { flex: none; width: 15px; height: 15px; border-radius: 50%; }
.pc__steps li.is-live i { border: 2px solid rgba(146, 199, 59, .3); border-top-color: var(--lime); animation: pcSpin .8s linear infinite; }
.pc__steps li.is-done i { background: var(--lime); box-shadow: inset 0 0 0 3px rgba(10, 20, 8, .15); position: relative; }
.pc__steps li.is-done i::after { content: ""; position: absolute; left: 4px; top: 2px; width: 4px; height: 7px; border: solid #0A1408; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pc__steps li.is-done span { color: var(--text-3); }
.pc__typing { display: inline-flex; gap: 4px; padding: 2px 0; }
.pc__typing i { width: 7px; height: 7px; border-radius: 50%; background: rgba(var(--fg), .45); animation: pcDot 1.2s infinite ease-in-out; }
.pc__typing i:nth-child(2) { animation-delay: .15s; }
.pc__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pcDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* Part cards the advisor found */
.pc__parts { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x mandatory; }
.pc__part { flex: 0 0 210px; scroll-snap-align: start; display: grid; gap: 4px; align-content: start; padding: 12px; border-radius: 16px; background: rgba(var(--fg), .05); box-shadow: inset 0 0 0 1px var(--line); }
.pc__partname { font: 600 14px/1.35 var(--f-display); text-decoration: none; color: var(--text); }
.pc__part .pq-status { font-size: 12.5px; margin: 2px 0; }
.pc__partbtns { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 4px; }

/* Reach me: WhatsApp + optional phone */
.pc__reach { position: relative; margin: 0 14px 8px; padding: 14px 14px 12px; border-radius: 18px; background: rgba(37, 211, 102, .08); box-shadow: inset 0 0 0 1px rgba(37, 211, 102, .3); display: grid; gap: 8px; animation: fadeUp .4s var(--ease) both; }
.pc__reachtitle { font: 600 14px/1.4 var(--f-display); padding-inline-end: 28px; }
.pc__wa { justify-content: center; color: #fff; background: linear-gradient(180deg, #2BD46B, #1EAE55); box-shadow: 0 10px 24px -12px rgba(30, 174, 85, .8); }
.pc__wa:hover { color: #fff; transform: translateY(-1px); }
.pc__wa .ic { width: 20px; height: 20px; }
.pc__reachhint { font-size: 12px; color: var(--text-3); }
.pc__reachok { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.pc__reachok .ic { width: 18px; height: 18px; color: #2BD46B; }
.pc__phone summary { cursor: pointer; font-size: 13px; color: var(--text-2); }
.pc__phone form { display: grid; gap: 8px; margin-block-start: 8px; }
.pc__phone .pq-input { height: 44px; font-size: 14.5px; }
.pc__phonerow { display: flex; gap: 8px; }
.pc__phonerow .btn { flex: none; height: 44px; }
.pc__reachx { position: absolute; top: 8px; inset-inline-end: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: rgba(var(--fg), .06); color: var(--text-3); }
.pc__reachx .ic { width: 14px; height: 14px; }

/* Composer */
.pc__compose { display: grid; gap: 8px; padding: 10px 14px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.pc__staffbtn { justify-self: start; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding-inline: 12px; border: 0; border-radius: 99px; cursor: pointer; font: 500 12.5px/1 var(--f-body); color: var(--text-2); background: rgba(var(--fg), .06); box-shadow: inset 0 0 0 1px var(--line); }
.pc__staffbtn:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.pc__staffbtn .ic { width: 15px; height: 15px; }
.pc__inputrow { display: flex; align-items: flex-end; gap: 8px; }
.pc__inputrow textarea {
    flex: 1; min-width: 0; resize: none; min-height: 48px; max-height: 140px; padding: 13px 16px; border: 0; border-radius: 22px;
    color: var(--text); font: 400 15px/1.45 var(--f-body); background: rgba(var(--well), .45); box-shadow: inset 0 0 0 1px var(--line-2);
}
.pc__inputrow textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--lime), 0 0 0 4px rgba(146, 199, 59, .15); }
.pc__inputrow textarea::placeholder { color: var(--text-3); }
.pc__send { flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #0A1408; background: linear-gradient(180deg, #ADDD55, #88BB35); transition: transform .3s var(--ease), opacity .3s; }
.pc__send:hover { transform: scale(1.06); }
.pc__send:disabled { opacity: .45; cursor: default; transform: none; }
.pc__send .ic { width: 21px; height: 21px; }
[dir="rtl"] .pc-flip { transform: scaleX(-1); }

/* Floating chat button (above the emergency call button) */
.pc-fab {
    position: fixed; z-index: 91; bottom: max(88px, calc(env(safe-area-inset-bottom) + 70px)); inset-inline-end: 20px;
    display: inline-flex; align-items: center; gap: 9px; height: 50px; padding-inline: 16px 18px; border: 0; border-radius: 99px; cursor: pointer;
    font: 600 14px/1 var(--f-display); color: var(--text); animation: fadeUp .5s var(--ease) both;
}
.pc-fab .ic { width: 21px; height: 21px; color: var(--lime); }
.pc-fab__dot { position: absolute; top: 6px; inset-inline-end: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(var(--well), .9); animation: pcPing 1.6s var(--ease) infinite; }
@keyframes pcPing { 50% { box-shadow: 0 0 0 3px rgba(var(--well), .9), 0 0 0 9px rgba(255, 107, 91, .25); } }
.pc-fab.is-bump { animation: pqBump .5s var(--ease); }

/* ---------- Price card (prices live only here) ---------- */
.pc-price { display: grid; gap: 12px; padding: 16px; border-radius: 22px; background: rgba(var(--fg), .045); box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px -28px rgba(0, 0, 0, .6); }
.pc-price.is-open { box-shadow: inset 0 0 0 1.5px rgba(146, 199, 59, .55), 0 18px 44px -26px rgba(146, 199, 59, .45); }
.pc-price__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pc-price__head > div { display: grid; gap: 3px; }
.pc-price__eyebrow { display: inline-flex; align-items: center; gap: 7px; font: 600 15.5px/1.3 var(--f-display); }
.pc-price__eyebrow .ic { width: 17px; height: 17px; color: var(--lime); }
.pc-price__no { font: 500 11.5px/1.3 var(--f-mono); color: var(--text-3); }
.pc-pill { flex: none; padding: 5px 10px; border-radius: 99px; font: 600 11.5px/1 var(--f-display); }
.pc-pill.is-open { color: #0A1408; background: var(--lime); }
.pc-pill.is-accepted { color: var(--lime-hi); background: rgba(146, 199, 59, .14); box-shadow: inset 0 0 0 1px rgba(146, 199, 59, .4); }
.pc-pill.is-expired, .pc-pill.is-cancelled { color: var(--text-2); background: rgba(var(--fg), .07); }
.pc-price__lines { display: grid; gap: 2px; }
.pc-l { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.pc-l:last-child { border-bottom: 0; }
.pc-l__name { display: grid; gap: 3px; min-width: 0; }
.pc-l__name b { font: 600 14px/1.4 var(--f-display); }
.pc-l__name small { font-size: 12px; color: var(--text-3); }
.pc-l__agency s { color: var(--text-3); }
.pc-l__amt { display: grid; justify-items: end; gap: 2px; text-align: end; flex: none; }
.pc-l__amt b { font: 600 14.5px/1.3 var(--f-mono); white-space: nowrap; }
.pc-l__unit { font: 400 11px/1.3 var(--f-body); color: var(--text-3); white-space: nowrap; }
.pc-price__sum { display: grid; gap: 4px; padding-block-start: 4px; border-top: 1px solid var(--line-2); }
.pc-price__sum p { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-2); }
.pc-price__sum p span:last-child .pc-num { font-family: var(--f-mono); }
.pc-price__save span:last-child { color: var(--lime-hi); }
.pc-price__total { margin-block-start: 4px; }
.pc-price__total span { font: 600 15px/1.3 var(--f-display); color: var(--text); }
.pc-price__total b { font: 700 21px/1.2 var(--f-mono); color: var(--lime-hi); white-space: nowrap; }
[data-theme="light"] .pc-price__total b, [data-theme="light"] .pc-price__save span:last-child { color: #4E7D12; }
.pc-price__times { display: grid; gap: 6px; }
.pc-price__times li { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.pc-price__times .ic { width: 16px; height: 16px; flex: none; color: var(--teal-hi); margin-block-start: 1px; }
.pc-price__times em { font-style: normal; color: var(--amber); white-space: nowrap; }
[data-theme="light"] .pc-price__times em { color: #A86C00; }

.pc-accept { display: grid; gap: 10px; padding-block-start: 6px; }
.pc-accept__title { font: 600 14px/1.3 var(--f-display); }
.pc-accept__ways { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pc-accept__ways label { cursor: pointer; }
.pc-accept__ways input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pc-accept__ways span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 8px 10px; border-radius: 14px; text-align: center; font-size: 13px; background: rgba(var(--fg), .05); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .25s, background .25s; }
.pc-accept__ways .ic { width: 17px; height: 17px; flex: none; }
.pc-accept__ways input:checked + span { background: rgba(146, 199, 59, .12); box-shadow: inset 0 0 0 1.5px var(--lime); }
.pc-accept__ways input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.pc-accept .pq-select select { height: 46px; font-size: 14px; }
.pc-accept__contact { display: grid; gap: 8px; }
.pc-accept__contact .pq-input { height: 46px; font-size: 14.5px; }
.pc-accept__err { font-size: 13px; color: var(--red); }
.pc-accept__btn { width: 100%; justify-content: center; }
.pc-price__done, .pc-price__end { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: rgba(var(--fg), .04); font-size: 13.5px; color: var(--text-2); }
.pc-price__donetitle { display: flex; align-items: center; gap: 8px; font: 600 15px/1.3 var(--f-display); color: var(--lime-hi); }
[data-theme="light"] .pc-price__donetitle { color: #4E7D12; }
.pc-price__donetitle .ic { width: 20px; height: 20px; }
.pc-price__branch { display: grid; gap: 4px; }
.pc-price__branch:empty { display: none; }
.pc-price__branch b { display: flex; align-items: center; gap: 6px; font: 600 14px/1.3 var(--f-display); color: var(--text); }
.pc-price__branch span { display: flex; align-items: center; gap: 6px; }
.pc-price__branch .ic { width: 15px; height: 15px; }
.pc-price__links { flex-wrap: wrap; gap: 6px !important; margin-block-start: 4px; }
.pc-price__end .btn { justify-self: start; }

/* Amounts: digits in mono, the currency in the text font */
.pc-cur { font-family: var(--f-body); font-weight: 500; font-size: .82em; letter-spacing: 0; }
.pc-l__amt b .pc-num, .pc-price__total b .pc-num { font-family: var(--f-mono); }
.pc-l__amt b, .pc-price__total b { font-family: var(--f-display); }

/* /parts/q/{token} */
.pc-quote { max-width: 560px; margin-inline: auto; display: grid; gap: 14px; }
.pc-quote .pc-price { padding: clamp(16px, 3vw, 24px); border-radius: var(--r-xl); background: rgba(var(--fg), .05); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.pc-quote__chat { justify-self: center; }
.pc-quote__chat .ic { width: 18px; height: 18px; }

/* Part page: ask about this part */
.pq-askpart { margin-block-start: 14px; }

@media (max-width: 640px) {
    .pc__box { inset: 0; width: 100%; border-radius: 0; animation-name: pcUp; }
    [dir="rtl"] .pc__box { animation-name: pcUp; }
    @keyframes pcUp { from { opacity: 0; transform: translateY(30px); } }
    .pc__head { padding-top: max(14px, env(safe-area-inset-top)); }
    .pc__msg { max-width: 92%; }
    .pc-fab span { display: none; }
    .pc-fab { width: 50px; padding: 0; justify-content: center; }
    .pc-accept__ways { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .pc__box, .pc__msg, .pc__steps li, .pc-fab, .pc__reach { animation: none; }
    .pc__spin, .pc__steps li.is-live i, .pc__typing i, .pc-fab__dot { animation: none; }
}

/* ---------- Suggested for your car (sprint 3) ---------- */
.pq-reco { padding-block-start: clamp(30px, 5vw, 60px); }
.pq-reco[hidden] { display: none; }
.pq-reco__sec + .pq-reco__sec { margin-block-start: clamp(22px, 3vw, 32px); }
.pq-reco__title { display: flex; align-items: center; gap: 10px; margin-block-end: 12px; font: 600 17px/1.4 var(--f-display); }
.pq-reco__n { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 99px; font: 600 12.5px/1 var(--f-mono); color: var(--text-2); background: rgba(var(--fg), .06); box-shadow: inset 0 0 0 1px var(--line); }
.pq-reco__head { display: flex; align-items: center; gap: 10px; margin-block: 26px 14px; }
.pq-reco__head .ic { width: 20px; height: 20px; color: var(--lime); }
.pq-reco--inline { grid-column: 1 / -1; }
.pq-rail {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, 262px); gap: 14px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px;
    padding: 2px 2px 12px; scrollbar-width: thin; scrollbar-color: rgba(var(--fg), .18) transparent;
}
.pq-rail::-webkit-scrollbar { height: 6px; }
.pq-rail::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(var(--fg), .16); }
.pq-rail > * { scroll-snap-align: start; }
.pq-card--rail { min-height: 0; }
.pq-card--rail .pq-card__media { aspect-ratio: 16 / 10; }
.pq-card--rail .pq-card__media--none { aspect-ratio: 16 / 6; }
.pq-card--rail .pq-card__name { font-size: 15px; }
.pq-reco__why { display: flex; align-items: flex-start; gap: 7px; margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.pq-reco__why .ic { flex: none; width: 15px; height: 15px; margin-block-start: 2px; color: var(--teal-hi); }
.pq-reco__why.is-due { color: var(--text); }
.pq-reco__why.is-due .ic { color: var(--amber); }

/* ---------- Phones: floating buttons step aside (body.pq-fabs-tucked, set by parts.js) ---------- */
.pq-listfab, .pc-fab { transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
.pq-fabs-tucked .pq-listfab,
.pq-fabs-tucked .pc-fab { animation: none; opacity: 0; visibility: hidden; transform: translateY(26px) scale(.92); pointer-events: none; }
.pq-fabs-tucked .fab.is-shown { opacity: 0; transform: translateY(120px); pointer-events: none; }
@media (max-width: 640px) {
    /* The end of every parts page scrolls clear of the floating buttons. */
    .pq-body .page-body { padding-block-end: max(170px, calc(env(safe-area-inset-bottom) + 150px)); }
    .pq-body .pq-how { padding-block-end: max(150px, calc(env(safe-area-inset-bottom) + 130px)); }
    .pq-rail { grid-auto-columns: 78%; }
}
@media (prefers-reduced-motion: reduce) {
    .pq-listfab, .pc-fab { transition: none; }
}

/* ---------- Phase 2: photos, installation slots, delivery, online payment ---------- */
/* Search bar: find a part by photo. Rows may shrink below their content's width (phones). */
.pq-search, .pq-finder > *, .pq-toolbar > * { min-width: 0; }
.pq-search__photo { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 50px; padding-inline: 14px; border: 0; border-radius: 99px; cursor: pointer; color: var(--text); font: 500 13.5px/1 var(--f-body); background: rgba(var(--fg), .07); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .25s, background .25s; }
.pq-search__photo:hover { background: rgba(var(--fg), .1); box-shadow: inset 0 0 0 1px var(--lime); }
.pq-search__photo .ic { width: 20px; height: 20px; color: var(--lime); }
.pq-search__photo--big { height: 60px; padding-inline: 18px; }
.pq-search__photo.is-busy { opacity: .6; cursor: progress; }
.pq-search__photo.is-busy .ic { animation: pqPulse 1s ease-in-out infinite; }
@keyframes pqPulse { 50% { opacity: .35; } }

/* Car picker: scan the car licence */
.pq-scan { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-block-start: 10px; }
.pq-scan .btn .ic { width: 17px; height: 17px; color: var(--lime); }
.pq-scan__out { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.pq-scan__out:empty { display: none; }
.pq-scan__out small { color: var(--text-3); }
.pq-scan__ok { display: inline-flex; align-items: center; gap: 6px; color: var(--lime-hi); }
[data-theme="light"] .pq-scan__ok { color: #4E7D12; }
.pq-scan__ok .ic { width: 16px; height: 16px; }

/* Photo results (modal or the search page) */
.pq-photo { display: grid; gap: 14px; }
.pq-photo__found { display: flex; align-items: center; gap: 9px; font: 600 15.5px/1.4 var(--f-display); color: var(--text) !important; }
.pq-photo__found .ic { width: 19px; height: 19px; flex: none; color: var(--lime); }
.pq-photo__found small { font: 400 13px/1.4 var(--f-body); color: var(--text-3); }
.pq-photo__found.is-none { font-weight: 500; color: var(--text-2) !important; }
.pq-modal .pq-photo__cards { grid-template-columns: 1fr; }
.pq-photo__ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 16px; font-size: 13.5px; color: var(--text-2); background: rgba(var(--fg), .04); box-shadow: inset 0 0 0 1px var(--line); }

/* Chat: photo button and photo bubbles */
.pc__photo { flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--text-2); background: rgba(var(--fg), .07); box-shadow: inset 0 0 0 1px var(--line-2); transition: color .25s, box-shadow .25s; }
.pc__photo:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--lime); }
.pc__photo .ic { width: 21px; height: 21px; }
.pc.is-busy .pc__photo { opacity: .45; pointer-events: none; }
.pc__bubble--img { display: grid; gap: 6px; padding: 5px; }
.pc__bubble--img img { display: block; width: 100%; max-width: 240px; max-height: 280px; object-fit: cover; border-radius: 14px; background: rgba(var(--fg), .06); }
.pc__bubble--img span { padding: 2px 8px 4px; }
.pc__msg.is-pending .pc__bubble--img img { opacity: .6; }

/* Accept: three ways, workshop slots, delivery */
.pc-accept__ways--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pc-accept [hidden] { display: none !important; }
.pc-slots { display: grid; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(var(--fg), .04); box-shadow: inset 0 0 0 1px var(--line); }
.pc-slots__title { display: flex; align-items: center; gap: 8px; font: 600 13.5px/1.3 var(--f-display); }
.pc-slots__title .ic { width: 16px; height: 16px; color: var(--teal-hi); }
.pc-slots__hint { font-size: 13px; color: var(--text-2); }
.pc-slots__days { display: flex; gap: 6px; overflow-x: auto; padding-block-end: 4px; scrollbar-width: thin; }
.pc-day { flex: none; display: grid; justify-items: center; gap: 2px; min-width: 70px; padding: 8px 10px; border: 0; border-radius: 12px; cursor: pointer; color: var(--text-2); background: rgba(var(--fg), .05); box-shadow: inset 0 0 0 1px var(--line); font: 500 12.5px/1.2 var(--f-body); }
.pc-day b { font: 600 12.5px/1.2 var(--f-display); color: var(--text); }
.pc-day small { font: 500 11.5px/1.2 var(--f-mono); }
.pc-day.is-on { background: rgba(146, 199, 59, .12); box-shadow: inset 0 0 0 1.5px var(--lime); }
.pc-slots__times { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; }
.pc-time { cursor: pointer; }
.pc-time input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pc-time span { display: grid; place-items: center; height: 40px; border-radius: 11px; font: 600 13.5px/1 var(--f-mono); background: rgba(var(--fg), .05); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .2s, background .2s; }
.pc-time input:checked + span { color: #0A1408; background: var(--lime); box-shadow: none; }
.pc-time input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.pc-time.is-off { cursor: not-allowed; }
.pc-time.is-off span { opacity: .38; text-decoration: line-through; }
.pc-slots__note { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; color: var(--text-3); }
.pc-slots__note .ic { width: 15px; height: 15px; flex: none; margin-block-start: 1px; }
.pc-deliv { display: grid; gap: 8px; }
.pc-deliv__addr { min-height: 70px; padding: 12px 14px; resize: vertical; font: 400 14.5px/1.5 var(--f-body); border-radius: 16px; }
.pc-accept__due { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; padding: 10px 12px; border-radius: 14px; background: rgba(146, 199, 59, .08); box-shadow: inset 0 0 0 1px rgba(146, 199, 59, .35); font-size: 13.5px; }
.pc-accept__due b { font: 700 17px/1.2 var(--f-display); color: var(--lime-hi); }
[data-theme="light"] .pc-accept__due b { color: #4E7D12; }
.pc-accept__due > small { flex-basis: 100%; font-size: 12px; color: var(--text-3); }

/* Card: delivery / installation summary, paid and due */
.pc-price__ful { display: flex; align-items: flex-start; gap: 9px; color: var(--text); }
.pc-price__ful .ic { width: 18px; height: 18px; flex: none; margin-block-start: 2px; color: var(--teal-hi); }
.pc-price__ful > span { display: grid; gap: 2px; }
.pc-price__ful b { font: 600 14px/1.4 var(--f-display); }
.pc-price__ful small { font-size: 12.5px; color: var(--text-2); }
.pc-price__paid > span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--lime-hi); }
[data-theme="light"] .pc-price__paid > span:first-child { color: #4E7D12; }
.pc-price__paid .ic { width: 14px; height: 14px; }
.pc-price__due { margin-block-start: 2px; }
.pc-price__due > span { font: 600 14px/1.3 var(--f-display); color: var(--text); }
.pc-price__due b { font: 700 17px/1.2 var(--f-display); color: var(--amber); white-space: nowrap; }
[data-theme="light"] .pc-price__due b { color: #A86C00; }

/* Online payment */
.pc-pay { display: grid; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(var(--fg), .04); box-shadow: inset 0 0 0 1px var(--line-2); }
.pc-pay__title { display: flex; align-items: center; gap: 8px; font: 600 14.5px/1.3 var(--f-display); }
.pc-pay__title .ic { width: 18px; height: 18px; color: var(--lime); }
.pc-pay__kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pc-pay__kinds label { cursor: pointer; }
.pc-pay__kinds input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pc-pay__kinds label > span { display: grid; gap: 4px; padding: 10px 12px; border-radius: 14px; font-size: 13px; background: rgba(var(--fg), .05); box-shadow: inset 0 0 0 1px var(--line-2); }
.pc-pay__kinds label > span > span { font: 700 15px/1.2 var(--f-display); color: var(--text); }
.pc-pay__kinds label > span > b { font: 600 13px/1.3 var(--f-display); color: var(--text-2); }
.pc-pay__kinds input:checked + span { background: rgba(146, 199, 59, .12); box-shadow: inset 0 0 0 1.5px var(--lime); }
.pc-pay__kinds input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.pc-pay__amt { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.pc-pay__amt b { font: 700 16px/1.2 var(--f-display); color: var(--text); }
.pc-pay__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-pay__btns .btn .ic { width: 17px; height: 17px; }
.pc-pay__note { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; color: var(--text-3) !important; }
.pc-pay__note .ic { width: 14px; height: 14px; flex: none; margin-block-start: 2px; }
.pc-pay__pending, .pc-pay__paidfull { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; }
.pc-pay__pending { color: var(--amber); }
.pc-pay__paidfull { color: var(--lime-hi); }
[data-theme="light"] .pc-pay__pending { color: #A86C00; }
[data-theme="light"] .pc-pay__paidfull { color: #4E7D12; }
.pc-pay__pending .ic, .pc-pay__paidfull .ic { width: 17px; height: 17px; flex: none; margin-block-start: 1px; }
.pc-cliq { display: grid; gap: 8px; padding-block-start: 4px; font-size: 13.5px; }
.pc-cliq[hidden] { display: none; }
.pc-cliq p { color: var(--text-2); }
.pc-cliq__dl { display: grid; gap: 6px; margin: 0; padding: 10px 12px; border-radius: 14px; background: rgba(var(--well), .35); box-shadow: inset 0 0 0 1px var(--line); }
.pc-cliq__dl div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pc-cliq__dl dt { color: var(--text-3); font-size: 12.5px; }
.pc-cliq__dl dd { margin: 0; display: inline-flex; align-items: center; gap: 8px; text-align: end; }
.pc-cliq__dl dd b { font: 600 14px/1.3 var(--f-mono); }
.pc-cliq .pq-input { height: 44px; font-size: 14.5px; }
.pc-copy { padding: 4px 9px; border: 0; border-radius: 99px; cursor: pointer; font: 500 11.5px/1 var(--f-body); color: var(--text-2); background: rgba(var(--fg), .07); box-shadow: inset 0 0 0 1px var(--line); }
.pc-copy:hover { color: var(--text); }

/* Back from the card payment page */
.pc-paybanner { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-radius: 16px; font: 600 14.5px/1.4 var(--f-display); background: rgba(var(--fg), .05); box-shadow: inset 0 0 0 1px var(--line-2); }
.pc-paybanner .ic { width: 19px; height: 19px; flex: none; }
.pc-paybanner.is-ok { color: var(--lime-hi); background: rgba(146, 199, 59, .1); box-shadow: inset 0 0 0 1px rgba(146, 199, 59, .45); }
.pc-paybanner.is-bad { color: var(--red); background: rgba(255, 107, 91, .08); box-shadow: inset 0 0 0 1px rgba(255, 107, 91, .4); }
[data-theme="light"] .pc-paybanner.is-ok { color: #4E7D12; }

/* HyperPay's card form inside our modal */
.pq-modal .wpwl-form { max-width: none; margin: 14px 0 6px; }
.pq-modal .wpwl-container { width: 100%; }

@media (max-width: 640px) {
    .pq-search__photo span { display: none; }
    .pq-search__photo { width: 50px; padding: 0; }
    .pq-search__photo--big { width: 54px; height: 54px; }
    .pc-accept__ways--3 { grid-template-columns: 1fr; }
    .pc-pay__kinds { grid-template-columns: 1fr; }
}

/* Cash only: how it is paid (accept form, accepted card, ask box) */
.pc-accept__cash, .pc-pay__cash { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); font-size: 13.5px; color: var(--text); }
[data-theme="light"] .pc-accept__cash, [data-theme="light"] .pc-pay__cash { background: rgba(10, 40, 60, .04); box-shadow: inset 0 0 0 1px rgba(10, 40, 60, .1); }
.pc-accept__cash .ic, .pc-pay__cash .ic, .pq-note--cash .ic { width: 18px; height: 18px; flex: none; color: var(--lime-hi); }
[data-theme="light"] .pc-accept__cash .ic, [data-theme="light"] .pc-pay__cash .ic, [data-theme="light"] .pq-note--cash .ic { color: #4E7D12; }
.pc-accept__cash > span, .pc-pay__cash > span { display: grid; gap: 2px; min-width: 0; }
.pc-accept__cash b { font: 600 12px/1.3 var(--f-display); color: var(--text-3); }
.pc-pay__cash b { font: 600 14px/1.4 var(--f-display); }
.pc-pay__cash small { font-size: 12px; color: var(--text-2); }
.pc-pay__cash strong { margin-inline-start: auto; font: 700 17px/1.2 var(--f-display); white-space: nowrap; }
.pq-note--cash { display: flex; align-items: center; gap: 8px; }
.pc-pay > .pc-pay__cash, [data-theme="light"] .pc-pay > .pc-pay__cash { padding: 0; background: none; box-shadow: none; }
.pc__limit { display: flex; justify-content: center; padding-block: 4px; }

/* Smart select (brand, model, year): a searchable list */
.phero.pq-hero:not(.pq-hero--compact) { overflow: visible; z-index: 4; }
.pq-finder { position: relative; z-index: 2; }
.pq-label__opt { font: 400 13px/1 var(--f-body); color: var(--text-3); }
.ss { position: relative; min-width: 0; }
.ss__ph, .ss__btn { display: flex; align-items: center; width: 100%; height: 52px; padding-inline: 16px 42px; border: 0; border-radius: 16px; text-align: start; color: var(--text); font: 500 15px/1.2 var(--f-body); cursor: pointer; background: rgba(var(--well), .45); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .25s; }
.ss__ph { color: var(--text-3); }
.ss__btn:hover { box-shadow: inset 0 0 0 1px var(--lime); }
.ss__btn:focus-visible, .ss.is-open .ss__btn { outline: none; box-shadow: inset 0 0 0 1.5px var(--lime), 0 0 0 4px rgba(146, 199, 59, .15); }
.ss__btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: inset 0 0 0 1px var(--line-2); }
.ss__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss__text.is-empty { color: var(--text-2); }
.ss::after { content: ""; position: absolute; inset-inline-end: 17px; top: 21px; width: 8px; height: 8px; pointer-events: none; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg); transition: transform .25s; }
.ss.is-open::after { transform: translateY(4px) rotate(225deg); }
.ss.has-value::after { display: none; }
.ss__clear { position: absolute; inset-inline-end: 8px; top: 8px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; color: var(--text-2); background: none; }
.ss__clear:hover { color: var(--text); background: rgba(var(--fg), .08); }
.ss__clear .ic { width: 15px; height: 15px; }
.ss__clear[hidden], .ss__panel[hidden] { display: none; }
.ss__panel { position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 8px); min-width: 240px; padding: 8px; border-radius: 18px; background: var(--deep); box-shadow: 0 24px 60px -12px rgba(var(--sh), .7), inset 0 0 0 1px var(--line-2); }
.ss__q { width: 100%; height: 44px; padding-inline: 14px; border: 0; border-radius: 12px; color: var(--text); font: 400 16px/1.2 var(--f-body); background: rgba(var(--fg), .06); box-shadow: inset 0 0 0 1px var(--line-2); }
.ss__q:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--lime); }
.ss__list { position: relative; list-style: none; margin: 8px 0 0; padding: 0; max-height: min(320px, 46vh); overflow-y: auto; overscroll-behavior: contain; }
.ss__group { padding: 10px 12px 5px; font: 600 12px/1 var(--f-display); color: var(--text-3); }
.ss__none { padding: 16px 12px; color: var(--text-3); font-size: 14px; text-align: center; }
.ss__opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: 12px; cursor: pointer; }
.ss__opt.is-active, .ss__opt:hover { background: rgba(146, 199, 59, .14); }
.ss__opt.is-on b { color: var(--lime-hi); }
[data-theme="light"] .ss__opt.is-on b { color: #4E7D12; }
.ss__name { display: grid; gap: 2px; min-width: 0; }
.ss__name b { font: 500 15px/1.3 var(--f-body); overflow-wrap: anywhere; }
.ss__name small, .ss__n { font-size: 12px; color: var(--text-3); }
.ss__n { flex: none; white-space: nowrap; }
.pq-modal .ss__panel { position: static; margin-block-start: 8px; box-shadow: inset 0 0 0 1px var(--line-2); }
.pq-modal .ss__list { max-height: 240px; }
.pq-browse { padding-block-start: 34px; }
.pq-more { display: flex; justify-content: center; margin-block-start: 22px; }
.pq-more [hidden] { display: none; }
@media (max-width: 760px) { .ss__panel { min-width: 0; } }
@media (max-width: 760px) { .ss-opened .fab, .ss-opened .pc-fab, .ss-opened .pq-listfab { visibility: hidden; } }

/* Diagrams without choosing a car */
.pq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 18px; }
.pq-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding-inline: 16px; border: 0; border-radius: 99px; cursor: pointer; color: var(--text); font: 500 14px/1 var(--f-body); background: rgba(var(--fg), .06); box-shadow: inset 0 0 0 1px var(--line-2); }
.pq-chip small { color: var(--text-3); font-size: 12px; }
.pq-chip:hover { box-shadow: inset 0 0 0 1px var(--lime); }
.pq-chip.is-on { color: #0A1408; background: linear-gradient(180deg, #ADDD55, #88BB35); box-shadow: none; }
.pq-chip.is-on small { color: rgba(10, 20, 8, .7); }
.pq-systems[hidden] { display: none; }
