/* The existing copy, calculator and supplementary cards retain their original source order. */
html body .rx-ux-theme-hero {
  display:grid!important;
  grid-template-columns:minmax(0,1.4fr) minmax(305px,.85fr)!important;
  grid-template-areas:"intro form" "secondary form"!important;
  grid-template-rows:min-content auto;
  gap:clamp(12px,1.7vw,24px) clamp(24px,3.1vw,48px)!important;
  align-items:start!important;
}
html body .rx-ux-theme-hero:not(:has(>.rx-ux-secondary)) {grid-template-areas:"intro form"!important;grid-template-rows:auto}
.rx-ux-theme-hero>.rx-ux-intro {grid-area:intro;min-width:0}
.rx-ux-theme-hero>.rx-ux-form-slot {grid-area:form;align-self:start;min-width:0;width:100%;max-width:100%;box-sizing:border-box}
.rx-ux-theme-hero>.rx-ux-secondary {grid-area:secondary;min-width:0;max-width:100%;animation:none!important}
.rx-ux-legacy-form {border:1px solid #d5d9e0;border-radius:12px;background:#fff;color:#212630}
.rx-ux-legacy-form>summary {cursor:pointer;padding:12px 16px;font-weight:650}
.rx-ux-legacy-form .sv-form {margin:0;box-shadow:none}
.rx-ux-theme-hero .rx-ux-intro .rx-h1 {margin-top:.3em}
.rx-ux-theme-hero .rx-ux-intro .rx-prose {margin-top:.65rem}
.rx-ux-theme-hero .rx-ux-intro .rx-prose>section {margin:0;padding:0}
.rx-ux-theme-hero .rx-ux-intro .rx-prose>section>h2 {margin-top:.5em}
.rx-ux-theme-hero .rx-ux-intro .rx-prose>section>p:last-child {margin-bottom:0}
.rx-ux-journey-slot {position:relative;width:100%;min-width:0;max-width:100%;box-sizing:border-box;clear:both}
@media(max-width:900px) {
  html body .rx-ux-theme-hero,html body .rx-ux-theme-hero:not(:has(>.rx-ux-secondary)) {
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"intro" "form" "secondary"!important;
    grid-template-rows:auto;
    gap:16px!important;
  }
  html body .rx-ux-theme-hero:not(:has(>.rx-ux-secondary)){grid-template-areas:"intro" "form"!important}
}

.rx-ux-tool-jump{display:inline-block;padding:.55em 0;color:#ab2019;font-weight:650;text-underline-offset:.2em}
#rx-ux-page-tool{scroll-margin-top:100px}

.rx-page-enquiry__contact{display:grid;gap:5px;color:inherit;font-size:.875rem;font-weight:650}
.rx-service-index {display:flex;flex-wrap:wrap;gap:8px;margin:clamp(20px,3vw,36px) 0 0}
.rx-service-index a{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:44px;padding:7px 12px;border:1px solid var(--line2,#d6dce2);border-radius:10px;background:var(--paper,#fff);color:var(--ink,#1c222a);text-decoration:none;font-size:.875rem;line-height:1.4;box-sizing:border-box}
.rx-service-index a>svg{width:18px;height:18px;flex:none;color:#af2821}
.rx-service-index a small{font-variant-numeric:tabular-nums;font-weight:750;color:var(--ink3,#505665)}
.rx-service-index a:hover,.rx-service-index a:focus-visible,.rx-service-cards a:hover,.rx-service-cards a:focus-visible{border-color:#b6261c}
.rx-service-group{padding-top:clamp(28px,4.5vw,58px);scroll-margin-top:100px}
.rx-service-group__head{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px}
.rx-service-group__head h2,.rx-service-reading h2{margin:0;font-size:clamp(22px,2.2vw,33px);line-height:1.13}
.rx-service-group__head p{margin:.25rem 0 0;color:var(--ink3,#505665)}
.rx-service-group__symbol{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:10px;color:#ae281c;background:#fcebe8}
.rx-service-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.rx-service-cards a{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;padding:clamp(16px,2vw,23px);border:1px solid var(--line2,#d6dce2);border-radius:14px;text-decoration:none;background:var(--paper,#fff);color:var(--ink,#1c222a);overflow-wrap:anywhere}
.rx-service-cards h3{margin:0;font-size:clamp(16px,1.5vw,20px);line-height:1.25}
.rx-service-cards p{margin:0;color:var(--ink3,#505665);font-size:.9rem;line-height:1.52}
.rx-service-cards__open{display:inline-flex;align-items:center;gap:7px;margin-top:auto;padding-top:10px;color:#9e221b;font-size:.8rem;font-weight:700}
.rx-service-cards__open svg{width:16px;height:16px}
.rx-service-reading{border-left:3px solid #b8271e;padding-left:18px;margin:clamp(24px,4vw,44px) 0}
.rx-service-reading p{margin:.6rem 0 0;max-width:68ch}
html[data-rx-theme="dark"] .rx-service-cards a,html[data-rx-theme="dark"] .rx-service-index a{background:#22262c;color:#f6f6f6;border-color:#484d55}
html[data-rx-theme="dark"] :is(.rx-service-cards p,.rx-service-group__head p,.rx-service-index small){color:#c1c7cf}
html[data-rx-theme="dark"] :is(.rx-service-index a>svg,.rx-service-cards__open){color:#ffa298}
@media(max-width:900px){.rx-service-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.rx-service-cards{grid-template-columns:minmax(0,1fr)}}
.rx-ux-theme-hero>.rx-ux-tail{grid-area:extra;min-width:0;align-self:start}
.rx-ux-theme-hero>.rx-ux-tail>:first-child{margin-top:0!important}
html body .rx-ux-theme-hero:has(>.rx-ux-tail){grid-template-areas:"intro form" "extra form" "secondary form"!important;grid-template-rows:min-content min-content auto}
html body .rx-ux-theme-hero:has(>.rx-ux-tail):not(:has(>.rx-ux-secondary)){grid-template-areas:"intro form" "extra form"!important;grid-template-rows:min-content auto}
@media(max-width:900px){
  html body .rx-ux-theme-hero:has(>.rx-ux-tail){grid-template-areas:"intro" "form" "extra" "secondary"!important;grid-template-rows:auto}
  html body .rx-ux-theme-hero:has(>.rx-ux-tail):not(:has(>.rx-ux-secondary)){grid-template-areas:"intro" "form" "extra"!important}
}
@media(max-width:600px){
  html body .rx-ux-theme-section[style*="max-width:1280px"]{padding-inline:16px!important;padding-top:18px!important}
  html body .rx-ux-theme-section>.rx-ux-theme-hero[style*="padding:"]{padding-inline:16px!important;padding-top:18px!important}
  html body .rx-ux-theme-hero .rx-ux-intro h1{font-size:clamp(26px,7.3vw,34px)!important;line-height:1.1!important;max-width:none!important;margin-block:10px!important}
  html body .rx-ux-theme-hero .rx-ux-intro>p,html body .rx-ux-theme-hero .rx-ux-intro .rx-prose p{font-size:15px!important;line-height:1.55!important}
  html body .rx-ux-theme-hero .rx-ux-intro .rx-prose h2{font-size:20px!important;line-height:1.2!important}
}
@layer redicoBento {
@media (max-width:600px){
  /* The archived audience landing pages otherwise force their opening paragraph to desktop size. */
  html[data-rx-bento] body .rx-ux-theme-hero .rx-ux-intro :is(#mp-answer,#rdi-b2b-section-1)>p {font-size:15px!important;line-height:1.55!important}
  html[data-rx-bento] body .rx-ux-theme-hero .rx-ux-intro :is(#mp-answer,#rdi-b2b-section-1)>h2 {font-size:20px!important;line-height:1.2!important}
}
}

/*
 * REDICO mega menu clarity — 2026-11-09.
 * Global menu scope: html body #rpm-dialog only.
 * Reuses the current palette and redicoReadability cascade layer.
 * Native details, [hidden], DOM order, URLs and fitOffers() remain intact.
 */
@layer redicoReadability {
  /* The existing quote control is moved by the decorator, never duplicated. */
  html body #rpm-dialog .rpm-head:has(> .rdx-menu-quote) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto 44px !important;
    grid-template-areas: "heading quote close" !important;
    align-items: center !important;
    gap: 12px !important;
  }

  html body #rpm-dialog .rpm-head > .rpm-heading {
    grid-area: heading !important;
    min-width: 0 !important;
  }

  html body #rpm-dialog .rpm-head > .rdx-menu-quote {
    grid-area: quote !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body #rpm-dialog .rpm-head .rdx-menu-quote-button {
    min-height: 44px !important;
    width: auto !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
  }

  html body #rpm-dialog .rpm-head > .rpm-close {
    grid-area: close !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  /* Keep group boundaries visible even when every group is collapsed. */
  html body #rpm-dialog .rpm-grid,
  html body #rpm-dialog .rpm-about {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
    align-items: start !important;
  }

  html body #rpm-dialog .rpm-column {
    gap: 16px !important;
  }

  html body #rpm-dialog .rpm-group {
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--pm-line) !important;
    border-radius: 12px !important;
    background: var(--pm-paper) !important;
  }

  html body #rpm-dialog .rpm-group > summary {
    align-items: center !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    border-bottom: 0 !important;
    border-radius: 11px !important;
    background: var(--pm-soft) !important;
    color: var(--pm-ink) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  html body #rpm-dialog .rpm-group[open] > summary {
    border-bottom: 1px solid var(--pm-line) !important;
    border-radius: 11px 11px 0 0 !important;
    box-shadow: inset 3px 0 var(--pm-red) !important;
  }

  html body #rpm-dialog .rpm-group > summary:has(> .rmu-group-title) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto 12px !important;
    grid-template-areas: "title count icon" !important;
    gap: 10px !important;
  }

  html body #rpm-dialog .rmu-group-title {
    grid-area: title !important;
    min-width: 0 !important;
  }

  html body #rpm-dialog .rmu-group-count {
    grid-area: count !important;
    justify-self: start !important;
    padding: 3px 6px !important;
    border: 1px solid var(--pm-line) !important;
    border-radius: 6px !important;
    background: var(--pm-paper) !important;
    color: var(--pm-muted) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
  }

  html body #rpm-dialog
    .rpm-group > summary:has(> .rmu-group-title)::after {
    grid-area: icon !important;
  }

  html body #rpm-dialog .rpm-group > ul {
    margin: 0 !important;
    padding: 6px 8px 8px !important;
  }

  /* Avoid the legacy negative margins and 26–28px link rows. */
  html body #rpm-dialog .rpm-link {
    min-height: 40px !important;
    margin: 0 !important;
    padding: 9px 10px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  html body #rpm-dialog .rpm-group > .rpm-overview {
    margin: 0 8px 8px !important;
    border-top: 1px solid var(--pm-line) !important;
    border-radius: 0 0 8px 8px !important;
    font-weight: 600 !important;
  }

  html body #rpm-dialog .rpm-link:is(:hover, :focus-visible, :active) {
    background: var(--pm-soft) !important;
    transform: none !important;
  }

  html body #rpm-dialog .rpm-link[aria-current="page"] {
    background: var(--pm-soft) !important;
    box-shadow: inset 3px 0 var(--pm-red) !important;
    font-weight: 650 !important;
  }

  /* Apply the same hierarchy to the Learning and Company groups. */
  html body #rpm-dialog .rpm-about-group {
    min-width: 0 !important;
    padding: 12px !important;
    border: 1px solid var(--pm-line) !important;
    border-radius: 12px !important;
    background: var(--pm-paper) !important;
  }

  html body #rpm-dialog .rpm-about-group > h3 {
    margin: 0 0 8px !important;
    padding: 0 0 10px !important;
    border-bottom: 1px solid var(--pm-line) !important;
    color: var(--pm-ink) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
  }

  /* Selected tabs use shape, weight and an inset marker as well as color. */
  html body #rpm-dialog .rpm-tabs {
    gap: 8px !important;
    padding-block: 6px 10px !important;
  }

  html body #rpm-dialog .rpm-tab {
    min-height: 44px !important;
    padding: 10px 14px !important;
    border: 1px solid var(--pm-line) !important;
    border-radius: 10px !important;
    background: var(--pm-paper) !important;
    color: var(--pm-muted) !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
  }

  html body #rpm-dialog .rpm-tab::after {
    display: none !important;
  }

  html body #rpm-dialog .rpm-tab:is(:hover, :focus-visible, :active) {
    background: var(--pm-soft) !important;
    color: var(--pm-ink) !important;
  }

  html body #rpm-dialog .rpm-tab[aria-selected="true"] {
    border-color: var(--pm-red) !important;
    background: var(--pm-soft) !important;
    color: var(--pm-red) !important;
    box-shadow: inset 0 -2px var(--pm-red) !important;
    font-weight: 700 !important;
  }

  /* Give search a distinct area while leaving filtering and status to JS. */
  html body #rpm-dialog .rpm-searchbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    padding: 12px !important;
    border: 1px solid var(--pm-line) !important;
    border-radius: 12px !important;
    background: var(--pm-soft) !important;
  }

  html body #rpm-dialog .rmu-search-label {
    grid-column: 1 / -1 !important;
    color: var(--pm-ink) !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1.4 !important;
  }

  html body #rpm-dialog .rpm-search {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    padding: 11px 14px !important;
    border: 1px solid var(--pm-line) !important;
    border-radius: 8px !important;
    background: var(--pm-paper) !important;
    color: var(--pm-ink) !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
  }

  html body #rpm-dialog .rpm-search::placeholder {
    color: var(--pm-muted) !important;
    opacity: 1 !important;
  }

  html body #rpm-dialog .rpm-search:focus {
    border-color: var(--pm-red) !important;
  }

  html body #rpm-dialog .rpm-all {
    justify-self: end !important;
    min-height: 44px !important;
    padding: 8px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
  }

  html body #rpm-dialog .rpm-status:not(:empty) {
    margin: 14px 0 0 !important;
    padding: 10px 12px !important;
    border-inline-start: 3px solid var(--pm-red) !important;
    border-radius: 0 8px 8px 0 !important;
    background: var(--pm-soft) !important;
    color: var(--pm-ink) !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  html body #rpm-dialog
    :is(a, button, input, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--pm-red) !important;
    outline-offset: 3px !important;
  }

  @media (max-width: 1100px) {
    html body #rpm-dialog .rpm-group > summary:has(> .rmu-group-title) {
      grid-template-columns: minmax(0, 1fr) 12px !important;
      grid-template-areas: "title icon" "count icon" !important;
      gap: 5px 10px !important;
    }
  }

  @media (max-width: 760px) {
    html body #rpm-dialog .rpm-head:has(> .rdx-menu-quote) {
      grid-template-columns: minmax(0, 1fr) 44px !important;
      grid-template-areas: "heading close" "quote quote" !important;
      gap: 10px !important;
    }

    html body #rpm-dialog .rpm-head .rdx-menu-quote-button {
      width: 100% !important;
    }

    html body #rpm-dialog .rpm-grid,
    html body #rpm-dialog .rpm-about {
      grid-template-columns: minmax(0, 1fr) !important;
    }

    html body #rpm-dialog .rpm-link {
      min-height: 44px !important;
      padding-block: 11px !important;
    }

    html body #rpm-dialog .rpm-tab {
      padding-inline: 10px !important;
    }

    html body #rpm-dialog .rpm-searchbar {
      grid-template-columns: minmax(0, 1fr) auto !important;
      gap: 8px !important;
    }

    html body #rpm-dialog .rmu-search-label {
      grid-column: 1 !important;
      grid-row: 1 !important;
    }

    html body #rpm-dialog .rpm-search {
      grid-column: 1 / -1 !important;
      grid-row: 2 !important;
    }

    html body #rpm-dialog .rpm-all {
      grid-column: 2 !important;
      grid-row: 1 !important;
      min-height: 32px !important;
      padding: 4px 0 4px 6px !important;
      font-size: 12px !important;
    }
  }

  @media (max-width: 600px) {
    html body #rpm-dialog .rpm-tabs {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    html body #rpm-dialog .rpm-tab {
      width: 100% !important;
      text-align: center !important;
    }
  }
}

