/* Compact search and analogs: scoped to the approved search workflow. */
body.compact-search:not([data-service]) .catalog-grid{display:block;max-width:900px;margin:auto}body.compact-search:not([data-service]) .results-panel{display:none}body.compact-search:not([data-service]) #detail{min-height:0;background:#fff;border:1px solid #c8d9cd;border-radius:18px;padding:0;overflow:hidden}body.compact-search:not([data-service]):has(.compact-result) #comparison-panel{display:none}
.compact-result{padding:32px}.compact-result-heading{display:flex;justify-content:space-between;gap:20px}.compact-result h2{font-size:28px;line-height:1.25;margin:0 0 12px;overflow-wrap:anywhere}.compact-result-heading p{color:#50645b;font-size:17px;margin:0;overflow-wrap:anywhere}.compact-price{margin:28px 0;padding-top:24px;border-top:1px solid #e0e8e2}.compact-price span{display:block;font-size:19px;font-weight:600}.compact-price strong{display:block;color:#185629;font-size:46px;line-height:1.3;margin-top:8px;overflow-wrap:anywhere}.compact-facts{display:flex;flex-wrap:wrap;gap:10px}.compact-facts span{background:#edf4ee;border-radius:8px;padding:10px 13px;color:#31543d}.compact-actions{display:flex;gap:14px;margin-top:28px;flex-wrap:wrap}.compact-actions button,.compact-dialog button{border:1px solid #b7cdbd;background:#fff;color:#205332;border-radius:8px;padding:12px 17px;cursor:pointer;font:inherit}.compact-actions button.primary,.compact-dialog button.primary{background:#205f2e;color:white;border-color:#205f2e;font-weight:600}.compact-actions button{font-size:17px;flex:1}.compact-actions button:focus-visible,.compact-dialog button:focus-visible{outline:3px solid #568d65;outline-offset:3px}
.compact-dialog{width:min(940px,calc(100vw - 40px));max-width:none;max-height:88dvh;border:1px solid #cedbd2;border-radius:18px;padding:28px;color:#22362b;overflow:auto;background:#fff;box-shadow:0 18px 70px #102a2c33}.compact-dialog::backdrop{background:#182f3b66;backdrop-filter:blur(3px)}.compact-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.compact-dialog h2{font-size:30px;margin:0}.compact-dialog>header button{border:0;font-size:24px;padding:4px 10px}.compact-source{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#edf4ee;border-radius:12px;padding:20px;margin-bottom:24px}.compact-source strong{font-size:20px;overflow-wrap:anywhere}.compact-source p{margin:8px 0 0}.compact-source button{flex-shrink:0;background:transparent;text-decoration:underline;border:0}.compact-analogs{border:1px solid #c9d8cd;border-radius:12px;overflow:hidden}.compact-analog-head,.compact-analog-row{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) auto;align-items:center;gap:20px;padding:18px 22px}.compact-analog-head{background:#e8f1e9;font-weight:600}.compact-analog-row{border-top:1px solid #dbe4dd}.compact-analog-row>div>strong{font-size:21px;display:block}.compact-analog-row>div>span{display:block;margin-top:5px;overflow-wrap:anywhere}.compact-analog-row p{font-size:14px;color:#5c6e62;margin:7px 0;overflow-wrap:anywhere}.compact-analog-row .basis-link{border:0;padding:4px 0;text-decoration:underline;background:none;text-align:left}.compact-analog-row .analog-price{font-size:24px;color:#205f2e;overflow-wrap:anywhere}.compact-note{background:#eff5ef;border-radius:9px;padding:16px;margin:20px 0}.compact-dialog details{margin-top:18px}.compact-dialog summary{cursor:pointer;color:#205f2e}.manufacturer-choices>div{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #dbe4dd;padding:16px 0}.manufacturer-choices p{margin:6px 0;color:#5c6e62}.compact-dialog input{display:block;width:100%;padding:12px;margin:8px 0 14px;border:1px solid #b7cdbd;border-radius:7px}.compact-dialog button:disabled{opacity:.5;cursor:wait}
@media(max-width:600px){.compact-result{padding:20px}.compact-result h2{font-size:23px}.compact-price strong{font-size:36px}.compact-actions{flex-direction:column}.compact-dialog{width:calc(100vw - 20px);padding:18px;max-height:92dvh}.compact-dialog h2{font-size:25px}.compact-source{align-items:flex-start;flex-direction:column;padding:14px}.compact-source strong{font-size:17px}.compact-source button{padding:0}.compact-analog-head{display:none}.compact-analog-row{grid-template-columns:minmax(0,1fr);gap:12px;padding:18px}.compact-analog-row .primary{width:100%}.compact-analog-row .analog-price{font-size:25px}.compact-facts{font-size:13px}.manufacturer-choices>div{align-items:flex-start}.manufacturer-choices strong{overflow-wrap:anywhere}}
.compact-photo{width:120px;min-width:120px;min-height:120px;border-radius:12px;background:#f0f2f1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#85968a;gap:7px;font-size:12px}.compact-photo svg{width:46px;fill:none;stroke:currentColor;stroke-width:1.5}.compact-result-title{flex:1;min-width:0}@media(max-width:600px){.compact-photo{width:64px;min-width:64px;min-height:80px}.compact-photo svg{width:30px}.compact-result-heading{gap:12px}.compact-result-heading .save-button{width:30px;min-width:30px}.compact-result-heading p{font-size:14px}}
