/* Shared action height. Keep visibility, colours and label sizes owned by each component. */
body.rr-redesign { --rr-button-height:44px; }
body.rr-redesign :is(
  button:not(.rr-explorer-option),
  input[type="submit"],input[type="button"],input[type="reset"],
  a.rr-button,a.rr-header-cta,a.rr-company-button,
  a.rr-quote-list-checkout,a.rr-fitting-showcase-cta,
  .rr-mobile-actions a,.metform-btn
) {
  box-sizing:border-box;
  height:var(--rr-button-height) !important;
  min-height:var(--rr-button-height) !important;
  max-height:none;
  padding-top:0 !important;
  padding-bottom:0 !important;
  line-height:1.25 !important;
  align-items:center;
  justify-content:center;
}

body.rr-redesign { --rr-add-button-width:140px; }
/* Component variables adapt narrow cards without adding competing important rules. */
body.rr-redesign #rr-main .rr-quote-add {
  width:var(--rr-add-button-width) !important;
  min-width:var(--rr-add-button-width) !important;
  max-width:var(--rr-add-button-width) !important;
  flex-shrink:0;
  padding-inline:var(--rr-add-button-padding,14px) !important;
  gap:8px !important;
  font-size:var(--rr-add-button-font-size,14px) !important;
  white-space:nowrap;
}
body.rr-redesign #rr-main .rr-quote-add svg {
  display:block !important; width:18px !important; height:18px !important;
}
body.rr-redesign #rr-main .rr-product-card-actions { padding-inline:0; }
body.rr-redesign.rr-home #rr-main #home-fittings .rr-home-quote-slot { width:100%; margin-inline:0; padding-inline:0; justify-self:center; }
/* A selected label occupies the same fixed-width control. */
body.rr-redesign #rr-main .rr-quote-add[aria-pressed="true"] { gap:5px !important; padding-inline:8px !important; }

@media(max-width:420px) {
 body.rr-redesign.rr-home #rr-main #pipe-system .rr-material-panel:not([hidden]) { grid-template-columns:48px minmax(0,1fr) auto; }
 body.rr-redesign.rr-home #rr-main #pipe-system .rr-material-visual { width:48px; height:72px; }
 body.rr-redesign.rr-home #rr-main #pipe-system .rr-material-image { width:96px; height:48px; }
 body.rr-redesign.rr-home #rr-main #pipe-system .rr-material-eyebrow { font-size:16px; letter-spacing:.02em; overflow-wrap:normal; }
 body.rr-redesign.rr-home #rr-main #pipe-system .rr-material-title { font-size:18px; }
}

/* Compact list trigger with a count badge floating above its right edge. */
body.rr-redesign .rr-quote-list-trigger {
  width:156px; min-width:0; padding-inline:14px; gap:6px;
  font-size:16px; overflow:visible;
}
body.rr-redesign .rr-quote-list-trigger > svg { width:20px; height:20px; }
body.rr-redesign .rr-quote-list-trigger .rr-quote-list-count {
  position:absolute; top:-9px; right:-9px;
  box-sizing:border-box; width:28px; min-width:28px; height:28px;
  padding:0; border:2px solid var(--rr-white); border-radius:50%;
  font-size:14px; line-height:1; pointer-events:none;
}
