/* Coveo Search Plugin – Public Styles WCAG 2.1 AA compliant Author: Pavan Kumar Madala. */
:root {
  /* Primary darkened to #0065cc — contrast 5.36:1 on white (was 4.41:1, failed) */
  --coveo-primary:    #0065cc;
  --coveo-border:     #d1d5db;
  --coveo-bg:         #ffffff;
  /* Muted text darkened to #595f6a — contrast 5.93:1 on white (was 4.41:1, failed) */
  --coveo-muted:      #595f6a;
  --coveo-hover-bg:   #f3f4f6;
  --coveo-radius:     6px;
  --coveo-shadow:     0 2px 8px rgba(0,0,0,.1);
  /* Accessible focus ring: solid #0065cc at 3px — 5.36:1 on white, meets WCAG 2.4.11 3:1 */
  --coveo-focus-ring: 0 0 0 3px #0065cc;

  --coveo-ink-soft:       #0D0D0D;
  --coveo-text-weak:      #56545D; /* 7.6:1 on white */
  --coveo-text-weaker:    #6E6C73; /* 5.4:1 on white */
  --coveo-border-soft:    #ECEBE6;
  --coveo-surface-tint:   #F4F3EE;
  /* Brand purple darkened from the source mockup's #7957FF (too close to the AA text
     threshold on white to rely on) to #6A3DFF (comfortably >4.5:1) so it's safe to use. */
  --coveo-brand-purple:      #7957FF;
  --coveo-brand-purple-band: #D7D7FF;
  --coveo-radius-lg:   24px;
  --coveo-radius-pill: 100px;
  /* Blog category pill tags — matches the source mockup exactly (#B6003C on
     #FFD1D3 measures ~5.1:1, meets WCAG AA 4.5:1 for normal text). */
  --coveo-tag-bg:   #FFD1D3;
  --coveo-tag-text: #B6003C;
  /* Plus Jakarta Sans is loaded via Google Fonts by coveo_enqueue_font() (coveo-search.php)
     and can be turned off from the plugin dashboard (Typography → Disable Plus Jakarta Sans). */
  --coveo-font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --coveo-font-body:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --Neutrals-Cool-Gray-Light: #CFCED0;
  --coveo-dark-black:     #000000;
  --coveo-ink:            #0D0A15;
  --Warm-Neutral-Galaxy-Dark: #85837A
}

/* ── Screen-reader-only utility ─────────────────────── */
/* WCAG 2.4.1 — allows visually-hidden but announced content */
.coveo-sr-only {
  position:   absolute;
  width:      1px;
  height:     1px;
  padding:    0;
  margin:     -1px;
  overflow:   hidden;
  clip:       rect(0, 0, 0, 0);
  clip-path:  inset(100%);
  white-space: nowrap;
  border:     0;
}

/* ── Skip link (WCAG 2.4.1) ─────────────────────────── */
.coveo-skip-link {
  position:   absolute;
  left:       -9999px;
  top:        6px;
  z-index:    9999;
  padding:    8px 16px;
  background: var(--coveo-primary);
  color:      #fff;
  font-weight: 600;
  border-radius: var(--coveo-radius);
  text-decoration: none;
}
.coveo-skip-link:focus {
  left: 6px;
}

.coveo-search-main {
  background: var(--coveo-bg);
  font-family: var(--coveo-font-body);
}

/* ── Search wrap ── */
.coveo-search-wrap {
  position:  relative;
  max-width: 680px;
  /* margin:    auto; */
}

/* ── Search form / box ── Restyled as a single pill: the border/radius now live on the
   wrapping form, not on the input — the input and button sit inside it borderless. */
.coveo-search-box {
  display:       flex;
  align-items:   center;
  gap:           8px;
  padding:       8.5px 16px;
  /* B6B6B9 is the design's own border color for this one component — intentionally not
     var(--coveo-border) (#d1d5db), which is the pre-existing token shared by every other. */
  border:        1px solid #B6B6B9;
  border-radius: var(--coveo-radius-pill);
  background:    var(--coveo-bg);
  transition:    border-color .2s, box-shadow .2s;
  height: 44px;
}
.coveo-search-box:focus-within {
  border-color: var(--coveo-brand-purple);
  box-shadow:   0 0 0 3px rgba(106, 61, 255, .25);
}
.coveo-tabs-wrap,
.coveo-search-page .coveo-search-wrap,
.coveo-search-widget .coveo-search-wrap {
  max-width: 1032px;
}

/* ── Flyout panel ── */
.coveo-flyout {
  position:      absolute;
  top:           calc(100% + 4px);
  left:          0;
  right:         0;
  background:    var(--coveo-bg);
  border:        1px solid var(--coveo-border);
  border-radius: var(--coveo-radius);
  box-shadow:    0 8px 32px rgba(0,0,0,.14);
  z-index:       1000;
  overflow:      hidden;
  min-width:     520px;
}

.coveo-flyout-body {
  display:    flex;
  min-height: 120px;
}

/* text-align:left is explicit (not just the default) to override themes that set
   text-align:center on content containers — OceanWP centers headings/text that would otherwise cascade. */
.coveo-flyout-left  { flex: 0 0 50%; width: 50%; padding: 18px 16px 12px; text-align: left; }
.coveo-flyout-right { flex: 0 0 50%; width: 50%; padding: 18px 16px 12px; text-align: left; }
.coveo-flyout-body:has(.coveo-flyout-left[hidden]) .coveo-flyout-right,
.coveo-flyout-body:has(.coveo-flyout-right[hidden]) .coveo-flyout-left {
  flex: 0 0 100%;
  width: 100%;
}
.coveo-flyout-divider {
  width:      1px;
  background: var(--coveo-border);
  flex-shrink: 0;
}

.coveo-flyout-heading {
  font-size:      .8rem;
  font-weight:    700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color:          var(--coveo-muted);
  margin-bottom:  10px;
}

