/* SmartBalance: compare controls and mobile product actions */
:root { --sb-compare-red:#f93133; --sb-compare-blue:#0c489f; }
.sb-in-compare { background:var(--sb-compare-red)!important; border-color:var(--sb-compare-red)!important; color:#fff!important; }
.rm-module-buttons button.sb-in-compare span,
.rm-product-top-button.sb-in-compare .rm-product-top-button-icon { background:#fff!important; }
.rm-product-top-button.sb-in-compare .rm-product-top-button-text { color:#fff!important; }
.rm-module-buttons.sb-has-compared { opacity:1!important; }
[aria-busy="true"].sb-in-compare { cursor:wait; }
@media(max-width:991.98px) {
    #product-product .rm-product-top { flex-direction:column!important; align-items:stretch!important; }
    #product-product .sb-product-top-actions { display:flex!important; width:100%; padding:8px 0 14px; margin:0; gap:16px; justify-content:flex-start; }
    #product-product .sb-product-top-actions .rm-product-top-button { flex:0 1 auto; min-width:0; width:auto; margin:0; padding:8px 0; min-height:36px; border:0!important; background:transparent!important; color:#656c7d!important; }
    #product-product .sb-product-top-actions .rm-product-top-button-icon { flex-shrink:0; background:#656c7d!important; }
    #product-product .sb-product-top-actions .rm-product-top-button-text { margin-left:7px; font-size:12px; line-height:16px; color:#656c7d!important; }
    #product-product .sb-product-top-actions .sb-in-compare .rm-product-top-button-icon,
    #product-product .sb-product-top-actions .sb-in-wishlist .rm-product-top-button-icon { background:var(--sb-compare-red)!important; }
    #product-product .rm-product-mobile-fixed button.compare,
    #product-product .rm-product-mobile-fixed button.wishlist { background:transparent!important; border-color:transparent!important; color:#656c7d!important; }
    #product-product .rm-product-mobile-fixed button.compare .rm-btn-icon,
    #product-product .rm-product-mobile-fixed button.wishlist .rm-btn-icon { display:inline-block; vertical-align:middle; background:#656c7d!important; mask-repeat:no-repeat; mask-position:center; mask-size:contain; -webkit-mask-repeat:no-repeat; -webkit-mask-position:center; -webkit-mask-size:contain; }
    #product-product .rm-product-mobile-fixed button.compare .rm-btn-icon { width:14px; height:14px; mask-image:url('../img/fixed-product-button-compare-icon.svg'); -webkit-mask-image:url('../img/fixed-product-button-compare-icon.svg'); }
    #product-product .rm-product-mobile-fixed button.wishlist .rm-btn-icon { width:17px; height:14px; mask-image:url('../img/fixed-product-button-wishlist-icon.svg'); -webkit-mask-image:url('../img/fixed-product-button-wishlist-icon.svg'); }
    #product-product .rm-product-mobile-fixed button.compare img,
    #product-product .rm-product-mobile-fixed button.wishlist img { opacity:0; }
    #product-product .rm-product-mobile-fixed .sb-in-compare .rm-btn-icon,
    #product-product .rm-product-mobile-fixed .sb-in-wishlist .rm-btn-icon { background:var(--sb-compare-red)!important; }
}
/* Comparison table: one-sided borders, no collapsed borders or shadow seams. */
#product-compare { --sb-grid:#e3e5e8; --sb-head:#f7f8fa; --sb-row:#f0f1f3; }
#product-compare .sb-compare-toolbar { display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; margin-bottom:14px; }
#product-compare .sb-compare-toolbar .rm-content-title { margin:0; }
#product-compare .sb-compare-switch { display:inline-flex; max-width:100%; border:1px solid var(--sb-grid); border-radius:7px; padding:3px; gap:3px; }
#product-compare .sb-compare-switch button { border:0; border-radius:5px; padding:8px 11px; background:#fff; color:#333; font-size:13px; line-height:18px; }
#product-compare .sb-compare-switch button[aria-pressed="true"] { background:var(--sb-compare-blue); color:#fff; }
#product-compare .sb-compare-clear { border:0; background:transparent; color:var(--sb-compare-red); padding:8px 0; text-decoration:underline; font-size:13px; }
#product-compare .sb-compare-scroll { overflow-x:auto; max-width:100%; position:relative; isolation:isolate; }
#product-compare .sb-compare-table { width:100%; border:0!important; border-collapse:separate!important; border-spacing:0; margin:0; font-size:14px; color:#656c7d; }
#product-compare .sb-compare-table thead, #product-compare .sb-compare-table tbody, #product-compare .sb-compare-table tr { border:0!important; }
#product-compare .sb-compare-table tr > th, #product-compare .sb-compare-table tr > td { box-sizing:border-box; min-width:180px; padding:13px 14px; vertical-align:middle!important; border:0!important; border-right:1px solid var(--sb-grid)!important; border-bottom:1px solid var(--sb-grid)!important; background:#fff!important; box-shadow:none!important; overflow-wrap:anywhere; }
#product-compare .sb-compare-table tr > :first-child { border-left:1px solid var(--sb-grid)!important; }
#product-compare .sb-compare-table th, #product-compare .sb-compare-table td:first-child { font-weight:500; color:#272323; }
#product-compare .sb-compare-table tr > :first-child:not([colspan]) { position:sticky; left:0; z-index:2; min-width:160px; width:180px; }
#product-compare .sb-compare-table thead { position:relative; z-index:4; }
#product-compare .sb-compare-table thead tr > th { position:relative; background:var(--sb-head)!important; border-top:1px solid var(--sb-grid)!important; padding:13px 28px 13px 12px; font-size:14px; line-height:20px; }
#product-compare .sb-compare-table thead tr > :first-child { z-index:5; padding-right:12px; }
#product-compare .sb-compare-table thead .rm-table-product-name > a:not(.sb-compare-product-remove) { color:var(--sb-compare-blue); text-decoration:none; }
#product-compare .sb-compare-table thead .rm-table-product-name > a:not(.sb-compare-product-remove):hover { text-decoration:underline; }
#product-compare .sb-compare-product-remove { position:absolute; top:3px; right:3px; width:24px; height:24px; line-height:23px; text-align:center; font-size:21px; color:#777; text-decoration:none; border-radius:5px; }
#product-compare .sb-compare-product-remove:hover, #product-compare .sb-compare-product-remove:focus { background:var(--sb-compare-red); color:#fff; }
#product-compare .sb-compare-table .sb-compare-group > td { background:var(--sb-head)!important; font-weight:600; color:#272323; }
#product-compare .sb-compare-table .sb-compare-group strong { position:sticky; left:12px; display:inline-block; }
#product-compare .sb-compare-table img { border:0; max-width:100%; height:auto; }
#product-compare .sb-compare-table .rm-module-price-old, #product-compare .sb-compare-table .rm-module-price-actual { display:inline-block; margin:2px 3px; white-space:nowrap; }
#product-compare .sb-compare-table .rm-table-compare-btn .rm-btn.red { background:var(--sb-compare-red); border-color:var(--sb-compare-red); }
#product-compare .sb-compare-table [hidden] { display:none!important; }
#product-compare .sb-compare-table .sb-compare-attribute.sb-row-active > *, #product-compare .sb-compare-table .sb-compare-attribute:focus-visible > * { background:var(--sb-row)!important; }
@media(hover:hover) { #product-compare .sb-compare-table .sb-compare-attribute:hover > * { background:var(--sb-row)!important; } }
@media(max-width:767.98px) {
    #product-compare .sb-compare-table tr > th, #product-compare .sb-compare-table tr > td { min-width:145px; padding:10px; font-size:12px; line-height:18px; }
    #product-compare .sb-compare-table tr > :first-child:not([colspan]) { min-width:105px; width:105px; max-width:105px; }
    #product-compare .sb-compare-table thead tr > th { font-size:12px; line-height:17px; padding:10px 25px 10px 8px; }
    #product-compare .sb-compare-table thead tr > :first-child { padding-right:8px; }
    #product-compare .sb-compare-table .sb-compare-group strong { left:10px; }
    #product-compare .sb-compare-table img { max-width:125px; height:auto; }
    #product-compare .sb-compare-table .rm-btn { padding:0 8px; }
    #product-compare .sb-compare-toolbar { gap:8px; }
    #product-compare .sb-compare-switch button { padding:8px; }
}