/* REDICO R2D2 / header layout repair — 2026-11-13.
 * The PHP header contains anonymous flex items made from NBSP-only text nodes.
 * Zero the wrapper text size, then size real controls explicitly. This keeps
 * the existing navigation controller, theme toggle, contacts and CTA intact.
 * The existing first cascade layer is required: old !important layout rules
 * in this layer outrank new unlayered declarations.
 */
@layer redicoReadability {
  html body .rx-header.rpm-header:has(#rpm-primary-nav) .rx-header-in.rr-reference-header {
    display: grid !important;
    grid-template-columns: auto auto minmax(0, 1fr) auto auto !important;
    grid-template-areas: "brand search menu contacts theme" !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    gap: 10px !important;
    height: auto !important;
    min-height: 76px !important;
    padding-block: 8px !important;
  }
  html body .rx-header.rpm-header:has(#rpm-primary-nav) .rx-header-in > :first-child {
    grid-area: brand !important;
    min-width: 0 !important;
    width: auto !important;
    font-size: 0 !important;
    gap: 0 !important;
  }
  html body .rx-header.rpm-header:has(#rpm-primary-nav) .rx-logo {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 44px !important;
    line-height: 1 !important;
  }
  html body .rx-header.rpm-header:has(#rpm-primary-nav) .rx-logo img {
    width: 131px !important;
    max-width: 100% !important;
    height: auto !important;
  }
  html body .rx-header.rpm-header:has(#rpm-primary-nav) .rx-header-in > .rxmax-trigger {
    grid-area: search !important;
    justify-self: start !important;
    order: 0 !important;
    width: 104px !important;
    min-width: 104px !important;
    box-sizing: border-box !important;
    min-height: 44px !important;
    margin: 0 !important;
    font-size: 13px !important;
  }
  html body .rx-header.rpm-header .rx-header-in > #rpm-primary-nav {
    grid-area: menu !important;
    width: 100% !important;
    min-width: max-content !important;
    min-inline-size: max-content !important;
    height: 46px !important;
    padding-inline: 8px !important;
    box-sizing: border-box !important;
    container-type: normal !important;
  }
  html body .rx-header.rpm-header #rpm-primary-nav > .rpm-rail {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    width: max-content !important;
    max-width: none !important;
    gap: 4px !important;
    margin-inline: auto !important;
  }
  html body .rx-header.rpm-header #rpm-primary-nav > .rpm-rail > :is(a, button) {
    padding-inline: 8px !important;
    font-size: 13px !important;
    min-height: 44px !important;
    white-space: nowrap !important;
  }
  html body .rx-header.rpm-header:has(#rpm-primary-nav) .rx-header-in > .rx-header-contacts {
    grid-area: contacts !important;
    display: flex !important;
    position: static !important;
    inset: auto !important;
    flex-flow: column nowrap !important;
    width: auto !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 0 !important;
    border: 0 !important;
  }
  html body .rx-header.rpm-header:has(#rpm-primary-nav) .rx-header-contacts > a {
    min-height: 28px !important;
    height: auto !important;
    min-block-size: 28px !important;
    block-size: auto !important;
    padding: 3px 0 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
  }
  html body .rx-header.rpm-header:has(#rpm-primary-nav) .rx-header-in > .rx-hdr-right {
    grid-area: theme !important;
    display: flex !important;
    width: auto !important;
    min-width: 0 !important;
    gap: 12px !important;
    font-size: 0 !important;
  }
  html body .rx-header.rpm-header:has(#rpm-primary-nav) #rr-theme-lamp {
    flex: 0 0 64px !important;
    width: 64px !important;
    inline-size: 64px !important;
    min-width: 64px !important;
    font-size: 14px !important;
  }
  html body .rx-header.rpm-header:has(#rpm-primary-nav) .rx-hdr-right .rx-hdr-cta {
    min-width: 148px !important;
    padding-inline: 14px !important;
    font-size: 13px !important;
  }

  /* A second navigation row preserves every desktop label on small laptops. */
  @media (min-width: 1000px) and (max-width: 1399px) {
    html body .rx-header.rpm-header:has(#rpm-primary-nav) .rx-header-in.rr-reference-header {
      grid-template-columns: auto minmax(0, 1fr) auto !important;
      grid-template-areas: "brand contacts theme" "search menu menu" !important;
      gap: 4px 14px !important;
      padding-block: 6px !important;
    }
    html body .rx-header.rpm-header #rpm-primary-nav > .rpm-rail { margin-inline: 0 auto !important; }
  }

  @media (min-width: 1000px) {
    html body .rx-header.rpm-header #rpm-primary-nav > .rpm-rail {
      display: flex !important;
      visibility: visible !important;
      pointer-events: auto !important;
    }
    html body .rx-header.rpm-header #rpm-primary-nav > .rpm-burger { display: none !important; }
  }

  @media (max-width: 999px) {
    html body .rx-header.rpm-header:has(#rpm-primary-nav) .rx-header-in.rr-reference-header {
      grid-template-columns: minmax(0, 1fr) auto auto 64px !important;
      grid-template-areas: "brand search menu theme" "contacts contacts contacts contacts" !important;
      grid-template-rows: auto auto !important;
      gap: 0 8px !important;
      padding-block: 5px !important;
    }
    html body .rx-header.rpm-header:has(#rpm-primary-nav) .rx-header-in > .rxmax-trigger {
      width: 90px !important;
      min-width: 90px !important;
      padding-inline: 5px !important;
      gap: 4px !important;
    }
    html body .rx-header.rpm-header .rx-header-in > #rpm-primary-nav {
      width: auto !important;
      min-width: 44px !important;
      min-inline-size: 44px !important;
      padding: 0 !important;
      height: 44px !important;
    }
    html body .rx-header.rpm-header #rpm-primary-nav > .rpm-rail { display: none !important; }
    html body .rx-header.rpm-header #rpm-primary-nav > .rpm-burger {
      display: flex !important;
      visibility: visible !important;
      pointer-events: auto !important;
      min-width: 44px !important;
      min-height: 44px !important;
      width: auto !important;
      margin: 0 !important;
      padding: 8px !important;
      font-size: 13px !important;
    }
    html body .rx-header.rpm-header:has(#rpm-primary-nav) .rx-header-in > .rx-header-contacts {
      flex-flow: row wrap !important;
      align-items: center !important;
      gap: 0 16px !important;
      border-top: 1px solid var(--rb-line, #d6d2cc) !important;
    }
    html body .rx-header.rpm-header:has(#rpm-primary-nav) .rx-header-contacts > a {
      min-height: 44px !important;
      min-block-size: 44px !important;
      font-size: 12px !important;
    }
    html body .rx-header.rpm-header:has(#rpm-primary-nav) .rx-hdr-right .rx-hdr-cta { display: none !important; }
  }
  @media (max-width: 599px) {
    html body .rx-header.rpm-header:has(#rpm-primary-nav) .rx-logo img { width: 104px !important; }
    html body .rx-header.rpm-header:has(#rpm-primary-nav) .rx-header-in.rr-reference-header { column-gap: 4px !important; }
    html body .rx-header.rpm-header #rpm-primary-nav > .rpm-burger { font-size: 0 !important; gap: 0 !important; }
  }
  @media (max-width: 399px) {
    html body .rx-header.rpm-header:has(#rpm-primary-nav) .rx-logo img { width: 98px !important; }
  }
  /* At 320px: 88 + 84 + 44 + 64 + 3×2 = 286px, within the 288px header. */
  @media (max-width: 359px) {
    html body .rx-header.rpm-header:has(#rpm-primary-nav) .rx-header-in.rr-reference-header { column-gap: 2px !important; }
    html body .rx-header.rpm-header:has(#rpm-primary-nav) .rx-logo img { width: 88px !important; }
    html body .rx-header.rpm-header:has(#rpm-primary-nav) .rx-header-in > .rxmax-trigger {
      width: 84px !important;
      min-width: 84px !important;
    }
  }
}

/* Max follows REDICO's warm paper, graphite and carmine palette. */
html.rxmax-open{overflow:hidden!important;scrollbar-gutter:stable}
.rxmax-trigger{--rxmax-ink:#a92335;position:relative;overflow:visible;min-width:104px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:4px 12px;border:0;border-radius:18px 6px 18px 6px;background:transparent;color:var(--rxmax-ink);font:650 13px/1.2 Inter,Arial,sans-serif;cursor:pointer;white-space:nowrap;transition:color .18s;flex-shrink:0;box-shadow:none}
.rxmax-trigger::before{content:none}
.rxmax-trigger svg{width:20px;height:20px;flex:none}.rxmax-trigger:hover{background:transparent;color:#871728;transform:none;box-shadow:none}
.rxmax-trigger-label{letter-spacing:.45px}
.rxmax-droid-asset{position:relative;display:block;flex:none;width:30px;height:34px;overflow:hidden;isolation:isolate}.rxmax-trigger .rxmax-droid{display:block;width:30px;height:34px;overflow:visible}.rxmax-trigger .rxmax-droid-image{position:absolute;left:0;top:0;display:block;width:480px;height:34px;max-width:none;object-fit:fill;border:0;border-radius:0;background:transparent;opacity:0;transform:translateX(0)}.rxmax-droid-ready .rxmax-droid-image{opacity:1}.rxmax-droid-ready .rxmax-droid{visibility:hidden}

html[data-theme=dark] .rxmax-trigger,html[data-rx-theme=dark] .rxmax-trigger{--rxmax-ink:#ff94a1;color:var(--rxmax-ink);background:transparent}
.rxmax-trigger:focus-visible{outline:3px solid #b52336;outline-offset:4px}
.rxmax-trigger:hover,.rxmax-trigger:focus{animation:none;z-index:10010}
.rxmax-trigger-tip{position:absolute;left:50%;top:calc(100% + 12px);transform:translate(-50%,5px);display:block;width:290px;padding:17px 19px;border:1px solid #d4d1cb;border-radius:14px;background:#fbfaf7;color:#232426;box-shadow:0 12px 35px #17202b24;font:400 12px/1.55 Inter,Arial,sans-serif;text-align:left;white-space:normal;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s,transform .18s,visibility .18s}
.rxmax-trigger-tip::before{content:"";position:absolute;left:0;right:0;height:14px;top:-14px}
.rxmax-trigger-tip strong{display:block;font-size:13px;font-weight:650;margin-bottom:6px}.rxmax-trigger-tip>span{display:block;color:#62656b}
.rxmax-trigger:not(.rxmax-tip-dismissed):is(:hover,:focus) .rxmax-trigger-tip{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,0)}
html[data-theme=dark] .rxmax-trigger-tip,html[data-rx-theme=dark] .rxmax-trigger-tip{background:#292d32;color:#f4f2ed;border-color:#484c53;box-shadow:0 12px 35px #0005}html[data-theme=dark] .rxmax-trigger-tip>span,html[data-rx-theme=dark] .rxmax-trigger-tip>span{color:#bec3ca}
@media(max-width:599px){.rxmax-trigger-tip{width:250px}}
.rxmax-dialog{--mx-bg:#eeece7;--mx-card:#fbfaf7;--mx-text:#232426;--mx-muted:#62656b;--mx-line:#d4d1cb;--mx-red:#ae2235;--mx-soft:#f6e8e8;box-sizing:border-box;position:fixed;inset:0;width:min(1040px,calc(100vw - 48px));max-width:none;height:auto;max-height:calc(100dvh - 64px);margin:auto;padding:0;overflow:hidden;border:1px solid var(--mx-line);border-radius:26px;background:var(--mx-bg);color:var(--mx-text);font:400 15px/1.55 Inter,Arial,sans-serif;box-shadow:0 32px 100px #0005;color-scheme:light;overscroll-behavior:contain}
.rxmax-dialog[open]{animation:rxmax-window .22s cubic-bezier(.2,.8,.2,1) both}
.rxmax-dialog::backdrop{background:#11151ab8;backdrop-filter:blur(8px);animation:rxmax-backdrop .2s ease both}
.rxmax-dialog.rxmax-closing{animation:rxmax-out .16s ease both}.rxmax-dialog.rxmax-closing::backdrop{animation:rxmax-backdrop .16s ease reverse both}
.rxmax-dialog *{box-sizing:border-box}.rxmax-dialog [hidden]{display:none!important}
.rxmax-shell{display:flex;flex-direction:column;max-height:calc(100dvh - 66px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#9b9da2 transparent}
.rxmax-shell>*{flex-shrink:0}.rxmax-top{position:sticky;top:0;z-index:3;background:var(--mx-bg)}
.rxmax-dialog h2,.rxmax-dialog h3,.rxmax-dialog p{color:var(--mx-text)!important;margin:0;font-family:inherit}
.rxmax-dialog button,.rxmax-dialog input{font:inherit;letter-spacing:normal}
.rxmax-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:24px 32px 10px}
.rxmax-brand{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:700;letter-spacing:1.6px;color:var(--mx-text)}
.rxmax-emblem{display:grid;grid-template-columns:1fr auto;align-content:center;width:40px;height:40px;border:1px solid var(--mx-red);border-radius:12px;background:var(--mx-text);color:var(--mx-card);font-size:18px;letter-spacing:-2px;line-height:1;padding:5px 8px}.rxmax-emblem span{color:#ff7889}.rxmax-brand-divider{opacity:.4;margin:0 3px}
.rxmax-scope{font-size:11px;font-weight:500;letter-spacing:0;border-left:1px solid var(--mx-line);padding-left:12px;color:var(--mx-muted)}
.rxmax-close{flex:none;display:flex;align-items:center;gap:8px;border:0;background:transparent;color:var(--mx-muted);padding:6px 4px;cursor:pointer;min-width:44px;min-height:44px}.rxmax-close>span{font:300 30px/1 Arial}
.rxmax-dialog kbd{font:500 10px/1.2 Inter,Arial,sans-serif;color:var(--mx-muted);border:1px solid var(--mx-line);border-radius:4px;padding:3px 5px}
.rxmax-intro{padding:12px 32px 23px;animation:rxmax-intro .3s ease both}.rxmax-intro h2{font-size:clamp(28px,3.3vw,41px);font-weight:650;line-height:1.13;letter-spacing:-1.7px;margin-bottom:11px}.rxmax-intro h2 span{color:var(--mx-red)}.rxmax-intro p{font-size:14px;line-height:1.6;color:var(--mx-muted)!important}
.rxmax-form{padding:0 32px;margin:0!important}.rxmax-field{display:flex;align-items:center;gap:12px;border:1.5px solid var(--mx-line);border-radius:15px;padding:8px 8px 8px 18px;background:var(--mx-card);transition:border-color .15s,box-shadow .15s;min-height:65px}.rxmax-field:focus-within{border-color:var(--mx-red);box-shadow:0 0 0 3px var(--mx-soft)}
.rxmax-field>svg{width:23px;height:23px;flex:none;color:var(--mx-red)}
.rxmax-dialog .rxmax-field input{appearance:none;-webkit-appearance:none;width:100%;min-width:0;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:var(--mx-text)!important;padding:7px 0!important;font-size:17px!important;line-height:1.4;height:auto;border-radius:0}
.rxmax-field input::placeholder{color:var(--mx-muted);opacity:1}.rxmax-field input::-webkit-search-cancel-button{display:none}
.rxmax-clear{flex:none;border:0;background:transparent;color:var(--mx-muted);font-size:24px!important;width:36px;height:40px;cursor:pointer}
.rxmax-submit,.rxmax-retry{flex:none;background:#b52336;color:#fff;border:1px solid #b52336;border-radius:10px;padding:12px 16px;cursor:pointer;font-weight:600!important;font-size:14px!important;min-height:44px}.rxmax-submit span{margin-left:15px;font-size:17px}
.rxmax-form>p{font-size:11px;color:var(--mx-muted)!important;margin:9px 3px 0}
.rxmax-search-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}.rxmax-search-tools p{font-size:11px;color:var(--mx-muted)!important;margin:0}.rxmax-search-tools .rxmax-quote-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;flex-shrink:0;min-height:40px;padding:7px 12px;border:1px solid var(--mx-line);border-radius:9px;background:var(--mx-card);color:var(--mx-red);font-size:12px;font-weight:600;cursor:pointer}.rxmax-quote-button:hover{border-color:var(--mx-red);background:var(--mx-soft)}
@media(max-width:600px){.rxmax-search-tools{align-items:flex-start;flex-direction:column;gap:8px}.rxmax-search-tools .rxmax-quote-button{width:100%;justify-content:space-between;min-height:42px}}
.rxmax-content{padding:0 32px 26px;min-height:280px}.rxmax-topics{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:19px 0 20px}.rxmax-topics>span{color:var(--mx-muted);font-size:11px;margin-right:3px}.rxmax-topics button,.rxmax-filter{border:1px solid var(--mx-line);border-radius:7px;background:transparent;padding:7px 10px;color:var(--mx-text);font-size:11px;line-height:1.4;cursor:pointer;min-height:34px;transition:background .16s,border-color .16s}
.rxmax-topics button:hover,.rxmax-filter:hover{background:var(--mx-card);border-color:var(--mx-red)}
.rxmax-filters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:17px}.rxmax-filter[aria-pressed=true]{background:var(--mx-text);border-color:var(--mx-text);color:var(--mx-bg)}
.rxmax-results-head{display:flex;justify-content:space-between;gap:18px;align-items:baseline;margin:0 0 12px}.rxmax-results-head .rxmax-status{font-size:12px;font-weight:650;line-height:1.5}.rxmax-result-tip{font-size:10px;color:var(--mx-muted);flex:none}
.rxmax-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;transition:opacity .12s}.rxmax-grid[aria-busy=true]{opacity:.55}
.rxmax-dialog .rxmax-card{position:relative;display:flex;flex-direction:column;gap:9px;min-height:182px;padding:20px;border:1px solid var(--mx-line);border-radius:16px;background:var(--mx-card);color:var(--mx-text)!important;text-decoration:none!important;overflow:hidden;animation:rxmax-card .24s ease both;animation-delay:calc(var(--rxmax-i,0)*22ms);transition:border-color .18s,transform .18s,box-shadow .18s}
.rxmax-card:first-child{grid-column:span 2;background:linear-gradient(120deg,var(--mx-card),var(--mx-soft))!important}.rxmax-card:first-child h3{font-size:21px}
.rxmax-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.rxmax-type{font-size:10px;line-height:1.4;letter-spacing:.6px;font-weight:600;color:var(--mx-red);text-transform:uppercase}.rxmax-arrow{font-size:20px;line-height:1;color:var(--mx-muted)}
.rxmax-card h3{font-size:16px;line-height:1.3;letter-spacing:-.3px;font-weight:650;overflow-wrap:anywhere}.rxmax-card p{font-size:12px;line-height:1.6;color:var(--mx-muted)!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.rxmax-read{margin-top:auto;padding-top:6px;font-size:10px;font-weight:600;color:var(--mx-red);text-decoration:underline;text-underline-offset:3px}
.rxmax-card:hover{transform:translateY(-2px);border-color:var(--mx-red)!important;box-shadow:0 5px 14px #00000009}.rxmax-card:hover .rxmax-arrow{color:var(--mx-red)}
.rxmax-dialog mark{background:var(--mx-soft);color:inherit;padding:0 1px;border-radius:2px}
.rxmax-more{display:block;margin:20px auto 0;border:1px solid var(--mx-line);border-radius:9px;background:var(--mx-card);color:var(--mx-text);padding:11px 22px;min-height:44px;cursor:pointer}.rxmax-more:disabled{opacity:.6}
.rxmax-empty{grid-column:1/-1;border:1px dashed var(--mx-line);border-radius:15px;padding:28px;min-height:170px}.rxmax-empty h3{font-size:20px;margin-bottom:10px}.rxmax-empty p{font-size:14px;margin-bottom:16px;max-width:65ch;color:var(--mx-muted)!important}.rxmax-empty a{color:var(--mx-red)!important;text-decoration:underline;text-underline-offset:3px}
.rxmax-footer{display:flex;justify-content:space-between;gap:12px;padding:13px 32px;border-top:1px solid var(--mx-line);font-size:10px;color:var(--mx-muted);margin-top:auto}.rxmax-keys{display:flex;align-items:center;gap:5px}
.rxmax-registry{margin-top:28px;padding-top:23px;border-top:1px solid var(--mx-line)}.rxmax-registry-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:12px}.rxmax-registry-heading h3{font-size:18px;line-height:1.3}.rxmax-registry-heading p{font-size:11px;color:var(--mx-muted)!important;margin-top:4px}.rxmax-registry-heading label{font-size:11px;color:var(--mx-muted);display:flex;align-items:center;gap:8px}.rxmax-registry-heading select{font:inherit;color:var(--mx-text);background:var(--mx-card);border:1px solid var(--mx-line);border-radius:8px;padding:8px;max-width:170px;min-height:38px}.rxmax-registry-status{font-size:12px;color:var(--mx-muted)!important;margin-bottom:12px!important}.rxmax-registry-grid .rxmax-card:first-child{grid-column:auto}.rxmax-registry-grid .rxmax-card h3{font-size:15px}.rxmax-registry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:600px){.rxmax-registry-heading{align-items:flex-start;flex-direction:column}.rxmax-registry-grid{grid-template-columns:1fr}}
.rxmax-dialog :is(a,button):focus-visible{outline:3px solid var(--mx-red);outline-offset:3px}.rxmax-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html[data-theme=dark] .rxmax-dialog,html[data-rx-theme=dark] .rxmax-dialog{--mx-bg:#202327;--mx-card:#292d32;--mx-text:#f4f2ed;--mx-muted:#bec3ca;--mx-line:#484c53;--mx-red:#ff94a1;--mx-soft:#3c2a30;color-scheme:dark}
@keyframes rxmax-window{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:none}}
@keyframes rxmax-backdrop{from{opacity:0}to{opacity:1}}
@keyframes rxmax-out{to{opacity:0;transform:translateY(8px) scale(.99)}}
@keyframes rxmax-intro{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes rxmax-card{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(max-width:700px){.rxmax-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:20px}.rxmax-shell{max-height:calc(100dvh - 22px)}.rxmax-top{padding:17px 20px 6px}.rxmax-intro{padding:12px 20px 19px}.rxmax-intro h2{font-size:29px;letter-spacing:-1px}.rxmax-intro p{font-size:12px}.rxmax-form{padding:0 20px}.rxmax-content{padding:0 20px 22px}.rxmax-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rxmax-card:first-child{grid-column:span 2}.rxmax-result-tip{display:none}.rxmax-footer{padding:12px 20px}.rxmax-scope{display:none}.rxmax-brand{font-size:10px}.rxmax-field{gap:7px;padding-left:12px;min-height:58px}.rxmax-field>svg{width:20px}.rxmax-dialog .rxmax-field input{font-size:16px!important}.rxmax-submit{font-size:0!important;width:42px;padding:8px;min-height:40px}.rxmax-submit span{font-size:21px;margin:0}.rxmax-clear{width:28px}.rxmax-topics{gap:6px;margin:16px 0}.rxmax-topics button{font-size:10px}.rxmax-keys{display:none}}
@media(max-width:440px){.rxmax-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);border-radius:17px}.rxmax-shell{max-height:calc(100dvh - 14px)}.rxmax-top{padding:12px 14px 3px}.rxmax-intro{padding:9px 14px 16px}.rxmax-intro h2{font-size:26px}.rxmax-intro h2 span{display:block}.rxmax-form{padding:0 14px}.rxmax-content{padding:0 14px 20px}.rxmax-grid{grid-template-columns:1fr}.rxmax-card:first-child{grid-column:auto}.rxmax-dialog .rxmax-card{min-height:158px;padding:17px}.rxmax-card:first-child h3{font-size:18px}.rxmax-field>svg{display:none}.rxmax-field{gap:3px}.rxmax-footer{padding:12px 14px}.rxmax-close kbd{display:none}.rxmax-results-head .rxmax-status{font-size:11px}.rxmax-filter{min-height:38px}}
@media(prefers-reduced-motion:reduce){.rxmax-dialog,.rxmax-dialog::backdrop,.rxmax-dialog *,.rxmax-trigger,.rxmax-trigger::before,.rxmax-trigger *{animation:none!important;transition:none!important;scroll-behavior:auto!important}.rxmax-card:hover,.rxmax-trigger:hover{transform:none!important}}
@media(prefers-reduced-motion:reduce){.rxmax-trigger .rxmax-droid-image{transform:none!important}}
/* Optional integration patch: the site's redicoBento global h2/h3 important
 * rules otherwise override Max's normal/unlayered component typography. */
@layer redicoReadability {
  html body #rxmax-trigger .rxmax-droid-image { max-width:none !important; width:480px !important; height:34px !important; }
  html body #rxmax-dialog .rxmax-field input {
    border: 0 !important; outline: 0 !important; box-shadow: none !important;
    background: transparent !important; color: var(--mx-text) !important;
  }
  html body #rxmax-dialog .rxmax-registry-heading h3 { font-size:18px !important; line-height:1.3 !important; }
  html body #rxmax-dialog .rxmax-registry-grid .rxmax-card h3 { font-size:15px !important; }
  html body #rxmax-dialog :is(h2, h3) {
    color: var(--mx-text) !important;
    font-family: inherit !important;
    font-weight: 650 !important;
  }
  html body #rxmax-dialog .rxmax-intro h2 {
    font-size: clamp(28px, 3.3vw, 41px) !important;
    line-height: 1.13 !important;
    letter-spacing: -1.7px !important;
  }
  html body #rxmax-dialog .rxmax-card h3 {
    font-size: 16px !important;
    line-height: 1.3 !important;
    letter-spacing: -.3px !important;
  }
  html body #rxmax-dialog .rxmax-card:first-child h3 { font-size: 21px !important; }
  html body #rxmax-dialog .rxmax-empty h3 {
    font-size: 20px !important;
    line-height: 1.3 !important;
    letter-spacing: -.3px !important;
  }
  @media (max-width: 700px) {
    html body #rxmax-dialog .rxmax-intro h2 { font-size: 29px !important; letter-spacing: -1px !important; }
  }
  @media (max-width: 440px) {
    html body #rxmax-dialog .rxmax-intro h2 { font-size: 26px !important; }
    html body #rxmax-dialog .rxmax-card:first-child h3 { font-size: 18px !important; }
  }
}

/* Native dialog above the search; original form nodes retain every binding. */
@layer redicoReadability {
  html.rxmax-quote-open { overflow: hidden !important; }
  html body dialog#rxmax-quote-dialog {
    --rxq-bg: #fbfaf7; --rxq-text: #242428; --rxq-muted: #67636b; --rxq-line: #d7d2cc; --rxq-field: #fff;
    width: min(720px, calc(100% - 24px)) !important; max-width: 720px !important;
    max-height: calc(100dvh - 32px) !important; margin: auto !important; padding: 0 !important;
    border: 1px solid var(--rxq-line) !important; border-radius: 24px !important;
    background: var(--rxq-bg) !important; color: var(--rxq-text) !important;
    box-shadow: 0 32px 100px #0005 !important; overflow: auto !important; overscroll-behavior: contain;
    font-family: Inter, Arial, sans-serif !important;
  }
  html[data-theme="dark"] body dialog#rxmax-quote-dialog,
  html[data-rx-theme="dark"] body dialog#rxmax-quote-dialog {
    --rxq-bg: #202126; --rxq-text: #f5f3ef; --rxq-muted: #c4c0c7; --rxq-line: #454249; --rxq-field: #292a30;
  }
  #rxmax-quote-dialog::backdrop { background: #121218a6; backdrop-filter: blur(6px); }
  html body #rxmax-quote-dialog .rxmax-quote-top {
    display: flex !important; align-items: flex-start !important; justify-content: space-between !important; gap: 16px !important;
    padding: 24px 28px 20px !important; border-bottom: 1px solid var(--rxq-line) !important;
    background: var(--rxq-bg) !important;
  }
  html body #rxmax-quote-dialog .rxmax-quote-kicker { font-size: 11px !important; letter-spacing: .1em !important; color: var(--rxq-muted) !important; }
  html body #rxmax-quote-dialog #rxmax-quote-title { margin: 8px 0 !important; color: var(--rxq-text) !important; font-size: clamp(23px,4vw,30px) !important; line-height: 1.15 !important; letter-spacing: -.025em !important; }
  html body #rxmax-quote-dialog .rxmax-quote-top p { margin: 0 !important; color: var(--rxq-muted) !important; font-size: 14px !important; line-height: 1.5 !important; }
  html body #rxmax-quote-dialog .rxmax-quote-close { flex: 0 0 44px !important; width: 44px !important; height: 44px !important; padding: 0 !important; border: 1px solid var(--rxq-line) !important; border-radius: 12px !important; background: transparent !important; color: var(--rxq-text) !important; font: 28px/1 Arial,sans-serif !important; cursor: pointer; }
  html body #rxmax-quote-dialog .rxmax-quote-body { padding: 22px 28px 28px !important; }
  html body #rxmax-quote-dialog .rxmax-quote-source { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--rxq-text) !important; }
  html body #rxmax-quote-dialog .rdx-quote-heading { display: none !important; }
  html body #rxmax-quote-dialog .rdx-attachment { position:relative !important; display:flex !important; align-items:center !important; gap:9px !important; min-height:44px !important; padding:10px 12px !important; border:1px dashed var(--rxq-line) !important; border-radius:9px !important; color:var(--rxq-text) !important; font-size:12px !important; cursor:pointer; }
  html body #rxmax-quote-dialog .rdx-attachment svg { width:16px !important; height:16px !important; color:#b52336 !important; }
  html body #rxmax-quote-dialog .rdx-attachment small { margin-left:auto !important; font-size:11px !important; color:var(--rxq-muted) !important; }
  html body #rxmax-quote-dialog#rxmax-quote-dialog .rdx-attachment input[type="file"] { position:absolute !important; inset:0 !important; width:100% !important; height:100% !important; opacity:0 !important; cursor:pointer; }
  html body #rxmax-quote-dialog .rdx-attachment:focus-within { outline:2px solid #b52336 !important; outline-offset:2px !important; }
  html body #rxmax-quote-dialog :is(label,.rd-field__label,.rd-consent-copy,.rd-consent-copy span,.rd-consent-copy a,.rd-privacy-note,.rd-upload-hint,.rdx-form-status,.rx-ux-form__context) { color: var(--rxq-muted) !important; }
  html body #rxmax-quote-dialog#rxmax-quote-dialog :is(input:not([type="checkbox"]):not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="button"]):not([type="radio"]),textarea,select) { box-sizing: border-box !important; max-width: 100% !important; background: var(--rxq-field) !important; color: var(--rxq-text) !important; border: 1px solid var(--rxq-line) !important; border-radius: 9px !important; min-height:44px !important; padding:9px 11px !important; font-size: 16px !important; line-height:1.4 !important; }
  html body #rxmax-quote-dialog :is(.rxmax-quote-loading,.rxmax-quote-unavailable) { color: var(--rxq-text) !important; font-size: 16px !important; line-height: 1.6 !important; }
  html body #rxmax-quote-dialog .rxmax-quote-unavailable a { display: block !important; padding: 8px 0 !important; color: var(--rxq-text) !important; text-decoration: underline !important; }
  html body #rxmax-quote-dialog .rxmax-quote-close:focus-visible { outline: 3px solid #b52336 !important; outline-offset: 3px !important; }
  @media(max-width:599px) {
    html body #rxmax-quote-dialog .rdx-field-grid { grid-template-columns:1fr !important; }
    html body dialog#rxmax-quote-dialog { border-radius: 18px !important; max-height: calc(100dvh - 16px) !important; }
    html body #rxmax-quote-dialog .rxmax-quote-top { padding: 20px 16px 16px !important; }
    html body #rxmax-quote-dialog .rxmax-quote-body { padding: 18px 16px 22px !important; }
  }
}
@media(prefers-reduced-motion:no-preference) { #rxmax-quote-dialog[open] { animation: rxmaxQuoteIn .2s ease-out; } @keyframes rxmaxQuoteIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } }


/* A scrollable document chooser paired with the original submitted field. */
#rxmax-quote-dialog .rd-quote-documents {
  margin-block-end: 14px;
  border: 1px solid var(--rxq-line, #d9dde3);
  border-radius: 10px;
  color: var(--rxq-text, #191b1f);
  background: var(--rxq-field, #fff);
}
#rxmax-quote-dialog .rd-quote-documents summary {
  min-height: 44px;
  padding: 10px 12px;
  font-weight: 650;
  cursor: pointer;
  overflow-wrap: anywhere;
}
#rxmax-quote-dialog .rd-quote-document-list {
  max-height: min(232px, 33dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 0 7px 7px;
  list-style: none;
  scrollbar-gutter: stable;
}
#rxmax-quote-dialog .rd-quote-document-list button {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
#rxmax-quote-dialog .rd-quote-document-list button:is(:hover, :focus-visible, [aria-pressed="true"]) {
  border-color: var(--rxq-line, #d9dde3);
  background: var(--rd-subtle, #eceef2);
}
#rxmax-quote-dialog .rxmax-quote-body:has(.rd-quote-documents) label[for="document"] {
  display: none !important;
}
/* REDICO: compact three-field enquiries, 17 November 2026.
   A layer gives these scoped important declarations priority over legacy overrides. */
@layer redicoCompact {
html body :where(form[data-redico-lead],form.rx-lead-form,form#rx-orig-contact,form#quote-form) {
  --rdc-reserve: 400px;
}
html body form.rx-ux-form { --rdc-reserve: 480px; }
html body form#quote-form { --rdc-reserve: 420px; }
html.rd-compact-boot body :is(form[data-redico-lead],form.rx-lead-form,form#rx-orig-contact,form#quote-form):not([data-rd-ready]) {
  box-sizing: border-box !important;
  width: 100% !important;
  height: var(--rdc-reserve) !important;
  min-height: var(--rdc-reserve) !important;
  max-height: var(--rdc-reserve) !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: hidden !important;
}
html.rd-compact-boot body #quote:not(:has(form[data-rd-ready])) > :is(.rdx-quote-heading,#quote-heading,p) {
  visibility: hidden !important;
}
html body .rd-compact-shell,
html body .rd-compact-form {
  --rdc-surface: var(--rdx-ui-surface, #fbfaf6);
  --rdc-ink: var(--rdx-ui-ink, #252429);
  --rdc-muted: var(--rdx-ui-muted, #57535a);
  --rdc-red: var(--rdx-ui-red, #ae222d);
  --rdc-line: color-mix(in srgb, var(--rdc-ink) 32%, var(--rdc-surface));
  box-sizing: border-box;
  min-width: 0 !important;
  min-height: 0 !important;
  color: var(--rdc-ink) !important;
}
html body form.rd-compact-form {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: var(--rdc-reserve, 400px) !important;
  padding: 22px !important;
  margin: 0 !important;
  border: 1px solid var(--rdc-line) !important;
  border-radius: 12px !important;
  background: var(--rdc-surface) !important;
  box-shadow: none !important;
  text-align: left !important;
}
html body .rd-compact-form .rd-compact-grid {
  display: grid !important;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr) !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: start !important;
}
html body .rd-compact-form .rd-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  min-width: 0 !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--rdc-ink) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}
html body .rd-compact-form .rd-field--full { grid-column: 1 / -1 !important; }
html body .rd-compact-form .rd-field__label {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--rdc-ink) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}
html body .rd-compact-form .rd-control {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 46px !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid var(--rdc-line) !important;
  border-radius: 8px !important;
  background: var(--rdc-surface) !important;
  color: var(--rdc-ink) !important;
  -webkit-text-fill-color: var(--rdc-ink) !important;
  caret-color: var(--rdc-ink) !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}
html body .rd-compact-form textarea.rd-control {
  height: 94px !important;
  min-height: 94px !important;
  max-height: 220px !important;
  resize: vertical !important;
}
html body .rd-compact-form .rd-control::placeholder { color: var(--rdc-muted) !important; -webkit-text-fill-color: var(--rdc-muted) !important; opacity: 1; }
html body .rd-compact-form input.rd-control:is(:autofill, :-webkit-autofill) {
  -webkit-text-fill-color: var(--rdc-ink) !important;
  caret-color: var(--rdc-ink) !important;
  box-shadow: 0 0 0 1000px var(--rdc-surface) inset !important;
}
html body .rd-compact-form .rd-control:focus-visible {
  outline: 2px solid var(--rdc-red) !important;
  outline-offset: 2px !important;
  border-color: var(--rdc-red) !important;
}
html body .rd-compact-form .rd-consent {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 9px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--rdc-muted) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  cursor: pointer;
}
html body .rd-compact-form .rd-consent input[type="checkbox"] {
  appearance: auto !important;
  flex: 0 0 18px !important;
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  accent-color: var(--rdc-red);
}
html body .rd-compact-form .rd-consent-copy,
html body .rd-compact-form .rd-consent-copy a {
  color: var(--rdc-muted) !important;
  -webkit-text-fill-color: var(--rdc-muted) !important;
  font: inherit !important;
}
html body .rd-compact-form .rd-privacy-note,
html body .rd-compact-form .rd-privacy-note small,
html body .rd-compact-form .rd-privacy-note a {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--rdc-muted) !important;
  -webkit-text-fill-color: var(--rdc-muted) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}
html body .rd-compact-form .rd-consent a,
html body .rd-compact-form .rd-privacy-note a { text-decoration: underline; text-underline-offset: 2px; }
html body .rd-compact-form .rd-submit {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 48px !important;
  height: auto !important;
  margin: 2px 0 0 !important;
  padding: 12px 16px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--rdc-red) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  cursor: pointer;
}
html body .rd-compact-form .rd-submit:hover { background: var(--rdx-ui-red-hover, #941d26) !important; }
html body .rd-compact-form .rd-submit:disabled { opacity: .65; cursor: wait; }
html body .rd-compact-form .rd-submit:focus-visible { outline: 2px solid var(--rdc-ink); outline-offset: 3px; }
html body .rd-compact-form .rd-field-error { color: var(--rdc-red) !important; font-size: 12px !important; font-weight: 400; line-height: 1.4; }
html body .rd-compact-form .rd-field-hint { color: var(--rdc-muted); font-size: 12px; font-weight: 400; }
html body .rd-compact-form .rd-compact-context,
html body .rd-compact-form [hidden],
html body form.rd-compact-form[hidden] { display: none !important; }
/* Obsolete upload chrome and duplicate template policy notes. */
html body .rd-compact-form .rdx-attachment,
html body .rd-compact-form .rdx-privacy-note:not([data-rd-privacy-note]),
html body .rd-compact-form .rx-modal-policy,
html body .rd-compact-form .dc-optional,
html body .rd-compact-form .rr-upload-hint,
html body .rd-compact-form .rd-upload-hint { display: none !important; }
html body .rd-compact-form .rdx-form-status,
html body .rd-compact-form .rx-modal-msg { margin: 0 !important; font-size: 13px !important; line-height: 1.4 !important; }
html body .rd-compact-heading,
html body #quote-heading {
  margin: 0 42px 8px 0 !important;
  padding: 0 !important;
  color: var(--rdc-ink) !important;
  -webkit-text-fill-color: var(--rdc-ink) !important;
  font-size: 28px !important;
  font-weight: 750 !important;
  line-height: 1.15 !important;
  letter-spacing: -.025em !important;
}
html body .rd-compact-intro,
html body #quote-heading + p {
  margin: 0 0 20px !important;
  padding: 0 !important;
  color: var(--rdc-muted) !important;
  -webkit-text-fill-color: var(--rdc-muted) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}
html body .rd-compact-form .rx-ux-form__heading,
html body .rd-compact-form .rx-ux-form__heading strong {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--rdc-ink) !important;
  -webkit-text-fill-color: var(--rdc-ink) !important;
  font-size: 24px !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
}
html body .rd-compact-form .rx-ux-form__context,
html body .rd-compact-form .rd-form-intro {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--rdc-muted) !important;
  -webkit-text-fill-color: var(--rdc-muted) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}
