.wp-stage.wpv { position: relative; padding: 0; overflow: hidden; background: #fff; }
.wpv [hidden] { display: none !important; }
.wpv-top { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 17px 20px 18px; }
.wpv.is-wheel-detail .wpv-top { position: absolute; inset: 0 0 auto; z-index: 1; pointer-events: none; }
.wpv.is-wheel-detail .wpv-tabs { pointer-events: auto; background: #eef2f6ed; }
.wpv-tabs { display: inline-flex; padding: 3px; border-radius: 7px; background: #eef2f6; }
.wpv button { font: inherit; cursor: pointer; }
.wpv-tab { border: 0; border-radius: 5px; padding: 6px 12px; background: transparent; color: #607080; font-size: 13px !important; white-space: nowrap; }
.wpv-tab[aria-pressed="true"] { background: #fff; color: #143657; box-shadow: 0 1px 4px #122b441a; }
.wpv button:focus-visible { outline: 3px solid #3c79c1; outline-offset: 3px; }
.wpv-view { position: relative; display: grid; place-items: center; background: #fff; min-height: 160px; }
.wpv-view canvas { display: block; width: 100%; height: auto; aspect-ratio: 1260 / 490; }
.wpv-view.is-loading canvas { opacity: .2; }
.wpv-status { position: absolute; max-width: calc(100% - 40px); padding: 10px 15px; background: #fffffff0; color: #38536b; font-size: 14px; text-align: center; border-radius: 6px; }
.wpv-enlarge { position: absolute; right: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #d8e0e8; border-radius: 6px; color: #324b62; background: #fffffff2; font-size: 13px !important; }
.wpv-enlarge svg { width: 15px; height: 15px; }
.wp-stage.wpv .wpv-product { display: block; width: 100%; height: 440px; max-height: none; aspect-ratio: auto; object-fit: contain; box-sizing: border-box; padding: 14px; margin: 0; }
.wpv-dialog { width: min(1460px, 94vw); max-width: 94vw; max-height: 92vh; padding: 0; border: 1px solid #dbe2e9; border-radius: 12px; background: #fff; box-shadow: 0 25px 90px #071c484a; }
.wpv-dialog::backdrop { background: #10243b91; backdrop-filter: blur(4px); }
.wpv-dialog [hidden] { display: none !important; }
.wpv-dialog-head { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px 20px; padding: 16px 24px; border-bottom: 1px solid #e8edf1; font: 600 16px var(--font-body, sans-serif); }
.wpv-dialog-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; min-width: 0; line-height: 1.5; }
.wpv-cover-note { color: #576c7e; font-size: 14px; font-weight: 400; }
.wpv-cover-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 38px; color: #29445d; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.wpv-cover-toggle input { appearance: none; box-sizing: border-box; position: relative; width: 42px; height: 24px; margin: 0; border: 1px solid #b5c3d0; border-radius: 20px; background: #c7d1da; cursor: pointer; transition: background .15s; }
.wpv-cover-toggle input::before { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #19344f33; transition: transform .15s; }
.wpv-cover-toggle input:checked { background: #1e649c; border-color: #1e649c; }
.wpv-cover-toggle input:checked::before { transform: translateX(18px); }
.wpv-dialog :focus-visible { outline: 3px solid #3c79c1; outline-offset: 3px; }
.wpv-dialog-head .wpv-close { grid-column: 3; grid-row: 1; }
.wpv-close { width: 38px; height: 38px; flex-shrink: 0; border: 1px solid #dbe2e9; border-radius: 7px; background: #fff; color: #273e53; font: 25px sans-serif; cursor: pointer; }
.wpv-dialog canvas { display: block; width: 100%; height: auto; }
.wpv-dialog-caption { padding: 12px 24px 20px; margin: 0; color: #53697e; font: 14px var(--font-body, sans-serif); }
.wpv-dialog:focus { outline: none; }
@media (max-width: 600px) {
  .wpv-top { padding: 13px 12px 14px; flex-wrap: wrap; gap: 10px; }
  .wpv-tabs { width: 100%; }
  .wpv.is-wheel-detail .wpv-tabs { width: auto; }
  .wp-stage.wpv .wpv-product { height: clamp(240px, 65vw, 270px); padding: 62px 12px 12px; }
  /* Compact phone browsing; keep the on-car canvas and enlarged view unchanged. */
  #wp-step-wheels .wp-opts--wheels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #wp-step-wheels .wp-opt { min-width: 0; }
  #wp-step-wheels .wp-opt-card { padding: 8px; }
  #wp-step-wheels .wp-opt-card img { height: clamp(100px, 28vw, 132px); aspect-ratio: auto; }
  #wp-step-wheels .wp-opt-name { font-size: 14px; }
  #wp-step-wheels .wp-opt-spec { font-size: 12px; overflow-wrap: anywhere; }
  #wp-step-wheels .wp-opt-preorder { max-width: 100%; white-space: normal; }
  .wpv-tab { flex: 1; min-height: 34px; }
  .wpv-enlarge { right: 8px; bottom: 4px; padding: 5px 8px; font-size: 12px !important; }
  .wpv-view { min-height: 150px; }
  .wpv-dialog { width: 96vw; max-width: 96vw; }
  .wpv-dialog-head { padding: 10px 14px; font-size: 14px; }
  .wpv-dialog-head { grid-template-columns: minmax(0, 1fr) auto; }
  .wpv-dialog-head .wpv-close { grid-column: 2; }
  .wpv-cover-toggle { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
}
