.ps-discovery{box-sizing:border-box;width:100%;min-width:0;margin:20px 0 0;padding:20px 0 0;border-top:1px solid #dbe4f0;color:#10233f}
.ps-discovery *{box-sizing:border-box}
.ps-discovery button,.ps-discovery-action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border:0;border-radius:8px;background:#10233f;color:#fff;font-size:14px;font-weight:750;line-height:1.25;text-decoration:none;cursor:pointer;text-align:center}
.ps-discovery button:hover,.ps-discovery-action:hover{background:#24466d;color:#fff}
.ps-discovery :is(input,button,a):focus-visible{outline:3px solid #ff7711;outline-offset:3px}
.ps-discovery-status{margin:10px 0 0;font-size:14px;line-height:1.4;color:#5d6c82}
.ps-discovery-status:empty{display:none}
.ps-discovery-feedback{display:flex;align-items:center;gap:9px;min-height:44px}
.ps-discovery-feedback .ps-discovery-status{flex:1;margin:0}
.ps-discovery-spinner{display:none;width:18px;height:18px;flex:0 0 auto;border:2px solid #c9d7e8;border-top-color:#1769e0;border-radius:50%;animation:psDiscoverySpin .75s linear infinite}
.ps-discovery[data-state=loading] .ps-discovery-spinner{display:block}
.ps-discovery-dismiss{margin-left:auto;background:transparent!important;color:#1769e0!important;text-decoration:underline;text-underline-offset:3px}
@keyframes psDiscoverySpin{to{transform:rotate(360deg)}}
.ps-discovery h3{margin:18px 0 8px;font-size:17px;line-height:1.3;color:#071833;overflow-wrap:anywhere}
.ps-discovery-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:8px}
.ps-discovery-row{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-width:0;padding:10px;border:1px solid #dbe4f0;border-radius:10px;background:#fff}
.ps-discovery-row:hover,.ps-discovery-row:focus-within{border-color:#9aafc9;background:#f8faff}
.ps-discovery-details{flex:1;min-width:0;overflow-wrap:anywhere}
.ps-discovery-details strong{display:block;font-size:16px;line-height:1.3}
.ps-discovery-details p{margin:3px 0 0;font-size:14px;line-height:1.4}
.ps-discovery-meta{color:#5d6c82}
.ps-discovery-row :is(button,a){flex-shrink:0}
.ps-discovery-image{width:48px;height:48px;object-fit:contain;flex-shrink:0}
.ps-part-result{padding:0;overflow:hidden}
.ps-part-result{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:stretch;gap:12px;padding:12px}
.ps-part-result-card{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"details" "action";gap:6px;width:100%;height:100%;min-width:0;color:#10233f}
.ps-part-result-card:hover{color:#10233f;text-decoration:none}
.ps-discovery-photo{display:block;width:80px;height:80px;padding:0!important;border:0!important;border-radius:8px!important;background:#f1f4f8!important;overflow:hidden;cursor:zoom-in}
.ps-part-result>.ps-discovery-photo{width:100%;height:auto;min-height:100%;align-self:stretch}
.ps-part-result>.ps-discovery-photo .ps-discovery-image{display:block;width:100%;height:100%;object-fit:contain}
.ps-part-result>.ps-discovery-image-fallback{width:100%;min-height:100%;align-self:stretch;border-radius:8px;background:#f1f4f8}
.ps-discovery-image-fallback{display:flex;align-items:center;justify-content:center;border:1px solid #dbe4f0;color:#68788d;font-size:11px;font-weight:750;letter-spacing:.04em;text-transform:uppercase}
.ps-part-result-card .ps-discovery-details{grid-area:details}
.ps-part-result-actions{grid-area:action;display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.ps-part-result-actions .ps-discovery-action{min-width:92px}
.ps-price-compare-action{background:#1769e0!important}
.ps-price-compare-action:hover{background:#1257bd!important}
.ps-exact-label{display:inline-flex;margin:0 0 5px;padding:3px 7px;border-radius:999px;background:#e9f2ff;color:#244e7c;font-size:11px;font-weight:800;line-height:1.2}
.ps-photo-viewer{width:min(96vw,900px);height:min(92dvh,900px);max-width:none;max-height:none;padding:0;border:0;border-radius:12px;background:#101820;color:#fff;overflow:hidden}
.ps-photo-viewer::backdrop{background:rgba(0,0,0,.78)}
.ps-photo-viewer-stage{display:grid;width:100%;height:100%;place-items:center;overflow:auto;touch-action:pinch-zoom}
.ps-photo-viewer img{display:block;max-width:100%;max-height:100%;object-fit:contain;transform-origin:center;touch-action:pinch-zoom}
.ps-photo-viewer-close{position:absolute;z-index:1;top:12px;right:12px;min-height:44px;padding:8px 13px;border:2px solid #fff;border-radius:8px;background:#10233f;color:#fff;font-weight:800;cursor:pointer}

.ps-discovery[hidden],.ps-discovery [hidden]{display:none!important}
.ps-discovery-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.ps-discovery-tabs [role=tab]{border:1px solid #c8d4e3;background:#fff;color:#10233f;border-radius:22px;min-height:44px}
.ps-discovery-tabs [aria-selected=true]{background:#10233f;color:#fff;border-color:#10233f}
.ps-discovery-back{margin-top:12px}
.ps-discovery-model-meta{margin:5px 0 0;color:#5d6c82;font-size:14px}
.ps-discovery [data-discovery-retry]{margin-top:8px}

@media(max-width:700px){
  .ps-discovery{margin-top:4px;padding:0 2px 2px;border-top:0;max-height:var(--ps-discovery-height,calc(100dvh - 180px));overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;overflow-anchor:none}
  .ps-discovery-tabs{position:sticky;top:0;z-index:1;flex-wrap:nowrap;gap:4px;margin:0;padding:0;background:#fff}
  .ps-discovery-tabs [role=tab]{min-height:44px;padding:4px 10px;font-size:13px;border-radius:16px}
  .ps-discovery-status{margin:4px 0;font-size:13px}
  .ps-discovery-status-quiet{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .ps-discovery h3{margin:4px 0 2px;font-size:12px;line-height:16px}
  .ps-discovery-single-kind > section:first-child > h3{display:none}
  .ps-discovery-list{grid-template-columns:1fr;gap:4px;margin-top:2px}
  .ps-discovery-row{flex-direction:row;align-items:center;gap:6px;padding:6px 8px;border-radius:8px}
  .ps-discovery-details strong{font-size:14px;line-height:18px}
  .ps-discovery-details p{margin:1px 0 0;font-size:12px;line-height:16px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
  .ps-discovery-row :is(button,a){width:auto;min-width:72px;min-height:44px;padding:6px 8px;font-size:12px;border-radius:6px}
  .ps-discovery-row.ps-part-result{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:stretch;gap:8px;padding:7px 8px}
  .ps-part-result-card{grid-template-columns:minmax(0,1fr);grid-template-areas:"details" "action";align-items:start;gap:4px;width:100%;height:auto;min-width:0;min-height:80px;padding:0;border-radius:8px}
  .ps-discovery-photo{width:80px;height:80px}
  .ps-part-result>.ps-discovery-photo,.ps-part-result>.ps-discovery-image-fallback{width:100%;height:auto;min-height:100%}
  .ps-part-result>.ps-discovery-photo .ps-discovery-image{width:100%;height:100%;object-fit:contain}
  .ps-part-result-actions{gap:6px;margin:0}
  .ps-part-result-actions .ps-discovery-action{justify-self:start;max-width:100%;min-width:0;margin:0;white-space:normal}
  .ps-part-result-card .ps-exact-label{margin-bottom:2px;font-size:10px}
  .ps-discovery-back{margin-top:4px}
}