/* ── Suggestion items ── */
.coveo-flyout-sugg-list {
  list-style: none;
  margin:     0;
  padding:    0;
}

/* Suggestion items are option-role elements — support keyboard focus */
.coveo-flyout-sugg-item {
  padding:       8px 10px;
  border-radius: var(--coveo-radius);
  cursor:        pointer;
  font-size:     1.05rem;
  color:         #111827;
  transition:    background .12s;
  outline:       none;
}
.coveo-flyout-sugg-item:focus-visible {
  box-shadow: inset 0 0 0 2px var(--coveo-primary);
}
.coveo-flyout-sugg-item:hover,
.coveo-flyout-sugg-item[aria-selected="true"] {
  background: var(--coveo-hover-bg);
}
/* Keyboard-active suggestion (arrow key navigation) — box-shadow avoids inset outline clipping */
.coveo-flyout-sugg-item--active {
  background: var(--coveo-hover-bg);
  box-shadow: inset 0 0 0 2px var(--coveo-primary);
  border-radius: var(--coveo-radius);
}
.coveo-flyout-sugg-item strong { font-weight: 700; color: #111827; }

/* ── Product list (<ul> reset) ── */
.coveo-flyout-prod-list {
  list-style: none;
  margin:     0;
  padding:    0;
}

/* ── Product items ── */
.coveo-flyout-prod-item {
  display:         flex;
  align-items:     center;
  gap:             12px;
  padding:         8px 10px;
  border-radius:   var(--coveo-radius);
  text-decoration: none;
  color:           #111827;
  transition:      background .12s;
  margin-bottom:   4px;
}
/* Lock colour for visited state — prevents themes from turning links purple */
.coveo-flyout-prod-item:visited { color: #111827; }
.coveo-flyout-prod-item:hover,
.coveo-flyout-prod-item[aria-selected="true"]  { background: var(--coveo-hover-bg); }
.coveo-flyout-prod-item:focus-visible,
.coveo-flyout-prod-item.coveo-flyout-sugg-item--active {
  background: var(--coveo-hover-bg);
  box-shadow: inset 0 0 0 2px var(--coveo-primary);
}

.coveo-flyout-prod-thumb {
  flex:            0 0 48px;
  width:           48px;
  height:          48px;
  border-radius:   var(--coveo-radius);
  overflow:        hidden;
  background:      #f8fafc;
  display:         flex;
  align-items:     center;
  justify-content: center;
}
.coveo-flyout-prod-thumb img     { width: 100%; height: 100%; object-fit: contain; }
.coveo-flyout-prod-placeholder   { width: 100%; height: 100%; background: var(--coveo-hover-bg); }

/* Suggestion item: icon + text side by side */
.coveo-flyout-sugg-item  { display: flex; align-items: center; gap: 8px; }
.coveo-flyout-sugg-icon  { flex-shrink: 0; font-size: .85rem; opacity: .5; }
.coveo-flyout-sugg-text  { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Product item: title only (the objecttype "PRODUCT" sub-label was removed) */
.coveo-flyout-prod-info  { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.coveo-flyout-prod-title {
  font-size:   1rem;
  font-weight: 500;
  line-height: 1.4;
  color:       #111827;
}

.coveo-flyout-no-prod,
.coveo-flyout-loading {
  font-size:  .85rem;
  color:      var(--coveo-muted);
  padding:    4px 10px;
  list-style: none;
}

/* ── Header flyout ── */
.coveo-header-flyout-wrap { position: static; }
.coveo-flyout--header {
  min-width: 100%;
  left:      0;
  right:     auto;
  /* Must sit above sticky headers and nav overlays used by ACF-built themes. */
  z-index:   999999;
}

/* ── Recent searches ── */
.coveo-recent-header {
  display:        flex;
  align-items:    center;
  justify-content: space-between;
  padding:        6px 12px 4px;
  font-size:      .7rem;
  font-weight:    600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color:          var(--coveo-muted);
  list-style:     none;
}
.coveo-recent-clear-all {
  background:      none;
  border:          none;
  cursor:          pointer;
  font-size:       .75rem;
  color:           var(--coveo-primary);
  padding:         2px 4px;
  border-radius:   3px;
  text-decoration: underline;
}
.coveo-recent-clear-all:focus-visible {
  outline:        2px solid var(--coveo-primary);
  outline-offset: 2px;
}
.coveo-recent-item {
  display:     flex !important;
  align-items: center;
  gap:         8px;
}
/* Use explicit color instead of opacity (opacity reduces effective contrast) */
.coveo-recent-icon { font-size: .9rem; flex-shrink: 0; color: var(--coveo-muted); }

/* Recent text is now a <button> — reset button styles */
.coveo-recent-text {
  flex:       1;
  cursor:     pointer;
  background: none;
  border:     none;
  padding:    0;
  font:       inherit;
  color:      #111827;
  text-align: left;
}
.coveo-recent-text:focus-visible {
  outline:        2px solid var(--coveo-primary);
  outline-offset: 2px;
  border-radius:  2px;
}
.coveo-recent-remove {
  background: none;
  border:     none;
  cursor:     pointer;
  font-size:  1rem;
  color:      var(--coveo-muted);
  padding:    0 4px;
  line-height: 1;
  border-radius: var(--coveo-radius);
}
.coveo-recent-remove:hover          { color: #c00; }
.coveo-recent-remove:focus-visible  {
  outline:        2px solid var(--coveo-primary);
  outline-offset: 2px;
  color:          #c00;
}

/* ── "Search for X" footer button ── */
.coveo-flyout-footer {
  display:     block;
  width:       100%;
  padding:     12px 18px;
  background:  var(--coveo-hover-bg);
  border:      none;
  border-top:  1px solid var(--coveo-border);
  text-align:  left;
  font-size:   .9rem;
  color:       var(--coveo-primary);
  cursor:      pointer;
  transition:  background .12s;
}
.coveo-flyout-footer:hover          { background: #e5e7eb; }
.coveo-flyout-footer:focus-visible  {
  box-shadow:  inset 0 0 0 2px var(--coveo-primary);
  outline:     none;
  background:  #e5e7eb;
}
.coveo-flyout-qtext { font-weight: 600; }

/* ── Full search page ── */
.coveo-search-page {
  max-width: 1052px;
  margin:    auto;
  padding:   60px 10px 25px 10px;
}

/* ── Search input ── Border/radius moved to the parent .coveo-search-box pill (see above);
   the input itself is now borderless and transparent so it reads as one control. */
.coveo-search-box .coveo-input.coveo-input {
  flex:          1;
  min-width:     0;
  border:        none;
  border-radius: 0;
  background:    transparent;
  font-size:     18px;
  font-weight:   700;
  color:         var(--coveo-ink);
}
.coveo-search-box .coveo-input.coveo-input::placeholder { color: var(--coveo-text-weak); }
/* outline:none paired with a replacement: the parent pill's :focus-within ring (above) is
   the visible focus indicator (WCAG 2.4.7) — this just removes the browser default. */
.coveo-search-box .coveo-input.coveo-input:focus-visible { outline: none; }

/* ── Search button ── Ghost icon button (ink-colored icon on transparent bg, tinted on
   hover) — NOT a filled circle. */
.coveo-search-box .coveo-btn.coveo-btn {
  flex-shrink:     0;
  width:           40px;
  height:          40px;
  padding:         0;
  display:         flex;
  align-items:     center;
  justify-content: center;
  background:      transparent;
  color:           var(--coveo-ink);
  border:          none;
  border-radius:   50%;
  cursor:          pointer;
  transition:      background .2s, box-shadow .2s;
}
.coveo-search-box .coveo-btn.coveo-btn:hover          { background: var(--coveo-surface-tint); }
.coveo-search-box .coveo-btn.coveo-btn:focus-visible  {
  outline:        2px solid var(--coveo-brand-purple);
  outline-offset: 2px;
}
.coveo-search-box .coveo-btn.coveo-btn svg {
  /* width: 26px;  */
  /* height: 26px;  */
  width: 40px;
  height: 40px;
}

/* ── Meta bar ── */
.coveo-results-meta {
  margin:    14px 0 6px;
  font-size: .85rem;
  color:     var(--coveo-muted);
}

/* ── Result cards ── */
.coveo-result         { padding: 14px 0; border-bottom: 1px solid var(--coveo-border); }
.coveo-result:last-child { border-bottom: none; }

/* ── States ── */
.coveo-error { padding: 24px 0; color: #b91c1c; font-size: .95rem; }
.coveo-fallback-notice { font-size: .85em; color: var(--coveo-muted); margin-bottom: 8px; }

/* ── Pagination nav ── */
.coveo-pagination {
  display:    flex;
  flex-wrap:  wrap;
  gap:        6px;
  margin-top: 18px;
}
.coveo-page-btn.coveo-page-btn {
  padding:       6px 12px;
  border:        1px solid var(--coveo-border);
  border-radius: var(--coveo-radius);
  background:    var(--coveo-bg);
  cursor:        pointer;
  font-size:     .875rem;
  transition:    background .15s, border-color .15s;
  min-width:     36px; /* touch target */
}
.coveo-page-btn.coveo-page-btn:hover          { background: var(--coveo-hover-bg); border-color: var(--coveo-primary); }
.coveo-page-btn.coveo-page-btn:focus-visible  {
  outline:      none;
  box-shadow:   var(--coveo-focus-ring);
  border-color: var(--coveo-primary);
}
/* Active / current page — white text on primary bg + bold for colour-blind users */
.coveo-page-btn.coveo-page-btn.active,
.coveo-page-btn.coveo-page-btn[aria-current="page"] {
  background:   var(--coveo-primary);
  color:        #fff;
  border-color: var(--coveo-primary);
  font-weight:  700;
  cursor:       default;
}

/* ── Full search page layout ── Hero content (heading, search box, tab bar) is centered as
   a column, matching the source design; the sidebar/results body below stays left-aligned. */
.coveo-search-header {
  display:        flex;
  flex-direction: column;
  /* align-items:    center; */
  /* text-align:     center; */
  gap:            40px;
  margin-bottom:  20px;
}
/* An empty (no "did you mean" banner) live region shouldn't still eat a 40px flex gap on
   both sides of it — collapse it out of the flex flow entirely when it has no content. */
.coveo-did-you-mean:empty { display: none; }

.coveo-body {
  display:     flex;
  gap:         28px;
  align-items: flex-start;
}
.coveo-main    { flex: 1; min-width: 0; }

/* ── Skeleton loader ── */
@keyframes coveo-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.coveo-skeleton { pointer-events: none; }
.sk-line {
  border-radius:   4px;
  margin-bottom:   8px;
  background:      #e2e8f0;
}

.sk-title   { height: 18px; width: 70%; }
.sk-excerpt { height: 13px; width: 95%; }
.sk-short   { width: 60%; }
.sk-badge   { height: 11px; width: 80px; border-radius: 20px; margin-top: 4px; }

/* ── Results heading ── */
.coveo-results-heading {
  font-size:  24px;
  line-height: 22px;
  font-weight: 500;
  /* text-align:  center; */
  margin:      20px 0 32px;
  color:       #111827;
  line-height: 1.3;
}
.coveo-results-heading span{
  font-size:  18px;
  line-height: 22px;
}
.coveo-query-term { font-style: normal; }

/* ── Hero heading + permanent popular-searches row ── */
.coveo-hero-heading {
  font-family: var(--coveo-font-display);
  font-family: 'Vastago Grotesk';
  font-size:   56px !important;
  line-height: 60px !important;
  font-weight: 500;
  color:       var(--coveo-ink-soft);
  margin:      0;
  max-width:   900px;
  /* text-wrap:   balance; */
}
/* Hidden by JS on the zero-results view — the "Sorry, no matches were found" headline takes
   its place. Explicit rule so a theme's own h1 display can't override the [hidden] attribute. */
.coveo-hero-heading[hidden] { display: none; }
/* Nested inside .coveo-search-wrap, which the flex-centered .coveo-search-header centers as
   a block — the search box fills that block, but the popular- searches line below it reads. */
.coveo-popular-searches {
  margin-top: 8px;
  font-size:  12px;
  font-weight: 700;
  letter-spacing: .02em;
  color:      var(--coveo-text-weaker);
  text-align: left;
}
.coveo-popular-searches a {
  color:           inherit;
  text-decoration: underline;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: .02em;
}
.coveo-popular-searches a:focus-visible {
  outline:        2px solid var(--coveo-brand-purple);
  outline-offset: 2px;
}

/* ── Result sections ── Each objecttype section is a plain, always-visible <section> — no
   collapse/accordion (removed; the source design doesn't have one). */
.coveo-section { margin-bottom: 60px; }
.coveo-section-shop{ padding:60px 0; border-top:1px solid var(--coveo-text-weaker); border-bottom:1px solid var(--coveo-text-weaker); }
/* When the Shop tab is active the section shows on its own, so the "All"-view
   separators (top/bottom border + 60px padding) aren't needed. */
.coveo-section-shop.coveo-section--active{ padding:0; border-top:0; border-bottom:0; }
.coveo-section[hidden] { display: none; }
.coveo-section-title {
  font-family: var(--coveo-font-display);
  font-family: 'Vastago Grotesk';
  font-size:   24px !important;
  line-height: 32px !important;
  font-style: normal;
  font-weight: 500;
  color:       var(--coveo-dark-black);
  margin:      0 0 32px;
}
.coveo-z2-sections .coveo-section-title {
    margin-top: 60px;
}
.coveo-section-count {
  font-family: var(--coveo-font-body);
  font-size:   24px;
  line-height: 32px;
  font-weight: 400;
  color:       var(--coveo-text-weak);
}
.coveo-view-more { display: flex; justify-content: center; margin-top: 32px; }
.coveo-view-more[hidden] { display: none; }

/* Grid and flex children default to min-width:auto, so a card refuses to shrink below
   its content and punches out of its own track. Applies at every breakpoint. */
.coveo-cards-grid > * { min-width: 0; }
.coveo-card,
.coveo-card > * { min-width: 0; }
.coveo-card-title,
.coveo-shop-title { overflow-wrap: anywhere; }
/* Client-side per-section pager — shown only while browsing a single section's own tab
   (never in "All"), only when it has more than SECTION_PAGE_SIZE cards. */
.coveo-section-pager {
  display:     flex;
  flex-wrap:   wrap;
  /* justify-content: center; */
  /* align-items: center; */
  gap:         8px;
  margin-top:  48px;
}

.coveo-section-pager[hidden] { display: none; }
.coveo-card[hidden] { display: none; }

/* Generic pill button — used by "View more" and the CTA band's buttons */
.coveo-pill-btn.coveo-pill-btn {
  display:         inline-flex;
  align-items:     center;
  gap:             8px;
  padding:         12px 20px;
  border-radius:   var(--coveo-radius-pill);
  border:          1px solid var(--Warm-Neutral-Galaxy-Dark);
  background:      transparent;
  color:           var(--coveo-ink);
  font-size:       16px;
  line-height:     24px;
  font-weight:     600;
  cursor:          pointer;
  text-decoration: none;
}
.coveo-pill-btn.coveo-pill-btn:hover { background: var(--coveo-surface-tint); }
.coveo-pill-btn.coveo-pill-btn:focus-visible {
  outline:        2px solid var(--coveo-brand-purple);
  outline-offset: 2px;
}

/* Tab bar */
.coveo-tabs-wrap { width: 100%; }
.coveo-tabs-wrap[hidden] { display: none; }
.coveo-tabs {
  display:       flex;
  gap:           32px;
  flex-wrap:     nowrap;
  /* overflow-x:    auto; */
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--Neutrals-Cool-Gray-Light, #CFCED0);
}
.coveo-tabs[hidden] { display: none; }
.coveo-tab.coveo-tab {
  background:      none;
  border:          none;
  border-bottom:   2px solid transparent;
  margin-bottom:   -1px;
  padding:         0 0 12px;
  font-family:     var(--coveo-font-display);
  font-size:       16px;
  line-height:     20px;
  font-weight:     500;
  color:           var(--coveo-ink-soft);
  cursor:          pointer;
  white-space:     nowrap;
  flex-shrink:     0;
}
.wp-theme-resmed-emea-master .coveo-tab.coveo-tab{
  padding-bottom: 11px;
}
.coveo-tab.coveo-tab:hover { color: var(--coveo-brand-purple); }
.coveo-tab--active {
  font-weight:          600;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: 14%; /* 3.36px */
  text-underline-offset: 75%; /* 18px */
  text-underline-position: from-font;
}
.coveo-tab.coveo-tab:focus-visible {
  outline:        2px solid var(--coveo-brand-purple);
  outline-offset: 2px;
}
.coveo-back-link.coveo-back-link {
  display:         block;
  margin:          10px 0;
  background:      none;
  border:          none;
  padding:         0;
  cursor:          pointer;
  font-family:     inherit;
  font-size:       14px;
  font-weight:     600;
  text-decoration: underline;
  color:           var(--coveo-ink);
}

.coveo-back-link.coveo-back-link[hidden] { display: none; }
.coveo-back-link.coveo-back-link:focus-visible {
  outline:        2px solid var(--coveo-brand-purple);
  outline-offset: 2px;
}

/* ── Cards grid ── Base gap (14px) stays as the pre-redesign default for the "other"
   catch-all grid; Pages/Support/Products/Blogs each use the source design's own gap. */
.coveo-cards-grid {
  display:               grid;
  grid-template-columns: repeat(2, 1fr);
  gap:                   14px;
}
.coveo-cards-grid--pages {
  gap: 32px;
}
.coveo-cards-grid--support,
.coveo-cards-grid--other {
  row-gap:    24px;
  column-gap: 32px;
}
.coveo-cards-grid--products {
  row-gap:    40px;
  column-gap: 24px;
}
.coveo-cards-grid--blogs {
  gap: 24px;
}
.coveo-cards-grid--shop {
  gap: 24px;
  max-width: 984px;
}
.coveo-cards-grid--products,
.coveo-cards-grid--blogs,
.coveo-cards-grid--shop {
  grid-template-columns: repeat(3, 1fr);
}
.coveo-card {
  display:         flex;
  align-items:     center;
  gap:             14px;
  background:      #fff;
  padding:         14px 16px;
  text-decoration: none;
  color:           #111827;
  border-radius:   4px;
}
.coveo-card:hover              { background: var(--coveo-hover-bg); }
.coveo-card:hover .coveo-card-title { text-decoration: underline; }
.coveo-card:focus-visible {
  outline:        2px solid var(--coveo-primary);
  outline-offset: 1px;
  background:     var(--coveo-hover-bg);
}
.coveo-card:hover .coveo-card-tags .coveo-card-tag{
  text-decoration: underline;
}
.coveo-card-thumb {
  flex:            0 0 72px;
  width:           72px;
  height:          72px;
  border-radius:   6px;
  overflow:        hidden;
  background:      #ffffff;
  display:         flex;
  align-items:     center;
  justify-content: center;
}
.coveo-card-thumb img,
.coveo-card-img                  { width: 100%; object-fit: contain; display: block; }
.coveo-card-thumb-placeholder    { width: 100%; height: 100%; background: #e2e8f0; }
/* Hide images that failed to load (onerror) or were hidden by enrichment */
.coveo-card-img[hidden]          { display: none; }
.coveo-card-body {
  flex:           1;
  display:        flex;
  flex-direction: column;
  gap:            4px;
  min-width:      0;
}
.coveo-card-title {
  font-size:   13px;
  font-weight: 500;
  line-height: 1.4;
  color:       #111827;
}
.coveo-card-tags {
  display:    flex;
  flex-wrap:  wrap;
  gap:        5px;
  margin-top: 6px;
  overflow: hidden;
  max-height: 32px;
}
.coveo-card-tag {
  display:       inline-block;
  font-size:     11px;
  line-height:   1;
  padding:       3px 9px;
  border-radius: 3px;
  font-weight:   600;
  white-space:   nowrap;
}
/* Blog category pills (blog_categories raw field) — pink pill, matches the
   source mockup's .wp-c-tag exactly. */
.coveo-card-tag--category {
  display:        inline-flex;
  align-items:    center;
  padding:        4px 8px;
  border-radius:  var(--coveo-radius-pill);
  background:     var(--coveo-tag-bg);
  color:          var(--coveo-tag-text);
  font-size:      12px;
  font-weight:    600;
  line-height:    16px;
  white-space:    nowrap;
}
.coveo-card-arrow { color: var(--coveo-primary); font-size: 3rem; font-weight: 300; flex-shrink: 0; line-height: 1; }

/* ── Card variants (Pages/Support/Products/Blogs) ── Each overrides the shared .coveo-card
   base above. */

/* Pages / Support / Other — plain text card, no thumbnail/background/arrow. */
.coveo-card--pages,
.coveo-card--support,
.coveo-card--other {
  flex-direction: column;
  align-items:    flex-start;
  background:     transparent;
  padding:        0;
  border-radius:  0;
}
.coveo-card--pages:hover,
.coveo-card--support:hover,
.coveo-card--other:hover { background: transparent; }
.coveo-card--pages { gap: 8px; }
.coveo-card--support,
.coveo-card--other { gap: 8px; }
.coveo-card--pages .coveo-card-title {
  font-family: var(--coveo-font-display);
  font-size:   18px;
  font-weight: 500;
  line-height: 22px;
  color:       var(--coveo-ink);
}
.coveo-card--support .coveo-card-title,
.coveo-card--other .coveo-card-title {
  font-family: var(--coveo-font-display);
  font-size:   24px;
  font-weight: 500;
  line-height: 36px;
  color:       var(--coveo-ink);
}
.coveo-card-excerpt {
  margin:      0;
  font-family: var(--coveo-font-display);
  font-size:   16px !important;
  line-height: 24px !important;
  font-weight: 500;
  color:       var(--coveo-ink-soft);
  display:               -webkit-box;
  -webkit-line-clamp:    3;
  -webkit-box-orient:    vertical;
  overflow:              hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}

/* Products — compact row, small thumbnail + name only */
.coveo-card--products {
  background:    transparent;
  padding:       0;
  border-radius: 0;
  gap:           16px;
}
.coveo-card--products:hover { background: transparent; }
.coveo-card--products .coveo-card-thumb {
  /* flex:          0 0 64px; */
  flex: 0 0 112px;
  width: 122px;
  height: auto;
  background: transparent;
  border-radius: 0;
}
.coveo-card--products .coveo-card-title {
  font-family: var(--coveo-font-display);
  font-size:   24px;
  font-weight: 500;
  line-height: 32px;
  color:       var(--coveo-ink);
}

/* Blogs — tinted card, title + optional custom tags */
.coveo-card--blogs {
  flex-direction:  column;
  align-items:     flex-start;
  justify-content: space-between;
  gap:             32px;
  background:      var(--coveo-surface-tint);
  padding:         32px;
  border-radius:   var(--coveo-radius-lg);
  min-height:      200px;
}
.coveo-card--blogs:hover { background: #ECEAE2; }
.coveo-card--blogs .coveo-card-title {
  font-family: var(--coveo-font-display);
  font-size:   24px;
  font-weight: 500;
  line-height: 28px;
  color:       var(--coveo-dark-black);
}
.coveo-card--blogs .coveo-card-tags { margin-top: 0; gap: 8px; }

/* Shop — commerce card: media block (badge + image) over an info block (brand/rating,
   title, price row). */
.coveo-card--shop {
  flex-direction: column;
  align-items:    stretch;
  gap:            0;
  background:     var(--coveo-surface-tint); /* #F4F3EE */
  padding:        0;
  border-radius:  32px;
  max-width:      312px;
  overflow:       hidden;
}
.coveo-card--shop:hover { background: #ECEAE2; }
.coveo-shop-media {
  position:        relative;
  box-sizing:      border-box;
  display:         flex;            /* center the image both ways (badge is */
  align-items:     center;         /* absolutely positioned, so unaffected) */
  justify-content: center;
  background:      #fff;
  border:          8px solid var(--coveo-surface-tint); /* tint ring around the image */
  border-radius:   30px;
  padding:         24px;
  height:          312px;
  overflow:        hidden;
}
.coveo-shop-badge {
  position:       absolute;
  top:            16px;  /* + 8px media border = 24px from card edge (Figma) */
  left:           16px;
  background:     #FFDEF8; /* Majestic Magenta / Extra Light */
  color:          #51003F; /* Majestic Magenta / Extra Dark */
  font-size:      12px;
  line-height:    16px;
  font-weight:    500;
  padding:        4px 8px;
  border-radius:  var(--coveo-radius-pill);
}
.coveo-shop-img,
.coveo-shop-img-placeholder { max-width: 100%; max-height: 100%; object-fit: contain; display: block; margin: auto; border-radius: 6px; }
.coveo-shop-img-placeholder { background: #e2e8f0; border-radius: 6px; }
.coveo-shop-img[hidden]     { display: none; }
.coveo-shop-info {
  padding:        24px;
  display:        flex;
  flex-direction: column;
}
.coveo-shop-brand-rating-row {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             6px;
}
.coveo-shop-brand {
  font-family:    var(--coveo-font-body);
  font-size:      14px;
  line-height:    20px;
  font-weight:    700;
  letter-spacing: 0.1em;
  color:          var(--coveo-text-weaker); /* #6E6C73 */
  text-transform: uppercase;
}
.coveo-shop-rating       { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.coveo-shop-rating-num   { font-size: 14px; line-height: 20px; font-weight: 700; color: #51003F; }
.coveo-shop-rating-count { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--coveo-text-weaker); }
.coveo-shop-star         { display: inline-flex; }
.coveo-shop-title {
  margin-top:  16px; /* Figma: 16px below the brand/rating row */
  font-family: 'Vastago Grotesk', var(--coveo-font-display);
  font-size:   22px;
  line-height: 26px;
  font-weight: 500;
  color:       var(--coveo-ink); /* #0D0A15 */
}
.coveo-shop-price-row { margin-top: 24px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.coveo-shop-price     { font-size: 20px; line-height: 28px; font-weight: 700; color: #BC299B; } /* Majestic Magenta */
.coveo-shop-price-old { font-size: 12px; line-height: 16px; font-weight: 500; color: #3D3B44; text-decoration: line-through; }
.coveo-shop-price-off {
  font-size:     12px;
  line-height:   16px;
  font-weight:   500;
  color:         #51003F;
  background:    #FFDEF8;
  padding:       2px 4px;
  border-radius: 6px;
}
.coveo-shop-price-sub { margin-top: 4px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--coveo-text-weaker); }
/* Shop card is a <div> holding two links (product + add-to-cart), not a single <a> like the
   other cards. */
.coveo-shop-link {
  display:         flex;
  flex-direction:  column;
  align-items:     stretch;
  text-decoration: none;
  color:           inherit;
}
a:hover.coveo-shop-link{
  text-decoration: none;
}
.coveo-shop-link:focus-visible,
.coveo-shop-cart.coveo-shop-cart:focus-visible {
  outline:        2px solid var(--coveo-brand-purple);
  outline-offset: 2px;
}
/* Add-to-cart button — hidden on desktop (per Figma), shown at ≤680px (see the
   media query). Links to the product page. */
.coveo-shop-cart.coveo-shop-cart { display: none; }

/* ── Did You Mean banner ── */
.coveo-did-you-mean { margin: 10px auto; text-align: center; }
.coveo-dym {
  display:       inline-flex;
  align-items:   center;
  gap:           6px;
  background:    #eff6ff;
  border:        1px solid #bfdbfe;
  border-radius: var(--coveo-radius);
  padding:       8px 14px;
  font-size:     .9rem;
  color:         #1e40af;
  margin:        0;
}
.coveo-dym-link {
  background:      none;
  border:          none;
  color:           var(--coveo-primary);
  font-weight:     600;
  cursor:          pointer;
  font-size:       .9rem;
  text-decoration: underline;
  padding:         2px 4px;
  border-radius:   3px;
}
.coveo-dym-link:hover         { color: #1d4ed8; }
.coveo-dym-link:focus-visible {
  outline:        2px solid var(--coveo-primary);
  outline-offset: 2px;
}
.coveo-dym-dismiss {
  background:    none;
  border:        none;
  color:         var(--coveo-muted);
  cursor:        pointer;
  font-size:     1.1rem;
  padding:       2px 4px;
  line-height:   1;
  border-radius: 3px;
}
.coveo-dym-dismiss:hover         { color: #374151; }
.coveo-dym-dismiss:focus-visible {
  outline:        2px solid var(--coveo-primary);
  outline-offset: 2px;
}

/* ── Auto-correction notice ── */
.coveo-autocorrect-notice {
  display:       inline-flex;
  align-items:   center;
  border-radius: var(--coveo-radius);
  padding:       8px 14px;
  font-size:     1.5rem;
  color:         #111827;
  margin:        0;
}

/* ── Explore More (CTA band) ── Static markup (templates/search.php /
   render_search_page()), rendered server-side only when at least one of the three destination URLs is configured. */
.coveo-cta-wave { display: block; width: 100%; margin-top: 60px; margin-bottom: -1px; }
.coveo-cta-wave svg { display: block; width: 100%; height: auto; }
.coveo-cta-band {
  background-color:  var(--coveo-brand-purple-band);
  background-size:   14px 14px;
  padding:           60px 24px;
  display:           flex;
  flex-direction:    column;
  align-items:       center;
  gap:               64px;
}
.coveo-cta-band h2 {
  /*font-family: var(--coveo-font-display);*/
  font-family: 'Vastago Grotesk';
  font-weight: 500;
  font-size:   48px;
  line-height: 52px;
  /* text-align:  center; */
  margin:      0;
  width:      100%;
  max-width:   1052px;
  color:       var(--coveo-ink);
}
.coveo-cta-cards {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   24px;
  width:                 100%;
  max-width:             1052px;
}
.coveo-cta-card {
  background:     var(--coveo-brand-purple);
  border-radius:  var(--coveo-radius-lg);
  padding:        32px;
  color:          #fff;
  display:        flex;
  flex-direction: column;
  gap:            48px;
  justify-content: space-between;
}
.coveo-cta-icon {
  width:           64px;
  height:          64px;
  border-radius:   50%;
  background:      #fff;
  color:           var(--coveo-brand-purple);
  display:         flex;
  align-items:     center;
  justify-content: center;
}
.coveo-cta-icon svg { width: 28px; height: 28px; }
.coveo-cta-card h3 {
  font-family: var(--coveo-font-display);
  font-size:   32px;
  font-weight: 500;
  margin:      8px 0 0;
  color:       #fff;
}
.coveo-cta-card p { font-size: 16px; line-height: 24px; margin: 8px 0 0; font-weight: 500; opacity: .95; }
.coveo-cta-card .coveo-pill-btn.coveo-pill-btn {
  border-color: #fff;
  color:        #fff;
  align-self:   flex-start;
}
.coveo-cta-card .coveo-pill-btn.coveo-pill-btn:hover { background: rgba(255, 255, 255, .12); }

/* Zero-results page — new design ("Frame 67") Headline/sub, live-query suggestion grid with
   a tab filter + per-section "View more", and an "Other searches" pill row. */
.coveo-z2 {
  max-width: 1032px;
  margin:    0 auto;
  padding:   20px 0;
}
.coveo-z2 [hidden] { display: none !important; }

/* Per-tab loading notice. Tabs load their own results on first open, so this
   sits between the tab bar and the sections while that one call is in flight. */
.coveo-z2-loading {
  padding:     24px 0;
  text-align:  center;
  font-family: var(--coveo-font-body);
  font-size:   16px;
  opacity:     .7;
}

/* Headline + sub */
.coveo-z2-head {
  display:         flex;
  flex-direction:  column;
  gap:             40px;
  margin-bottom:   40px;
}
.coveo-z2-title {
  margin:      0;
  font-family: var(--coveo-font-display);
  font-weight: 500;
  font-size:   56px;
  line-height: 60px;
  color:       var(--coveo-ink-soft);
}
.coveo-z2-sub {
  margin:      0;
  font-family: var(--coveo-font-display);
  font-weight: 500;
  font-size:   40px;
  line-height: 44px;
  color:       var(--coveo-ink-soft);
}

/* Tabs + suggestion sections reuse the main results-page styles (.coveo-tabs,
   .coveo-section, .coveo-cards-grid--{type}, .coveo-view-more) so the zero-results UI is identical. */

/* Other searches */
.coveo-z2-divider {
  border:     none;
  border-top: 1px solid var(--coveo-text-weaker);
  margin:     60px 0;
}
.coveo-z2-other-title {
  margin:      0 0 24px;
  font-family: var(--coveo-font-display);
  font-weight: 500;
  font-size:   40px;
  line-height: 44px;
  color:       var(--coveo-dark-black);
}
.coveo-z2-pills { display: flex; flex-wrap: wrap; gap: 16px; }
.coveo-z2-pill.coveo-z2-pill {
  display:         inline-flex;
  align-items:     center;
  gap:             8px;
  padding:         10px 16px;
  background:      transparent;
  border:          2px solid var(--Warm-Neutral-Galaxy-Dark);
  border-radius:   var(--coveo-radius-pill);
  cursor:          pointer;
  font-family:     var(--coveo-font-body);
  font-weight:     600;
  font-size:       16px;
  line-height:     24px;
  color:           var(--coveo-ink);
  text-align:      left;
  /* The row already wraps BETWEEN pills (flex-wrap on .coveo-z2-pills), but a single pill
     wider than the row still overflowed it: these terms are admin-authored, so one long. */
  max-width:       100%;
  white-space:     normal;
  overflow-wrap:   anywhere;
}
.coveo-z2-pill.coveo-z2-pill:hover { background: var(--coveo-surface-tint); }
.coveo-z2-pill.coveo-z2-pill:focus-visible { outline: 2px solid var(--coveo-primary); outline-offset: 2px; }
.coveo-z2-pill-icon { flex: 0 0 auto; color: var(--coveo-ink); }
.coveo-no-results-section {margin-top: 113px;}
/* Media queries (all responsive overrides). */


/* Animation only when user has not requested reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .sk-line {
    background:      linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 600px 100%;
    animation:       coveo-shimmer 1.4s infinite linear;
  }
}
@media (max-width: 1024px) {
  .wp-theme-resmed-emea-master .coveo-search-page {margin-top: 60px;}
.coveo-search-page { padding: 60px 24px 0px 24px; }
}
@media (max-width: 1023px) {
  .coveo-tabs {
    overflow-x:    auto;
    overflow-y:    hidden;
    -webkit-overflow-scrolling: touch;
  }


}

@media (max-width: 991px) {
  .coveo-section{margin-bottom: 40px;}
  .coveo-results-list .coveo-section-other{
    margin-bottom: 40px !important;
  }
}

@media (max-width:768px) {
  .coveo-cards-grid--products, .coveo-cards-grid--shop{
    grid-template-columns:repeat(2, 1fr)
  }
  .coveo-cards-grid--shop{max-width: 648px; margin: 0 auto;}
  .coveo-cta-band h2    { font-size: 32px; line-height: 36px; text-align: left; }
  .coveo-results-list .coveo-section:last-child {margin-bottom: 0;}
}
@media (max-width: 680px) {
  .coveo-search-box .coveo-input.coveo-input{padding:0;}
  .coveo-search-header { align-items: stretch; text-align: left; }
  /* align-items:stretch is load-bearing, not cosmetic. */
  .coveo-body { flex-direction: column; align-items: stretch; }
  .coveo-section-title { margin-bottom: 40px; }
  .coveo-card--blogs .coveo-card-title{ font-size: 20px; line-height: 24px; }

  .coveo-back-link.coveo-back-link { margin-left: 0; margin-right: 0; }
  .coveo-cards-grid,
  .coveo-cards-grid--pages,
  .coveo-cards-grid--support,
  .coveo-cards-grid--other,
  .coveo-cards-grid--products,
  .coveo-cards-grid--blogs,
  .coveo-cards-grid--shop { grid-template-columns: 1fr; }
  .coveo-cards-grid--products { row-gap: 56px; }
  .coveo-card--shop { /*max-width: none;*/ }
  .coveo-card--products { gap: 24px; }
  .coveo-card--products .coveo-card-thumb { flex-basis: 122px; width: 122px; height: auto; }
  .coveo-card--products .coveo-card-title { font-size: 22px; line-height: 28px; }
  .coveo-tabs { gap: 20px; }
  .coveo-cta-cards      { grid-template-columns: 1fr; }
  .coveo-cta-band h2    { font-size: 32px; line-height: 36px; text-align: left; }
  .coveo-cta-band       { align-items: stretch; /*padding: 48px 20px;*/ }
  .coveo-cta-wave       { margin-top: 40px; }
  .coveo-shop-title{font-size: 20px; line-height: 24px;letter-spacing: -0.4px;}
  .coveo-shop-price-row{margin-top: 16px;}
  .coveo-shop-price{font-size: 18px; line-height: 24px;}
  .coveo-shop-media{padding: 22px; height: 247px; border-width: 6px; border-radius: 32px;}
  /* Mobile shop deltas vs Figma */
  .coveo-shop-brand{font-size: 10px; line-height: 18px; color: #3D3B44;}
  .coveo-shop-badge{padding: 2px 8px;}
  /* Add-to-cart button (mobile only), 16px below the price, 24px sides/bottom */
  .coveo-shop-info{padding-bottom: 0;}
  .coveo-shop-cart.coveo-shop-cart{
    display:         flex;
    justify-content: center;
    align-items:     center;
    margin:          16px 24px 24px;
    padding:         6px;
    min-height:      36px;
    border:          1px solid #BC299B;
    border-radius:   100px;
    color:           #BC299B;
    text-decoration: none;
    font-weight:     600;
    font-size:       16px;
    line-height:     24px;
  }
  .coveo-shop-cart.coveo-shop-cart:hover{background: #FFDEF8;}
  .coveo-cta-card h3 { font-size: 24px; line-height: 28px; }
  /* Zero-results (mobile) — tabs/sections/cards inherit the main results-page
     mobile rules; only the zero-specific head/other blocks need overrides. */
  .coveo-z2-title { font-size: 32px; line-height: 36px; }
  .coveo-z2-sub { font-size: 22px; line-height: 28px; }
  .coveo-z2-divider { margin: 40px 0; }
  .coveo-z2-other-title { font-size: 28px; line-height: 32px; }
}

/* ── Flyout (mobile) ── The desktop panel is a 520px-min two-column layout, which is wider
   than the viewport on a phone: it overflowed the search wrap sideways and squeezed the two
   columns into unreadable strips. On mobile it becomes a single full-width column instead. */
@media (max-width: 680px) {
  .coveo-flyout {
    min-width: 0;
    left:      0;
    right:     0;
    /* The panel is anchored under a search box that can sit low on a short phone screen,
       so cap it and scroll the lists rather than letting it run off the bottom. */
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .coveo-flyout-body {
    flex-direction: column;
    min-height:     0;
  }
  /* flex-basis is dropped (was 50% of the row) — each block now takes its content height.
     The :has() rules above already widen a lone visible column, so only the both-visible
     case needs the width reset. */
  .coveo-flyout-left,
  .coveo-flyout-right {
    flex:    0 0 auto;
    width:   100%;
    padding: 14px 16px 10px;
  }
  /* Vertical rule becomes a horizontal one between the stacked columns. */
  .coveo-flyout-divider { width: 100%; height: 1px; }
  /* Keeps "Show all results" reachable without scrolling the panel to its end. */
  .coveo-flyout-footer {
    position: sticky;
    bottom:   0;
    padding:  12px 16px;
  }
  .coveo-flyout-prod-thumb { flex-basis: 40px; width: 40px; height: 40px; }
}

@media (max-width: 600px) {
  .coveo-flyout--header { min-width: 0; left: 0; right: 0; }
}

.coveo-card-title, .coveo-shop-title{
  font-size: 18px !important;
  line-height: 22px !important;
  font-weight: 600 !important;
  font-family: var(--coveo-font-display) !important;
}
.coveo-shop-info .coveo-shop-info-top .coveo-shop-brand-rating-row{
  margin-bottom: 16px;
}
.coveo-shop-info{
  position: relative;
  min-height: 210px;
}
.coveo-shop-info .coveo-shop-info-bottom{
  position: absolute;
  bottom: 30px;
}
@media (max-width: 600px) {
  .coveo-shop-info .coveo-shop-info-top .coveo-shop-brand-rating-row{
    margin-bottom: 12px;
  }
  .coveo-cards-grid--shop{
    grid-gap: 16px;
  }
  .coveo-shop-info{
    min-height: auto;
  }
  .coveo-shop-info .coveo-shop-info-bottom{
    position: relative;
    bottom: auto;
  }
}
