/* HRB Unified Product Comparison v1.1 — isolated from global header/footer. */
.hrbcmp-category-row,.hrbcmp-page,.hrbcmp-tray{--cmp-blue:#005bac;--cmp-ink:#102f4f;--cmp-line:#d9e7f3;--cmp-pale:#f1f7fc;--cmp-muted:#69839b;color:var(--cmp-ink);font-family:inherit;box-sizing:border-box}
.hrbcmp-category-row *,.hrbcmp-page *,.hrbcmp-tray *{box-sizing:border-box}
.hrbcmp-category-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;flex-wrap:wrap}
.hrbcmp-category-badge{min-width:0}
.hrbcmp-single-toggle{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-size:13px;font-weight:600;color:var(--cmp-blue);cursor:pointer;margin-left:auto}
.hrbcmp-single-toggle input{width:16px;height:16px;accent-color:var(--cmp-blue)}
.hrbcmp-tray[hidden]{display:none!important}
.hrbcmp-tray{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);width:min(760px,calc(100vw - 28px));max-height:min(82vh,720px);overflow:auto;background:#fff;border:1px solid #d3e4f3;border-radius:11px;box-shadow:0 12px 44px rgba(7,43,76,.18);z-index:9995;padding:15px;font-size:13px}
.hrbcmp-tray-head{display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:11px}
.hrbcmp-tray-head strong{font-size:14px;color:#0e3153}
.hrbcmp-muted{font-size:11px;color:var(--cmp-muted)}
.hrbcmp-tray button,.hrbcmp-page button{cursor:pointer;font:inherit}
.hrbcmp-link{border:0!important;background:transparent!important;color:var(--cmp-blue)!important;font-size:12px!important;padding:4px!important;text-decoration:underline!important}
.hrbcmp-tray-body{display:flex;gap:12px;align-items:center}
.hrbcmp-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;flex:1}
.hrbcmp-slot{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:1px solid #d6e5f1;border-radius:7px;min-height:73px;min-width:0;padding:7px;background:#fafdff;font-size:11px;text-align:center}
.hrbcmp-slot strong{font-size:11px;color:#0e3153;overflow-wrap:anywhere}
.hrbcmp-slot img{width:38px;height:38px;object-fit:contain}
.hrbcmp-slot-empty{border:1px dashed #bed9ed!important;background:#f0f7fe!important;color:var(--cmp-blue)!important;font-weight:700!important}
.hrbcmp-remove{position:absolute;top:1px;right:3px;background:transparent!important;border:0!important;color:var(--cmp-blue)!important;font-size:18px!important;padding:2px 4px!important;line-height:1!important}
.hrbcmp-tray-actions{display:flex;flex-direction:column;gap:5px;min-width:108px}
.hrbcmp-btn{display:inline-flex;justify-content:center;align-items:center;border:1px solid #bdd6e9!important;background:#fff!important;color:var(--cmp-blue)!important;border-radius:5px;padding:9px 11px;font-size:12px;font-weight:700;text-decoration:none!important;line-height:1.3}
.hrbcmp-primary{background:var(--cmp-blue)!important;border-color:var(--cmp-blue)!important;color:#fff!important}
.hrbcmp-btn.is-disabled,.hrbcmp-btn:disabled{opacity:.45;cursor:not-allowed}
.hrbcmp-picker{border-top:1px solid var(--cmp-line);padding-top:14px;margin-top:14px}
.hrbcmp-picker-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.hrbcmp-picker-head strong{font-size:13px}
.hrbcmp-picker-input{width:100%;height:42px;padding:10px 12px!important;border:1px solid #a8cde7!important;border-radius:6px!important;font-size:13px!important;background:#fff!important;color:var(--cmp-ink)!important}
.hrbcmp-picker>.hrbcmp-muted{display:block;margin:7px 0}
.hrbcmp-picker-results{display:grid;gap:6px;max-height:250px;overflow:auto}
.hrbcmp-result{display:flex;align-items:center;gap:10px;width:100%;border:1px solid var(--cmp-line)!important;background:#fff!important;border-radius:5px;padding:7px 10px!important;text-align:left;color:var(--cmp-ink)!important}
.hrbcmp-result:hover{background:var(--cmp-pale)!important}
.hrbcmp-result .hrbcmp-image{width:40px;height:40px;object-fit:contain}
.hrbcmp-result-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.hrbcmp-result-info strong{font-size:13px}.hrbcmp-result-info small{font-size:11px;color:var(--cmp-muted)}
.hrbcmp-result-add{font-size:12px;color:var(--cmp-blue);font-weight:700}
.hrbcmp-image-placeholder{display:inline-grid;place-items:center;color:#9ab4c8;font-size:28px;min-height:35px}
.hrbcmp-message{color:#557a96;font-size:12px;margin:8px 0}
.hrbcmp-page{width:min(1250px,calc(100% - 44px));margin:40px auto 75px;font-size:14px}
.hrbcmp-page-head{margin-bottom:23px}
.hrbcmp-eyebrow{font-size:12px;font-weight:800;color:var(--cmp-blue);letter-spacing:.08em;margin:0 0 8px}
.hrbcmp-page .hrbcmp-page-head h1{font-size:clamp(30px,3vw,38px)!important;font-weight:800;color:#0b2b50;margin:0 0 9px;line-height:1.2}
.hrbcmp-page-head>p:last-child{color:#597a98;font-size:14px;margin:0}
.hrbcmp-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:13px 15px;background:var(--cmp-pale);border:1px solid var(--cmp-line);border-radius:8px;margin-bottom:14px}
.hrbcmp-toolbar-left,.hrbcmp-toolbar-right{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.hrbcmp-diff-label{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;cursor:pointer}
.hrbcmp-diff-label input{width:16px;height:16px;accent-color:var(--cmp-blue)}
.hrbcmp-page .hrbcmp-picker{background:#fff;border:1px solid var(--cmp-line);border-radius:8px;padding:15px;margin:0 0 16px}
.hrbcmp-empty{border:1px dashed #cbdfee;border-radius:8px;background:#f7fbff;padding:32px;text-align:center;color:#67849d}
.hrbcmp-table-scroll{border:1px solid var(--cmp-line);border-radius:8px;overflow:auto}
.hrbcmp-table{width:100%;min-width:calc(165px + 210px * var(--hrbcmp-count,2));table-layout:fixed;border-collapse:collapse;font-size:13px;margin:0!important}
.hrbcmp-table th,.hrbcmp-table td{border:1px solid var(--cmp-line)!important;padding:12px!important;text-align:left!important;vertical-align:middle!important;overflow-wrap:anywhere;color:var(--cmp-ink)}
.hrbcmp-table thead th{background:#fff!important;vertical-align:top!important;text-align:center!important}
.hrbcmp-table thead th:first-child,.hrbcmp-table tbody tr:not(.hrbcmp-section)>th{background:var(--cmp-pale)!important;width:165px;font-weight:700;position:sticky;left:0;z-index:2;text-align:left!important}
.hrbcmp-table tbody tr:nth-child(even):not(.hrbcmp-section) td{background:#f8fbff}
.hrbcmp-table .hrbcmp-section th{background:#e4f1fc!important;color:var(--cmp-blue)!important;font-weight:800}
.hrbcmp-column{display:flex;flex-direction:column;align-items:center;gap:8px;position:relative;min-height:270px}
.hrbcmp-column .hrbcmp-image{width:min(100%,160px);height:135px;object-fit:contain}
.hrbcmp-column .hrbcmp-image-placeholder{height:135px}
.hrbcmp-column .hrbcmp-model{font-size:18px;font-weight:800;color:var(--cmp-blue)!important;text-decoration:none}
.hrbcmp-product-title{font-size:12px;color:var(--cmp-muted);min-height:30px}
.hrbcmp-column .hrbcmp-btn{width:100%;max-width:190px}
.hrbcmp-footnote{font-size:12px;color:var(--cmp-muted);margin:14px 0}
/* Hide the obsolete v2 floating tray if an older comparison snippet remains enabled. Disable that snippet after testing v1.1. */
body.hrbcmp-unified-active #hrb-pcmp-tray{display:none!important}
@media(max-width:800px){.hrbcmp-tray{bottom:10px;padding:11px}.hrbcmp-tray-body{flex-direction:column;align-items:stretch}.hrbcmp-tray-actions{flex-direction:row;justify-content:flex-end}.hrbcmp-page{width:calc(100% - 26px);margin:26px auto 50px}.hrbcmp-toolbar{align-items:flex-start;flex-direction:column}.hrbcmp-table{min-width:calc(125px + 180px * var(--hrbcmp-count,2))}.hrbcmp-table thead th:first-child,.hrbcmp-table tbody tr:not(.hrbcmp-section)>th{width:125px}.hrbcmp-column .hrbcmp-image{height:95px}.hrbcmp-column{min-height:230px}}
@media(max-width:480px){.hrbcmp-tray-head{flex-wrap:wrap;gap:4px}.hrbcmp-slots{grid-template-columns:repeat(2,minmax(0,1fr))}.hrbcmp-slot{min-height:55px}.hrbcmp-result .hrbcmp-image{width:30px;height:30px}.hrbcmp-page .hrbcmp-page-head h1{font-size:28px!important}}
@page{size:A4 landscape;margin:12mm}
@media print{
  body.hrbcmp-unified-active :is(#wpadminbar,header,footer,nav,#hrbcmp-tray,.hrbcmp-no-print,.hrbcmp-picker,.hrbcmp-column .hrbcmp-btn,.hrbcmp-column .hrbcmp-remove){display:none!important}
  body.hrbcmp-unified-active *:has(> #hrbcmp-page){overflow:visible!important;position:static!important;transform:none!important;max-height:none!important}
  .hrbcmp-page{width:100%!important;margin:0!important;padding:0!important}
  .hrbcmp-table-scroll{overflow:visible!important;border:0!important}
  .hrbcmp-table{min-width:0!important;table-layout:fixed;font-size:10px}
  .hrbcmp-table th,.hrbcmp-table td{padding:6px!important}
  .hrbcmp-table thead th:first-child,.hrbcmp-table tbody tr:not(.hrbcmp-section)>th{position:static!important;width:20%!important}
  .hrbcmp-column{min-height:0;gap:4px}.hrbcmp-column .hrbcmp-image{height:60px}.hrbcmp-column .hrbcmp-model{font-size:13px}
  .hrbcmp-page-head{margin-bottom:12px}.hrbcmp-page-head h1{font-size:24px!important}
  .hrbcmp-table thead{display:table-header-group}.hrbcmp-table tr{break-inside:avoid}
}

/* v1.4.0 comparison layout: wide, consistent with the product directory. */
.hrbcmp-page {
  position:relative;left:50%;transform:translateX(-50%);
  width:min(1520px,calc(100vw - 56px))!important;
  max-width:none!important;
  margin:36px 0 62px!important;
}
.hrbcmp-table-scroll {width:100%}
.hrbcmp-table {min-width:calc(165px + 210px * var(--hrbcmp-count,2))}
@media(max-width:800px){.hrbcmp-page{width:calc(100vw - 28px)!important;margin:22px 0 38px!important}}

/* The print sheet is built from comparison data only; the website UI is never printed. */
#hrbcmp-print-sheet {display:none!important}
@page {size:A4 landscape;margin:11mm}
@media print {
  body.hrbcmp-unified-active.hrbcmp-print-mode {display:block!important;background:#fff!important;color:#172c40!important;margin:0!important;padding:0!important;min-height:0!important}
  body.hrbcmp-unified-active.hrbcmp-print-mode > :not(#hrbcmp-print-sheet) {display:none!important}
  body.hrbcmp-unified-active.hrbcmp-print-mode #hrbcmp-print-sheet {
    display:block!important;position:static!important;transform:none!important;
    width:100%!important;max-width:none!important;min-height:0!important;
    margin:0!important;padding:0!important;background:#fff!important;
    color:#162f46!important;font:10px/1.4 Arial,Helvetica,sans-serif!important;
    break-inside:auto!important;
  }
  #hrbcmp-print-sheet * {box-sizing:border-box!important;visibility:visible!important}
  #hrbcmp-print-sheet .hrbcmp-print-head {
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    gap:22px!important;border-bottom:2px solid #005bac!important;padding:0 0 11px!important;margin:0 0 10px!important;
  }
  #hrbcmp-print-sheet .hrbcmp-print-logo {width:240px!important;max-height:50px!important;object-fit:contain!important;object-position:left center!important}
  #hrbcmp-print-sheet .hrbcmp-print-title {text-align:right!important}
  #hrbcmp-print-sheet h1 {color:#0a365c!important;font:700 21px/1.2 Arial,sans-serif!important;margin:0 0 3px!important}
  #hrbcmp-print-sheet .hrbcmp-print-title p {font-size:11px!important;color:#4c6b84!important;margin:0!important}
  #hrbcmp-print-sheet .hrbcmp-print-contact {display:flex!important;flex-wrap:wrap!important;gap:5px 18px!important;padding:0 0 12px!important;font-size:9.5px!important;color:#355771!important}
  #hrbcmp-print-sheet .hrbcmp-print-contact strong {color:#0a365c!important}
  #hrbcmp-print-sheet table {width:100%!important;table-layout:fixed!important;border-collapse:collapse!important;margin:0!important;font:9.3px/1.25 Arial,sans-serif!important}
  #hrbcmp-print-sheet th,#hrbcmp-print-sheet td {padding:5px 8px!important;border:1px solid #cadce9!important;text-align:left!important;vertical-align:top!important;overflow-wrap:anywhere!important;color:#1c3851!important}
  #hrbcmp-print-sheet thead th {background:#eaf4fc!important;color:#0a365c!important;font-weight:700!important;font-size:10.5px!important}
  #hrbcmp-print-sheet thead th:first-child {width:21%!important}
  #hrbcmp-print-sheet .hrbcmp-print-group th {background:#dcecf9!important;color:#005bac!important;font-weight:700!important;font-size:9.5px!important}
  #hrbcmp-print-sheet tbody tr:nth-child(even):not(.hrbcmp-print-group) td {background:#f8fbfe!important}
  #hrbcmp-print-sheet tr {break-inside:avoid!important;page-break-inside:avoid!important}
  #hrbcmp-print-sheet .hrbcmp-print-note {font-size:9px!important;color:#57738a!important;margin:9px 0 0!important}
}

/* v1.4.4 — keep the comparison page aligned with the scaled catalog. */
@media screen and (min-width:1200px) {
  body.hrbcat-layout-active .hrbcmp-page {
    width:min(1520px,calc(var(--hrbcat-layout-width,100vw) - 56px))!important;
  }
  body.hrbcat-layout-active .hrbcmp-page .hrbcmp-page-head h1 {
    font-size:clamp(30px,calc(var(--hrbcat-layout-width,100vw) * .03),38px)!important;
  }
}
