/**
 * Partner / provider surface — inverted chrome vs core WDI cream pages.
 *
 * Scope: body.wdi-partner-surface only (WCFM stores, /articles, /providers,
 * SPM marketing, provider article singles). Leaves /services and B2B alone.
 *
 * Contrast rules (do not break these):
 *   Navy surfaces → cream/gold text
 *   Cream/white surfaces → navy text
 *   Subject pills on navy → cream fill + navy text (or translucent cream + cream text)
 *   Mailing forms on navy → white/cream form card + navy field labels
 */

body.wdi-partner-surface,
body.wdi-partner-surface.custom-background {
  --wdi-ps-navy: #0a2342;
  --wdi-ps-navy-deep: #061628;
  --wdi-ps-cream: #f2eadf;
  --wdi-ps-cream-soft: #faf6ef;
  --wdi-ps-gold: #c9a734;
  --wdi-ps-teal: #1d7d81;
  /* Gaps under the fixed navy header must not flash cream page bg. */
  background-color: var(--wdi-ps-navy) !important;
  background-image: none !important;
}

/* Vertical scroll only — prevent sideways page drift on partner chrome. */
html:has(body.wdi-partner-surface),
body.wdi-partner-surface {
  overflow-x: hidden;
  max-width: 100%;
}

body.wdi-partner-surface #page-container,
body.wdi-partner-surface #et-main-area,
body.wdi-partner-surface #main-content,
body.wdi-partner-surface #wcfmmp-store,
body.wdi-partner-surface #wcfmmp-store-content {
  max-width: 100%;
  overflow-x: clip;
}

/* ── Header / nav ───────────────────────────────────────────────────────── */
body.wdi-partner-surface #top-header {
  background: var(--wdi-ps-navy-deep) !important;
  color: var(--wdi-ps-cream) !important;
  border-bottom: 1px solid rgba(201, 167, 52, 0.25);
}

body.wdi-partner-surface #top-header a,
body.wdi-partner-surface #top-header .wdi-secondary-login-link {
  color: var(--wdi-ps-cream) !important;
}

/* Beat style.css cream #main-header !important (same cascade weight + later file). */
body.wdi-partner-surface.wdi-custom-template #main-header,
body.wdi-partner-surface.wdi-custom-template #main-header.et-fixed-header,
body.wdi-partner-surface #main-header,
body.wdi-partner-surface #main-header.et-fixed-header {
  background: var(--wdi-ps-navy) !important;
  background-color: var(--wdi-ps-navy) !important;
  background-image: none !important;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.28) !important;
}

body.wdi-partner-surface #main-header .container,
body.wdi-partner-surface #et-top-navigation {
  background: transparent !important;
}

/*
 * Top-level nav only on navy chrome. Nested .sub-menu links stay navy on
 * cream flyout panels (see rules below + wdi-header-nav-flyouts.css).
 */
body.wdi-partner-surface #main-header #top-menu > li > a,
body.wdi-partner-surface #main-header #et-top-navigation > a,
body.wdi-partner-surface #main-header .et-cart-info,
body.wdi-partner-surface .mobile_menu_bar:before {
  color: var(--wdi-ps-cream) !important;
}

body.wdi-partner-surface #main-header #top-menu > li > a:hover,
body.wdi-partner-surface #main-header #top-menu > li > a:focus-visible,
body.wdi-partner-surface #main-header #top-menu > li.current-menu-item > a,
body.wdi-partner-surface #main-header #top-menu > li.current_page_item > a,
body.wdi-partner-surface #main-header #et-top-navigation > a:hover,
body.wdi-partner-surface #main-header #et-top-navigation > a:focus-visible {
  color: var(--wdi-ps-gold) !important;
}

/*
 * Partner flyouts: cream panels need navy labels (not cream-on-cream).
 * Beat any broad #et-top-navigation a / .et-menu a cream-on-navy rules.
 */
body.wdi-partner-surface #main-header #top-menu li li a,
body.wdi-partner-surface #main-header #top-menu ul.sub-menu a,
body.wdi-partner-surface #main-header #et-top-navigation ul.sub-menu a,
body.wdi-partner-surface #main-header .et-menu li li a,
body.wdi-partner-surface #main-header .et-menu ul.sub-menu a {
  color: var(--wdi-ps-navy) !important;
  background: var(--wdi-ps-cream-soft) !important;
}

body.wdi-partner-surface #main-header #top-menu li li a:hover,
body.wdi-partner-surface #main-header #top-menu li li a:focus-visible,
body.wdi-partner-surface #main-header #top-menu li li.current-menu-item > a,
body.wdi-partner-surface #main-header #top-menu li li.current_page_item > a,
body.wdi-partner-surface #main-header #top-menu ul.sub-menu a:hover,
body.wdi-partner-surface #main-header #top-menu ul.sub-menu a:focus-visible,
body.wdi-partner-surface #main-header .et-menu li li a:hover,
body.wdi-partner-surface #main-header .et-menu li li a:focus-visible {
  color: var(--wdi-ps-teal) !important;
  background: var(--wdi-ps-cream) !important;
}

/* Cream inverse mark — no brightness wash on navy chrome */
body.wdi-partner-surface #main-header #logo,
body.wdi-partner-surface #main-header #logo img,
body.wdi-partner-surface #main-header .logo_container img {
  filter: none !important;
  max-height: 52px;
  width: auto;
  height: auto;
}

/*
 * Partner pages: keep the canvas under the fixed nav navy. JS moves clearance
 * padding onto the navy hero (see wdi-custom-template.js) so cream never shows
 * as a strip between nav and hero. Soft cream resumes below the first hero.
 */
body.wdi-partner-surface.wdi-custom-template #et-main-area,
body.wdi-partner-surface #et-main-area,
body.wdi-partner-surface #main-content {
  background-color: var(--wdi-ps-navy) !important;
  background-image: none !important;
}

body.wdi-partner-surface.wdi-custom-template section.wdi-spm-hero,
body.wdi-partner-surface.wdi-custom-template section.hero-shop-sec,
body.wdi-partner-surface.wdi-custom-template section.hero-section {
  margin-top: 0 !important;
  background-color: var(--wdi-ps-navy) !important;
}

/*
 * After the navy hero, restore cream page canvas via following siblings /
 * section backgrounds (existing page CSS). Fallback band if JS is delayed:
 */
body.wdi-partner-surface.wdi-custom-template #et-main-area {
  background-image: linear-gradient(
    to bottom,
    var(--wdi-ps-navy) 0,
    var(--wdi-ps-navy) min(100vh, 720px),
    var(--wdi-ps-cream-soft) min(100vh, 720px),
    var(--wdi-ps-cream-soft) 100%
  ) !important;
  background-repeat: no-repeat !important;
}

/* ── Content hub hero (articles) ────────────────────────────────────────── */
body.wdi-partner-surface.wdi-content-hub-page section.hero-shop-sec,
body.wdi-partner-surface.wdi-content-hub-page
  section.hero-shop-sec.wdi-b2b-hero {
  background-image: none !important;
  background-color: var(--wdi-ps-navy) !important;
  background: linear-gradient(
    165deg,
    var(--wdi-ps-navy) 0%,
    #123056 52%,
    #164a58 100%
  ) !important;
  color: var(--wdi-ps-cream);
}

body.wdi-partner-surface.wdi-content-hub-page section.hero-shop-sec::before {
  display: none !important;
}

body.wdi-partner-surface.wdi-content-hub-page .wdi-b2b-hero__eyebrow {
  color: var(--wdi-ps-gold) !important;
}

body.wdi-partner-surface.wdi-content-hub-page h1.shop-hero-head-main {
  color: var(--wdi-ps-cream) !important;
  font-size: clamp(2rem, 4.5vw, 2.85rem) !important;
  line-height: 1.15 !important;
  max-width: 18ch;
  margin-inline: auto;
}

