/* NikDarman Smart Pairs 1.1.0: all styles prefixed to avoid changing WoodMart or NikDarman Tools. */
.ndsp-section{box-sizing:border-box;direction:rtl;text-align:right;background:#fff;border:1px solid #e7edf4;border-radius:15px;padding:18px;margin:22px 0;font-family:inherit;color:#102a43;box-shadow:0 5px 20px rgba(16,42,67,.035)}
.ndsp-section *,.ndsp-popup-root *{box-sizing:border-box}
.ndsp-heading{display:flex;gap:10px;align-items:center;margin-bottom:14px}
.ndsp-heading-icon{display:grid;place-items:center;flex:0 0 34px;height:34px;color:#102a43;background:#f8f4e8;border-radius:10px;font-size:22px}
.ndsp-heading-copy h3{font:inherit;font-size:16px;font-weight:800;line-height:1.7;margin:0;color:#102a43}
.ndsp-heading-copy p{font-size:11px;line-height:1.8;margin:2px 0 0;color:#778595}
.ndsp-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.ndsp-card{border:1px solid #edf1f6;border-radius:11px;min-width:0;padding:10px;background:#fff;display:flex;align-items:stretch;flex-direction:column;gap:6px;transition:border-color .2s,box-shadow .2s}
.ndsp-card:hover{border-color:#d4af37;box-shadow:0 4px 16px rgba(16,42,67,.06)}
.ndsp-picture{display:flex!important;align-items:center;justify-content:center;aspect-ratio:1/1;overflow:hidden;border-radius:8px;background:#f8fafc;margin-bottom:2px}
.ndsp-picture img{height:100%!important;width:100%!important;max-height:130px;object-fit:contain!important;margin:0!important;transform:none!important}
.ndsp-card-content{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}
.ndsp-name{font-size:12px!important;line-height:1.8!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:42px;color:#213b52!important;text-decoration:none!important}
.ndsp-price{margin-top:auto;min-height:24px;font-size:12px;font-weight:700;color:#102a43;text-align:left}
.ndsp-price del{font-size:10px;color:#a6b0b9;font-weight:400}.ndsp-price ins{text-decoration:none}
.ndsp-add,.ndsp-choose{all:unset;box-sizing:border-box!important;display:flex!important;align-items:center;justify-content:center;text-align:center;min-height:32px;gap:5px;cursor:pointer!important;border-radius:8px;background:#f6f7f8!important;color:#102a43!important;border:1px solid #dce4ec!important;font-family:inherit!important;font-size:11px!important;font-weight:700!important;line-height:1.7!important;padding:5px!important;transition:background .2s}
.ndsp-add:hover,.ndsp-choose:hover{background:#d4af37!important;border-color:#d4af37!important;color:#102a43!important}
.ndsp-add span:first-child{font-size:20px;line-height:.7}.ndsp-add.ndsp-added{background:#edf7ed!important;border-color:#bcdac0!important}
.ndsp-add:disabled{opacity:.65;cursor:wait!important}.ndsp-feedback{font-size:11px;color:#238052;min-height:0;margin-top:6px}.ndsp-feedback:empty{display:none}
.ndsp-mount:empty{display:none}
.ndsp-mount[data-loading="1"]:empty{min-height:1px}
/* Independent post-add bottom-up panel; never inserted into the WoodMart side cart. */
.ndsp-popup-root[hidden]{display:none!important}
.ndsp-popup-root{position:fixed!important;inset:0;z-index:2147483000!important;direction:rtl;font-family:inherit;color:#102a43;text-align:right;pointer-events:none}
.ndsp-popup-backdrop{position:absolute;inset:0;background:rgba(16,42,67,.26);opacity:0;transition:opacity .28s ease;pointer-events:none}
.ndsp-popup-panel{position:absolute;left:18px;top:clamp(80px,14vh,155px);bottom:18px;width:min(408px,calc(100vw - 36px));border-radius:17px;background:#fff;box-shadow:0 16px 56px rgba(15,32,50,.24);overflow:hidden;display:flex;flex-direction:column;transform:translateY(calc(100vh + 80px));transition:transform .33s cubic-bezier(.2,.83,.29,1);direction:rtl;outline:0;pointer-events:auto;border:1px solid #e7edf4}
.ndsp-popup-open{pointer-events:auto}
.ndsp-popup-open .ndsp-popup-backdrop{opacity:1;pointer-events:auto}
.ndsp-popup-open .ndsp-popup-panel{transform:translateY(0)}
body.ndsp-popup-lock{overflow:hidden!important}
.ndsp-popup-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;background:#fff;border-bottom:1px solid #e9edf3;min-height:88px;padding:17px 17px 12px;flex-shrink:0}
.ndsp-popup-success{display:flex;align-items:flex-start;gap:10px;min-width:0}
.ndsp-success-mark{width:29px;height:29px;flex:0 0 29px;background:#eaf7ec;color:#218642;display:grid;place-items:center;border-radius:50%;font-size:18px;font-weight:800}
.ndsp-popup-success strong{color:#218642;font-size:15px;line-height:1.8;font-weight:800}
.ndsp-popup-success p{font-size:11px;color:#7b8796;margin:1px 0 0;line-height:1.8}
.ndsp-popup-close{all:unset;cursor:pointer;display:grid;place-items:center;width:32px;height:32px;flex:0 0 32px;border-radius:9px;background:#f2f4f7!important;color:#34465c!important;font:normal 28px/1 Arial,sans-serif!important}
.ndsp-popup-close:hover{background:#e7ebf0!important}
.ndsp-popup-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d0d9e1 transparent}
.ndsp-popup-results{padding:0 16px 14px;min-height:140px}
.ndsp-popup-loading,.ndsp-empty{font-size:12px;color:#617489;line-height:2.3;margin:20px 4px;text-align:center}
.ndsp-popup-bottom{display:flex;align-items:center;gap:9px;padding:13px 16px;background:#fff;border-top:1px solid #e9edf3;flex-shrink:0}
.ndsp-popup-cart,.ndsp-popup-continue{all:unset;box-sizing:border-box!important;display:flex!important;align-items:center;justify-content:center;min-height:40px;padding:8px 12px!important;border-radius:9px!important;font-size:12px!important;font-weight:700!important;font-family:inherit!important;cursor:pointer;text-align:center!important;gap:7px;text-decoration:none!important}
.ndsp-popup-cart{flex:1;background:#102a43!important;color:white!important}
.ndsp-popup-cart:hover{background:#173b5c!important;color:white!important}
.ndsp-popup-continue{background:#f5f7fa!important;color:#233a4e!important;border:1px solid #e2e7ee!important}
.ndsp-popup-results .ndsp-section{border:0!important;padding:0!important;border-radius:0!important;margin:0!important;box-shadow:none!important;background:transparent!important}
.ndsp-popup-results .ndsp-heading{margin:0;padding:17px 0 12px;gap:8px;align-items:flex-start}
.ndsp-popup-results .ndsp-heading-icon{width:26px;height:26px;flex-basis:26px;border-radius:7px;font-size:16px}
.ndsp-popup-results .ndsp-heading-copy h3{font-size:13px!important;font-weight:800!important;line-height:1.6!important}
.ndsp-popup-results .ndsp-heading-copy p{font-size:10px!important;line-height:1.9!important}
.ndsp-popup-results .ndsp-products{display:flex!important;flex-direction:column;gap:0}
.ndsp-popup-results .ndsp-card{display:grid!important;grid-template-columns:76px minmax(0,1fr) 35px;align-items:center;column-gap:10px;min-height:102px;border:0!important;border-top:1px solid #edf1f5!important;border-radius:0!important;padding:10px 0!important;box-shadow:none!important;background:transparent!important}
.ndsp-popup-results .ndsp-card:hover{background:#fbfcff!important}
.ndsp-popup-results .ndsp-picture{width:76px;height:76px;aspect-ratio:1/1!important;margin:0!important;border-radius:10px}
.ndsp-popup-results .ndsp-picture img{max-height:72px!important;object-fit:contain!important}
.ndsp-popup-results .ndsp-card-content{min-width:0;gap:2px;align-self:stretch;justify-content:space-between}
.ndsp-popup-results .ndsp-name{min-height:0!important;font-size:11px!important;line-height:1.9!important;font-weight:600!important;max-height:45px}
.ndsp-popup-results .ndsp-price{font-size:11px!important;min-height:0!important;margin-top:4px!important;text-align:right!important;font-weight:800!important;line-height:1.8!important}
.ndsp-popup-results .ndsp-price del{display:inline-block;margin-left:4px}
.ndsp-popup-results .ndsp-add{width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;border-radius:50%!important;background:#fff!important;border:1px solid #d4af37!important;color:#102a43!important;align-self:center}
.ndsp-popup-results .ndsp-add:hover{background:#d4af37!important}
.ndsp-popup-results .ndsp-add-label{display:none!important}
.ndsp-popup-results .ndsp-choose{width:48px!important;min-height:34px!important;padding:4px!important;line-height:1.5!important;font-size:9px!important;justify-self:end}
.ndsp-popup-results .ndsp-feedback{font-size:10px!important}
.ndsp-popup-root a:focus-visible,.ndsp-popup-root button:focus-visible{outline:2px solid #d4af37!important;outline-offset:2px!important}
@media(max-width:767px){
 .ndsp-section{padding:12px;margin:14px 0;border-radius:10px}.ndsp-heading-copy h3{font-size:14px}.ndsp-heading-copy p{font-size:10px}.ndsp-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ndsp-card{padding:8px}.ndsp-picture img{max-height:120px}
 .ndsp-popup-panel{left:0;right:0;top:auto;bottom:0;width:100%;height:min(82dvh,770px);max-height:90vh;border-radius:20px 20px 0 0;border-bottom:0}
 .ndsp-popup-top{min-height:78px;padding:15px 14px 11px}.ndsp-popup-bottom{padding:10px 12px max(12px,env(safe-area-inset-bottom))}
 .ndsp-popup-results{padding:0 13px 12px}.ndsp-popup-results .ndsp-card{grid-template-columns:72px minmax(0,1fr) 34px;column-gap:8px}
 .ndsp-popup-results .ndsp-picture{width:72px;height:72px}.ndsp-popup-results .ndsp-picture img{max-height:70px}
}
@media(prefers-reduced-motion:reduce){.ndsp-popup-panel,.ndsp-popup-backdrop{transition:none!important}}
