/* RufDiamond client experience pass, 2 Dec 2026. Loaded last on every page. */

/* Header: Get a quote visible on tablet and desktop (was hidden behind the language switcher) */
@media (min-width:900px){
  html:not(#x) .tools .btn{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;min-height:40px;padding:.5rem .95rem;font-size:.9rem;flex:none}
}
@media (min-width:1100px) and (max-width:1379px){
  html:not(#x) .tools{gap:.2rem}
  html:not(#x) .tools .btn{padding:.45rem .75rem;font-size:.85rem}
}
@media (min-width:1100px) and (max-width:1239px){
  /* long labels such as Obtenir une soumission wrap to two lines instead of squeezing the menu */
  html:not(#x) .tools .btn{white-space:normal;max-width:7.5rem;line-height:1.1;text-align:center;padding:.35rem .6rem}
}
@media (min-width:1100px) and (max-width:1379px){
  html:not(#x) .nav-l>li>a,html:not(#x) .dd>summary{padding-left:.3rem;padding-right:.3rem;font-size:.85rem}
}

/* Hub first screen: Get a quote */
.page-head .hub-quote{margin:1.1rem 0 0}
.page-head .hub-quote .btn{min-height:48px;display:inline-flex;align-items:center}

/* Proof strip */
.cx-proof-sec{padding-top:0}
.cx-proof-w{margin-top:2.25rem;margin-bottom:2.25rem}
.cx-proof-sec .cx-proof-w{margin-top:0;margin-bottom:0}
.cx-proof-h{display:flex;justify-content:space-between;align-items:end;gap:1rem;flex-wrap:wrap;margin-bottom:1.1rem}
.cx-proof-h h2{margin:0}
.cx-proof-all{font-weight:700;color:var(--link,var(--acc));min-height:44px;display:inline-flex;align-items:center}
.cx-proof-grid{list-style:none;margin:0;padding:0;display:grid;gap:1rem;grid-template-columns:1fr}
@media (min-width:760px){.cx-proof-grid.cx-n3{grid-template-columns:repeat(3,1fr)}.cx-proof-grid.cx-n2{grid-template-columns:repeat(2,1fr)}}
.cx-p{background:var(--card,#1d2024);border:1px solid var(--line,#33373d);border-radius:var(--rad,3px);overflow:hidden;display:flex;flex-direction:column}
.cx-p-img{display:block;aspect-ratio:16/10;overflow:hidden;background:var(--ph,#2a2d31)}
.cx-p-img img{width:100%;height:100%;object-fit:cover;object-position:50% 62%;display:block}
.cx-p-b{padding:1rem 1.1rem 1.15rem;display:flex;flex-direction:column;flex:1}
.cx-p-tag{font:700 .75rem var(--font-b,system-ui);letter-spacing:.12em;text-transform:uppercase;color:var(--eyebrow,var(--acc));margin:0 0 .35rem}
.cx-p h3{margin:0 0 .5rem;font-size:1.15rem;line-height:1.2}
.cx-p-b>p:not(.cx-p-tag){margin:0 0 .9rem;line-height:1.5;color:var(--fg)}
.cx-p-link{margin-top:auto;font-weight:700;color:var(--link,var(--acc));min-height:44px;display:inline-flex;align-items:center}

/* Phone and small tablet */
@media (max-width:899px){
  /* the bottom bar already has Ask us, so the floating chat bubble would double it and cover text */
  html:not(#x) .rdc-bubble{display:none!important}
  html:not(#x) .to-top{bottom:calc(61px + .75rem + env(safe-area-inset-bottom))!important}
  /* bigger EN FR ES PT buttons */
  html:not(#x) .langs{gap:0}
  html:not(#x) .langs a{min-width:36px;min-height:44px;justify-content:center;padding:.2rem .25rem;font-size:.85rem}
}
@media (max-width:430px){
  html:not(#x) .logo img{height:20px}
  html:not(#x) .icon-btn{min-width:44px;min-height:44px}
  html:not(#x) .hdr-in{gap:.15rem}
}
@media (max-width:370px){
  html:not(#x) .langs a{min-width:32px;font-size:.8rem;padding:.2rem .15rem}
  html:not(#x) .logo img{height:18px}
}

/* Home photo strip: small thumbnails, a little lighter */
.pm-drift img{opacity:.5}

/* Parts page: form first */
#parts-request{scroll-margin-top:80px}
@media (max-width:340px){
  html:not(#x) .langs a{min-width:28px;padding:.2rem .1rem}
  html:not(#x) .icon-btn{min-width:40px}
  html:not(#x) .logo img{height:16px}
}
.cx-p:not(.cx-p-ph){border-top:3px solid var(--acc,#f5c400)}
/* Phone: put the hub Get a quote button right under the title so it is on the first screen */
@media (max-width:899px){
  .page-head .wrap:has(>.hub-quote){display:flex;flex-direction:column;align-items:flex-start}
  .page-head .wrap:has(>.hub-quote)>h1{order:1}
  .page-head .wrap:has(>.hub-quote)>.hub-quote{order:2;margin:.25rem 0 1.1rem}
  .page-head .wrap:has(>.hub-quote)>.lead{order:3}
}