body.wdi-partner-surface.wdi-content-hub-page .wdi-b2b-hero__lede {
  color: rgba(242, 234, 223, 0.92) !important;
  max-width: 40rem;
  margin-inline: auto;
}

body.wdi-partner-surface.wdi-content-hub-page .wdi-b2b-hero-search__label {
  color: var(--wdi-ps-gold) !important;
}

body.wdi-partner-surface.wdi-content-hub-page .wdi-b2b-hero-search__input {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(201, 167, 52, 0.55) !important;
  color: var(--wdi-ps-cream) !important;
}

body.wdi-partner-surface.wdi-content-hub-page
  .wdi-b2b-hero-search__input::placeholder {
  color: rgba(242, 234, 223, 0.65) !important;
}

/* ── Pillars (cream band → navy text) ───────────────────────────────────── */
body.wdi-partner-surface .wdi-b2b-pillars {
  background: var(--wdi-ps-cream) !important;
  color: var(--wdi-ps-navy);
}

body.wdi-partner-surface .wdi-b2b-pillars .wdi-b2b-section-head__title,
body.wdi-partner-surface .wdi-b2b-pillars .wdi-b2b-pillar__title {
  color: var(--wdi-ps-navy) !important;
}

body.wdi-partner-surface .wdi-b2b-pillars .wdi-b2b-section-head__lede,
body.wdi-partner-surface .wdi-b2b-pillars .wdi-b2b-pillar__body {
  color: rgba(10, 35, 66, 0.78) !important;
}

body.wdi-partner-surface .wdi-b2b-pillar {
  background: #fff !important;
  border-color: rgba(10, 35, 66, 0.12) !important;
}

/* ── Subjects (navy band → cream titles; pills = cream + navy text) ─────── */
body.wdi-partner-surface .wdi-b2b-subjects {
  background: var(--wdi-ps-navy) !important;
}

body.wdi-partner-surface .wdi-b2b-subjects .wdi-b2b-section-head__title {
  color: var(--wdi-ps-cream) !important;
}

body.wdi-partner-surface .wdi-b2b-subjects .wdi-b2b-section-head__lede {
  color: rgba(242, 234, 223, 0.85) !important;
}

body.wdi-partner-surface .wdi-b2b-subject {
  background: var(--wdi-ps-cream) !important;
  color: var(--wdi-ps-navy) !important;
  border: 1px solid rgba(201, 167, 52, 0.45) !important;
}

body.wdi-partner-surface .wdi-b2b-subject:hover,
body.wdi-partner-surface .wdi-b2b-subject:focus-visible {
  border-color: var(--wdi-ps-gold) !important;
  color: var(--wdi-ps-navy) !important;
  box-shadow: 0 2px 14px rgba(201, 167, 52, 0.3);
}

/* ── Explore (cream → navy text) ────────────────────────────────────────── */
body.wdi-partner-surface .wdi-b2b-explore {
  background: linear-gradient(
    180deg,
    var(--wdi-ps-cream) 0%,
    var(--wdi-ps-cream-soft) 100%
  ) !important;
}

body.wdi-partner-surface .wdi-b2b-explore__label {
  color: var(--wdi-ps-gold) !important;
}

body.wdi-partner-surface .wdi-b2b-explore__text {
  color: rgba(10, 35, 66, 0.8) !important;
}

body.wdi-partner-surface .wdi-b2b-explore__cta {
  background: var(--wdi-ps-navy) !important;
  color: var(--wdi-ps-cream) !important;
  border-color: var(--wdi-ps-navy) !important;
}

body.wdi-partner-surface .wdi-b2b-explore__cta:hover {
  background: var(--wdi-ps-teal) !important;
  border-color: var(--wdi-ps-teal) !important;
  color: #fff !important;
}

/* ── Mailing band: navy shell + cream form card (readable fields) ───────── */
body.wdi-partner-surface .wdi-b2b-mailing-inline {
  background: var(--wdi-ps-navy) !important;
  color: var(--wdi-ps-cream);
}

body.wdi-partner-surface .wdi-b2b-mailing-inline .wdi-b2b-mailing__eyebrow {
  color: var(--wdi-ps-gold) !important;
}

body.wdi-partner-surface .wdi-b2b-mailing-inline .wdi-b2b-mailing__title,
body.wdi-partner-surface .wdi-b2b-mailing-inline .wdi-b2b-mailing__lede {
  color: var(--wdi-ps-cream) !important;
}

body.wdi-partner-surface .wdi-b2b-mailing-inline__link {
  color: var(--wdi-ps-gold) !important;
}

body.wdi-partner-surface .wdi-b2b-mailing-inline .wdi-b2b-mailing__form {
  background: var(--wdi-ps-cream-soft) !important;
  border: 1px solid rgba(201, 167, 52, 0.35);
  border-radius: 12px;
  padding: 1.25rem 1.35rem 1.4rem;
}

body.wdi-partner-surface .wdi-b2b-mailing-inline .wdi-b2b-mailing__form label,
body.wdi-partner-surface .wdi-b2b-mailing-inline .wdi-b2b-mailing__form legend,
body.wdi-partner-surface .wdi-b2b-mailing-inline .wdi-b2b-mailing__form strong,
body.wdi-partner-surface
  .wdi-b2b-mailing-inline
  .wdi-b2b-mailing__intent-legend,
body.wdi-partner-surface .wdi-b2b-mailing-inline .wdi-b2b-mailing__note {
  color: var(--wdi-ps-navy) !important;
}

body.wdi-partner-surface .wdi-b2b-mailing-inline .wdi-b2b-mailing__intent-hint,
body.wdi-partner-surface .wdi-b2b-mailing-inline .wdi-b2b-mailing__optional {
  color: rgba(10, 35, 66, 0.65) !important;
}

body.wdi-partner-surface
  .wdi-b2b-mailing-inline
  .wdi-b2b-mailing__intent-option {
  background: #fff !important;
  border-color: rgba(10, 35, 66, 0.14) !important;
  color: var(--wdi-ps-navy) !important;
}

body.wdi-partner-surface .wdi-b2b-mailing-inline .wdi-b2b-mailing__field input {
  background: #fff !important;
  color: var(--wdi-ps-navy) !important;
  border-color: rgba(10, 35, 66, 0.2) !important;
}

/* ── Library / cards (cream page → navy text) ───────────────────────────── */
body.wdi-partner-surface .shop-body-l,
body.wdi-partner-surface .wdi-content-hub-card,
body.wdi-partner-surface .wdi-content-hub-card__title,
body.wdi-partner-surface .shop-sidebar,
body.wdi-partner-surface .shop-sidebar h3,
body.wdi-partner-surface .shop-sidebar a {
  color: var(--wdi-ps-navy);
}

/* Providers marketplace: cream bands under navy hero (avoid navy-on-navy). */
body.wdi-partner-surface .wdi-providers-dir-section,
body.wdi-partner-surface .wdi-providers-featured-section {
  background: var(--wdi-ps-cream-soft) !important;
  color: var(--wdi-ps-navy) !important;
}

/*
 * Providers directory grid — lives here (filemtime-versioned, not Rocket
 * minify of child style.css) so guests get multi-column cards. Logged-in
 * admins often bypass minify cache and already saw the grid from style.css.
 */
body.wdi-partner-surface .wdi-providers-dir-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)) !important;
  gap: 1.5rem;
  inline-size: 100%;
}