/* Both the theme modal and the native home-page dialog use one compact card. */
html body #rx-modal .rx-modal:has(form[data-redico-lead]),
html body #rdx-quote-dialog,
html body #rx-enc-lead-dialog:has(form.rx-lead-form) {
  box-sizing: border-box !important;
  width: 540px !important;
  max-width: calc(100vw - 32px) !important;
  height: 540px !important;
  min-height: 0 !important;
  max-height: calc(100dvh - 48px) !important;
  padding: 28px !important;
  border: 1px solid color-mix(in srgb, var(--rdx-ui-ink, #252429) 20%, var(--rdx-ui-surface, #fbfaf6)) !important;
  border-radius: 16px !important;
  background: var(--rdx-ui-surface, #fbfaf6) !important;
  color: var(--rdx-ui-ink, #252429) !important;
  box-shadow: 0 24px 80px #0005 !important;
  overflow: auto !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
}
html body #rx-modal .rx-modal:has(form[data-redico-lead]) { display: block !important; }
html body #rx-enc-lead-dialog:has(.rd-compact-form) > .rx-modal-k { display: none !important; }
html body #rx-modal .rx-modal-l { display: none !important; }
html body #rx-modal .rx-modal-r.rd-compact-shell,
html body #rdx-quote-dialog #quote {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body #rx-modal .rd-compact-form,
html body #rdx-quote-dialog .rd-compact-form,
html body #rx-enc-lead-dialog .rd-compact-form {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
html body #rx-modal .rx-modal-close,
html body #rdx-quote-dialog .rdx-dialog-close,
html body #rdx-quote-dialog .rdx-quote-close,
html body #rx-enc-lead-dialog .rx-modal-x {
  box-sizing: border-box !important;
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 2 !important;
  color: var(--rdx-ui-ink, #252429) !important;
  background: transparent !important;
  border: 1px solid color-mix(in srgb, var(--rdx-ui-ink, #252429) 25%, transparent) !important;
  border-radius: 8px !important;
}
/* Inline enquiry on encyclopedia pages: content determines the height. */
html body .rx-lead-in:has(.rd-compact-form) { align-items: start !important; gap: 24px !important; padding: 28px !important; }
html body .rx-lead-box.rd-compact-shell { padding: 0 !important; height: auto !important; min-height: 0 !important; background: transparent !important; }
html body .rx-lead-in:has(.rd-compact-form) .rx-lead-txt { align-self: start !important; }
html body .rx-lead-in:has(.rd-compact-form) .rx-lead-txt h2 { font-size: 30px !important; line-height: 1.2 !important; }
html body .rx-lead-in:has(.rd-compact-form) .rx-lead-l,
html body .rx-lead-in:has(.rd-compact-form) .rx-lead-ul { font-size: 16px !important; line-height: 1.5 !important; }
html body .rx-lead-in:has(.rd-compact-form) .rx-lead-ul { margin-bottom: 0 !important; }
/* The confirmed response inherits the same theme and generous internal padding. */
html body .rd-compact-shell .rd-compact-success {
  box-sizing: border-box !important;
  display: grid !important;
  align-content: center !important;
  justify-items: start !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 300px !important;
  margin: 0 !important;
  padding: 28px !important;
  border: 1px solid var(--rdc-line) !important;
  border-radius: 12px !important;
  background: var(--rdc-surface) !important;
  color: var(--rdc-ink) !important;
  text-align: left !important;
  box-shadow: none !important;
}
html body .rd-compact-success .rd-success-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #27816b18; color: #27816b; font-size: 28px; line-height: 1; }
html body .rd-compact-success .rd-success-title { margin: 0 !important; font-size: 28px !important; font-weight: 750 !important; line-height: 1.2 !important; }
html body .rd-compact-success .rd-success-copy { margin: 0 !important; color: var(--rdc-muted) !important; font-size: 16px !important; line-height: 1.5 !important; }
html body .rd-compact-complete > .rd-compact-heading,
html body .rd-compact-complete > .rd-compact-intro,
html body #rx-enc-lead-dialog.rd-compact-complete > .rx-modal-k,
html body #rx-enc-lead-dialog.rd-compact-complete > #rx-enc-lead-title,
html body #rx-enc-lead-dialog.rd-compact-complete > .rx-enc-modal-description { display: none !important; }
html body #rx-modal .rd-compact-success,
html body #rdx-quote-dialog .rd-compact-success,
html body #rx-enc-lead-dialog .rd-compact-success { min-height: 460px !important; border: 0 !important; padding: 24px !important; background: transparent !important; }
/* The partnership form is rendered by CF7 with the same three fields on the server. */
html body form.rd-partner-form > p,
html body .rd-partner-form .rd-partner-actions > p { margin: 0 !important; padding: 0 !important; }
html body .rd-partner-form .rd-compact-grid > p { display: contents !important; }
html body .rd-partner-form .rd-compact-grid br,
html body .rd-partner-form .rd-partner-consent br { display: none !important; }
html body .rd-partner-form .wpcf7-form-control-wrap { display: block !important; width: 100% !important; }
html body .rd-partner-form .rd-partner-consent .wpcf7-list-item { margin: 0 !important; }
html body .rd-partner-form .rd-partner-consent label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 9px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--rdc-muted) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}
html body .rd-partner-form .rd-partner-actions { position: relative; }
html body .rd-partner-form .wpcf7-spinner { position: absolute !important; right: 10px; top: 50%; margin: -12px 0 0 !important; }
html body .rd-partner-form .wpcf7-response-output { margin: 0 !important; padding: 10px !important; font-size: 13px !important; line-height: 1.45 !important; }
html body .rd-partner-form .wpcf7-response-output:empty { display: none !important; }
html body .rd-partner-form .wpcf7-not-valid-tip { color: var(--rdc-red) !important; font-size: 12px !important; line-height: 1.4 !important; }
@media (max-width: 640px) {
  html body :where(form[data-redico-lead],form.rx-lead-form,form#rx-orig-contact,form#quote-form) { --rdc-reserve: 500px; }
  html body form.rx-ux-form { --rdc-reserve: 580px; }
  html body form#quote-form { --rdc-reserve: 540px; }
  html body .rd-compact-form .rd-compact-grid { grid-template-columns: minmax(0, 1fr) !important; }
  html body form.rd-compact-form { padding: 18px !important; }
  html body #rx-modal .rx-modal:has(form[data-redico-lead]),
  html body #rdx-quote-dialog,
  html body #rx-enc-lead-dialog:has(form.rx-lead-form) { width: 100% !important; height: auto !important; padding: 24px 20px !important; max-width: calc(100vw - 24px) !important; max-height: calc(100dvh - 32px) !important; }
  html body #rx-modal .rd-compact-form,
  html body #rdx-quote-dialog .rd-compact-form,
  html body #rx-enc-lead-dialog .rd-compact-form { padding: 0 !important; }
  html body .rd-compact-heading { font-size: 25px !important; margin-right: 32px !important; }
  html body .rx-lead-in:has(.rd-compact-form) { padding: 20px !important; gap: 20px !important; }
  html body .rx-lead-in:has(.rd-compact-form) .rx-lead-txt h2 { font-size: 26px !important; }
  html body #rx-modal .rd-compact-success,
  html body #rdx-quote-dialog .rd-compact-success,
  html body #rx-enc-lead-dialog .rd-compact-success { min-height: 300px !important; padding: 20px 0 !important; }
}
/* Narrow phones need the same space before and after the consent text wraps. */
@media (max-width: 360px) {
  html body :where(form[data-redico-lead],form.rx-lead-form,form#rx-orig-contact,form#quote-form) { --rdc-reserve: 560px; }
  html body form.rx-ux-form { --rdc-reserve: 640px; }
  html body form#quote-form { --rdc-reserve: 580px; }
}
@media (max-height: 680px) and (min-width: 641px) {
  html body #rx-modal .rx-modal:has(form[data-redico-lead]),
  html body #rdx-quote-dialog,
  html body #rx-enc-lead-dialog:has(form.rx-lead-form) { height: auto !important; }
}

}

/* Keep the home popup as compact as the shared form. HOME uses a dark card
   in both themes, including controls; these rules share its priority layer. */
@layer redicoCompact.redicoHomeSEO20261117 {
  html body.home #rdx-quote-dialog :is(.rdx-eyebrow,.home-seo-form-hint,.rdx-trust-note,#home-mobile-tools) {
    display: none !important;
  }
  html body.home #rdx-quote-dialog .rdx-quote-heading {
    padding-right: 0 !important;
  }
  html body.home #rdx-quote-dialog #quote.rd-compact-complete > .rdx-quote-heading {
    display: none !important;
  }
  html body.home #rdx-quote-dialog .rd-compact-intro {
    margin: 0 0 12px !important;
  }
  html body.home #rdx-quote-dialog .rdx-quote-close {
    width: 44px !important;
    height: 44px !important;
    color: #f5f3ef !important;
    -webkit-text-fill-color: #f5f3ef !important;
    background: #252c37 !important;
    border: 1px solid #6a7685 !important;
  }
  html body.home #rdx-quote-dialog .rdx-quote-close:is(:hover,:focus-visible) {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: #354050 !important;
  }
  html body.home #rdx-quote-dialog .rdx-quote-close:focus-visible {
    outline: 2px solid #ffbdb3 !important;
    outline-offset: 2px !important;
  }
  html body.home #rdx-quote-dialog .rdx-quote-close svg {
    fill: none !important;
    stroke: currentColor !important;
  }
}
.rdtz-nav,.rdtz-roles,.rdtz-card,.rdtz-express,.rdtz-detail,.rdtz-consent-links,.rdtz-express-dialog {
    --rdtz-bg:var(--rx-surface,#fff);
    --rdtz-fg:var(--rx-text,#22252a);
    --rdtz-line:var(--rx-line,#d9dde4);
    --rdtz-accent:#a82a2b;
    box-sizing:border-box;
}
.rdtz-nav {
    position:sticky;top:var(--rdtz-top,0px);z-index:75;
    max-width:100%;min-width:0;margin:12px 0 18px;padding:6px;
    color:var(--rdtz-fg);background:var(--rdtz-bg);border:1px solid var(--rdtz-line);border-radius:14px;
}
.rdtz-nav-items {
    display:flex;gap:6px;align-items:center;overflow-x:auto;overscroll-behavior-inline:contain;
    scrollbar-width:thin;white-space:nowrap;
}
#rsc>.rdtz-nav {width:min(1220px,calc(100% - 26px));margin-inline:auto}
.rdtz-nav a,.rdtz-consent-links a {
    display:inline-flex;align-items:center;min-height:36px;padding:4px 10px;
    border:1px solid transparent;border-radius:9px;color:inherit;text-decoration:none;font-size:.89rem;line-height:1.2;
}
.rdtz-nav a[aria-current],.rdtz-nav a:hover,.rdtz-consent-links a:hover {color:var(--rdtz-accent);border-color:currentColor}
.rdtz-nav a:focus-visible,.rdtz-role-grid a:focus-visible,.rdtz-detail summary:focus-visible,.rdtz-express-dialog button:focus-visible {
    outline:2px solid #b5282c;outline-offset:2px;
}
.rdtz-nav-target,.rdtz-detail [id],:is(#kabeli-do-1000v,#vvoz-obrazcov,#obrazec-sertifikata) {scroll-margin-top:var(--rdtz-anchor-gap,105px)}
.rdtz-roles,.rdtz-card,.rdtz-express {
    color:var(--rdtz-fg);background:var(--rdtz-bg);border:1px solid var(--rdtz-line);
    padding:clamp(14px,3vw,24px);border-radius:18px;margin:18px 0;
}
.rdtz-roles h2,.rdtz-card h2,.rdtz-express h2 {margin:0 0 12px;font-size:clamp(1.2rem,2.7vw,1.65rem);line-height:1.18;color:inherit}
.rdtz-role-grid,.rdtz-responsibilities {
    display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr));gap:10px;
}
.rdtz-role-grid a,.rdtz-responsibilities article {
    min-width:0;border:1px solid var(--rdtz-line);border-radius:12px;padding:12px;
    color:inherit;text-decoration:none;font-weight:650;overflow-wrap:anywhere;
}
.rdtz-role-grid a:hover,.rdtz-role-grid .rdtz-role-active {border-color:#b5282c;color:var(--rdtz-accent);box-shadow:inset 0 0 0 1px #b5282c}
.rdtz-express p {margin:0 0 10px}
.rdtz-express .rdx-button {display:inline-flex;min-height:44px;align-items:center}
.rdtz-express-dialog {
    position:fixed;inset:0;margin:auto;width:min(640px,calc(100vw - 24px));max-height:calc(100dvh - 26px);overflow:auto;
    padding:20px;color:#24262c;background:#fff;border:1px solid #ccd0d7;border-radius:18px;z-index:99999;
}
.rdtz-express-dialog::backdrop {background:#181a22a8}
.rdtz-express-dialog > button {float:right;min-width:40px;min-height:40px;color:#24262c;background:white;border:1px solid #d1d5db;border-radius:8px}
.rdtz-express-dialog .rdx-field {display:block;margin-bottom:10px;color:#24262c}
.rdtz-express-dialog input,.rdtz-express-dialog textarea {max-width:100%;box-sizing:border-box}
.rdtz-express-dialog textarea,.rdtz-express-dialog input:not([type=checkbox]):not([type=hidden]):not([type=file]) {width:100%}
.rdtz-detail {border:1px solid var(--rdtz-line);border-radius:14px;background:var(--rdtz-bg);color:var(--rdtz-fg);padding:12px 16px}
.rdtz-detail > summary {padding:7px 2px;cursor:pointer;font-weight:750;line-height:1.35}
.rdtz-detail[open] > summary {margin-bottom:10px}
.rdtz-card dl {margin:0 0 12px}
.rdtz-card dl > div {display:grid;grid-template-columns:minmax(80px,115px) 1fr;gap:8px;align-items:baseline;padding:6px 0}
.rdtz-card dt {font-weight:750}.rdtz-card dd {margin:0;min-width:0}
.rdtz-consent-links:not([hidden]) {
    display:flex;gap:6px;flex-wrap:wrap;justify-content:center;align-items:center;
    color:var(--rdtz-fg);background:var(--rdtz-bg);padding:6px 14px;margin:12px auto;border:1px solid var(--rdtz-line);
    border-radius:12px;width:max-content;max-width:calc(100% - 28px);
}
html.rdtz-chat-refused :is(#rdhp-chat-launcher,#rdhp-chat-status,[data-salesagent-widget-frame]) {display:none!important}
.rdtz-tooltip {position:relative;display:inline}
.rdtz-tooltip button {font:inherit;display:inline;padding:0;border:none;background:none;color:inherit;cursor:help;text-decoration:underline dotted;text-underline-offset:3px}
.rdtz-tooltip [role=tooltip] {
    display:none;position:absolute;z-index:20;inset:auto auto calc(100% + 6px) 0;width:min(245px,70vw);
    padding:8px 10px;border:1px solid #d8dbe2;border-radius:8px;background:#fff;color:#23262d;font-size:.85rem;box-shadow:0 4px 18px #20252b25;
}
.rdtz-tooltip:not([data-dismissed]):is(:hover,:focus-within) [role=tooltip],.rdtz-tooltip[data-open] [role=tooltip] {display:block}
.rdtz-search-tabs:not([hidden]) {display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.rdtz-search-tabs button {
    padding:9px 14px;min-height:44px;border-radius:10px;border:1px solid #d1d6df;
    background:var(--rx-surface,#fff);color:var(--rx-text,#24262c);font:inherit;cursor:pointer
}
.rdtz-search-tabs button[aria-selected=true] {border-color:#a82a2b;color:#a82a2b;font-weight:750}
@layer redicoCompact {
    body.rd-approved-home #rd-approved-main .hero-main:has(> .rdtz-roles) {
        grid-template-areas:"story" "credentials" "roles" "routes" !important;
    }
    body.rd-approved-home #rd-approved-main .hero-main > .rdtz-roles {grid-area:roles;min-width:0;margin-block:6px 0}
    .rdtz-search-widget :is([role=tabpanel][hidden],.rdx-service[hidden]),
    .rdtz-search-widget:has(#redico-product-guide) #rdtz-products-fallback {display:none!important}
}
#rdtz-products-panel :is(#redico-product-guide,.rdx-jump-anchor) {scroll-margin-top:var(--rdtz-anchor-gap,105px)}
.rdtz-factory-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.rdtz-factory-grid section {border:1px solid var(--rdtz-line);border-radius:12px;padding:14px}
.rdtz-factory-grid li {padding-block:5px}
.ree-empty[hidden], [data-ree-error-registry][hidden] {display:none!important}
.ree-empty :is(a,button) {margin:6px 4px 0 0}
@media(max-width:520px) {
    .rdtz-nav {border-radius:10px;margin:8px 0 13px;padding:4px}
    .rdtz-nav a {padding-inline:8px}
    .rdtz-factory-grid {grid-template-columns:1fr}
}

@font-face {
  font-family:"REDICO Bento Inter";src:url("https://redico.ru/wp-content/plugins/redico-approved-design/assets/inter-cyrillic-variable.woff2") format("woff2");
  font-weight:100 900;font-style:normal;font-display:optional;
  unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family:"REDICO Bento Inter";src:url("https://redico.ru/wp-content/plugins/redico-approved-design/assets/inter-latin-variable.woff2") format("woff2");
  font-weight:100 900;font-style:normal;font-display:optional;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* Metric-adjusted local fallbacks, also available on the compact home bundle. */
@font-face {
  font-family:"REDICO Inter Arial";src:local("Arial"),local("ArialMT");
  font-style:normal;font-weight:400 500;size-adjust:105.27307%;
  ascent-override:92.02258%;descent-override:22.91288%;line-gap-override:0%;
}
@font-face {
  font-family:"REDICO Inter Arial";src:local("Arial Bold"),local("Arial-BoldMT");
  font-style:normal;font-weight:600 900;size-adjust:105.27307%;
  ascent-override:92.02258%;descent-override:22.91288%;line-gap-override:0%;
}
@font-face {
  font-family:"REDICO Inter Roboto";src:local("Roboto"),local("Roboto Regular"),local("Roboto-Regular");
  font-style:normal;font-weight:400 500;size-adjust:103.32717%;
  ascent-override:93.75559%;descent-override:23.34439%;line-gap-override:0%;
}
@font-face {
  font-family:"REDICO Inter Roboto";src:local("Roboto Bold"),local("Roboto-Bold");
  font-style:normal;font-weight:600 900;size-adjust:103.32717%;
  ascent-override:93.75559%;descent-override:23.34439%;line-gap-override:0%;
}
:root {
  --rdx-ui-font:"REDICO Bento Inter","REDICO Inter Arial","REDICO Inter Roboto",Arial,sans-serif;
  --rdx-ui-bg:#121316;
  --rdx-ui-surface:#1c1e23;
  --rdx-ui-soft:#25272c;
  --rdx-ui-line:#303238;
  --rdx-ui-ink:#f6f4ef;
  --rdx-ui-muted:#b7b7bc;
  --rdx-ui-subtle:#a6a7ad;
  --rdx-ui-accent:#f8777a;
  --rdx-ui-tint:#39252b;
  --rdx-ui-red:#ae222d;
  --rdx-ui-red-hover:#941d26;
  --rdx-ui-on-red:#fff;
  --rdx-ui-paper:#f6f4ef;
  --rdx-ui-paper-ink:#222126;
  --rdx-ui-paper-muted:#59565d;
  --rdx-ui-paper-line:#d5d0c9;
  --rdx-ui-radius:22px;
}
:root:is([data-theme="light"],[data-rx-theme="light"]) {
  --rdx-ui-bg:#eeece7;
  --rdx-ui-surface:#fbfaf6;
  --rdx-ui-soft:#f4f1eb;
  --rdx-ui-line:#d9d5cf;
  --rdx-ui-ink:#252429;
  --rdx-ui-muted:#57535a;
  --rdx-ui-subtle:#625c64;
  --rdx-ui-accent:#9d2831;
  --rdx-ui-tint:#f7e7e7;
  --rdx-ui-paper:#fbfaf6;
  --rdx-ui-paper-line:#d9d4cd;
}

/* The shared quote dialog uses a portrait crop of the laboratory photo. */
body #rx-modal .rd-modal-telegram::before {
  background-image: url("https://redico.ru/wp-content/plugins/redico-home-bento/assets/quote-lab-testing.webp") !important;
  background-position: center !important;
}

/* Solid actions share a foreground in every state, including text nested in links.
   Use the site's readability layer so the older prose-link rules cannot recolor them. */
@layer redicoReadability {
  :is(#rdx-layout, main, header, footer, .rx-modal)
  :is(.rdx-primary, .rso-service-action, .rso-service .rso-cta, .rdd-button) {
    background-color: var(--rdx-ui-red) !important;
    color: var(--rdx-ui-on-red) !important;
    -webkit-text-fill-color: currentColor !important;
  }

  :is(#rdx-layout, main, header, footer, .rx-modal)
  :is(.rdx-primary, .rso-service-action, .rso-service .rso-cta, .rdd-button)
  :is(span, strong, b, small, em) {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
  }

  :is(#rdx-layout, main, header, footer, .rx-modal)
  :is(.rdx-primary, .rso-service-action, .rso-service .rso-cta, .rdd-button):is(:hover, :active) {
    background-color: var(--rdx-ui-red-hover) !important;
  }

  :is(#rdx-layout, main, header, footer, .rx-modal)
  :is(.rdx-primary, .rso-service-action, .rso-service .rso-cta, .rdd-button):focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 5px #261c21 !important;
  }
}

/* Enqueued only on internal pages. Keep the original forms and their handlers. */
.rdx-hero.rdx-role-hero { align-items: start; }
.rdx-role-hero .rdx-intro-copy { padding-block-start: clamp(14px, 1.8vw, 21px); }

#rdx-layout .rdx-quote-compact {
  align-self: start;
  padding: clamp(14px, 1.8vw, 21px);
}
#rdx-layout .rdx-quote-compact h2 {
  font-size: clamp(21px, 1.9vw, 27px);
  margin: 0 0 5px;
  line-height: 1.15;
}
#rdx-layout .rdx-quote-compact #quote-form { margin-top: 9px; }
#rdx-layout .rdx-quote-compact .rdx-field-grid { gap: 6px 9px; }
#rdx-layout .rdx-quote-compact .rdx-field :is(input, select) {
  height: 40px;
  margin-top: 3px;
}
#rdx-layout .rdx-quote-compact .rdx-field textarea { min-height: 50px; }
#rdx-layout .rdx-quote-compact .rdx-attachment { min-height: 40px; align-self: end; margin: 0; }
#rdx-layout .rdx-quote-compact .rdx-consent { min-height: 24px; margin-top: 7px; }
#rdx-layout .rdx-quote-compact .rdx-form-status:empty { margin: 0; }
#rdx-layout .rdx-quote-compact .rdx-submit { min-height: 42px; }

@media (max-width: 760px) {
  #rdx-layout .rdx-quote-compact .rdx-field :is(input, select, textarea) { font-size: 16px; }
  #rdx-layout .rdx-quote-compact .rdx-attachment {
    display: grid;
    grid-template-columns: 15px minmax(0, 1fr);
    column-gap: 5px;
    row-gap: 1px;
  }
  #rdx-layout .rdx-quote-compact .rdx-attachment small { grid-column: 2; margin: 0; }
}

/* Keep legacy hero cards at the top of the existing grid, using the same compact fields. */
@layer redicoReadability {
  html body :is(.rx-ux-hero, .rnt-hero-grid, .rsc-form-card, .rr-hero-grid) :is(.rx-ux-form-slot, .rx-ux-form-wrap, .rx-lead-card) {
    align-self: start !important;
    min-width: 0 !important;
    margin-block-start: 0 !important;
  }
  html body :is(.rx-ux-form-wrap, .rx-lead-card).rd-form-shell {
    --rdx-legacy-form-ink: var(--rdx-ui-paper-ink);
    --rdx-legacy-form-muted: var(--rdx-ui-paper-muted);
    --rx-readable-field-bg: #fffdfa;
    --rx-readable-field-text: var(--rdx-legacy-form-ink);
    --rx-readable-placeholder: var(--rdx-legacy-form-muted);
    --rx-readable-border: #8b858b;
    --rx-readable-accent: var(--rdx-ui-red);
    --redico-text-link: var(--rdx-ui-red);
    --redico-text-link-hover: var(--rdx-ui-red-hover);
    height: auto !important;
    min-height: 0 !important;
    padding: clamp(12px, 1.35vw, 17px) !important;
    background: var(--rdx-ui-paper) !important;
    border-color: var(--rdx-ui-paper-line) !important;
    border-radius: 18px !important;
    color-scheme: light !important;
  }
  html body :is(.rx-ux-form-wrap, .rx-lead-card) form.rd-contact-card:not([hidden]) {
    gap: 6px !important;
    min-height: 0 !important;
    color-scheme: light !important;
    color: var(--rdx-legacy-form-ink) !important;
  }
  html body :is(.rx-ux-form-wrap, .rx-lead-card) form.rd-contact-card .rd-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px 9px !important;
  }
  html body :is(.rx-ux-form-wrap, .rx-lead-card) form.rd-contact-card .rd-form-grid .rd-field {
    grid-column: auto !important;
    gap: 3px !important;
  }
  html body :is(.rx-ux-form-wrap, .rx-lead-card) form.rd-contact-card .rd-form-grid .rd-field--full {
    grid-column: 1 / -1 !important;
  }
  html body :is(.rx-ux-form-wrap, .rx-lead-card) form.rd-contact-card .rd-field__label {
    color: var(--rdx-legacy-form-ink) !important;
    -webkit-text-fill-color: currentColor !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
  }
  html body :is(.rx-ux-form-wrap, .rx-lead-card) form.rd-contact-card .rd-field :is(input:not([type="file"]), select, textarea).rd-control {
    height: 40px !important;
    min-height: 40px !important;
    padding: 6px 8px !important;
    background: #fffdfa !important;
    color: var(--rdx-legacy-form-ink) !important;
    -webkit-text-fill-color: currentColor !important;
    border-color: var(--rdx-ui-paper-line) !important;
    border-radius: 8px !important;
    font-size: 16px !important;
  }
  html body :is(.rx-ux-form-wrap, .rx-lead-card) form.rd-contact-card .rd-form-grid .rd-field textarea.rd-control {
    height: 52px !important;
    min-height: 52px !important;
  }
  html body :is(.rx-ux-form-wrap, .rx-lead-card) form.rd-contact-card .rd-control::placeholder {
    color: var(--rdx-legacy-form-muted) !important;
    -webkit-text-fill-color: currentColor !important;
  }
  html body :is(.rx-ux-form-wrap, .rx-lead-card) form.rd-contact-card :is(.rx-ux-form__heading, .rx-ux-form__heading strong, .rx-lead-title) {
    margin: 0 !important;
    color: var(--rdx-legacy-form-ink) !important;
    -webkit-text-fill-color: currentColor !important;
    font-size: clamp(19px, 1.8vw, 24px) !important;
    line-height: 1.16 !important;
  }
  html body :is(.rx-ux-form-wrap, .rx-lead-card) form.rd-contact-card :is(.rx-ux-form__context, .rd-form-intro, .rd-consent, .rd-consent-copy, .rd-consent-copy a, .rd-upload-hint, .rd-file-picker__name, .rx-audit-note) {
    color: var(--rdx-legacy-form-muted) !important;
    -webkit-text-fill-color: currentColor !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
  }
  html body :is(.rx-ux-form-wrap, .rx-lead-card) form.rd-contact-card .rd-file-picker {
    min-height: 36px !important;
    padding: 3px 5px !important;
  }
  html body :is(.rx-ux-form-wrap, .rx-lead-card) form.rd-contact-card .rd-submit {
    min-height: 42px !important;
    padding: 8px 12px !important;
    background: var(--rdx-ui-red) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
  html body :is(.rx-ux-form-wrap, .rx-lead-card) form.rd-contact-card .rd-submit:hover {
    background: var(--rdx-ui-red-hover) !important;
  }
}


@layer redicoReadability {
  html body:not(.redico-page-dokumenty) .rx-ux-form-wrap form.rd-contact-card .rx-ux-form__context,
  html body .rx-ux-form-wrap form.rd-contact-card .rx-audit-note {
    display: none !important;
  }

  html body :is(.rx-ux-form-wrap, .rx-lead-card) form.rd-contact-card .rd-form-grid .rd-file-field {
    display: grid !important;
    grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
    align-items: center;
    gap: 3px 8px !important;
  }
  html body :is(.rx-ux-form-wrap, .rx-lead-card) .rd-file-field .rd-file-picker {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  html body :is(.rx-ux-form-wrap, .rx-lead-card) form.rd-contact-card .rd-file-field .rd-upload-hint {
    margin: 0 !important;
    font-size: 11px !important;
  }
  html body :is(.rx-ux-form-wrap, .rx-lead-card) .rd-file-field .rd-file-picker__button {
    min-height: 28px;
    padding: 3px 8px;
    background: #efe9e5 !important;
    color: var(--rdx-legacy-form-ink) !important;
    -webkit-text-fill-color: currentColor !important;
  }

  @container (min-width: 340px) {
    html body :is(.rx-ux-form-wrap, .rx-lead-card) form.rd-contact-card:not([hidden]) {
      grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) !important;
      align-items: center;
    }
    html body :is(.rx-ux-form-wrap, .rx-lead-card) form.rd-contact-card .rd-form-grid .rd-field--full:has(> :is(select, textarea)) {
      grid-column: auto !important;
    }
    html body :is(.rx-ux-form-wrap, .rx-lead-card) form.rd-contact-card > :not(.rd-consent, .rd-submit) {
      grid-column: 1 / -1;
    }
    html body :is(.rx-ux-form-wrap, .rx-lead-card) form.rd-contact-card > :is(.rd-consent, .rd-submit) {
      grid-column: auto !important;
    }
  }
}


@layer redicoReadability {
  html body .rd-form-shell:is(.rx-ux-form-wrap, .rx-lead-card) .rd-file-field {
    color: var(--rdx-legacy-form-ink) !important;
  }
  html body .rd-form-shell:is(.rx-ux-form-wrap, .rx-lead-card) .rd-file-field small.rd-upload-hint {
    -webkit-text-fill-color: var(--rdx-legacy-form-muted) !important;
  }
  html body :is(#rsc-quote, #rnt-service, main, .rx-enc-hero) .rd-form-shell:is(.rx-ux-form-wrap, .rx-lead-card) .rx-audit-preparation > summary {
    color: var(--rdx-legacy-form-ink) !important;
    -webkit-text-fill-color: currentColor !important;
  }
  html body :is(#rsc-quote, #rnt-service, main, .rx-enc-hero) .rd-form-shell:is(.rx-ux-form-wrap, .rx-lead-card) .rx-audit-preparation :is(p, li) {
    color: var(--rdx-legacy-form-muted) !important;
    -webkit-text-fill-color: currentColor !important;
  }
  html[data-rx-bento] body:not(.home) :is(#rsc-quote, #rnt-service, main, .rx-enc-hero) .rd-form-shell:is(.rx-ux-form-wrap, .rx-lead-card) a[href]:is(.rx-ux-prepare-link, .rd-consent-copy a) {
    color: var(--rdx-ui-red) !important;
    -webkit-text-fill-color: currentColor !important;
  }
}

/* Keep the site's existing 1280px content rail. A section inside that rail
   uses the full parent width rather than subtracting a second page gutter. */
body {
  --rdx-inner-gutter: var(--redico-grid-gutter, 24px);
  --rdx-inner-rail: min(var(--redico-grid-width, 1280px), calc(100% - 2 * var(--rdx-inner-gutter)));
}
@media (max-width: 768px) {
  body { --rdx-inner-gutter: var(--redico-grid-gutter, 16px); }
}

@layer redicoReadability {
  body:not(.home) :is(
    #rsc > .rsc-wrap,
    #rdx-layout > #content.rdx-wrap,
    main > .rso-enhancement,
    main.rx-service > :is(.sv-nav, .rxgr-nav, .rxpi-nav)
  ) {
    box-sizing: border-box !important;
    width: var(--rdx-inner-rail) !important;
    max-width: none !important;
    margin-inline: auto !important;
  }

  body:not(.home) :is(#rsc > .rsc-wrap, #rdx-layout > #content.rdx-wrap) {
    padding-inline: 0 !important;
  }

  body:not(.home) :is(#rsc > .rsc-wrap, #rdx-layout > #content.rdx-wrap, main.rx-wrap) > .rso-enhancement {
    width: 100% !important;
    margin-inline: 0 !important;
  }

  body:not(.home) main :is(.rso-enhancement[data-redico-service-seo], #rso-service-sources.rso-enhancement) {
    box-sizing: border-box !important;
    padding: clamp(18px, 2.3vw, 32px) !important;
  }

  /* Use the same neutral surfaces as the homepage for the header and menus. */
  html[data-rx-bento] body:not(.home) :is(header.rx-header:is(#rnt-header, .rx-header), dialog.rpm-dialog) {
    background: var(--rdx-ui-surface) !important;
    border-color: var(--rdx-ui-line) !important;
    color: var(--rdx-ui-ink) !important;
  }
  html[data-rx-bento] body:not(.home) header.rx-header:is(#rnt-header, .rx-header) .rx-logo {
    background: transparent !important;
    box-shadow: none !important;
  }
  html[data-rx-bento][data-rx-theme="dark"] body:not(.home) :is(.rnt-hero-band, .rc-theme-band) {
    background: var(--rdx-ui-surface) !important;
  }
  html[data-rx-bento][data-rx-theme="dark"] body:not(.home) header.rx-header:is(#rnt-header, .rx-header) .rx-logo img {
    filter: brightness(0) invert(1) !important;
  }

  body.redico-page-notifikaciya #rnt-service .rnt-grid > :is(#sv-answer, #sv-prepare) {
    grid-column: 1 / -1 !important;
  }

  body.redico-page-notifikaciya #rnt-header {
    --rnt-hero-text: var(--rdx-ui-ink);
  }
}
