/* Phonax village (prefix phv-): the product in the app's own look with the buyer switch, the nine checks. */
/* Beat 2: the charger as the app shows it (worlds/phonax/world.css .px-item / .px-off), two prices stacked. */
.phv-buy { display: grid; gap: 10px; width: 100%; max-width: 26rem; margin-block-start: 2px; }
.phv-prod { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px; border-radius: 16px; background: #fff; color: #1e293b; box-shadow: 0 12px 30px -20px rgb(76 29 149 / 0.55); }
.phv-prod__img { position: relative; width: 76px; height: 76px; overflow: hidden; border-radius: 12px; background: #f3f4f6; }
.phv-prod__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phv-off { position: absolute; top: 5px; inset-inline-end: 5px; padding: 1px 6px; border-radius: 6px; background: #c026d3; color: #fff; font-size: 0.6875rem; font-weight: 800; line-height: 1.4; }
.phv-off:empty { display: none; }
.phv-prod__txt { display: grid; gap: 4px; min-width: 0; }
.phv-prod__t { font-size: 0.9375rem; font-weight: 650; line-height: 1.3; }
.phv-prices { display: grid; }
.phv-p { grid-area: 1 / 1; display: grid; gap: 1px; opacity: 0; transform: translate3d(0, 6px, 0); transition: opacity 0.3s var(--ease-out), transform 0.45s var(--ease-out); }
.phv-prod:not(.is-shop) .phv-p[data-b='0'], .phv-prod.is-shop .phv-p[data-b='1'] { opacity: 1; transform: none; }
.phv-p__row { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; }
.phv-p s { font-size: 0.75rem; color: #94a3b8; }
.phv-p b { font-size: 1.125rem; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.phv-p em { font-style: normal; }
.phv-p small { margin-inline-start: 4px; font-size: 0.6875rem; font-weight: 600; color: #64748b; }
.phv-p__why { font-size: 0.75rem; line-height: 1.35; color: #64748b; }
html[lang='fa'] .phv-p__why, html[lang='fa'] .phv-prod__t { line-height: 1.6; }
/* The switch: the world's own "see the prices as" control (.px-as__seg). */
.phv-seg { justify-self: start; display: inline-flex; gap: 3px; padding: 3px; border-radius: 999px; background: color-mix(in oklab, var(--fg) 8%, transparent); pointer-events: auto; }
.phv-seg__b { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--fg); font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer; transition: background-color 0.25s, color 0.25s; -webkit-tap-highlight-color: transparent; }
.phv-seg__b[aria-pressed='true'] { background: var(--fg); color: var(--bg); }

/* Beat 3: the nine checks (worlds/phonax/world.css .px-xr), then the total lands. */
.phv-xr { width: 100%; max-width: 30rem; }
.phv-xr__code { margin: 0 0 4px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 0.875rem; font-weight: 600; color: var(--mute); }
.phv-xr__code b { color: var(--fg); font-weight: 750; letter-spacing: 0.04em; }
.phv-xr__g { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 10px; }
.phv-xr__g li { display: flex; align-items: center; gap: 6px; min-height: 34px; border-block-start: 1px solid var(--hair); font-size: 0.8125rem; font-weight: 600; line-height: 1.15; color: var(--mute); transition: color 0.3s, opacity 0.3s; }
.phv-xr__g li span { min-width: 0; overflow-wrap: anywhere; }
.phv-xr__m { position: relative; flex: none; width: 18px; height: 18px; display: grid; place-items: center; font-style: normal; }
.phv-xr__m em { font-style: normal; font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums; transition: opacity 0.2s, transform 0.3s var(--ease-out); }
.phv-xr__m svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--ac); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(0.4); transition: opacity 0.2s, transform 0.35s var(--ease-out); }
.phv-xr__m .phv-xr__no { stroke: #b42318; }
.phv-xr__g li[data-s='ok'], .phv-xr__g li[data-s='no'] { color: var(--fg); }
.phv-xr__g li[data-s='ok'] em, .phv-xr__g li[data-s='no'] em { opacity: 0; transform: scale(0.4); }
.phv-xr__g li[data-s='ok'] .phv-xr__ok, .phv-xr__g li[data-s='no'] .phv-xr__no { opacity: 1; transform: none; }
.phv-xr__g li[data-s='skip'] { opacity: 0.45; }
.phv-xr__msg { min-height: 1.4em; margin: 8px 0 0; font-size: 0.875rem; font-weight: 600; line-height: 1.4; color: var(--fg); }
html[lang='fa'] .phv-xr__msg { line-height: 1.7; min-height: 1.7em; }
.phv-xr__pay { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 6px 0 0; padding-block-start: 8px; border-block-start: 1px solid var(--hair); }
.phv-xr__pay > span { font-size: 0.9375rem; font-weight: 600; color: var(--mute); }
.phv-xr__pay em { font-style: normal; font-weight: 500; margin-inline-start: 8px; opacity: 0.8; }
.phv-xr__pay b { font-size: 1.3rem; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--mute); transition: color 0.3s; }
.phv-xr.is-ok .phv-xr__pay b { color: var(--fg); }
.phv-xr__pay b small { margin-inline-start: 6px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0; color: var(--mute); }
html[lang='fa'] .phv-xr__pay b { letter-spacing: 0; font-variant-numeric: normal; }
@media (min-width: 900px) {
  .phv-xr__g li { min-height: 40px; gap: 8px; font-size: 0.875rem; }
  .phv-xr__msg { font-size: 0.9375rem; }
  .phv-xr__pay b { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { .phv-p, .phv-xr__m em, .phv-xr__m svg { transition: none; } }