body.wdi-partner-surface .wdi-provider-card {
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  background: #fff;
  border: 1px solid rgba(10, 35, 66, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(10, 35, 66, 0.06);
}

body.wdi-partner-surface .wdi-provider-card[hidden] {
  display: none !important;
}

body.wdi-partner-surface .wdi-provider-card__media {
  display: block;
  background: var(--wdi-ps-cream-soft, #f4f1ea);
}

body.wdi-partner-surface .wdi-provider-card__media-frame {
  display: block;
  inline-size: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(145deg, #0a2342 0%, #163a66 100%);
}

body.wdi-partner-surface .wdi-provider-card__media-frame img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
  object-position: center;
  padding: 12px;
  background: var(--wdi-ps-cream, #f9f6ee);
}

body.wdi-partner-surface .wdi-provider-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 20px;
  flex: 1 1 auto;
}

body.wdi-partner-surface .wdi-provider-card__badge {
  align-self: start;
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #e8eef7;
  color: var(--wdi-ps-navy, #0a2342);
}

body.wdi-partner-surface .wdi-provider-card__badge--partner {
  background: #f3e7b8;
  color: #5a4300;
}

body.wdi-partner-surface .wdi-provider-card__badge--servicer {
  background: #dce9f8;
  color: var(--wdi-ps-navy, #0a2342);
}

body.wdi-partner-surface .wdi-provider-card__badge--department {
  background: var(--wdi-ps-navy, #0a2342);
  color: var(--wdi-ps-cream, #f9f6ee);
}

body.wdi-partner-surface .wdi-provider-card__title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

body.wdi-partner-surface .wdi-provider-card__title a {
  color: var(--wdi-ps-navy, #0a2342);
  text-decoration: none;
}

body.wdi-partner-surface .wdi-provider-card__title a:hover,
body.wdi-partner-surface .wdi-provider-card__title a:focus-visible {
  color: #8a7320;
}

body.wdi-partner-surface .wdi-provider-card__desc {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1 1 auto;
}

body.wdi-partner-surface .wdi-provider-card__desc--muted {
  color: #64748b;
}

body.wdi-partner-surface .wdi-provider-card__cta {
  align-self: start;
  margin-block-start: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 2.5rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  background: var(--wdi-ps-gold, #c9a734);
  color: var(--wdi-ps-navy, #0a2342) !important;
  font-weight: 700;
  text-decoration: none;
}

body.wdi-partner-surface .wdi-provider-card__cta:hover,
body.wdi-partner-surface .wdi-provider-card__cta:focus-visible {
  background: #b8941f;
  color: var(--wdi-ps-navy, #0a2342) !important;
}

body.wdi-partner-surface .wdi-providers-dir-filters {
  display: grid;
  gap: 16px;
  margin-block-end: 28px;
}

body.wdi-partner-surface .wdi-providers-dir-search {
  inline-size: min(100%, 28rem);
  border: 1px solid var(--wdi-ps-gold, #c9a734);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 1rem;
  color: var(--wdi-ps-navy, #0a2342);
  background: #fff;
}

body.wdi-partner-surface .wdi-providers-dir-kind-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.wdi-partner-surface .wdi-providers-dir-kind-tab {
  border-radius: 8px;
  min-block-size: 2.75rem;
  padding: 0.55rem 1rem;
  font-weight: 600;
}

body.wdi-partner-surface section.hero-shop-sec h1.shop-hero-head-main,
body.wdi-partner-surface section.hero-shop-sec h2.shop-hero-head-main {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem) !important;
  line-height: 1.2;
}

body.wdi-partner-surface section.hero-shop-sec .wdi-marketplace-intro p {
  color: var(--wdi-ps-cream) !important;
}

body.wdi-partner-surface section.hero-shop-sec .wdi-marketplace-intro a {
  color: var(--wdi-ps-gold) !important;
  text-decoration-color: var(--wdi-ps-gold) !important;
}

body.wdi-partner-surface section.hero-shop-sec .wdi-marketplace-intro a:hover,
body.wdi-partner-surface
  section.hero-shop-sec
  .wdi-marketplace-intro
  a:focus-visible {
  color: var(--wdi-ps-cream) !important;
  text-decoration-color: var(--wdi-ps-cream) !important;
}

body.wdi-partner-surface
  section.hero-shop-sec
  .wdi-marketplace-intro__actions
  a {
  color: var(--wdi-ps-cream) !important;
  text-decoration: none !important;
  border-color: var(--wdi-ps-gold, #c9a734);
}

body.wdi-partner-surface
  section.hero-shop-sec
  .wdi-marketplace-intro__actions
  a:hover,
body.wdi-partner-surface
  section.hero-shop-sec
  .wdi-marketplace-intro__actions
  a:focus-visible {
  background: var(--wdi-ps-gold, #c9a734) !important;
  color: var(--wdi-ps-navy, #0a2342) !important;
}

body.wdi-partner-surface .shop-main .shop-search-input,
body.wdi-partner-surface .shop-main #main-search {
  background: #fff !important;
  color: var(--wdi-ps-navy) !important;
  border: 1px solid rgba(10, 35, 66, 0.2) !important;
}

body.wdi-partner-surface .shop-main .shop-search-input::placeholder,
body.wdi-partner-surface .shop-main #main-search::placeholder {
  color: rgba(10, 35, 66, 0.5) !important;
}

body.wdi-partner-surface .shop-sidebar {
  background: #fff !important;
  border-color: rgba(201, 167, 52, 0.45) !important;
}

/* ── WCFM store presentation ────────────────────────────────────────────── */
/*
 * Store banners (desktop → mobile, same language):
 * - Default / .wdi-banner--hero: full-bleed, natural aspect (no distortion).
 * - .wdi-banner--mark (ultra-wide logo strips): brand-color wash from the
 *   art fills the window; the mark itself is centered as a contain tile.
 * Classification: assets/js/wdi-store-banner.js
 */
body.wdi-partner-surface.wcfm-store-page #wcfmmp-store .banner_img,
body.wdi-partner-surface.wcfmmp-store-page #wcfmmp-store .banner_img,
body.wdi-partner-surface.wcfm-store-page
  #wcfmmp-store
  .banner_area_mobile
  .banner_img,
body.wdi-partner-surface.wcfmmp-store-page
  #wcfmmp-store
  .banner_area_mobile
  .banner_img {
  --wdi-banner-url: none;
  position: relative !important;
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: auto !important;
  max-height: min(22rem, 55vw) !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  line-height: 0 !important;
  text-align: center !important;
  background-color: var(
    --wdi-partner-brand-dark,
    var(--wdi-ps-navy)
  ) !important;
  background-image: none !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

body.wdi-partner-surface.wcfm-store-page #wcfmmp-store .banner_img::after,
body.wdi-partner-surface.wcfmmp-store-page #wcfmmp-store .banner_img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    color-mix(
        in srgb,
        var(--wdi-partner-brand-dark, var(--wdi-ps-navy)) 28%,
        transparent
      )
      0%,
    transparent 45%
  );
  backdrop-filter: none;
}

body.wdi-partner-surface.wcfm-store-page #wcfmmp-store .banner_img img,
body.wdi-partner-surface.wcfmmp-store-page #wcfmmp-store .banner_img img,
body.wdi-partner-surface.wcfm-store-page
  #wcfmmp-store
  .banner_area_mobile
  .banner_img
  img,
body.wdi-partner-surface.wcfmmp-store-page
  #wcfmmp-store
  .banner_area_mobile
  .banner_img
  img {
  position: relative;
  z-index: 2;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: min(22rem, 55vw) !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* Photo / normal heroes — keep full-width responsive scaling */
body.wdi-partner-surface.wcfm-store-page
  #wcfmmp-store
  .banner_img.wdi-banner--hero,
body.wdi-partner-surface.wcfmmp-store-page
  #wcfmmp-store
  .banner_img.wdi-banner--hero {
  height: auto !important;
  max-height: min(22rem, 55vw) !important;
  background-image: none !important;
}

/*
 * Ultra-wide logo strips — keep it simple:
 * 1) blurred brand-color wash (from banner art)
 * 2) navy tile
 * 3) cropped store mark centered in that tile
 */
body.wdi-partner-surface.wcfm-store-page
  #wcfmmp-store
  .banner_img.wdi-banner--mark,
body.wdi-partner-surface.wcfmmp-store-page
  #wcfmmp-store
  .banner_img.wdi-banner--mark {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: clamp(11.5rem, 28vw, 18.75rem) !important;
  max-height: 18.75rem !important;
  min-height: 11.5rem !important;
  padding: clamp(1rem, 3vw, 1.75rem) !important;
  line-height: normal !important;
  background-image: none !important;
  background-color: var(
    --wdi-partner-brand-dark,
    var(--wdi-ps-navy)
  ) !important;
}

body.wdi-partner-surface.wcfm-store-page
  #wcfmmp-store
  .banner_img.wdi-banner--mark::before,
body.wdi-partner-surface.wcfmmp-store-page
  #wcfmmp-store
  .banner_img.wdi-banner--mark::before {
  content: "";
  position: absolute;
  inset: -4rem;
  z-index: 0;
  pointer-events: none;
  background-image: var(--wdi-banner-url);
  background-size: cover;
  /* Prefer warm brand colors; avoid left-side white mark in the source art */
  background-position: 88% 50%;
  background-repeat: no-repeat;
  filter: blur(1.6rem) saturate(1.15);
  transform: scale(1.18);
  opacity: 0.9;
}

body.wdi-partner-surface.wcfm-store-page
  #wcfmmp-store
  .banner_img.wdi-banner--mark::after,
body.wdi-partner-surface.wcfmmp-store-page
  #wcfmmp-store
  .banner_img.wdi-banner--mark::after {
  /*
   * Soft navy veil + left edge seal so blur fringes never read as white.
   */
  background: linear-gradient(
      90deg,
      var(--wdi-partner-brand-dark, var(--wdi-ps-navy)) 0%,
      color-mix(
          in srgb,
          var(--wdi-partner-brand-dark, var(--wdi-ps-navy)) 55%,
          transparent
        )
        14%,
      color-mix(
          in srgb,
          var(--wdi-partner-brand-dark, var(--wdi-ps-navy)) 32%,
          transparent
        )
        100%
    );
}

body.wdi-partner-surface.wcfm-store-page
  #wcfmmp-store
  .banner_img.wdi-banner--mark
  img,
body.wdi-partner-surface.wcfmmp-store-page
  #wcfmmp-store
  .banner_img.wdi-banner--mark
  img {
  box-sizing: border-box !important;
  flex: 0 0 auto;
  z-index: 2;
  width: min(42vw, 12.5rem) !important;
  height: min(42vw, 12.5rem) !important;
  max-width: min(42vw, 12.5rem) !important;
  max-height: min(42vw, 12.5rem) !important;
  margin: 0 auto !important;
  padding: 1.15rem !important;
  object-fit: contain !important;
  object-position: center center !important;
  /* Navy tile the mark sits on (not white) */
  background: var(
    --wdi-partner-brand-dark,
    var(--wdi-ps-navy, #0a2342)
  ) !important;
  border-radius: 0.85rem;
  box-shadow: 0 0.35rem 1rem rgb(0 0 0 / 28%);
  filter: none;
}

body.wdi-partner-surface.wcfm-store-page #wcfmmp-store .banner_text,
body.wdi-partner-surface.wcfmmp-store-page #wcfmmp-store .banner_text {
  z-index: 3;
}

/*
 * All provider stores: never paint the store title over the banner logo.
 * Title belongs in the navy information header (WCFM At Header).
 */
body.wcfm-store-page #wcfmmp-store .banner_text,
body.wcfmmp-store-page #wcfmmp-store .banner_text,
body.wcfm-store-page #wcfmmp-store .slider_text,
body.wcfmmp-store-page #wcfmmp-store .slider_text,
body.wcfm-store-page #wcfmmp-store .banner_img .wcfm_store_title,
body.wcfmmp-store-page #wcfmmp-store .banner_img .wcfm_store_title,
body.wcfm-store-page #wcfmmp-store .banner_area .wcfm_store_title,
body.wcfmmp-store-page #wcfmmp-store .banner_area .wcfm_store_title,
body.wdi-hub-store-name-at-header #wcfmmp-store .banner_text,
body.wdi-hub-store-name-at-header #wcfmmp-store .slider_text {
  display: none !important;
}

body.wdi-partner-surface.wcfm-store-page #wcfmmp-store .wcfm_banner_area,
body.wdi-partner-surface.wcfmmp-store-page #wcfmmp-store .wcfm_banner_area,
body.wdi-partner-surface.wcfm-store-page #wcfmmp-store .banner_area,
body.wdi-partner-surface.wcfmmp-store-page #wcfmmp-store .banner_area {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

/*
 * Full-bleed navy for the store identity strip.
 * WCFM sets #wcfmmp-store #wcfm_store_header to grey; .header_wrapper
 * only pads content, so grey showed as side gutters. Beat that
 * selector and paint the full-width parents — layout unchanged.
 */
body.wdi-partner-surface.wcfm-store-page #wcfmmp-store #wcfm_store_header,
body.wdi-partner-surface.wcfmmp-store-page #wcfmmp-store #wcfm_store_header,
body.wdi-partner-surface.wcfm-store-page
  #wcfmmp-store
  #wcfm_store_header
  .header_wrapper,
body.wdi-partner-surface.wcfmmp-store-page
  #wcfmmp-store
  #wcfm_store_header
  .header_wrapper {
  background: var(--wdi-partner-brand-dark, var(--wdi-ps-navy)) !important;
}

body.wdi-partner-surface.wcfm-store-page #wcfm_store_header .header_wrapper,
body.wdi-partner-surface.wcfmmp-store-page #wcfm_store_header .header_wrapper {
  padding-inline: clamp(1.25rem, 3vw, 2.5rem);
}

body.wdi-partner-surface.wcfm-store-page #wcfmmp-store .header_area,
body.wdi-partner-surface.wcfmmp-store-page #wcfmmp-store .header_area {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
  background: var(--wdi-partner-brand-dark, var(--wdi-ps-navy)) !important;
  color: var(--wdi-ps-cream) !important;
  /* Tab bar sits flush below; gold rule lives on the tab strip instead */
  border-bottom: 0 !important;
  padding-block: 1rem 1.15rem;
  padding-inline: 0.25rem 0.5rem;
  overflow: visible;
  margin-bottom: 0 !important;
}

body.wdi-partner-surface.wcfm-store-page #wcfmmp-store .header_right,
body.wdi-partner-surface.wcfmmp-store-page #wcfmmp-store .header_right {
  float: none !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  /* Keep actions tight against the contact block */
  margin: 0 1rem 0 0.35rem !important;
  padding: 0 !important;
  min-height: 0 !important;
  flex: 0 0 auto;
  width: auto !important;
  max-width: 100%;
}

body.wdi-partner-surface.wcfm-store-page
  #wcfmmp-store
  .header_right
  .bd_icon_area,
body.wdi-partner-surface.wcfmmp-store-page
  #wcfmmp-store
  .header_right
  .bd_icon_area.lft,
body.wcfm-store-page #wcfmmp-store .bd_icon_area,
body.wcfmmp-store-page #wcfmmp-store .bd_icon_area {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  float: none !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem;
  flex-wrap: wrap;
}

body.wcfm-store-page #wcfmmp-store .header_right .spacer,
body.wcfmmp-store-page #wcfmmp-store .bd_icon_area .spacer {
  display: none !important;
}

/*
 * Store identity: profile pic | verified badge
 *                 stars underneath logo
 * Kill WCFM absolute offsets (logo top:-100px, after left:35%).
 */
body.wcfm-store-page #wcfmmp-store .header_left,
body.wcfmmp-store-page #wcfmmp-store .header_left {
  display: grid !important;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.35rem;
  align-items: start;
  position: relative !important;
  float: none !important;
  width: auto !important;
  /* Long vendor emails (e.g. card-connect@…) need more horizontal room */
  flex: 1 1 22rem;
  min-width: 0;
  max-width: min(36rem, 100%);
  margin: 0 !important;
  padding: 0.35rem 0 0.25rem 1.5rem !important;
  z-index: 2;
  text-align: left !important;
}

body.wcfm-store-page #wcfmmp-store .header_left .address,
body.wcfmmp-store-page #wcfmmp-store .header_left .address {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: auto !important;
  max-width: 100%;
  min-width: 0;
  float: none !important;
  text-align: left !important;
}

body.wcfm-store-page #wcfmmp-store .wcfm_store_title,
body.wcfmmp-store-page #wcfmmp-store .wcfm_store_title {
  width: auto !important;
  max-width: 100%;
  margin: 0 0 0.25rem !important;
}

body.wcfm-store-page #wcfmmp-store .logo_area,
body.wcfmmp-store-page #wcfmmp-store .logo_area {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  float: none !important;
  grid-column: 1;
  grid-row: 1;
  width: 96px !important;
  height: 96px !important;
  margin: 0 !important;
  overflow: visible !important;
}

/* Keep inquiry / follow on the same baseline as profile + contact */
body.wcfm-store-page #wcfmmp-store .header_area > .spacer,
body.wcfmmp-store-page #wcfmmp-store .header_area > .spacer {
  display: none !important;
}

