/* Loaded only on compare pages; centered AJAX search and responsive 1–4 products. */
.wd-soma-compare-search{--soma-accent:var(--wd-primary-color,#ec7f21);box-sizing:border-box;width:min(100%,820px);margin:0 auto 26px;padding:22px 26px;border:1px solid #e7e9ed;border-radius:18px;background:linear-gradient(110deg,#fff 65%,#fff7f0);box-shadow:0 9px 35px #12213a0a;color:#142338;direction:rtl}
.wd-soma-compare-search-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.wd-soma-compare-search-head strong{display:block;font-size:20px;line-height:1.5;font-weight:900;color:#0d2237}
.wd-soma-compare-search-head p{font-size:13px;color:#718096;margin:3px 0 0;line-height:1.8}
.wd-soma-compare-counter{flex-shrink:0;white-space:nowrap;padding:8px 14px;border:1px solid #f1d9c6;border-radius:100px;background:#fff8f2;color:#af5619;font-size:13px;font-weight:800}
.wd-soma-compare-search-field{position:relative;width:100%;margin-inline:auto}
.wd-soma-compare-search-field input[type=search]{box-sizing:border-box;display:block;width:100%;max-width:none;min-height:52px;border:1px solid #dfe4ea;border-radius:12px;background:#fff!important;padding:11px 48px 11px 14px;color:#15273a!important;font-size:14px;outline:none;box-shadow:none}
.wd-soma-compare-search-field input:focus{border-color:var(--soma-accent)!important;box-shadow:0 0 0 3px #e77e2417}
.wd-soma-compare-search-glass{pointer-events:none;position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:29px;line-height:1;color:#ed8023}
.wd-soma-compare-results:not(:empty){box-sizing:border-box;width:100%;margin:10px auto 0;padding:7px;border:1px solid #e7e9ed;border-radius:13px;background:#fff;max-height:375px;overflow:auto;box-shadow:0 12px 26px #10233c0e}
.wd-soma-compare-result{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px;border-radius:9px}
.wd-soma-compare-result+.wd-soma-compare-result{border-top:1px solid #eff1f3}
.wd-soma-compare-result-link{display:flex;align-items:center;gap:12px;flex:1;min-width:0;text-decoration:none!important}
.wd-soma-compare-result-link img{flex:0 0 58px;width:58px;height:54px;object-fit:contain;border-radius:9px;background:#f7f8fa}
.wd-soma-result-info{min-width:0;line-height:1.6}
.wd-soma-result-info strong{display:block;font-size:12px;font-weight:800;color:#17283c;white-space:normal}
.wd-soma-result-info small{display:block;font-size:11px;color:#e17323}
.wd-soma-compare-quick-add{flex:0 0 auto;min-height:35px!important;padding:7px 12px!important;background:var(--soma-accent)!important;color:#fff!important;border:0!important;border-radius:10px!important;font-size:12px!important;line-height:1.4!important;font-weight:800!important;text-transform:none!important}
.wd-soma-compare-quick-add:disabled{opacity:.6;cursor:wait}
.wd-soma-search-hint{padding:13px;margin:0;color:#77818c;font-size:13px}
.wd-soma-compare-feedback:not([hidden]){display:block;background:#edf7f0;color:#26613c;border-radius:9px;margin:0 0 12px;padding:10px 12px;font-size:13px}
.wd-soma-compare-feedback.is-error{background:#fff1ee;color:#a32d24}
/* Woodmart's default compare table is a flex table. Use one identical grid template
 * for each row to keep header/specification labels aligned at all viewport sizes. */
.wd-soma-unified-compare{max-width:100%;margin:0 0 30px;overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch;scrollbar-width:thin;overscroll-behavior-x:contain}
.wd-soma-unified-compare .wd-compare-content{width:100%;min-width:0;overflow:visible}
.wd-soma-unified-compare .wd-compare-table{box-sizing:border-box;display:block;width:100%;max-width:none;overflow:visible;border-spacing:0;table-layout:fixed}
.wd-soma-unified-compare .wd-compare-table tbody{display:block}
.wd-soma-unified-compare .wd-compare-table tr{display:grid;grid-template-columns:165px repeat(var(--soma-compare-count),minmax(215px,1fr));width:100%;min-width:100%;margin:0}
.wd-soma-unified-compare .wd-compare-table :is(th,td){display:block;box-sizing:border-box;width:auto;min-width:0;min-height:48px;padding:16px 13px;text-align:center;overflow-wrap:anywhere;flex:none}
.wd-soma-unified-compare .wd-compare-table .compare-field{display:flex;align-items:center;justify-content:flex-start;position:sticky;right:0;z-index:2;width:auto;background:#fff9f4;text-align:right;color:#344256;font-size:13px;font-weight:800}
.wd-soma-unified-compare .wd-compare-table tr:nth-child(even) :is(th,td){background-color:#fbfcfd}
.wd-soma-unified-compare .wd-compare-table tr:nth-child(even) th{background:#f7f1eb}
.wd-soma-unified-compare .wd-compare-table .compare-value{vertical-align:top;width:auto;min-width:0;font-size:13px;line-height:1.85}
.wd-soma-unified-compare .wd-compare-table td:before{display:none!important}
.wd-soma-unified-compare .wd-compare-table .product-image{display:block;margin-bottom:10px}
.wd-soma-unified-compare .wd-compare-table .product-image img{display:block;width:auto;max-width:100%;max-height:205px;margin:0 auto;object-fit:contain}
.wd-soma-unified-compare .wd-compare-table .compare-basic td{padding-top:12px}
.wd-soma-unified-compare .wd-compare-table .wd-entities-title{font-size:14px;line-height:1.8;font-weight:800}
.wd-soma-compare-remove-action{margin:0 0 14px;position:relative;z-index:5}
.wd-soma-unified-compare .wd-soma-compare-table-remove{display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;position:relative;z-index:6;max-width:100%;width:auto;height:auto;min-height:34px;max-height:none;padding:6px 10px;margin:0;border:1px solid #f4d0cb;border-radius:9px;background:#fff0ed!important;color:#b7342e!important;font-size:12px;font-weight:800;line-height:1.5;text-transform:none;white-space:nowrap;box-shadow:none;cursor:pointer;pointer-events:auto}
.wd-soma-unified-compare .wd-soma-compare-table-remove:hover{background:#ffded9!important;color:#8c251f!important}
.wd-soma-unified-compare .wd-soma-compare-table-remove:disabled{opacity:.5;cursor:wait}
.wd-soma-unified-compare .wd-soma-compare-table-remove span{font-size:18px;font-weight:400;line-height:1}
.wd-soma-compare-sale{display:inline-block;padding:3px 10px;border-radius:7px;background:#fff1e6;color:#bc5217;font-weight:800}
.wd-soma-unified-compare :focus-visible,.wd-soma-compare-search :focus-visible{outline:2px solid var(--wd-primary-color,#ec7f21);outline-offset:2px}
@media(max-width:767px){
.wd-soma-compare-search{width:100%;padding:15px 13px;border-radius:13px;margin-bottom:16px}
.wd-soma-compare-search-head{flex-wrap:wrap;gap:9px;align-items:flex-start}
.wd-soma-compare-search-head strong{font-size:18px}
.wd-soma-compare-search-head p{font-size:12px}
.wd-soma-compare-counter{font-size:11px;padding:5px 11px}
.wd-soma-compare-search-field input[type=search]{min-height:46px;font-size:13px}
.wd-soma-compare-result{gap:7px}
.wd-soma-compare-result-link img{width:44px;height:44px;flex-basis:44px}
.wd-soma-compare-quick-add{padding:7px 9px!important;font-size:11px!important}
.wd-soma-unified-compare .wd-compare-table tr{grid-template-columns:105px repeat(var(--soma-compare-count),minmax(195px,1fr))}
.wd-soma-unified-compare .wd-compare-table .compare-field{font-size:11px;padding:10px 8px}
.wd-soma-unified-compare .wd-compare-table .compare-value{font-size:12px;padding:10px 8px}
}
