/*
  RN HVAC Supply -- computers and tablets (641px and up). Step 361, 31 Oct 2026.
  ------------------------------------------------------------------
  Loaded in <head> from layout/theme.liquid, so it arrives before rn-hvac.css and
  rn-mobile.css; where a rule here has to beat one there, its selector is one step more
  specific. Nothing in this file changes a phone (below 641px), except hiding the two
  sticky-bar pieces that only computers use.

  Why: ads now bid more for computer shoppers, who buy more often than phone shoppers.
  On a 1920x1080 screen Add to Cart sat about 440px below the first screen, and on a
  1366x768 laptop it was two screens down, under the power row, the highlights and the
  "Better together" list. Five changes:
   1. price, options and Add to Cart come first, then the dealer line with the phone number
      and the returns / warranty / price-match row, then the state box, the sizing prompt,
      "Better together", power and the details. Only the visual order changes: the markup
      and the keyboard tab order stay as they were;
   2. the long product name is a size smaller (four lines became three);
   3. Back and the breadcrumb trail share one line (the trail used to wrap under Back);
   4. the menu bar fits on one line from 1101px to 1440px ("Resources" wrapped to a second
      row at 1366px, which pushed every page down 53px);
   5. a sticky bar with the product photo, name, phone number, price and Add to Cart
      whenever the real button is out of view (rn-mobile.js, part 4).
*/
.rn-hvac-supply .pd-sticky-thumb,
.rn-hvac-supply .pd-sticky-call{display:none;}