body.wcfm-store-page #wcfmmp-store .header_right .bd_icon_box,
body.wcfmmp-store-page #wcfmmp-store .header_right .bd_icon_box {
  float: none !important;
  display: inline-flex !important;
  margin: 0 !important;
  position: relative;
  z-index: 3;
}

body.wcfm-store-page #wcfmmp-store .header_right .bd_icon_box a,
body.wcfmmp-store-page #wcfmmp-store .header_right .bd_icon_box a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem;
  white-space: nowrap;
  pointer-events: auto !important;
  cursor: pointer;
  background: var(--wdi-ps-cream, #fcfbf9) !important;
  color: var(--wdi-ps-navy, #0a2342) !important;
  border: 1px solid var(--wdi-ps-cream, #fcfbf9) !important;
  border-radius: 4px;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  min-height: 36px;
  height: auto !important;
  padding: 0.45rem 0.9rem !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}

body.wcfm-store-page #wcfmmp-store .header_right .bd_icon_box a:hover,
body.wcfm-store-page #wcfmmp-store .header_right .bd_icon_box a:focus-visible {
  background: var(--wdi-ps-gold, #c4a35a) !important;
  color: var(--wdi-ps-navy, #0a2342) !important;
  border-color: var(--wdi-ps-gold, #c4a35a) !important;
}

body.wcfm-store-page #wcfmmp-store .header_right .bd_icon_box a span,
body.wcfm-store-page #wcfmmp-store .header_right .bd_icon_box a i,
body.wcfm-store-page #wcfmmp-store .header_right .bd_icon_box a:before {
  color: inherit !important;
  font-size: inherit !important;
  line-height: 1 !important;
  opacity: 1 !important;
}

body.wcfm-store-page #wcfmmp-store .logo_area_after {
  display: contents !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  text-align: left !important;
}

/* Verified badge sits beside the logo, not on top of it */
body.wcfm-store-page #wcfmmp-store .wcfmmp_store_mobile_badges,
body.wcfmmp-store-page #wcfmmp-store .logo_area_after > .wcfm_vendor_badges {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: start;
  display: flex !important;
  align-items: center;
  margin: 0.35rem 0 0 !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  position: relative !important;
  z-index: 2;
}

body.wcfm-store-page #wcfmmp-store .wcfm_vendor_badges,
body.wcfmmp-store-page #wcfmmp-store .wcfm_vendor_badge {
  display: inline-flex !important;
  float: none !important;
  margin: 0 !important;
  vertical-align: middle;
  position: static !important;
}

