/* Customer adjustments layered over the preserved homepage. */
.refined-four .r3-gallery-caption{justify-content:flex-end}

/* Give the mobile phone illustration room for wrapped labels and its home indicator. */
@media (max-width: 950px) {
  .refined-four .d-hero-scene {
    grid-template-rows: minmax(586px, auto);
  }

  .refined-four .d-hero-scene :is(.d-panorama, .d-scene-shade) {
    grid-row: 1 / 2;
    height: 100%;
  }

  .refined-four .d-hero-scene .d-phone {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 560px;
  }

  .refined-four .d-hero-scene .phone-home {
    position: static;
    flex: none;
    margin: auto auto 8px;
    transform: none;
  }
}

/* Adjacent sections share a responsive spacing budget instead of stacking
   the original 60px to 100px section padding on both sides of each boundary. */
.refined-four{
  --home-section-space:clamp(24px,3vw,36px);
  --home-heading-space:clamp(24px,2.5vw,32px);
}
.refined-four :is(.r3-tests,.r3-upload,.r3-process){
  padding-block:var(--home-section-space);
}
.refined-four :is(.r3-upload,.r3-process)>.center-heading{
  margin-bottom:var(--home-heading-space);
}
.refined-four .r3-purchase-grid{
  gap:clamp(32px,4vw,48px);
}
.refined-four .r3-faq-inner{
  padding-block:var(--home-section-space);
}
.refined-four .r3-finish-horizon{
  padding-block:var(--home-section-space);
}
.refined-four .footer{
  padding-top:var(--home-section-space);
}

.approved-feedback-shell{position:fixed;right:20px;bottom:20px;z-index:900;font:16px/1.5 -apple-system,BlinkMacSystemFont,'Helvetica Neue',Arial,sans-serif;color:#293936}.approved-feedback-shell *{box-sizing:border-box}.approved-feedback-shell [hidden]{display:none!important}.approved-feedback-shell>button{box-shadow:0 3px 20px #29393618;background:#fff;min-height:44px}.approved-feedback{position:absolute;right:0;bottom:60px;width:min(390px,calc(100vw - 40px));max-height:calc(100dvh - 110px);overflow:auto;overscroll-behavior:contain;padding:24px;background:white;border:1px solid #dce3dc;border-radius:24px;box-shadow:0 12px 60px #29393625}.approved-feedback h2{font-size:22px;line-height:1.3;margin:0 0 12px}.approved-feedback p{font-size:14px;line-height:1.5;margin:12px 0}.approved-feedback label{display:block;margin:12px 0 8px}.approved-feedback :is(textarea,select){width:100%;font:inherit;border:1px solid #cdd8d0;border-radius:14px;padding:12px;min-height:44px;background:white;color:#293936}.approved-feedback textarea{min-height:110px;resize:vertical}.approved-feedback>div{margin-top:16px}.approved-feedback button{font:inherit;min-height:44px}.approved-feedback-tools{display:flex;align-items:center;gap:10px;justify-content:space-between;padding-top:12px;border-top:1px solid #e3e7df}.approved-feedback-tools a{display:flex;align-items:center;min-height:44px;color:inherit}.approved-feedback-tools button{padding:9px 12px}.approved-feedback select{appearance:none;padding-right:44px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236a756c' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 16px center;background-repeat:no-repeat}.approved-feedback-shell :is(button,a,select,textarea):focus-visible{outline:2px solid #a44764;outline-offset:3px}.approved-no-media img{visibility:hidden}@media(max-width:580px){.approved-feedback-shell{right:12px;bottom:12px}.approved-feedback{padding:20px}}@media(max-width:370px){.approved-feedback-tools{flex-wrap:wrap}.approved-feedback{padding:18px}}

.home-map-recovery{padding:36px;background:#e5efed;border-radius:28px}.home-map-recovery p{margin:16px 0}.home-map-recovery .button{margin:8px 8px 0 0}

/* The compact map uses a transparent full-card button above its tiles. */
.connected-public-map {
  isolation: isolate;
}

.connected-public-map button.fx-map-preview{background:transparent!important}

@media (max-width: 850px) {
  #sampling-locations .wa-map.fx-map-open .fx-map-card {
    padding: 16px;
    gap: 14px;
    border: 1px solid #dce4dd;
    border-radius: 24px;
    background: #edf3ee;
  }

  #sampling-locations .wa-map.fx-map-open .fx-map-intro {
    padding: 0 !important;
    background: transparent;
  }

  #sampling-locations .wa-map.fx-map-open .fx-map-tools {
    order: 1;
    padding: 14px;
    border: 1px solid #dce4dd;
    border-radius: 18px;
    background: white;
  }

  #sampling-locations .wa-map.fx-map-open .fx-map-tools-top > label {
    color: #344b42;
    font-size: 14px;
  }

  #sampling-locations .wa-map.fx-map-open .mc-search-line input {
    font-size: 16px !important;
    min-width: 0;
  }

  #sampling-locations .wa-map.fx-map-open .mc-list-heading {
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  #sampling-locations .wa-map.fx-map-open [data-map-browse] {
    padding-inline: 14px;
    border: 1px solid #dce4dd;
    border-radius: 24px;
  }

  #sampling-locations .wa-map.fx-map-open .fx-map-stage {
    order: 2;
    min-height: 0;
    height: clamp(235px, 36svh, 320px);
    border-radius: 16px;
  }
}

