.sbffc-root.sbfg-refined{--sbffc-pin-bg:#f1f5f9;--sbffc-pin-text:#1f2937;color:#1f2937;background:#fff;border:1px solid #e2e8f0;border-radius:6px}.sbfg-refined .sbffc-toolbar-inner{background:#fff!important;gap:8px!important;padding:10px!important}.sbfg-refined .sbffc-year-filter-button,.sbfg-refined .sbffc-tab{background:#fff!important;color:#334155!important;border:1px solid #cbd5e1!important;box-shadow:none!important;min-height:44px}.sbfg-refined .sbffc-year-filter-button.is-active,.sbfg-refined .sbffc-tab.is-active,.sbfg-refined .sbffc-tab[aria-selected="true"]{background:#eff6ff!important;color:#1d4ed8!important;border-color:#2563eb!important}.sbfg-refined .sbffc-year-eye,.sbfg-refined .sbffc-group-icon{display:none!important}.sbfg-refined .sbffc-group-header-cell,.sbfg-refined .sbffc-group-toggle-button{background:#f1f5f9!important;color:#1f2937!important;box-shadow:none!important}.sbfg-refined .sbffc-group-toggle-button{min-height:44px!important;font-size:16px!important}.sbfg-refined .sbffc-product-header-cell{background:#f8fafc!important;color:#1f2937!important;border-color:#e2e8f0!important}.sbfg-refined .sbffc-product-header-cell.is-current{background:#eff6ff!important}.sbfg-refined .sbffc-feature-name-cell{background:#f8fafc!important;color:#334155!important}.sbfg-refined .sbffc-feature-value-cell{background:#fff!important;color:#1f2937!important}.sbfg-refined .sbffc-feature-value-cell.is-current{background:#f8fbff!important}.sbfg-refined .sbffc-product-label{--sbfg-head-fs:15px!important;font-size:15px!important;line-height:1.7!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;height:auto!important;max-height:none!important;display:block!important}.sbfg-refined .sbffc-product-card,.sbfg-refined .sbffc-product-header-row{height:auto!important;max-height:none!important}.sbfg-refined .sbffc-col-toggle{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;border-radius:4px!important}.sbfg-refined .sbffc-product-card-bar{min-height:44px;position:static!important}.sbfg-refined .sbffc-value-chip{background:transparent!important;border:0!important;box-shadow:none!important}.sbfg-refined .sbffc-search-input{font-size:17px!important;min-height:44px!important}.sbfg-refined .sbffc-toolbar-inner button{min-height:44px;padding:6px 10px}.sbfg-refined .sbfg-more{min-height:44px;padding:6px 12px;color:#1d4ed8}.sbfg-dimensions{display:flex;flex-wrap:wrap;gap:12px;padding:10px;background:#fff;border-block:1px solid #e2e8f0}.sbfg-dimensions label{display:flex;align-items:center;gap:8px;margin:0}.sbfg-dimensions select{min-height:44px;max-width:260px;border:1px solid #cbd5e1;border-radius:4px;background:#fff;color:#1f2937;padding:6px;font-size:17px}.sbfg-refined :is(button,input,select):focus-visible{outline:2px solid #2563eb!important;outline-offset:2px}@media(max-width:767.98px){.sbfg-refined .sbffc-product-label{font-size:15px!important}.sbfg-refined .sbffc-feature-value-content{font-size:15px!important;line-height:1.8!important}.sbfg-refined .sbffc-tab{min-width:150px;white-space:normal;font-size:15px!important;line-height:1.7;padding:8px 12px!important}.sbfg-refined .sbffc-tabs{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.sbfg-refined[data-mobile-tabs="1"] .sbfg-dimensions{display:none}.sbfg-dimensions label{flex:1 1 100%;justify-content:space-between}.sbfg-dimensions select{width:65%}}

/* v1.8.7 - place the collapse/expand control INSIDE each column header,
   away from neighbouring cells; keep the configured feature heading legible. */
.sbffc-root:not(.sbffc-single-root) .sbffc-product-header-cell .sbffc-product-card{position:relative!important;padding-inline-end:34px!important;min-height:38px!important}
.sbffc-root:not(.sbffc-single-root) .sbffc-product-header-cell .sbffc-product-card-bar{position:absolute!important;top:6px!important;inset-inline-end:5px!important;inset-inline-start:auto!important;transform:none!important;width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;z-index:4!important;display:flex!important;align-items:center!important;justify-content:center!important}
.sbffc-root:not(.sbffc-single-root) .sbffc-product-header-cell .sbffc-col-toggle{width:25px!important;height:25px!important;min-width:25px!important;min-height:25px!important;border-radius:6px!important;padding:0!important;box-shadow:0 1px 3px rgba(15,23,42,.08)!important}
.sbffc-root:not(.sbffc-single-root) .sbffc-product-header-cell .sbffc-col-toggle svg{width:13px!important;height:13px!important}
.sbffc-root:not(.sbffc-single-root) .sbffc-product-header-cell .sbffc-product-label{overflow-wrap:break-word!important;word-break:normal!important;line-height:1.45!important;min-width:0!important}
@media(max-width:767.98px){.sbffc-root:not(.sbffc-single-root) .sbffc-product-header-cell .sbffc-product-card{padding-inline-end:30px!important;padding-inline-start:4px!important;min-height:34px!important}.sbffc-root:not(.sbffc-single-root) .sbffc-product-header-cell .sbffc-product-card-bar{top:5px!important;inset-inline-end:4px!important}.sbffc-root:not(.sbffc-single-root) .sbffc-product-header-cell .sbffc-col-toggle{width:23px!important;height:23px!important;min-width:23px!important;min-height:23px!important}.sbffc-root:not(.sbffc-single-root) .sbffc-product-header-cell .sbffc-product-label{font-size:13px!important}}

/* 1.8.9: two balanced dimension filters on mobile, only for the family comparison.
   Keep the existing JS and all desktop rules unchanged. */
@media (max-width:767.98px) {
  html body .sbffc-root[data-role="comparison-root"] .sbfg-dimensions {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    align-items:stretch;
    width:100%;
    min-width:0;
    padding:8px;
    box-sizing:border-box;
  }
  html body .sbffc-root[data-role="comparison-root"] .sbfg-dimensions > label {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:5px;
    min-width:0;
    width:100%;
    margin:0;
    font-size:13px;
    line-height:1.4;
    font-weight:600;
  }
  html body .sbffc-root[data-role="comparison-root"] .sbfg-dimensions > label > span {
    display:block;
    min-width:0;
    white-space:normal;
    overflow-wrap:normal;
  }
  html body .sbffc-root[data-role="comparison-root"] .sbfg-dimensions > label > select {
    display:block;
    flex:0 0 auto;
    width:100%;
    max-width:100%;
    min-width:0;
    min-height:42px;
    margin:0;
    box-sizing:border-box;
    font-size:17px;
  }
  /* A single available dimension should not create an empty half row. */
  html body .sbffc-root[data-role="comparison-root"] .sbfg-dimensions > label:only-child {
    grid-column:1/-1;
  }
}