body.wcfm-store-page #wcfmmp-store .wcfm_vendor_badge img {
  width: 28px !important;
  height: 28px !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  display: block !important;
}

/* Stars centered under the 96px logo column */
body.wcfm-store-page #wcfmmp-store .wcfmmp-store-rating,
body.wcfmmp-store-page #wcfmmp-store .logo_area_after .wcfmmp-store-rating,
body.wcfm-store-page #wcfmmp-store #wcfm_store_header .wcfmmp-store-rating,
body.wcfmmp-store-page #wcfmmp-store #wcfm_store_header .wcfmmp-store-rating {
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
  width: 6em !important;
  max-width: 96px;
  margin: 0.2rem 0 0 !important;
  float: none !important;
  position: relative !important;
  left: auto !important;
  font-size: 1rem !important;
  height: 1.618em !important;
  line-height: 1.618 !important;
  overflow: hidden;
  /*
   * Re-assert FA solid — WCFM embeds raw PUA glyphs in CSS which can
   * mojibake (ï€…) if encoding/font falls through. Escaped content below.
   */
  font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", FontAwesome !important;
  font-weight: 900 !important;
  font-style: normal !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: transparent !important;
}

body.wcfm-store-page #wcfmmp-store #wcfm_store_header .wcfmmp-store-rating::before,
body.wcfmmp-store-page #wcfmmp-store #wcfm_store_header .wcfmmp-store-rating::before,
body.wcfm-store-page #wcfmmp-store .wcfmmp-store-rating::before,
body.wcfmmp-store-page #wcfmmp-store .wcfmmp-store-rating::before {
  content: "\f005\f005\f005\f005\f005" !important;
  font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", FontAwesome !important;
  font-weight: 900 !important;
  font-style: normal !important;
  speak: none;
  float: left;
  position: absolute;
  top: 0;
  left: 0;
  /* Visible on navy — WCFM grey @ 0.25 opacity reads as broken tofu */
  color: color-mix(in srgb, var(--wdi-ps-cream, #f2eadf) 55%, transparent) !important;
  opacity: 1 !important;
}

body.wcfm-store-page #wcfmmp-store #wcfm_store_header .wcfmmp-store-rating span,
body.wcfmmp-store-page #wcfmmp-store #wcfm_store_header .wcfmmp-store-rating span,
body.wcfm-store-page #wcfmmp-store .wcfmmp-store-rating span,
body.wcfmmp-store-page #wcfmmp-store .wcfmmp-store-rating span {
  overflow: hidden !important;
  float: left;
  position: absolute;
  top: 0;
  left: 0;
  padding-top: 1.5em;
  color: transparent !important;
}

body.wcfm-store-page #wcfmmp-store #wcfm_store_header .wcfmmp-store-rating span::before,
body.wcfmmp-store-page #wcfmmp-store #wcfm_store_header .wcfmmp-store-rating span::before,
body.wcfm-store-page #wcfmmp-store .wcfmmp-store-rating span::before,
body.wcfmmp-store-page #wcfmmp-store .wcfmmp-store-rating span::before,
body.wcfm-store-page #wcfmmp-store .logo_area_after .wcfmmp-store-rating span::before,
body.wcfmmp-store-page #wcfmmp-store .logo_area_after .wcfmmp-store-rating span::before {
  content: "\f005\f005\f005\f005\f005" !important;
  font-family: "Font Awesome 5 Free", "Font Awesome 5 Pro", FontAwesome !important;
  font-weight: 900 !important;
  font-style: normal !important;
  speak: none;
  position: absolute;
  top: 0;
  left: 0;
  color: var(--wdi-ps-gold, #c4a35a) !important;
}

body.wcfm-store-page #wcfmmp-store .address,
body.wcfmmp-store-page #wcfmmp-store .address {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  float: none !important;
  align-self: center;
  width: auto !important;
  max-width: 100%;
  margin: 0 !important;
  text-align: left !important;
}