@media (min-width:641px){
  /* 1. buy box order. The form's own box steps aside (display:contents) so the dealer line
     and the returns / warranty / price-match row can sit right under Add to Cart, ahead of
     the state box, the sizing prompt and "Better together", which live inside the form.
     The fields still belong to the form and post with it. */
  .rn-hvac-supply .pd-info > *,
  .rn-hvac-supply .pd-info > #pdForm > *{order:30;}
  .rn-hvac-supply .pd-info > .pd-brand{order:1;}
  .rn-hvac-supply .pd-info > .pd-title{order:2;}
  .rn-hvac-supply .pd-info > .pd-plain{order:3;}
  .rn-hvac-supply .pd-info > .pd-jdgm-jump,
  .rn-hvac-supply .pd-info > .pd-listing-summary--top{order:4;}
  .rn-hvac-supply .pd-info > .pd-quick-specs{order:5;}
  .rn-hvac-supply .pd-info > .pd-price-block{order:6;}
  .rn-hvac-supply .pd-info > .pd-backorder,
  .rn-hvac-supply .pd-info > .pd-region{order:7;}
  .rn-hvac-supply .pd-info > .pd-comp{order:8;}            /* after .pd-region above: it carries that class too */
  .rn-hvac-supply .pd-info > .pd-paymentterms,
  .rn-hvac-supply .pd-info > .pd-financing{order:9;}
  .rn-hvac-supply .pd-info > #pdForm{display:contents;}
  .rn-hvac-supply #pdForm > .pd-variants{order:10;}
  .rn-hvac-supply #pdForm > .rn-ship,                     /* the state box, moved above the button while it is locked (rn-shipping.js) */
  .rn-hvac-supply #pdForm > .pd-purchase-row,
  .rn-hvac-supply #pdForm > .rn-ship-gate,
  .rn-hvac-supply #pdForm > .pd-atc-flash,
  .rn-hvac-supply .pd-info > .pd-avail{order:11;}          /* Check availability on a discontinued product */
  .rn-hvac-supply #pdForm > .pd-eta{order:12;}
  .rn-hvac-supply #pdForm > .pd-listing-summary{order:13;}
  .rn-hvac-supply .pd-info > .pd-tl{order:14;}
  .rn-hvac-supply .pd-info > .pd-trow{order:15;}
  .rn-hvac-supply .pd-info > .rn-ship{order:16;}           /* the state box where it was never locked */
  .rn-hvac-supply #pdForm > .rn-size-nudge{order:17;}
  .rn-hvac-supply #pdForm > .pd-addons{order:18;}
  .rn-hvac-supply .pd-info > .pdp-power{order:19;}
  .rn-hvac-supply .pd-info > .pd-highlights{order:20;}
  .rn-hvac-supply .pd-info > .pd-subline{order:21;}
  /* Before you order and anything else keep order 30. The column's 14px gap now spaces
     these, so their own top margins would double it. */
  .rn-hvac-supply .pd-info > .pd-quick-specs{margin:0;}
  .rn-hvac-supply .pd-info > .pd-paymentterms{margin-top:-6px;}
  .rn-hvac-supply #pdForm > .pd-purchase-row{margin-top:0;}
  .rn-hvac-supply #pdForm > .pd-eta{margin-top:-4px;}
  .rn-hvac-supply .pd-info > .rn-ship,
  .rn-hvac-supply #pdForm > .rn-ship,
  .rn-hvac-supply #pdForm > .rn-size-nudge,
  .rn-hvac-supply #pdForm > .pd-addons,
  .rn-hvac-supply .pd-info > .pdp-power{margin-top:0;}
  .rn-hvac-supply .pd-info > .pdb{margin-top:4px;}
  /* Step 362 (31 Oct 2026): each "Better together" tick box is a hidden 2px input. With no
     positioned parent it was placed against the whole page rather than its row, so from
     990px up (where the page scrolls inside .page-wrapper) it stayed put while the page
     scrolled. Clicking a row focused that box and the browser shifted the entire page up
     to show it, leaving a blank band at the bottom. The row now holds its own box. */
  .rn-hvac-supply .pd-addon-row{position:relative;}

  /* 3. Back and the trail on one line; the product's own name shortens with "..." */
  .rn-hvac-supply nav.pd-breadcrumbs .container{flex-wrap:nowrap;}
  .rn-hvac-supply nav.pd-breadcrumbs ol{flex:1 1 auto; min-width:0; flex-wrap:nowrap; overflow:hidden;}
  .rn-hvac-supply nav.pd-breadcrumbs li{flex:none;}
  .rn-hvac-supply nav.pd-breadcrumbs li.pd-crumb-current{flex:0 1 auto; min-width:0;}
  .rn-hvac-supply nav.pd-breadcrumbs li.pd-crumb-current a{min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}

  /* 5. sticky bar: [photo] [name ..........] [Questions? phone] [price] [Add to Cart] */
  .rn-hvac-supply .pd-sticky-bar{
    position:fixed; left:0; right:0; bottom:0; z-index:60; display:flex; align-items:center; gap:16px;
    padding:10px max(24px, calc(50% - 616px)); background:#fff; border-top:1px solid var(--border);
    box-shadow:0 -8px 24px rgba(15,42,67,.12); transform:translateY(110%); transition:transform .22s ease;
  }
  .rn-hvac-supply .pd-sticky-bar.is-visible{transform:none;}
  .rn-hvac-supply .pd-sticky-bar .pd-sticky-thumb{
    display:block; order:1; flex:none; width:52px; height:52px; object-fit:contain; padding:3px;
    background:#fff; border:1px solid var(--border); border-radius:var(--radius);
  }
  .rn-hvac-supply .pd-sticky-bar .pd-sticky-price{display:contents;}
  .rn-hvac-supply .pd-sticky-bar .pd-sticky-price small{
    order:2; flex:1 1 auto; min-width:0; font-size:15px; font-weight:600; line-height:1.35; color:var(--navy);
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  .rn-hvac-supply .pd-sticky-bar .pd-sticky-call{
    order:3; flex:none; display:flex; flex-direction:column; align-items:flex-end; padding-right:16px;
    border-right:1px solid var(--border); font-size:12px; line-height:1.3; color:#5A6B7B; text-decoration:none;
  }
  .rn-hvac-supply .pd-sticky-bar .pd-sticky-call b{font-size:15px; color:var(--navy); white-space:nowrap;}
  .rn-hvac-supply .pd-sticky-bar a.pd-sticky-call:hover b{text-decoration:underline; text-underline-offset:3px;}
  .rn-hvac-supply .pd-sticky-bar a.pd-sticky-call:focus-visible{outline:2px solid var(--blue); outline-offset:4px;}
  .rn-hvac-supply .pd-sticky-bar .pd-sticky-price b{
    order:4; flex:none; font-family:'Plus Jakarta Sans',sans-serif; font-size:22px; font-weight:800; color:var(--navy); white-space:nowrap;
  }
  /* the chat bubble stays at the bottom left and rides above the bar (rn-agent-pin.js),
     so the bar's own chat button is a phone-only thing */
  .rn-hvac-supply .pd-sticky-bar .pd-sticky-help{display:none;}
  .rn-hvac-supply .pd-sticky-bar .btn{
    order:6; flex:none; min-width:190px; min-height:48px; justify-content:center; padding:12px 24px; font-size:15px; white-space:nowrap;
  }
  html[data-theme="dark"] .rn-hvac-supply .pd-sticky-bar{background:#121E2A; border-top-color:#2F3A46; box-shadow:0 -8px 24px rgba(0,0,0,.35);}
  html[data-theme="dark"] .rn-hvac-supply .pd-sticky-bar .pd-sticky-thumb{border-color:#2F3A46;}
  html[data-theme="dark"] .rn-hvac-supply .pd-sticky-bar .pd-sticky-price small,
  html[data-theme="dark"] .rn-hvac-supply .pd-sticky-bar .pd-sticky-price b,
  html[data-theme="dark"] .rn-hvac-supply .pd-sticky-bar .pd-sticky-call b{color:#E2EFFC;}
  html[data-theme="dark"] .rn-hvac-supply .pd-sticky-bar .pd-sticky-call{color:#A9B7C4; border-right-color:#2F3A46;}
}
@media (min-width:641px) and (max-width:900px){
  /* tablets: no room for the phone number beside the name */
  .rn-hvac-supply .pd-sticky-bar .pd-sticky-call{display:none;}
  .rn-hvac-supply .pd-sticky-bar .btn{min-width:0;}
}
@media (min-width:641px) and (prefers-reduced-motion:reduce){
  .rn-hvac-supply .pd-sticky-bar{transition:none;}
}

/* 2. the product name: 30px set four lines at 1366px and at 1920px; 24px / 26px set three */
@media (min-width:641px) and (max-width:1440px){
  .rn-hvac-supply .pd-info > .pd-title{font-size:24px; line-height:1.25;}
}
@media (min-width:1441px){
  .rn-hvac-supply .pd-info > .pd-title{font-size:26px; line-height:1.25;}
}

/* 4. menu bar on one line (rn-hvac.css already tightens it from 1101px to 1199px) */
@media (min-width:1101px) and (max-width:1440px){
  .rn-hvac-supply .main-nav > .container > ul > li > a{padding-left:8px; padding-right:8px;}
}
@media (min-width:1101px) and (max-width:1280px){
  .rn-hvac-supply .main-nav > .container > ul > li > a{padding-left:5px; padding-right:5px; font-size:13px;}
}
