.topa-pv {
  --pv-green:#007a60; --pv-deep:#005543; --pv-ink:#29302d; --pv-muted:#59655f;
  --pv-line:#d8e3dd; --pv-panel:#f5f9f7; --pv-tint:#edf5f1;
  box-sizing:border-box; color:var(--pv-ink); font-family:inherit; font-size:1rem; line-height:1.55;
}
.topa-pv *, .topa-pv *::before, .topa-pv *::after {box-sizing:border-box}
.topa-pv[hidden], .topa-pv [hidden], button[data-pv-product][hidden] {display:none!important}
.topa-pv-sr {position:absolute!important;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip-path:inset(50%)}
.topa-pv :is(a,button,input,[tabindex]):focus-visible, .topa-pv-product-button:focus-visible {outline:3px solid #007a60;outline-offset:3px}
.topa-pv button {font:inherit;cursor:pointer}
.topa-pv button:disabled,.topa-pv [aria-disabled=true] {opacity:.55;cursor:default}
.topa-pv .topa-pv-primary,.topa-pv .topa-pv-secondary,.topa-pv .topa-pv-hit-add {
  display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:.55rem .95rem;
  font:inherit;font-weight:650;font-size:.94rem;line-height:1.25;border:1px solid var(--pv-green);
  border-radius:7px;box-shadow:none;text-decoration:none!important;letter-spacing:normal;text-align:center;white-space:normal;
}
.topa-pv .topa-pv-primary {background:var(--pv-green);color:#fff}
.topa-pv .topa-pv-primary[href]:hover {background:var(--pv-deep);border-color:var(--pv-deep);color:#fff}
.topa-pv .topa-pv-secondary,.topa-pv .topa-pv-hit-add {color:var(--pv-deep);background:#fff}
.topa-pv .topa-pv-secondary:hover,.topa-pv .topa-pv-hit-add:not(:disabled):hover {background:var(--pv-tint);color:var(--pv-deep)}
.topa-pv-page {width:100%;min-width:0;max-width:100%;background:#fff;border:1px solid var(--pv-line);border-radius:12px}
.topa-pv .topa-pv-toolbar {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px 20px}
.topa-pv .topa-pv-heading,.topa-pv-search-head h2 {margin:0;padding:0;color:var(--pv-ink);font:inherit;font-size:clamp(1.05rem,2.4vw,1.35rem);font-weight:700;letter-spacing:normal}
.topa-pv-tools,.topa-pv-filter {display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.topa-pv-filter {gap:6px;color:var(--pv-muted);font-size:.92rem;cursor:pointer}
.topa-pv-filter input {width:16px;height:16px;accent-color:var(--pv-green);margin:0}
.topa-pv .topa-pv-note,.topa-pv .topa-pv-retry {margin:0;padding:14px 20px;color:var(--pv-muted);font-size:.94rem;border-top:1px solid var(--pv-line)}
.topa-pv .topa-pv-text {border:0;background:transparent;color:var(--pv-deep);font-weight:600;text-decoration:underline;padding:4px}
.topa-pv-table-wrap {position:relative;overflow:auto;width:100%;max-width:100%;border-radius:0 0 12px 12px;overscroll-behavior-x:contain;scrollbar-color:#97b9ad var(--pv-panel)}
.topa-pv .topa-pv-table {width:100%;margin:0!important;border-collapse:separate;border-spacing:0;border:0!important;color:var(--pv-ink);text-align:left;font:inherit;table-layout:auto}
.topa-pv .topa-pv-table th,.topa-pv .topa-pv-table td {border:0;border-top:1px solid var(--pv-line);border-right:1px solid var(--pv-line);padding:11px 15px;vertical-align:top;text-align:left;overflow-wrap:anywhere;line-height:1.5;font-size:.94rem}
.topa-pv .topa-pv-table tr>:last-child {border-right:0}
.topa-pv .topa-pv-table tr>:first-child {position:sticky;left:0;z-index:1;width:13rem;min-width:10rem;max-width:15rem;background:var(--pv-panel);font-weight:600;color:#35443d}
.topa-pv .topa-pv-table thead th {font-weight:inherit;background:#fff}
.topa-pv .topa-pv-table thead th:first-child {vertical-align:bottom}
.topa-pv .topa-pv-table thead th:not(:first-child) {min-width:14rem;width:18rem;padding:13px 15px 16px}
.topa-pv .topa-pv-table tbody tr:nth-child(even) td {background:#fafcfb}
.topa-pv .topa-pv-table :is(del,del span) {color:var(--pv-muted)}
.topa-pv .topa-pv-table ins {color:#925269;font-weight:700;text-decoration:none}
.topa-pv .topa-pv-missing,.topa-pv .topa-pv-unmapped {color:#65736b}
.topa-pv-product {position:relative;display:grid;align-content:start;gap:6px}
.topa-pv .topa-pv-photo {display:grid;place-items:center;height:108px;padding:4px 21px}
.topa-pv-photo img {width:auto;max-width:100%;height:auto;max-height:100px;object-fit:contain}
.topa-pv .topa-pv-name {color:var(--pv-deep);font-weight:700;text-decoration:none;line-height:1.4}
.topa-pv .topa-pv-name:hover {text-decoration:underline}
.topa-pv-unmapped {font-size:.82rem;font-weight:400}
.topa-pv .topa-pv-remove,.topa-pv .topa-pv-close {
  display:grid;place-items:center;width:30px;height:30px;padding:0;line-height:1;font-family:inherit;font-weight:500;
  font-size:20px;border:1px solid var(--pv-line);background:#fff;color:var(--pv-muted);border-radius:50%;
}
.topa-pv .topa-pv-remove:hover,.topa-pv .topa-pv-close:hover {color:var(--pv-deep);background:var(--pv-tint);border-color:var(--pv-green)}
.topa-pv-product>.topa-pv-remove {position:absolute;top:-3px;right:-4px}
.topa-pv-single {display:flex;gap:12px;align-items:center;padding:12px 20px;border-top:1px solid var(--pv-line)}
.topa-pv-single img {width:52px;height:52px;object-fit:contain}
.topa-pv-single .topa-pv-remove {margin-inline-start:auto;flex:none}
.topa-pv-dock {position:fixed;z-index:9996;left:50%;bottom:calc(40px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);
  display:flex;align-items:center;gap:14px;width:max-content;max-width:min(58rem,calc(100% - 24px));padding:9px 12px;
  background:#fff;border:1px solid var(--pv-line);border-radius:12px;box-shadow:0 5px 25px rgba(24,62,47,.18)}
.topa-pv-dock-actions {display:flex;align-items:center;gap:8px;flex-shrink:0}
.topa-pv .topa-pv-thumbs,.topa-pv .topa-pv-hits {list-style:none;padding:0;margin:0}
.topa-pv .topa-pv-thumbs {min-width:0;max-width:32rem;display:flex;gap:6px;overflow-x:auto;padding:3px;line-height:1}
.topa-pv-thumbs li {position:relative;min-width:54px;width:54px;height:50px;border:1px solid var(--pv-line);border-radius:6px;background:#fff}
.topa-pv-thumbs li a {display:grid;width:100%;height:100%;place-content:center}
.topa-pv-thumbs img {width:41px;height:40px;object-fit:contain;display:block}
.topa-pv-thumbs .topa-pv-remove {position:absolute;right:-2px;top:-3px;width:22px;height:22px;font-size:16px}
.topa-pv-loading-thumb {display:grid;place-items:center;height:100%}
.topa-pv-dock .topa-pv-retry {max-width:14rem;padding:4px;font-size:.85rem;border:0}
dialog.topa-pv-search {position:fixed;inset:0;width:min(34rem,calc(100vw - 28px));height:max-content;max-height:min(78vh,40rem);max-height:min(78dvh,40rem);
  margin:auto;border:1px solid var(--pv-line);border-radius:12px;padding:20px;background:#fff;box-shadow:0 18px 70px rgba(0,0,0,.2);overflow:auto}
dialog.topa-pv-search:not([open]) {display:none}
dialog.topa-pv-search::backdrop {background:rgba(17,35,28,.58)}
.topa-pv-search-head {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.topa-pv-search label {display:block;font-size:.9rem;font-weight:600;margin-bottom:5px}
.topa-pv-search input[type=search] {display:block;width:100%;border:1px solid #aebfb6;border-radius:6px;padding:10px 12px;min-height:44px;background:white;color:var(--pv-ink);font:inherit}
.topa-pv .topa-pv-search-status {margin:10px 0;padding:0;color:var(--pv-muted);font-size:.9rem}
.topa-pv-hits li {display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:10px;border-top:1px solid var(--pv-line);padding:8px 0;overflow-wrap:anywhere}
.topa-pv-hits img {width:44px;height:44px;object-fit:contain}
.topa-pv .topa-pv-hit-add {font-size:.86rem;min-height:36px;padding:6px 10px}
body.woocommerce button.topa-pv-product-button,button.topa-pv-product-button[data-pv-product] {
  display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;cursor:pointer;margin-inline-start:.55rem;
  color:var(--pv-cart-color,#fff);background-color:var(--pv-cart-background-color,#007a60);
  border-color:var(--pv-cart-border-color,#007a60);border-width:var(--pv-cart-border-width,1px);
  border-style:var(--pv-cart-border-style,solid);border-radius:var(--pv-cart-border-radius,7px);
  font-family:var(--pv-cart-font-family,inherit);font-size:var(--pv-cart-font-size,1rem);font-weight:var(--pv-cart-font-weight,700);
  line-height:var(--pv-cart-line-height,1.3);letter-spacing:var(--pv-cart-letter-spacing,normal);text-transform:var(--pv-cart-text-transform,none);
  padding-block:var(--pv-cart-padding-block-start,.65rem) var(--pv-cart-padding-block-end,.65rem);
  padding-inline:var(--pv-cart-padding-inline-start,1rem) var(--pv-cart-padding-inline-end,1rem)
}
button.topa-pv-product-button[data-pv-product]::after,button.topa-pv-product-button[data-pv-product]::before {display:none!important;content:none!important}
body.woocommerce button.topa-pv-product-button:hover,button.topa-pv-product-button[data-pv-product]:hover {filter:brightness(.93)}
button.topa-pv-product-button[aria-pressed=true] {box-shadow:inset 0 0 0 2px currentColor}
@media(max-width:620px){
  .topa-pv .topa-pv-toolbar {padding:13px 12px;gap:8px}
  .topa-pv .topa-pv-tools {gap:10px}
  .topa-pv .topa-pv-table tr>:first-child {width:7.25rem;min-width:6.25rem;max-width:8rem}
  .topa-pv .topa-pv-table thead th:not(:first-child) {min-width:11.2rem;padding:10px}
  .topa-pv .topa-pv-table th,.topa-pv .topa-pv-table td {padding:9px 10px;font-size:.86rem}
  .topa-pv-dock {width:max-content;max-width:calc(100% - 16px);flex-wrap:wrap;justify-content:center;gap:5px 10px;padding:6px 8px;bottom:calc(36px + env(safe-area-inset-bottom,0px))}
  .topa-pv-dock .topa-pv-thumbs {max-width:min(100%,17rem)}
  .topa-pv-dock .topa-pv-primary,.topa-pv-dock .topa-pv-secondary {min-height:36px;font-size:.82rem;padding:6px 9px}
  .topa-pv-hits li {grid-template-columns:34px minmax(0,1fr) auto;gap:6px}
  .topa-pv-hits img {width:32px;height:36px}
}