body.wcfm-store-page #wcfmmp-store .address .header_store_name,
body.wcfmmp-store-page #wcfmmp-store .address .header_store_name {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.2rem;
  width: 100% !important;
  max-width: 100%;
  text-align: left !important;
}

body.wcfm-store-page #wcfmmp-store .address .header_store_name .spacer,
body.wcfmmp-store-page #wcfmmp-store .address .header_store_name .spacer {
  display: none !important;
}

/* Larger phone / email under the store name — stacked icon rows */
body.wcfm-store-page #wcfmmp-store .address .store_info_parallal,
body.wcfmmp-store-page #wcfmmp-store .address .wcfmmp_store_header_phone,
body.wcfmmp-store-page #wcfmmp-store .address .wcfmmp_store_header_email {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  font-size: 1rem !important;
  line-height: 1.45 !important;
  margin: 0.15rem 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
  white-space: normal !important;
}

/*
 * Edge case: long hyphenated local-parts (card-connect@…).
 * Avoid overflow-wrap:anywhere / soft hyphens that split as CARD- / CONNECT@.
 * Prefer keeping the local-part intact; wrap before @ when needed.
 */
body.wcfm-store-page #wcfmmp-store .address .store_info_parallal span,
body.wcfmmp-store-page #wcfmmp-store .address .store_info_parallal a,
body.wcfmmp-store-page #wcfmmp-store .address .wcfmmp_store_header_phone span,
body.wcfmmp-store-page #wcfmmp-store .address .wcfmmp_store_header_phone a,
body.wcfmmp-store-page #wcfmmp-store .address .wcfmmp_store_header_email span,
body.wcfmmp-store-page #wcfmmp-store .address .wcfmmp_store_header_email a {
  font-size: 1rem !important;
  line-height: 1.45 !important;
  color: var(--wdi-ps-cream, #fcfbf9) !important;
  min-width: 0;
  flex: 1 1 auto;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  -webkit-hyphens: none;
  text-transform: none;
}

body.wcfm-store-page #wcfmmp-store .address .wcfmmp_store_header_email a,
body.wcfmmp-store-page #wcfmmp-store .address .wcfmmp_store_header_email span {
  /*
   * Do not use overflow-wrap:anywhere — it splits on hyphens
   * (CARD- / CONNECT@…). JS inserts a soft break before @ when needed.
   */
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  text-transform: none !important;
  letter-spacing: 0.01em;
}

body.wcfm-store-page #wcfmmp-store .address .store_info_parallal i,
body.wcfmmp-store-page #wcfmmp-store .address .wcfmmp_store_header_phone i,
body.wcfmmp-store-page #wcfmmp-store .address .wcfmmp_store_header_email i {
  flex: 0 0 1.15rem;
  width: 1.15rem;
  font-size: 1rem !important;
  line-height: 1.45 !important;
  margin: 0.1rem 0.45rem 0 0 !important;
  text-align: center;
  color: var(--wdi-ps-gold, #c4a35a) !important;
}

/* Desktop: prefer single-line email when the contact column has room */
@media (min-width: 781px) {
  body.wcfm-store-page #wcfmmp-store .address .wcfmmp_store_header_email a,
  body.wcfmmp-store-page #wcfmmp-store .address .wcfmmp_store_header_email span {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }
}

body.wcfm-store-page #wcfmmp-store .header_left .spacer,
body.wcfmmp-store-page #wcfmmp-store .logo_area_after .spacer {
  display: none !important;
}

body.wdi-partner-surface.wcfm-store-page #wcfmmp-store .wcfm_store_title,
body.wdi-partner-surface.wcfmmp-store-page #wcfmmp-store .wcfm_store_title,
body.wdi-partner-surface.wcfm-store-page #wcfmmp-store .address,
body.wdi-partner-surface.wcfmmp-store-page #wcfmmp-store .address,
body.wdi-partner-surface.wcfm-store-page #wcfmmp-store .wcfmmp_store_info,
body.wdi-partner-surface.wcfmmp-store-page #wcfmmp-store .wcfmmp_store_info {
  color: var(--wdi-ps-cream) !important;
  text-align: left !important;
}

@media (max-width: 780px) {
  body.wcfm-store-page #wcfmmp-store .header_left,
  body.wcfmmp-store-page #wcfmmp-store .header_left {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    width: 100% !important;
    max-width: 100%;
    flex: 1 1 100%;
    padding-inline: 0.5rem 0.25rem !important;
  }

  /* Must beat .header_left .address { grid-column: 2 } specificity */
  body.wcfm-store-page #wcfmmp-store .header_left .address,
  body.wcfmmp-store-page #wcfmmp-store .header_left .address {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch;
  }

  body.wcfm-store-page #wcfmmp-store .header_right,
  body.wcfmmp-store-page #wcfmmp-store .header_right {
    width: 100% !important;
    max-width: 100%;
    margin: 0.35rem 0 0 !important;
    justify-content: flex-start !important;
  }

  body.wcfm-store-page #wcfmmp-store .header_right .bd_icon_area,
  body.wcfmmp-store-page #wcfmmp-store .header_right .bd_icon_area {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Store body: kill WCFM float layout that shoved tabs to the right */
body.wcfm-store-page #wcfmmp-store .body_area,
body.wcfmmp-store-page #wcfmmp-store .body_area {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
  width: 100% !important;
  float: none !important;
  overflow: visible !important;
  min-height: 0;
  height: auto !important;
  clear: both;
  background: var(--wdi-ps-cream-soft, #f7f4ef);
}

body.wcfm-store-page #wcfmmp-store .body_area .right_side,
body.wcfmmp-store-page #wcfmmp-store .body_area .right_side,
body.wcfm-store-page #wcfmmp-store .body_area .right_side_full {
  float: none !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  /* Kill WCFM `padding: 5% 5% 0` that left a cream gap under the header */
  margin: 0 !important;
  padding: 0 !important;
  flex: 1 1 100%;
}

body.wcfm-store-page #wcfmmp-store .body_area .left_sidebar,
body.wcfmmp-store-page #wcfmmp-store .body_area .left_sidebar {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  order: 2;
}

body.wcfm-store-page #wcfmmp-store .tab_area,
body.wcfmmp-store-page #wcfmmp-store .tab_area {
  float: none !important;
  width: 100% !important;
  height: auto !important;
  overflow: visible !important;
  clear: both;
  margin: 0 !important;
  padding: 0 !important;
}

body.wcfm-store-page #wcfmmp-store #tab_links_area,
body.wcfmmp-store-page #wcfmmp-store .tab_links_area {
  float: none !important;
  width: 100% !important;
  height: auto !important;
  overflow: visible !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.wdi-partner-surface.wcfm-store-page #wcfmmp-store .tab_area .tab_links,
