.atlas-wd-compare-picker{margin:0 0 28px;text-align:right;direction:rtl}
.atlas-wd-compare-picker-bar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:10px}
.atlas-wd-compare-open{display:inline-flex;align-items:center;gap:12px;border:1px solid #0f9aa8;border-radius:14px;background:linear-gradient(180deg,#f5fdfd 0%,#ecfbfc 100%);color:#0a7782;padding:13px 18px;font-size:15px;font-weight:800;cursor:pointer;transition:.2s;box-shadow:0 8px 18px rgba(8,120,130,.08)}
.atlas-wd-compare-open:hover{background:#e5f7f9;border-color:#087b85;transform:translateY(-1px)}
.atlas-wd-compare-plus{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:11px;background:#0b9cac;color:#fff;font-size:28px;line-height:1;box-shadow:0 8px 16px rgba(11,156,172,.28)}
.atlas-wd-compare-go-page{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 18px;border-radius:14px;border:1px solid #d6e8ec;background:#fff;color:#1f5562;text-decoration:none;font-weight:700;transition:.2s}
.atlas-wd-compare-go-page:hover{color:#087b85;border-color:#7ac3cd;text-decoration:none;box-shadow:0 8px 18px rgba(0,0,0,.04)}
.atlas-wd-compare-inline-note{display:inline-flex;align-items:center;gap:8px;padding:8px 13px;background:#f6fbfc;border:1px solid #d6e8ec;border-radius:999px;color:#54707c;font-size:13px}
.atlas-wd-compare-inline-badge,.atlas-wd-compare-meta-count{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;padding:0 8px;border-radius:999px;background:#0c97a5;color:#fff;font-weight:800;font-size:13px}

.atlas-wd-compare-modal[hidden]{display:none!important}
.atlas-wd-compare-modal{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:22px;direction:rtl}
.atlas-wd-compare-overlay{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:rgba(9,22,34,.58);backdrop-filter:blur(3px);cursor:pointer}
.atlas-wd-compare-window{position:relative;background:#fff;width:min(1180px,100%);min-height:min(640px,86vh);max-height:86vh;overflow:auto;border-radius:24px;padding:28px 28px 24px;box-shadow:0 30px 80px rgba(0,0,0,.24);color:#223;outline:none;text-align:right}
.atlas-wd-compare-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:18px;border-bottom:1px solid #ebf0f2;margin-bottom:18px}
.atlas-wd-compare-heading-text strong{display:block;font-size:30px;line-height:1.5;color:#162632;margin-bottom:3px}
.atlas-wd-compare-heading-text span{display:block;font-size:14px;color:#6d7e8b}
.atlas-wd-compare-close{border:0;background:#f4f6f8;color:#233543;border-radius:12px;width:46px;height:46px;font-size:32px;line-height:1;cursor:pointer;flex:0 0 auto;transition:.2s}
.atlas-wd-compare-close:hover{background:#edf2f5}
.atlas-wd-compare-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.atlas-wd-compare-searchbox{position:relative;flex:1 1 640px;min-width:280px}
.atlas-wd-compare-searchicon{position:absolute;left:16px;right:auto;top:50%;transform:translateY(-50%);font-size:20px;color:#8ca0ad;pointer-events:none}
.atlas-wd-compare-term{display:block;width:100%;min-height:58px;border:1px solid #d6e1e8;border-radius:16px;background:#f7fafb;padding:12px 16px 12px 48px;font-size:16px;color:#233543;direction:rtl;transition:.2s}
.atlas-wd-compare-term:focus{outline:none;border-color:#74bfc9;background:#fff;box-shadow:0 0 0 4px rgba(116,191,201,.18)}
.atlas-wd-compare-meta{display:inline-flex;align-items:center;gap:10px;padding:10px 14px;border-radius:16px;background:#f7fafb;border:1px solid #e3edf1;color:#536d78;font-size:14px;font-weight:700;white-space:nowrap}
.atlas-wd-compare-status{display:flex;align-items:center;min-height:46px;padding:0 14px;border-radius:14px;background:#f8fbfc;color:#597280;font-size:14px;margin-bottom:16px;border:1px solid #edf3f6}
.atlas-wd-compare-status.is-error{background:#fff5f4;border-color:#ffd7d2;color:#a74343}
.atlas-wd-compare-status.is-success{background:#f2fbf7;border-color:#d6efe2;color:#176b4b}
.atlas-wd-compare-status.is-loading{background:#f4fbfd;border-color:#d6eaf0;color:#1b5f6a}
.atlas-wd-compare-results-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.atlas-wd-compare-results-head strong{font-size:18px;color:#213845}
.atlas-wd-compare-results-head span{font-size:13px;color:#738592}
.atlas-wd-compare-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.atlas-wd-compare-item{display:flex;flex-direction:column;justify-content:space-between;gap:14px;padding:18px;border:1px solid #e8eef2;border-radius:22px;background:#fff;box-shadow:0 8px 24px rgba(20,40,55,.05);transition:.2s;min-width:0}
.atlas-wd-compare-item:hover{transform:translateY(-2px);box-shadow:0 18px 40px rgba(20,40,55,.09);border-color:#d4e6ea}
.atlas-wd-compare-item.is-selected{background:linear-gradient(180deg,#f7fcfc 0%,#ffffff 100%);border-color:#bfe1e5}
.atlas-wd-compare-itemmedia{display:flex;align-items:center;justify-content:center;background:#f7fafb;border-radius:16px;padding:14px;min-height:220px}
.atlas-wd-compare-item img{width:100%;max-width:190px;height:190px;object-fit:contain;background:transparent}
.atlas-wd-compare-itembody{display:flex;flex-direction:column;gap:8px;min-width:0}
.atlas-wd-compare-itemname{margin:0;font-size:16px;font-weight:800;line-height:1.9;color:#223745;overflow-wrap:anywhere;min-height:62px}
.atlas-wd-compare-itemprice{font-size:14px;color:#58707e;font-weight:700}
.atlas-wd-compare-itemactions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto}
.atlas-wd-compare-add{display:inline-flex;align-items:center;justify-content:center;min-height:46px;width:100%;border:0;background:linear-gradient(180deg,#0d9cac 0%,#087f8d 100%);color:#fff;border-radius:14px;padding:11px 14px;cursor:pointer;font-weight:800;font-size:14px;box-shadow:0 10px 18px rgba(8,127,141,.22);transition:.2s}
.atlas-wd-compare-add:hover{transform:translateY(-1px);box-shadow:0 14px 22px rgba(8,127,141,.28)}
.atlas-wd-compare-add:disabled{opacity:.88;cursor:wait;transform:none}

@media(max-width:1100px){.atlas-wd-compare-results{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:740px){
 .atlas-wd-compare-picker-bar{display:grid;grid-template-columns:1fr;gap:10px}
 .atlas-wd-compare-open,.atlas-wd-compare-go-page{width:100%;justify-content:center}
 .atlas-wd-compare-window{padding:18px 16px 18px;border-radius:20px;width:min(100%,100%);min-height:auto}
 .atlas-wd-compare-heading-text strong{font-size:22px}
 .atlas-wd-compare-heading{align-items:center}
 .atlas-wd-compare-results{grid-template-columns:1fr;gap:14px}
 .atlas-wd-compare-itemmedia{min-height:170px}
 .atlas-wd-compare-item img{max-width:150px;height:150px}
 .atlas-wd-compare-itemname{font-size:15px;min-height:0}
 .atlas-wd-compare-toolbar{align-items:stretch}
 .atlas-wd-compare-searchbox{flex-basis:100%}
}

/* Global state for native compare buttons while request is sent */
.atlas-wd-compare-busy{opacity:.78;pointer-events:none}

/* Integrated comparison matrix: responsive, scoped to avoid WoodMart stock styles. */
.atlas-wd-compare-full{margin:10px 0 34px;direction:rtl;text-align:right;color:#263746}
.atlas-wd-compare-scroll{width:100%;overflow-x:auto;overflow-y:visible;overscroll-behavior-inline:contain;border:1px solid #dce5eb;border-radius:13px;background:#fff;scrollbar-color:#80b8c2 #eef3f5}
.atlas-wd-compare-scroll:focus{outline:2px solid #148c9c;outline-offset:2px}
.atlas-wd-compare-full table.atlas-wd-compare-table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:max-content;min-width:100%;margin:0;font-size:14px;line-height:1.8;background:#fff;color:#263746}
.atlas-wd-compare-full .atlas-wd-compare-table th,.atlas-wd-compare-full .atlas-wd-compare-table td{box-sizing:border-box;border:0;border-inline-start:1px solid #e8edf1;border-bottom:1px solid #e8edf1;padding:14px 15px;text-align:right;vertical-align:middle;white-space:normal;overflow-wrap:anywhere;min-width:215px;width:215px;background:#fff}
.atlas-wd-compare-full .atlas-wd-compare-table tr>*:first-child{min-width:204px;width:204px;max-width:204px;position:sticky;right:0;z-index:2;background:#f8fbfc;font-weight:650;border-inline-start:0;box-shadow:-2px 0 4px rgba(15,45,55,.025)}
.atlas-wd-compare-full .atlas-wd-compare-table thead th{vertical-align:top;background:#f8fbfc;border-bottom:2px solid #b8dce0}
.atlas-wd-compare-full .atlas-wd-compare-table thead tr>*:first-child{z-index:3}
.atlas-wd-compare-full .atlas-wd-compare-table tr:nth-child(even):not(.atlas-wd-compare-section):not(.atlas-wd-compare-group) td{background:#fcfdfd}
.atlas-wd-compare-full .atlas-wd-compare-table tr:last-child>td,.atlas-wd-compare-full .atlas-wd-compare-table tr:last-child>th{border-bottom:0}
.atlas-wd-compare-full .atlas-wd-compare-table .atlas-wd-compare-section th{position:static;max-width:none;width:auto;background:#087f8e!important;color:#fff;padding:12px 18px;font-size:15px;font-weight:750;border-bottom:0;box-shadow:none}
.atlas-wd-compare-full .atlas-wd-compare-table .atlas-wd-compare-group th{position:static;max-width:none;width:auto;background:#eaf6f8!important;color:#0a6673;font-weight:750;padding:10px 18px;border-bottom:1px solid #d6e9ed;box-shadow:none}
.atlas-wd-compare-full .atlas-wd-compare-product-head{position:relative}
.atlas-wd-compare-full .atlas-wd-compare-product-link{display:flex;align-items:center;flex-direction:column;text-align:center;gap:9px;color:inherit;text-decoration:none;line-height:1.7}
.atlas-wd-compare-full .atlas-wd-compare-product-link:hover{color:#088d9a;text-decoration:none}
.atlas-wd-compare-full .atlas-wd-compare-product-image{display:block;max-width:125px!important;width:125px!important;height:125px!important;object-fit:contain;border-radius:9px;background:#fff}
.atlas-wd-compare-full .atlas-wd-compare-product-name{display:block;font-size:14px;font-weight:700;min-height:42px}
.atlas-wd-compare-full .atlas-wd-compare-price{text-align:center;font-size:13px;color:#22505e;font-weight:700;margin-top:10px}
.atlas-wd-compare-full .atlas-wd-compare-remove{display:block;margin:0 auto 8px;border:0;border-radius:7px;padding:5px 11px;color:#a73838;background:#fff2f1;font-size:12px;line-height:1.6;cursor:pointer}
.atlas-wd-compare-full .atlas-wd-compare-remove:hover{background:#ffe4e1}
.atlas-wd-compare-full .atlas-wd-compare-remove:disabled{opacity:.5;cursor:wait}
.atlas-wd-compare-full .atlas-wd-compare-empty-cell{color:#9aa7b1}
.atlas-wd-compare-full .atlas-wd-spec-yes{color:#12734d;font-weight:700}
.atlas-wd-compare-full .atlas-wd-spec-no{color:#ad4343;font-weight:700}
.atlas-wd-compare-full .atlas-wd-compare-scroll-hint{font-size:12px;color:#6b7b88;padding-top:8px;margin:0}
.atlas-wd-compare-empty{background:#f6fbfc;border:1px dashed #b9dadf;border-radius:11px;padding:20px 24px;text-align:center;color:#486673;margin-bottom:25px}
.atlas-wd-compare-empty p{margin:0}
@media(max-width:700px){
 .atlas-wd-compare-full .atlas-wd-compare-table th,.atlas-wd-compare-full .atlas-wd-compare-table td{min-width:170px;width:170px;padding:12px 10px;font-size:13px}
 .atlas-wd-compare-full .atlas-wd-compare-table tr>*:first-child{min-width:135px;width:135px;max-width:135px}
 .atlas-wd-compare-full .atlas-wd-compare-product-image{width:104px!important;height:104px!important}
 .atlas-wd-compare-full .atlas-wd-compare-product-name{font-size:13px}
}

/* v1.4: modal is portalled to BODY to avoid Elementor/WoodMart transforms,
   off-canvas clipping and broken fixed-position containing blocks. */
html body > .atlas-wd-compare-modal,
html body > .atlas-wd-compare-modal[aria-modal="true"] {
 position:fixed!important;
 inset:0!important;
 width:100vw!important;
 max-width:none!important;
 height:100vh!important;
 height:100dvh!important;
 margin:0!important;
 padding:clamp(10px,2.5vw,28px)!important;
 display:flex!important;
 justify-content:center!important;
 align-items:center!important;
 transform:none!important;
 z-index:2147483000!important;
 box-sizing:border-box!important;
 overflow:hidden!important;
 direction:rtl!important;
 background:transparent!important;
}
html body > .atlas-wd-compare-modal[hidden] { display:none!important; }
html body > .atlas-wd-compare-modal .atlas-wd-compare-overlay {
 position:absolute!important;
 inset:0!important;
 width:100%!important;
 height:100%!important;
 margin:0!important;
 padding:0!important;
 border:0!important;
 border-radius:0!important;
 background:rgba(13,30,40,.64)!important;
 backdrop-filter:blur(4px);
 cursor:pointer;
}
html body > .atlas-wd-compare-modal .atlas-wd-compare-window {
 position:relative!important;
 top:auto!important;
 left:auto!important;
 right:auto!important;
 bottom:auto!important;
 display:block!important;
 flex:0 1 1120px!important;
 width:min(1120px, calc(100vw - 40px))!important;
 min-width:0!important;
 max-width:1120px!important;
 max-height:calc(100dvh - 36px)!important;
 height:auto!important;
 min-height:0!important;
 margin:0 auto!important;
 padding:clamp(18px,2.6vw,28px)!important;
 transform:none!important;
 box-sizing:border-box!important;
 overflow-x:hidden!important;
 overflow-y:auto!important;
 border:1px solid rgba(214,228,232,.9)!important;
 border-radius:24px!important;
 background:#fff!important;
 box-shadow:0 26px 80px rgba(0,0,0,.25)!important;
}
html body > .atlas-wd-compare-modal .atlas-wd-compare-results { width:100%!important; }
html body > .atlas-wd-compare-modal .atlas-wd-compare-item {
 width:auto!important;
 min-width:0!important;
 max-width:none!important;
 box-sizing:border-box!important;
 border-radius:18px!important;
}
/* WoodMart's global anchor/button style can override the label color. */
html body .atlas-wd-compare-add,
html body .atlas-wd-compare-add:hover,
html body .atlas-wd-compare-add:focus,
html body .atlas-wd-compare-add:active,
html body .atlas-wd-compare-add:disabled {
 color:#fff!important;
 background:linear-gradient(180deg,#0c9cac,#078293)!important;
 border:0!important;
 border-radius:999px!important;
 font-weight:800!important;
 text-shadow:none!important;
 opacity:1;
}
html body .atlas-wd-compare-open,
html body .atlas-wd-compare-open:hover,
html body .atlas-wd-compare-open:focus {
 border-radius:999px!important;
}
html body .atlas-wd-compare-plus { border-radius:50%!important; }
html body > .atlas-wd-compare-modal .atlas-wd-compare-term {
 border-radius:14px!important;
 box-sizing:border-box!important;
}
html body > .atlas-wd-compare-modal .atlas-wd-compare-close { border-radius:50%!important; }
@media(max-width:740px) {
 html body > .atlas-wd-compare-modal { padding:8px!important; }
 html body > .atlas-wd-compare-modal .atlas-wd-compare-window {
  width:calc(100vw - 16px)!important;
  max-height:calc(100dvh - 16px)!important;
  padding:16px!important;
  border-radius:18px!important;
 }
 html body > .atlas-wd-compare-modal .atlas-wd-compare-results { grid-template-columns:1fr!important; }
}

/* v1.4.1: Keep the search icon on the left in RTL mode, with room for text. */
html body .atlas-wd-compare-searchbox .atlas-wd-compare-searchicon {
    left: 16px !important;
    right: auto !important;
}
html body .atlas-wd-compare-searchbox input.atlas-wd-compare-term {
    padding-right: 16px !important;
    padding-left: 48px !important;
    text-align: right;
}
