/* Additions are scoped; the existing Woodmart header and panel dimensions are preserved. */
.sundvik-wse-smart-results .svx-card,.svx-complements .svx-card,#svx-dialog .svx-card{min-width:0;background:#fff;border:1px solid #dce5e2;border-radius:12px;padding:8px;overflow-wrap:anywhere}
.svx-card .sundvik-wse-product{box-shadow:none!important;border:0!important;margin:0!important}
.svx-details{display:block;font-size:12px;line-height:1.5;color:#495b57;overflow-wrap:anywhere}
.svx-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.svx-actions button,.svx-complement-trigger,.svx-recent button,.svx-toolbar button,.svx-pair button,.svx-filters button,#svx-dialog header button{min-height:44px;padding:8px 12px;border:1px solid #bfd2ca;border-radius:8px;background:#fff;color:#00443f;font:inherit;cursor:pointer;white-space:normal;max-width:100%}
.svx-actions button[aria-pressed=true]{background:#e8f3ee;border-color:#00443f}
.svx-complement-trigger{font-size:12px;width:100%;margin-top:6px}
.svx-articles{margin-top:14px;border-top:1px solid #dce5e2;padding-top:8px}.svx-articles summary,.svx-filters summary{cursor:pointer;min-height:44px;padding:10px;font-weight:600}.svx-articles a{display:block;padding:10px;min-height:44px}
.svx-filters{margin:16px 0;border:1px solid #dce5e2;border-radius:12px;background:#fff}.svx-filters form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px}.svx-filters label{min-width:0;display:flex;flex-direction:column;gap:6px}.svx-filters select,.svx-filters input[type=number]{width:100%;min-width:0;min-height:44px;font-size:16px}.svx-filters .svx-check,.svx-check{display:flex;align-items:center;gap:10px;min-height:44px}.svx-check input[type=checkbox]{width:20px;height:20px;flex:none}
.svx-complements{padding:16px;border:1px solid #dce5e2;border-radius:14px;margin:16px 0;background:#f7faf8;max-width:100%;box-sizing:border-box}.svx-complements h3{margin-top:0}.svx-pair{padding:12px 0 18px}.svx-pair button{background:#00443f;color:white;width:100%}.svx-pair button:disabled{opacity:.65;cursor:wait}.svx-pair-status{display:block;margin-top:8px}.svx-total{font-weight:600;overflow-wrap:anywhere}
.svx-toolbar{position:fixed;bottom:max(12px,env(safe-area-inset-bottom));right:12px;z-index:1000;background:white;border:1px solid #dce5e2;box-shadow:0 4px 20px #0002;padding:6px;border-radius:12px;display:flex;flex-wrap:wrap;gap:6px;max-width:calc(100vw - 24px)}
.svx-toolbar[hidden]{display:none!important}#svx-dialog{width:min(900px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:16px;border:1px solid #dce5e2;border-radius:16px;box-sizing:border-box;overflow:auto;color:#173a31;background:#fff}#svx-dialog::backdrop{background:#0007}#svx-dialog header{display:flex;align-items:center;justify-content:space-between;gap:10px;position:sticky;top:-16px;background:#fff;z-index:1;padding:8px 0}#svx-dialog header h2{font-size:20px;margin:0}#svx-dialog .sundvik-wse-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#svx-dialog .sundvik-wse-product{display:flex;gap:10px;align-items:flex-start}#svx-dialog img{width:70px;max-width:70px;height:70px;object-fit:contain}#svx-dialog .sundvik-wse-product-info{display:block;min-width:0}#svx-dialog .sundvik-wse-product-info>span{display:block}#svx-dialog .svx-complement-trigger{display:none}.svx-comparison{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.svx-comparison>section{min-width:0;border:1px solid #dce5e2;padding:12px;border-radius:12px}.svx-comparison h3{font-size:16px;overflow-wrap:anywhere}.svx-comparison .sundvik-wse-product-grid{grid-template-columns:1fr!important}.svx-comparison .sundvik-wse-product{flex-direction:column}.svx-global-status{position:fixed;left:12px;bottom:12px;max-width:min(350px,calc(100vw - 24px));z-index:1001;background:#00443f;color:#fff;border-radius:8px;padding:8px}.svx-global-status:empty{display:none}
.svx-recent{padding:8px}.svx-recent>p{font-size:13px}.svx-recent h3{font-size:16px}
@media(max-width:767px){.svx-filters form{grid-template-columns:repeat(2,minmax(0,1fr))}.svx-comparison{grid-template-columns:1fr}.svx-toolbar{right:8px;max-width:calc(100vw - 16px)}.svx-toolbar button{font-size:12px;padding:7px}.svx-complements{padding:12px}#svx-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:12px}#svx-dialog .sundvik-wse-product-grid{grid-template-columns:1fr}.sundvik-wse-smart-results .sundvik-wse-product-grid{grid-template-columns:1fr!important}.svx-card .sundvik-wse-product{min-height:0!important}.svx-global-status{bottom:72px}}
@media(max-width:360px){.svx-filters form{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){#svx-dialog *{scroll-behavior:auto}}
/* Header suggestions stay compact and scroll internally. Full-screen search retains its own layout. */
.sundvik-wse-smart-inline .sundvik-wse-smart-results{max-height:min(480px,65vh)}
@media(max-width:767px){.sundvik-wse-smart-inline .sundvik-wse-smart-results{max-height:min(360px,55dvh)}}

#svx-dialog .svx-complements>h3{display:none}.svx-pair-summary{font-size:14px;line-height:1.5;overflow-wrap:anywhere}

#svx-dialog[data-svx-mode=complement] .sundvik-wse-product-grid{grid-template-columns:1fr}
@media(min-width:768px){#svx-dialog[data-svx-mode=complement]{width:min(600px,calc(100vw - 32px))}}