body.wdi-partner-surface.wcfmmp-store-page #wcfmmp-store .tab_area .tab_links {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  float: none !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  /* Align under action buttons (ends near Chat/Inquiry/Follow cluster) */
  padding: 0 clamp(10rem, 34vw, 34rem) 0 0.75rem !important;
  gap: 0.15rem;
  list-style: none !important;
  background: var(--wdi-ps-navy, #0a2342) !important;
  border-bottom: 3px solid var(--wdi-ps-gold, #c4a35a);
  box-sizing: border-box;
}

/* Keep Firebase chat panel usable when Chat Now force-opens it.
   Do NOT force display:block on #FBC_chat — that blocks header close.
   Open state is gated by .wdi-fbc-open (added/removed by wdi-store-chatnow.js). */
body.wcfm-store-page .wcfm_fbc_chatwindow,
body.wcfmmp-store-page .wcfm_fbc_chatwindow {
  position: static !important;
  height: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

body.wcfm-store-page .wcfm_fbc_chatwindow.wdi-fbc-open #FBC_chat,
body.wcfmmp-store-page .wcfm_fbc_chatwindow.wdi-fbc-open #FBC_chat {
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed !important;
  top: auto !important;
  left: auto !important;
  right: 1.25rem !important;
  bottom: 0 !important;
  width: min(22rem, calc(100% - 2rem)) !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(36rem, 80vh) !important;
  z-index: 999999 !important;
  background-color: #fff !important;
  overflow: hidden !important;
  box-shadow: 0 8px 28px rgba(10, 35, 66, 0.28);
}

/* FBC engine sets .chat-form to 260px and .chat-online to 370px inline —
   that mismatch lets the page show through next to "Connecting...". */
body.wcfm-store-page .wcfm_fbc_chatwindow #FBC_chat .chat-body,
body.wcfmmp-store-page .wcfm_fbc_chatwindow #FBC_chat .chat-body,
body.wcfm-store-page .wcfm_fbc_chatwindow.wdi-fbc-open #FBC_chat .chat-body,
body.wcfmmp-store-page .wcfm_fbc_chatwindow.wdi-fbc-open #FBC_chat .chat-body {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background-color: #fff !important;
}

body.wcfm-store-page .wcfm_fbc_chatwindow.wdi-fbc-open #FBC_chat .chat-body,
body.wcfmmp-store-page .wcfm_fbc_chatwindow.wdi-fbc-open #FBC_chat .chat-body {
  max-height: min(28rem, 70vh);
  overflow: auto;
}

/* Offline / login forms need solid full-width cards, not shrink-wrapped rows. */
body.wcfm-store-page .wcfm_fbc_chatwindow #FBC_offline,
body.wcfmmp-store-page .wcfm_fbc_chatwindow #FBC_offline,
body.wcfm-store-page .wcfm_fbc_chatwindow #FBC_login,
body.wcfmmp-store-page .wcfm_fbc_chatwindow #FBC_login,
body.wcfm-store-page .wcfm_fbc_chatwindow #FBC_connecting,
body.wcfmmp-store-page .wcfm_fbc_chatwindow #FBC_connecting {
  width: 100% !important;
  background-color: #fff !important;
}

body.wcfm-store-page .wcfm_fbc_chatwindow #FBC_offline #FBC_popup_form,
body.wcfmmp-store-page .wcfm_fbc_chatwindow #FBC_offline #FBC_popup_form,
body.wcfm-store-page .wcfm_fbc_chatwindow #FBC_login #FBC_login_form,
body.wcfmmp-store-page .wcfm_fbc_chatwindow #FBC_login #FBC_login_form {
  display: block !important;
  width: 100% !important;
}

body.wcfm-store-page .wcfm_fbc_chatwindow.wdi-fbc-open #FBC_chat .chat-header,
body.wcfmmp-store-page
  .wcfm_fbc_chatwindow.wdi-fbc-open
  #FBC_chat
  .chat-header {
  width: 100% !important;
  box-sizing: border-box !important;
  cursor: pointer;
}

body.wcfm-store-page .wcfm_fbc_chatwindow.wdi-fbc-open #FBC_chat_btn,
body.wcfmmp-store-page .wcfm_fbc_chatwindow.wdi-fbc-open #FBC_chat_btn {
  display: none !important;
}

/* WDI teal chrome — matches --wdi-ps-teal (not stock FBC #009EDB). */
body.wcfm-store-page .wcfm_fbc_chatwindow #FBC_chat_header,
body.wcfmmp-store-page .wcfm_fbc_chatwindow #FBC_chat_header,
body.wcfm-store-page .wcfm_fbc_chatwindow #FBC_chat_btn,
body.wcfmmp-store-page .wcfm_fbc_chatwindow #FBC_chat_btn,
body.wcfm-store-page .wcfm_fbc_chatwindow .chat-form-btn,
body.wcfmmp-store-page .wcfm_fbc_chatwindow .chat-form-btn,
body.wcfm-store-page .wcfm_fbc_chatwindow #FBC_send_btn,
body.wcfmmp-store-page .wcfm_fbc_chatwindow #FBC_send_btn,
body.wcfm-store-page .wcfm_fbc_chatwindow #FBC_login_btn,
body.wcfmmp-store-page .wcfm_fbc_chatwindow #FBC_login_btn {
  background-color: var(--wdi-ps-teal, #1d7d81) !important;
  color: #fff !important;
}

body.wcfm-store-page .wcfm_fbc_chatwindow .chat-form-btn:hover,
body.wcfmmp-store-page .wcfm_fbc_chatwindow .chat-form-btn:hover,
body.wcfm-store-page .wcfm_fbc_chatwindow #FBC_send_btn:hover,
body.wcfmmp-store-page .wcfm_fbc_chatwindow #FBC_send_btn:hover,
body.wcfm-store-page .wcfm_fbc_chatwindow #FBC_login_btn:hover,
body.wcfmmp-store-page .wcfm_fbc_chatwindow #FBC_login_btn:hover,
body.wcfm-store-page .wcfm_fbc_chatwindow #FBC_chat_btn:hover,
body.wcfmmp-store-page .wcfm_fbc_chatwindow #FBC_chat_btn:hover {
  background-color: #18666a !important;
  color: #fff !important;
}

body.wdi-partner-surface.wcfm-store-page #wcfmmp-store .tab_area .tab_links li,
body.wdi-partner-surface.wcfmmp-store-page
  #wcfmmp-store
  .tab_area
  .tab_links
  li {
  float: none !important;
  display: block !important;
  margin: 0 !important;
  background: transparent !important;
}

body.wdi-partner-surface.wcfm-store-page
  #wcfmmp-store
  .tab_area
  .tab_links
  li:has(a:empty) {
  display: none !important;
}

body.wdi-partner-surface.wcfm-store-page
  #wcfmmp-store
  .tab_area
  .tab_links
  li
  a,
body.wdi-partner-surface.wcfmmp-store-page
  #wcfmmp-store
  .tab_area
  .tab_links
  li
  a {
  display: inline-block !important;
  color: var(--wdi-ps-cream) !important;
  font-weight: 600;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  padding: 0.65rem 1rem !important;
  margin-bottom: -3px;
}

body.wdi-partner-surface.wcfm-store-page
  #wcfmmp-store
  .tab_area
  .tab_links
  li.active
  a,
body.wdi-partner-surface.wcfmmp-store-page
  #wcfmmp-store
  .tab_area
  .tab_links
  li
  a:hover {
  color: var(--wdi-ps-gold, #c4a35a) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-bottom-color: var(--wdi-ps-gold) !important;
}

body.wdi-partner-surface.wcfm-store-page #wcfmmp-store #products,
body.wdi-partner-surface.wcfmmp-store-page #wcfmmp-store #products,
body.wdi-partner-surface.wcfm-store-page #wcfmmp-store .product_area,
body.wdi-partner-surface.wcfmmp-store-page #wcfmmp-store .right_side_content,
body.wdi-partner-surface.wcfmmp-store-page #wcfmmp-store .right_side_content,
body.wdi-partner-surface.wcfm-store-page #wcfmmp-store ._area,
body.wdi-partner-surface.wcfmmp-store-page #wcfmmp-store ._area,
body.wdi-partner-surface.wcfm-store-page #wcfmmp-store .left_sidebar,
body.wdi-partner-surface.wcfmmp-store-page #wcfmmp-store .left_sidebar {
  background: var(--wdi-ps-cream-soft) !important;
  color: var(--wdi-ps-navy);
  float: none !important;
  width: 100% !important;
  box-sizing: border-box;
  padding: 1.25rem 1rem 2rem;
}

/*
 * Solutions catalog thumbs: landscape community art must fit, not crop.
 * Pair with single_product_archive_thumbnail_size → uncropped "large".
 */