/* Feedback controls own their appearance across restored page stylesheets. */
.approved-feedback-shell .feedback-button{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:44px;max-width:100%;padding:10px 18px;border:1px solid #e3e7df;border-radius:30px;background:#fff;color:#293936;text-decoration:none;font:inherit;font-size:inherit!important;cursor:pointer}
.approved-feedback-shell .feedback-button:hover{background:#fff;box-shadow:0 3px 14px #2939360a}
.approved-feedback-shell .feedback-button.primary{background:#f73669;border-color:#f73669;color:#fff}
.approved-feedback-shell .feedback-button.primary:hover{background:#e62f60}
.approved-feedback-shell .feedback-button:disabled{opacity:.55;cursor:default}

/* Size the stacked demo scenes to their content so source provenance stays visible. */
.refined-four .r3-demo-deck{display:grid;height:auto}
.refined-four .r3-demo-scene{position:relative;inset:auto;grid-area:1/1;min-width:0;min-height:470px}
@media(max-width:650px){.refined-four .r3-demo-scene{min-height:530px}}
@media(max-width:390px){.refined-four .r3-demo-scene{min-height:570px}}

/* The photo cards provide the same choices as the desktop category bar. */
@media (max-width: 760px) {
  .refined-four :is(.r3-test-tabs, .d4-faq-filters, .d4-security) {
    display: none;
  }

  .refined-four .r3-demo-deck {
    display: block;
    height: auto;
  }

  .refined-four .r3-demo-scene {
    min-height: 0;
  }

  .refined-four .r3-live-table th {
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: anywhere;
    vertical-align: bottom;
  }

  .refined-four .r3-demo-scene:not(.is-current) {
    position: absolute;
    inset: 0 0 auto;
    visibility: hidden;
  }

  .refined-four .r3-live-workspace {
    display: flex;
    flex-direction: column;
  }

  .refined-four .r3-demo-navigation {
    order: -1;
    margin: 0 0 12px;
  }

  .refined-four .r3-live-heading {
    order: -2;
  }

  body.refined-four[data-connected=true] .r3-demo-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    border-radius: 19px;
  }

  .refined-four .r3-demo-tabs button {
    flex: 1 0 max-content;
    min-width: 64px;
    padding-inline: 10px;
    white-space: nowrap;
  }

  .refined-four .r3-horizon-photo {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    background: #f7f5ef;
  }

  .refined-four .r3-horizon-copy {
    grid-row: 1;
    padding: 28px 24px 0;
  }

  .refined-four .r3-horizon-photo > img {
    position: static;
    grid-row: 2;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 75% center;
    mask-image: linear-gradient(to bottom, transparent, black 22%);
  }

  .refined-four .r3-horizon-wash {
    display: none;
  }

  .refined-four .footer .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
    padding-bottom: 24px;
  }

  .refined-four .footer-main > div {
    min-width: 0;
  }

  .refined-four .footer-main strong {
    margin-bottom: 6px;
  }

  .refined-four .footer-main :is(a:not(.brand), button) {
    display: flex;
    align-items: center;
    text-align: start;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  body.refined-four[data-connected=true] .site-shell.footer {
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  body.refined-four[data-connected=true] .site-shell.footer .footer-note {
    display: grid;
    justify-content: start;
    gap: 4px;
    padding-bottom: 0;
  }
}

body[data-connected=true] [data-motion] {
  display: none;
}

@media (max-width: 1023px) {
  html:has(.site-shell.is-searching) {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .site-shell.search-preview.is-searching .nav-search-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    max-height: var(--search-available-height, calc(100dvh - 110px));
  }

  .site-shell.is-searching #nav-search-results {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }

  body[data-connected=true] .site-shell .nav-search-form input {
    font-size: 16px !important;
  }
}

.site-shell [lang="sv"] > span > .eh-lang-flag::before { content: "🇸🇪"; }
.site-shell [lang="en"] > span > .eh-lang-flag::before { content: "🇬🇧"; }
.site-shell .eh-lang-flag {
  margin-inline-end: 8px;
}

/* Header language control (lib/approved-language-control.ts) on the home,
   catalogue and product pages. The button is the Search item's sibling and
   copies what Search renders with: the inherited header ink, 14px at 400
   weight and 1.4 line height, the 20px icon, padding, pill radius and hover.
   The documents force every button to 15px with an !important rule
   (body[data-connected=true] button); Search keeps 14px through its own
   !important rule, and these rows do the same. The menu copies the header
   search panel: white, the #eae5ed hairline, the #3023381a soft shadow, 14px
   radius rows with the #f5f2f8 hover and #a293b9 focus ring, and the phone
   menu's 0.2s fade down. At 580px and below the header keeps its approved
   items only and the two choices end the phone menu. */
.site-shell .eh-lang{position:relative;display:inline-flex;flex-shrink:0}
.site-shell .eh-lang-trigger{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:10px 15px;border:0;border-radius:99px;background:transparent;color:inherit;font-family:var(--review-font,inherit);font-size:14px!important;font-weight:400;line-height:1.4;white-space:nowrap;cursor:pointer}
.site-shell .eh-lang-trigger:hover{background:#f5f4f7;color:#202026}
.site-shell .eh-lang-trigger svg{width:20px;height:20px;flex-shrink:0}
.site-shell .eh-lang-menu{box-sizing:border-box;min-width:168px;margin:0;padding:8px;list-style:none;border:1px solid #eae5ed;border-radius:22px;background:#fff;box-shadow:0 20px 64px #3023381a;color:#29242e;font-family:var(--review-font,inherit);font-size:14px;line-height:1.4}
.site-shell .eh-lang-menu:not([popover]){position:absolute;top:calc(100% + 8px);right:0;z-index:1;animation:ehLangIn .2s ease both}
.site-shell .eh-lang-menu li{display:block;margin:0;padding:0}
.site-shell .eh-lang-option{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:14px;background:transparent;color:inherit;font:inherit;font-size:14px!important;text-align:left;white-space:nowrap;cursor:pointer}
.site-shell .eh-lang-option:hover,.site-shell .eh-lang-option:focus-visible{background:#f5f2f8}
.site-shell .eh-lang-option:focus-visible{outline:2px solid #a293b9;outline-offset:1px}
.site-shell .eh-lang-check{width:16px;height:16px;flex-shrink:0}
/* Without the script the menu is a native popover: anchored under the button
   where the browser supports anchoring, otherwise centred by the browser. */
.site-shell .eh-lang-menu[popover]{display:none;margin:auto}
.site-shell .eh-lang-menu[popover]:popover-open{display:block}
@supports (anchor-name:--eh-lang){
  .site-shell .eh-lang-trigger{anchor-name:--eh-lang}
  .site-shell .eh-lang-menu[popover]{position-anchor:--eh-lang;inset:auto;top:anchor(bottom);right:anchor(right);margin:8px 0 0}
}
.site-shell .eh-lang-rows{margin-top:8px}
.site-shell .eh-lang-row{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:52px;padding:12px 18px;border:0;border-radius:16px;background:transparent;color:inherit;font:inherit;font-size:16px!important;text-align:left;white-space:nowrap;cursor:pointer}
.site-shell .eh-lang-row:hover{background:#fff0f3}
.site-shell .eh-lang-row .eh-lang-check{width:18px;height:18px}
/* The phone menu colours its last link; the language rows now follow it. */
.site-shell .mobile-menu>a:last-of-type{color:#cf345a}
@media(max-width:1200px){.site-shell .eh-lang-trigger{padding-inline:11px}}
@media(max-width:1023px){.site-shell.search-preview.is-searching .eh-lang{display:none}}
@media(max-width:580px){.site-shell .nav-actions>.eh-lang{display:none}}
@keyframes ehLangIn{from{opacity:0;translate:0 -6px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){.site-shell .eh-lang-menu{animation:none}}
.site-shell.motion-off .eh-lang-menu{animation:none}