body.wdi-partner-surface.wcfm-store-page #wcfmmp-store ul.products li.product .et_shop_image,
body.wdi-partner-surface.wcfmmp-store-page #wcfmmp-store ul.products li.product .et_shop_image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #f7f5ef;
  box-sizing: border-box;
}

body.wdi-partner-surface.wcfm-store-page #wcfmmp-store ul.products li.product .et_shop_image img,
body.wdi-partner-surface.wcfmmp-store-page
  #wcfmmp-store
  ul.products
  li.product
  .et_shop_image
  img,
body.wdi-partner-surface.wcfm-store-page #wcfmmp-store ul.products li.product img.attachment-woocommerce_thumbnail,
body.wdi-partner-surface.wcfmmp-store-page
  #wcfmmp-store
  ul.products
  li.product
  img.wp-post-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  object-fit: contain !important;
  object-position: center;
  background: #f7f5ef;
}

@media (max-width: 780px) {
  body.wdi-partner-surface.wcfm-store-page #wcfmmp-store .tab_area .tab_links,
  body.wdi-partner-surface.wcfmmp-store-page
    #wcfmmp-store
    .tab_area
    .tab_links {
    justify-content: flex-start;
    padding-inline: 0.5rem !important;
  }
}

/* Store About — company descriptions (affiliates / partners later) */
body.wcfm-store-page #wcfmmp-store .wdi-store-about-companies,
body.wcfmmp-store-page #wcfmmp-store .wdi-store-about-companies {
  margin: 1.75rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(10, 35, 66, 0.12);
}

body.wcfm-store-page #wcfmmp-store .wdi-store-about-companies__heading,
body.wcfmmp-store-page #wcfmmp-store .wdi-store-about-companies__heading {
  margin: 0 0 0.65rem;
  color: var(--wdi-ps-navy, #0a2342);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

body.wcfm-store-page #wcfmmp-store .wdi-store-about-companies__intro,
body.wcfmmp-store-page #wcfmmp-store .wdi-store-about-companies__intro {
  margin: 0 0 1.25rem;
  max-width: 42rem;
  color: rgba(10, 35, 66, 0.82);
  font-size: 1rem;
  line-height: 1.55;
}

body.wcfm-store-page #wcfmmp-store .wdi-store-about-companies__list,
body.wcfmmp-store-page #wcfmmp-store .wdi-store-about-companies__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

body.wcfm-store-page #wcfmmp-store .wdi-store-about-companies__item,
body.wcfmmp-store-page #wcfmmp-store .wdi-store-about-companies__item {
  margin: 0;
  padding: 1.1rem 1.15rem;
  background: #fff;
  border: 1px solid rgba(10, 35, 66, 0.1);
  border-radius: 10px;
  box-sizing: border-box;
}

body.wcfm-store-page #wcfmmp-store .wdi-store-about-companies__name,
body.wcfmmp-store-page #wcfmmp-store .wdi-store-about-companies__name {
  margin: 0 0 0.45rem;
  color: var(--wdi-ps-navy, #0a2342);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

body.wcfm-store-page #wcfmmp-store .wdi-store-about-companies__blurb,
body.wcfmmp-store-page #wcfmmp-store .wdi-store-about-companies__blurb {
  margin: 0;
  color: rgba(10, 35, 66, 0.86);
  font-size: 0.98rem;
  line-height: 1.55;
}

body.wcfm-store-page #wcfmmp-store .wdi-store-about-companies__link-wrap,
body.wcfmmp-store-page #wcfmmp-store .wdi-store-about-companies__link-wrap {
  margin: 0.7rem 0 0;
}

body.wcfm-store-page #wcfmmp-store .wdi-store-about-companies__link,
body.wcfmmp-store-page #wcfmmp-store .wdi-store-about-companies__link {
  color: var(--wdi-ps-teal, #1d7d81);
  font-weight: 600;
  text-decoration: none;
}

body.wcfm-store-page #wcfmmp-store .wdi-store-about-companies__link:hover,
body.wcfmmp-store-page #wcfmmp-store .wdi-store-about-companies__link:hover,
body.wcfm-store-page #wcfmmp-store .wdi-store-about-companies__link:focus-visible,
body.wcfmmp-store-page #wcfmmp-store .wdi-store-about-companies__link:focus-visible {
  color: var(--wdi-ps-navy, #0a2342);
  text-decoration: underline;
}

body.wdi-partner-surface.wcfm-store-page #wcfmmp-store .button,
body.wdi-partner-surface.wcfmmp-store-page #wcfmmp-store input[type="submit"] {
  background: var(--wdi-ps-navy) !important;
  color: var(--wdi-ps-cream) !important;
  border-color: var(--wdi-ps-navy) !important;
}

body.wdi-partner-surface.wcfm-store-page #wcfmmp-store .button:hover,
body.wdi-partner-surface.wcfmmp-store-page
  #wcfmmp-store
  input[type="submit"]:hover {
  background: var(--wdi-ps-teal) !important;
  border-color: var(--wdi-ps-teal) !important;
  color: #fff !important;
}

/* ── Provider article singles ───────────────────────────────────────────── */
body.wdi-partner-surface.wdi-article-single #main-content,
body.wdi-partner-surface.wdi-article-single .wdi-article-single-main {
  background: var(--wdi-ps-cream-soft) !important;
}

body.wdi-partner-surface.wdi-article-single .wdi-article {
  background: #fff;
  color: var(--wdi-ps-navy);
  border-color: rgba(10, 35, 66, 0.14);
}

body.wdi-partner-surface.wdi-article-single .wdi-article__title,
body.wdi-partner-surface.wdi-article-single .wdi-article__content {
  color: var(--wdi-ps-navy) !important;
}

body.wdi-partner-surface.wdi-article-single .wdi-vc-chrome {
  background: var(--wdi-ps-navy);
  border-color: transparent;
  color: var(--wdi-ps-cream);
}

body.wdi-partner-surface.wdi-article-single .wdi-vc-nav__link,
body.wdi-partner-surface.wdi-article-single .wdi-vc-byline,
body.wdi-partner-surface.wdi-article-single .wdi-vc-byline__label {
  color: var(--wdi-ps-cream) !important;
}

body.wdi-partner-surface.wdi-article-single .wdi-vc-nav__link:hover,
body.wdi-partner-surface.wdi-article-single .wdi-vc-nav__link--provider,
body.wdi-partner-surface.wdi-article-single .wdi-vc-byline__provider {
  color: var(--wdi-ps-gold) !important;
  border-bottom-color: var(--wdi-ps-gold);
}

/* ── SPM marketing ──────────────────────────────────────────────────────── */
/*
 * SPM pages often omit #main-content (template renders into #et-main-area).
 * Kill the fixed min(100vh,720px) navy→cream gradient so directory sections
 * are not straddled across the color cut. Hero stays navy; page canvas is cream.
 * Nav clearance remains on the hero (padding-top), so cream does not flash
 * between fixed header and hero.
 */
body.wdi-partner-surface.wdi-spm-page #et-main-area,
body.wdi-partner-surface.wdi-spm-page #main-content {
  background-color: var(--wdi-ps-cream-soft) !important;
  background-image: none !important;
}

body.wdi-partner-surface.wdi-spm-page .wdi-spm-hero,
body.wdi-partner-surface.wdi-spm-page .wdi-partner-hero,
body.wdi-partner-surface.wdi-spm-page .wdi-servicer-hero,
body.wdi-partner-surface.wdi-spm-page section.hero-section.wdi-spm-hero,
body.wdi-partner-surface.wdi-spm-page section.wdi-tech-partners-hero {
  background: var(--wdi-ps-navy) !important;
  background-image: none !important;
  color: var(--wdi-ps-cream) !important;
}
