/*
 Theme Name:   WDI Divi 5
 Theme URI:    https://welldoit.solutions
 Description:  WDI Divi 5 child theme — Divi VB modules, shortcodes, and Woo/WCFM chrome. Pair with wdi-monocle-bridge for Monocle.
 Author:       WDI
 Template:     Divi
 Version:      1.1.0
*/

/* ============================================================================
   GLOBAL STYLES
   ============================================================================ */

/* ============================================================================
   ANIMATIONS
   ============================================================================ */
@keyframes heartbeat {
  0%,
  28%,
  70%,
  100% {
    transform: scale(1);
  }
  14%,
  42% {
    transform: scale(1.3);
  }
}

/* ============================================================================
   BASE STYLES & RESET
   ============================================================================ */
body {
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
h4,
p,
a {
  margin: 0;
  padding: 0;
}
ul {
  line-height: 22px;
  font-size: 18px;
}
::marker {
  color: #c9a734;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */
#main-content:not(#main-header) h1,
#main-content:not(#main-header) h2,
#main-content:not(#main-header) h3,
#main-content:not(#main-header) h4,
.et_pb_section h1,
.et_pb_section h2,
.et_pb_section h3,
.et_pb_section h4,
section.hero-section h1,
section.hero-section h2,
section.hero-section h3,
section.hero-section h4,
section.pricing-blocks h1,
section.pricing-blocks h2,
section.pricing-blocks h3,
section.pricing-blocks h4,
section.wdi-solutions-section h1,
section.wdi-solutions-section h2,
section.wdi-solutions-section h3,
section.wdi-solutions-section h4,
section.get-started-section h1,
section.get-started-section h2,
section.get-started-section h3,
section.get-started-section h4,
section.hero-shop-sec h1,
section.hero-shop-sec h2,
section.hero-shop-sec h3,
section.hero-shop-sec h4,
section.shop-body-l h1,
section.shop-body-l h2,
section.shop-body-l h3,
section.shop-body-l h4,
section.cta-sec-pricing h1,
section.cta-sec-pricing h2,
section.cta-sec-pricing h3,
section.cta-sec-pricing h4,
section.rs-hero-sec h1,
section.rs-hero-sec h2,
section.rs-hero-sec h3,
section.rs-hero-sec h4,
section.hub-sec-main h1,
section.hub-sec-main h2,
section.hub-sec-main h3,
section.hub-sec-main h4 {
  font-family: "Girl From Nowhere", Helvetica, Arial, Lucida, sans-serif;
}

#main-content:not(#main-header) p,
#main-content:not(#main-header) a,
.et_pb_section p,
.et_pb_section a,
section.hero-section p,
section.hero-section a,
section.pricing-blocks p,
section.pricing-blocks a,
section.wdi-solutions-section p,
section.wdi-solutions-section a,
section.hero-shop-sec p,
section.hero-shop-sec a,
section.shop-body-l p,
section.shop-body-l a,
section.cta-sec-pricing p,
section.cta-sec-pricing a,
section.rs-hero-sec p,
section.rs-hero-sec a,
section.hub-sec-main p,
section.hub-sec-main a {
  font-family: "Ysabeau SC regular", Helvetica, Arial, Lucida, sans-serif;
}

/* ============================================================================
   LAYOUT & CONTAINERS
   ============================================================================ */
.container-home {
  max-width: 100%;
  margin: auto;
  padding: 0 42px;
}
.hero-text {
  display: flex;
  column-gap: 30px;
}
.onee {
  width: 48%;
  position: relative;
  z-index: 5;
}
.cta {
  width: 48%;
}

/* ============================================================================
   HERO SECTION STYLES
   ============================================================================ */
section.hero-section {
  background-color: #0b2342;
  /* WebP only — no PNG URL in CSS (avoids Rocket/Lighthouse discovering the 258KB upload).
     Width media (not 1x/2x image-set): retina at ~1350 CSS px was pulling BOTH
     1280 + 1920 and delaying desktop LCP. */
  background-image: url("/wp-content/themes/wdi-divi-5/assets/images/hero/28-1-1-2-1280.webp");
  background-repeat: no-repeat;
  background-size: cover;
  /* Keep faces/photo near the cream nav — avoid a solid dark band under the header */
  background-position: center 28%;
  min-height: clamp(520px, 72vh, 860px);
  padding-top: 0;
  padding-bottom: 70px;
  position: relative;
  z-index: 1;
  pointer-events: auto !important;
  margin-top: 0 !important;
}

@media screen and (min-width: 1600px) {
  section.hero-section {
    background-image: url("/wp-content/themes/wdi-divi-5/assets/images/hero/28-1-1-2-1920.webp");
  }
}

/* Two columns in hero: left = .hero-primary (heading, search, CTA, phone), right = .faq-row (accordion/solutions).
   Responsive: stay 2 columns through tablet; stack to 1 column only at mobile (768px). */
section.hero-section .container-home {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  column-gap: 48px;
  row-gap: 20px;
  align-items: center !important;
}
section.hero-section .hero-primary {
  flex: 1 !important;
  min-width: 0;
  padding-right: 56px !important;
  padding-left: 56px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
section.hero-section .hero-primary .hero-heading-row {
  align-items: center !important;
}
section.hero-section .hero-primary .search-form,
section.hero-section .hero-primary .ux-search {
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  max-width: 480px !important;
}
section.hero-section .hero-primary .cta-button {
  width: 100% !important;
  max-width: 480px !important;
}
section.hero-section .faq-row {
  flex: 1 !important;
  min-width: 0;
  padding-left: 24px !important;
  box-sizing: border-box !important;
}
/* Hero Foundational promo slot (SSR) — same column role as legacy .faq-row */
section.hero-section .hero-starter-slot,
section.hero-section .hero-aside {
  flex: 1 !important;
  min-width: 0;
  max-width: 520px;
  padding-left: 24px !important;
  box-sizing: border-box !important;
  align-self: center;
}
/* Empty Divi placeholder shell — never show a blank white box */
.faq-row-st:empty {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
.faq-row:not(
    :has(
      .faq-line-contet,
      .wdi-solutions-tab,
      .hero-starter-slot,
      .wdi-home-starter-promo
    )
  ):has(> .faq-row-st:empty) {
  display: none !important;
}
/* Desktop/tablet only: breathing room so left column sits level with right (floating in middle of hero). */
@media screen and (min-width: 981px) {
  section.hero-section .hero-primary {
    padding-top: 100px !important;
  }
}

section.hero-section .container-home,
section.hero-section .hero-text,
section.hero-section .onee,
section.hero-section .search-form,
section.hero-section a {
  pointer-events: auto !important;
  position: relative;
  z-index: 10;
}

/* Hero heading: line 1 = full text "Do What You Love, Everything Else..."; line 2 = logo only */
section.hero-section .hero-heading-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.5em;
  max-width: 100%;
  min-width: 0;
}
section.hero-section h1.main-hero-h1 {
  font-size: var(--hero-h1-size, 48px) !important;
  line-height: 1.2;
  color: #fff;
  text-transform: capitalize;
  margin: 0;
  display: block !important;
  white-space: nowrap;
  transition: font-size 0.2s ease-out;
  text-align: center !important;
}
section.hero-section h1.main-hero-h1 .heart-beat {
  display: inline-block;
}
section.hero-section .hero-logo-wrap {
  display: block !important;
  line-height: 0;
  width: min(100%, clamp(12rem, 42vw, 28rem));
}
section.hero-section .hero-logo-inline {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  /* Match the resized theme assets (800×245), not the master 2400×734. */
  aspect-ratio: 800 / 245;
  object-fit: contain !important;
  object-position: center center !important;
  image-rendering: auto;
  vertical-align: middle !important;
}

/* Clarifies the lockup: who we are + the two plan paths (not a second H1).
 * Kept as a no-op hide if stale Divi HTML still injects the left-side line. */
section.hero-section .hero-positioning-line {
  display: none !important;
}

/* Phone + footnote stay grouped so the * note reads as part of the number */
section.hero-section .hero-phone-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  margin-top: 36px;
  margin-left: 0;
  margin-right: auto;
  text-align: center;
}

/* Phone number: fluid via --hero-phone-size (JS); larger on desktop */
section.hero-section h1.hero-h1,
section.hero-section p.hero-h1 {
  font-size: var(--hero-phone-size, clamp(2.75rem, 4.2vw, 5rem)) !important;
  line-height: 1 !important;
  color: #fff;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
  white-space: nowrap !important;
  max-width: 100%;
  min-width: 0;
  transition: font-size 0.2s ease-out;
}

/* Match phone width: block is fit-content from the h1; footnote fills that track */
section.hero-section .hero-phone-block .hero-phone-footnote,
section.hero-section p.hero-phone-footnote {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-family: Helvetica, Arial, Lucida, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-transform: none !important;
  white-space: nowrap !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

span.YELO {
  color: #c9a734;
}
.heart-beat {
  color: #ff0000;
  display: inline-block;
  animation: heartbeat 1.5s ease-in-out infinite;
}

/* Search Form */
.search-form.inline {
  position: relative;
  z-index: 20;
}
.ux-search.ux-search--size-md {
  display: flex;
  width: 100%;
  max-width: 80%;
}
input#domainSearch,
.wdi-domain-search__input {
  padding: 22px;
  width: 100% !important;
  max-width: 100% !important;
}
button.search-form-button {
  background: #c9a734;
  border: none;
}
.ux-field-frame--stretch {
  width: 100% !important;
}

/* WDI domain search in hero — keep row compact and results as overlay card */
section.hero-section .wdi-domain-search,
section.hero-section .hero-primary .wdi-domain-search {
  width: 100% !important;
  max-width: 480px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
section.hero-section .wdi-domain-search .ux-search {
  max-width: 100% !important;
  width: 100% !important;
}

/* Hero CTA */
.cta-button {
  margin-top: 15px;
  width: 100%;
  position: relative;
  z-index: 20;
}
a.cta-a-btn {
  display: block;
  width: 100%;
  background-color: #c9a734;
  padding: 25px 20px;
  text-align: center;
  border-radius: 4px;
  letter-spacing: 1px;
  font-size: 14px;
  font-weight: 700 !important;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  line-height: 1.5;
  transition: background-color 0.3s ease;
}
a.cta-a-btn:hover {
  background-color: #bfa030;
}

/* ============================================================================
   FAQ SECTION STYLES
   ============================================================================ */
.faq-row {
  padding: 20px;
  width: 50%;
}
.faq-row-st {
  background: #fff;
  padding: 30px;
}
.faq-line-contet {
  position: relative;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  padding: 10px 0px;
  border-bottom: 1px solid #eee;
}
h2.faq-main-heading {
  font-size: 24px !important;
  line-height: 30px !important;
  margin: 0;
}
.icon-arrow-faq {
  width: 25px;
  height: auto;
  transition: opacity 0.3s ease;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}
.list-content-block {
  position: absolute;
  right: 0;
  top: 0.55em;
  transform: translateY(-20%);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  background: #0b2342;
  border: 7px solid #c9a734;
  padding: 10px 15px;
  border-radius: 4px;
  z-index: 7825;
}
.faq-line-contet:hover .icon-arrow-faq {
  opacity: 0;
  visibility: hidden;
}
.faq-line-contet:hover .list-content-block {
  opacity: 1;
  visibility: visible;
}
.faq-new-ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.faq-new-li {
  margin: 4px 0;
  font-size: 14px;
  color: #fff;
}
.faq-new-a {
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid #c9a734;
}

/* ============================================================================
   HOME BENEFITS EXPLAINER
   ============================================================================ */
.home-benefits-explainer {
  padding: 72px 0 36px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f4eb 100%);
  position: relative;
  z-index: 5;
}
.home-benefits-explainer__header {
  max-width: 900px;
  margin: 0 auto 42px;
  text-align: center;
}
.home-benefits-explainer__eyebrow {
  margin-bottom: 14px;
  color: #c9a734;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.home-benefits-explainer__title {
  margin-bottom: 18px !important;
}
section.home-benefits-explainer
  h2.home-benefits-explainer__title.section-title {
  color: #0b2342 !important;
}
.home-benefits-explainer__lead {
  max-width: 820px;
  margin: 0 auto;
  color: #1f3552;
  font-size: 18px;
  line-height: 1.9;
}
.home-benefits-explainer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.home-benefits-explainer__card {
  height: 100%;
  padding: 30px 24px;
  background: #fff;
  border: 1px solid rgba(11, 35, 66, 0.08);
  border-top: 4px solid #c9a734;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(11, 35, 66, 0.08);
}
.home-benefits-explainer__card-title {
  margin-bottom: 14px;
  color: #0b2342;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
}
.home-benefits-explainer__card-body {
  margin: 0;
  color: #223751;
  font-size: 15px;
  line-height: 1.9;
}

/* ============================================================================
   PRICING BLOCKS STYLES
   ============================================================================ */
section.pricing-blocks {
  padding: 70px 0px;
  position: relative;
  z-index: 10;
}
h2.global-h2 {
  font-size: 40px;
  color: #c9a734;
  text-align: center;
}
.block-flex {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}
.blocks-sec {
  width: 32%;
  padding: 23px 20px;
  border: 1px solid #000;
  border-radius: 12px;
  position: relative;
  z-index: 10;
  background: #fff;
}
h3.block-h3 {
  font-size: 24px !important;
  color: #c9a734 !important;
  line-height: 30px !important;
}
p.p-block {
  font-size: 14px;
  color: #000 !important;
  line-height: 28px;
}

.pricing-content-top {
  text-align: center;
  width: 100%;
  background: linear-gradient(to right, #c9a734, #f5f0e1);
  padding: 18px 15px;
  margin: 20px 0;
  border-radius: 50px;
  display: flex;
  justify-content: center;
}
.pricing-content-top span {
  color: #fff !important;
}
.et_pb_sum {
  font-size: 36px;
  font-weight: bold;
}
.et_pb_dollar_sign {
  font-size: 24px;
}
.et_pb_frequency {
  font-size: 20px;
}

.lists ul {
  list-style: none;
  padding-left: 0;
  margin: 20px 0;
}
.lists ul li {
  padding-left: 28px;
  font-size: 14px;
  line-height: 32px;
  position: relative;
  text-transform: uppercase;
  color: #000;
  font-weight: 400;
  letter-spacing: 0.3px;
}
.lists ul li::before {
  content: "\2713"; /* Checkmark */
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #c9a734;
  color: #fff;
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  line-height: 18px;
  text-align: center;
  vertical-align: middle;
}

.get-started {
  width: 100%;
  margin: 20px 0 0 0;
}
a.btn-linnk {
  color: #fff !important;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  display: block;
  width: 100%;
  background-color: #c9a734;
  padding: 18px 20px;
  border-radius: 8px;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}
a.btn-linnk:hover {
  background-color: #bfa030;
}

/* ============================================================================
   ADD-ON SERVICES
   ============================================================================ */
.addon-services-section {
  padding: 80px 0;
  background: #f9f9f9;
  position: relative;
  z-index: 1;
}
h2.section-title {
  text-align: center;
  font-size: 40px;
  color: #0b2342;
  margin-bottom: 50px;
  font-weight: bold;
}
.addon-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.addon-service-card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.addon-service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}
.addon-service-image {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.addon-service-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.addon-service-card h3 {
  color: #c9a734;
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: bold;
}
.service-link {
  display: inline-block;
  color: #c9a734;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #c9a734;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}
.service-link:hover {
  color: #0b2342;
  border-bottom-color: #0b2342;
}

/* ============================================================================
   WDI SOLUTIONS
   ============================================================================ */
.wdi-solutions-section {
  padding: 80px 0;
  background: #f9f9f9;
}
.wdi-solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 50px auto 0;
  padding: 0 20px;
}
.wdi-solution-item {
  background: #fff;
  padding: 35px 25px;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.wdi-solution-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-color: #c9a734;
}
.solution-icon {
  font-size: 48px;
  margin-bottom: 20px;
}
.wdi-solution-item h4,
.wdi-solution-item h3.wdi-solution-category-title {
  color: #0b2342;
  font-size: 22px;
  margin-bottom: 25px;
  font-weight: bold;
  text-transform: uppercase;
  border-bottom: 2px solid #c9a734;
  padding-bottom: 15px;
}
.wdi-solution-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.wdi-solution-item ul li {
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  position: relative;
  text-transform: uppercase;
}
.wdi-solution-item ul li::before {
  content: "\2713"; /* Checkmark */
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #c9a734;
  color: #fff;
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  line-height: 18px;
  text-align: center;
  vertical-align: middle;
}
.wdi-solution-item h4 a.wdi-solution-category-link,
.wdi-solution-item h3.wdi-solution-category-title a.wdi-solution-category-link,
.wdi-solution-item a.wdi-solution-link {
  color: inherit;
  text-decoration: none;
  display: block;
  min-height: 44px;
  line-height: 1.35;
  box-sizing: border-box;
}
.wdi-solution-item h4 a.wdi-solution-category-link,
.wdi-solution-item h3.wdi-solution-category-title a.wdi-solution-category-link {
  min-height: 0;
  padding-bottom: 0;
}
.wdi-solution-item a.wdi-solution-link:hover,
.wdi-solution-item a.wdi-solution-link:focus-visible,
.wdi-solution-item h4 a.wdi-solution-category-link:hover,
.wdi-solution-item h4 a.wdi-solution-category-link:focus-visible,
.wdi-solution-item
  h3.wdi-solution-category-title
  a.wdi-solution-category-link:hover,
.wdi-solution-item
  h3.wdi-solution-category-title
  a.wdi-solution-category-link:focus-visible {
  color: #c9a734;
  outline: none;
}
.wdi-solution-item a.wdi-solution-link:focus-visible,
.wdi-solution-item h4 a.wdi-solution-category-link:focus-visible,
.wdi-solution-item
  h3.wdi-solution-category-title
  a.wdi-solution-category-link:focus-visible {
  text-decoration: underline;
}

/* ============================================================================
   GET STARTED & FOOTER SECTIONS
   ============================================================================ */
.get-started-section,
.lets-get-started-section {
  padding: 100px 0 !important;
  background: #0b2342 !important;
  position: relative;
  overflow: hidden;
  z-index: 10;
  text-align: center;
}
.get-started-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A734' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
    repeat;
  opacity: 0.3;
}
.get-started-section .section-title,
.lets-get-started-section .section-title {
  color: #c9a734 !important;
  font-size: 42px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
  position: relative;
  z-index: 2;
}
.lets-get-started-section .section-subtitle {
  font-size: 20px;
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 2;
}
.lets-get-started-section .wdi-legacy-phrase-nowrap {
  white-space: nowrap;
}
.cta-button-large {
  display: inline-block;
  padding: 18px 45px;
  background: linear-gradient(135deg, #c9a734 0%, #d4b84a 100%) !important;
  color: #0b2342 !important;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  border-radius: 50px;
  text-transform: uppercase;
  border: 2px solid #c9a734;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}
.cta-button-large:hover {
  background: linear-gradient(135deg, #d4b84a 0%, #c9a734 100%) !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(201, 167, 52, 0.6);
}

/* ============================================================================
   RESPONSIVE (981 / 768 / 480 / 375 px breakpoints)
   ============================================================================ */

@media screen and (max-width: 981px) {
  .container-home {
    padding: 0 25px;
  }
  .hero-text {
    flex-direction: column;
    row-gap: 30px;
  }
  .onee {
    width: 100%;
  }
  .home-benefits-explainer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-benefits-explainer__card {
    padding: 28px 22px;
  }
  /* Tablet: 2 columns for addon/solutions (not 1); hero and pricing stay multi-col until 768 */
  .addon-services-grid,
  .wdi-solutions-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .addon-service-card,
  .wdi-solution-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Pricing blocks: stay in a row at tablet (no column wrap) */
  .block-flex,
  .pricing-blocks .block-flex {
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    gap: 20px !important;
  }
  .blocks-sec,
  .pricing-block {
    flex: 1 1 30% !important;
    min-width: 0;
    max-width: none !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
  }
  h1.hero-h1 {
    margin-top: 20px;
  }
  /* Non-home heroes: modest top pad. Home clearance is measured onto the hero. */
  .hero-section,
  section.hero-section {
    padding-top: 24px !important;
  }
  /* Mid/tablet: wrap tagline (matches Divi hamburger ≤981) */
  section.hero-section h1.main-hero-h1,
  body.wdi-custom-template section.hero-section h1.main-hero-h1 {
    white-space: normal !important;
    text-align: center !important;
    width: 100% !important;
    font-size: var(--hero-h1-size, clamp(1.5rem, 3.2vw, 2rem)) !important;
  }
  section.hero-section .hero-heading-row,
  body.wdi-custom-template section.hero-section .hero-heading-row {
    align-items: center !important;
  }
  .pric-hero {
    width: 100%;
  }
  /* h1 + h2: many templates use h1.pric-main-head (Get Started, hubs, etc.) */
  h1.pric-main-head,
  h2.pric-main-head,
  .pric-main-head {
    font-size: clamp(1.75rem, 4vw, 2.75rem) !important;
    line-height: 1.2 !important;
  }
}

@media screen and (max-width: 782px) {
  body.admin-bar.wdi-custom-template:not(.wp-customizer) #top-header {
    top: 46px !important;
    padding-top: 0 !important;
    min-height: 48px;
  }
  body.admin-bar.wdi-custom-template:not(.wp-customizer) #main-header {
    top: calc(var(--wdi-top-header-bottom, 94px) - 1px) !important;
  }
  body.admin-bar.wdi-custom-template:not(.wp-customizer) #et-top-navigation {
    top: auto !important;
  }
}

@media (max-width: 981px) {
  /* Tablet + mobile: stack hero (match Divi hamburger) */
  section.hero-section .container-home {
    flex-direction: column !important;
  }
  .home-benefits-explainer {
    padding: 56px 0 24px;
  }
  .home-benefits-explainer__header {
    margin-bottom: 30px;
  }
  .home-benefits-explainer__lead {
    font-size: 16px;
    line-height: 1.8;
  }
  .home-benefits-explainer__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  /* Non-home: modest top. Home uses measured hero padding (see home rules below). */
  section.hero-section,
  body.wdi-custom-template section.hero-section {
    padding-top: 12px !important;
  }
  body.admin-bar section.hero-section,
  body.admin-bar.wdi-custom-template section.hero-section {
    padding-top: 12px !important;
  }
  /* Title/logo air under cream nav (section padding already adds stacked breathing) */
  section.hero-section .hero-heading-row,
  body.wdi-custom-template section.hero-section .hero-heading-row {
    align-items: center !important;
    margin-top: 0 !important;
    margin-bottom: 24px !important;
  }
  body.page-template-home-new-php section.hero-section .hero-heading-row,
  body.page-id-258855 section.hero-section .hero-heading-row {
    margin-top: 0 !important;
  }
  /* Mobile tagline: keep wrap + fluid fallback under JS --hero-h1-size */
  section.hero-section h1.main-hero-h1,
  body.wdi-custom-template section.hero-section h1.main-hero-h1 {
    white-space: normal !important;
    text-align: center !important;
    width: 100% !important;
    font-size: var(--hero-h1-size, clamp(1.5rem, 5.5vw, 1.85rem)) !important;
  }
  /* Phone: keep JS/CSS var scaling — do not hard-lock a desktop-ish size */
  section.hero-section .hero-phone-block,
  body.wdi-custom-template section.hero-section .hero-phone-block {
    margin-top: 28px;
  }
  section.hero-section h1.hero-h1,
  body.wdi-custom-template section.hero-section h1.hero-h1 {
    font-size: var(--hero-phone-size, clamp(2.25rem, 9vw, 3rem)) !important;
    margin-top: 0;
  }
  section.hero-section .hero-phone-footnote,
  body.wdi-custom-template section.hero-section .hero-phone-footnote {
    font-size: 12px !important;
  }
  /* Center logo on mobile; width comes from fluid clamp, not JS max-height. */
  section.hero-section .hero-logo-wrap,
  body.wdi-custom-template section.hero-section .hero-logo-wrap {
    width: min(92vw, 22rem);
    margin: 15px auto !important;
  }
  section.hero-section .hero-logo-inline,
  body.wdi-custom-template section.hero-section .hero-logo-inline {
    display: block !important;
    margin: 0 auto !important;
  }
  section.hero-section .hero-primary,
  section.hero-section .faq-row,
  section.hero-section .hero-starter-slot,
  section.hero-section .hero-aside {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    min-width: unset !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
  section.hero-section .hero-starter-slot,
  section.hero-section .hero-aside {
    order: 2;
    margin-top: 1.25rem;
  }
  section.hero-section .hero-primary {
    order: 1;
  }
  section.hero-section {
    min-height: 0;
    padding-bottom: 40px;
    /*
     * Mobile LCP is the wordmark, not the hero photo. Skip background
     * download so the wordmark wins the critical path (navy plate only).
     */
    background-image: none !important;
  }
  /* FAQ accordion: full width of page (fits container), not too small */
  section.hero-section .faq-row,
  .faq-row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .faq-row-st {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .faq-line-contet {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .list-content-block {
    max-width: min(100%, calc(100vw - 2rem)) !important;
    box-sizing: border-box !important;
  }
  .block-flex,
  .pricing-blocks .block-flex {
    flex-direction: column !important;
    flex-wrap: wrap;
    gap: 25px !important;
    width: 100% !important;
  }
  .blocks-sec,
  .pricing-block {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    margin-bottom: 20px;
    box-sizing: border-box !important;
  }
  .addon-services-grid,
  .wdi-solutions-grid {
    grid-template-columns: 1fr !important;
  }
  .addon-service-image img {
    height: auto;
  }
  .wdi-solution-item {
    padding: 25px 20px;
  }
  .product-card-inner {
    width: 100%;
  }
  #page-container #et-main-area section.shop-body-l .shop-layout {
    flex-direction: column;
    gap: 20px;
  }
  #page-container #et-main-area section.shop-body-l .shop-sidebar {
    order: -1;
    width: 100%;
    margin-bottom: 0;
  }
  #page-container #et-main-area section.shop-body-l .shop-main #main-search {
    min-height: 44px;
    margin-bottom: 20px;
  }
  #page-container #et-main-area section.shop-body-l .shop-main .tab-buttons,
  section.shop-body-l .shop-main .tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
  }
  #page-container
    #et-main-area
    section.shop-body-l
    .shop-main
    .tab-buttons
    .tab-btn,
  section.shop-body-l .shop-main .tab-btn {
    min-height: 44px;
    padding: 10px 20px;
  }
  h1.pric-main-head,
  h2.pric-main-head,
  .pric-main-head {
    font-size: clamp(1.5rem, 5.5vw, 2rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 20px;
  }
  .sub-pric-head {
    font-size: 14px;
  }
  .cta-container {
    padding: 70px 50px;
  }
  .cta-row-pricing {
    padding: 50px 20px;
  }
  h2.cta-ph {
    font-size: 30px !important;
    margin-bottom: 20px;
  }
  h2.global-h2 {
    font-size: 30px;
  }
  .package-explanation-row {
    flex-direction: column;
    gap: 40px;
  }
  .package-explanation-row.reverse {
    flex-direction: column;
  }
  .package-explanation-content h2 {
    font-size: 32px;
    line-height: 42px;
  }
  .bottom-cta-pricing h2 {
    font-size: 36px;
    line-height: 46px;
  }
  /* Single-reseller */
  .reseller-single-product {
    flex-direction: column;
    row-gap: 50px;
  }
  .product-left,
  .product-right {
    width: 100%;
  }
  /* Touch targets (44px min) */
  .mobile_menu_bar {
    min-width: 44px;
    min-height: 44px;
    padding: 15px !important;
  }
  a.cta-a-btn,
  .btn-add-cart {
    min-height: 44px;
    min-width: 44px;
    padding: 18px 20px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }
}

/* ============================================================================
   GLOBAL OVERLAYS – HubSpot chat stacking (mirror of
   assets/css/wdi-hubspot-chat-stack.css). Z-index + menu-hide only —
   never rewrite HubSpot geometry (top/height/dvh).
   ============================================================================ */
/* No .widget-align-* on default — class boost beats expanded z-index. */
html body div#hubspot-messages-iframe-container,
html body #hubspot-messages-iframe-container {
  z-index: 99990 !important;
  pointer-events: none !important;
}

html body #hubspot-messages-iframe-container iframe {
  pointer-events: auto !important;
}

@media screen and (min-width: 981px) {
  html body.wdi-hs-chat-expanded div#hubspot-messages-iframe-container,
  html body.wdi-hs-chat-expanded #hubspot-messages-iframe-container {
    z-index: 1000100 !important;
  }
}

@media screen and (max-width: 980px) {
  /* Above header (99996–99998); below open hamburger (1000500). */
  html body.wdi-hs-chat-expanded div#hubspot-messages-iframe-container,
  html body.wdi-hs-chat-expanded #hubspot-messages-iframe-container {
    z-index: 1000300 !important;
  }

  html.wdi-mobile-nav-open #hubspot-messages-iframe-container,
  html.wdi-mobile-nav-open #hubspot-messages-iframe-container iframe,
  html.wdi-mobile-nav-open #hubspot-messages-iframe-container *,
  html body:has(.mobile_nav.opened) #hubspot-messages-iframe-container,
  html body:has(.mobile_nav.opened) #hubspot-messages-iframe-container iframe,
  html body:has(.mobile_nav.opened) #hubspot-messages-iframe-container * {
    pointer-events: none !important;
    visibility: hidden !important;
  }

  html.wdi-mobile-nav-open #mobile_menu.et_mobile_menu,
  html body:has(.mobile_nav.opened) #mobile_menu.et_mobile_menu {
    z-index: 1000500 !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }

  html.wdi-mobile-nav-open #main-header,
  html.wdi-mobile-nav-open #top-header,
  html body:has(.mobile_nav.opened) #main-header,
  html body:has(.mobile_nav.opened) #top-header {
    z-index: 1000400 !important;
  }
}

/* ============================================================================
/* ============================================================================
   WOOCOMMERCE / AUTOMATEWOO – terms and opt-in text
   ============================================================================ */
.woocommerce-terms-and-conditions-checkbox-text,
.woocommerce-terms-and-conditions-checkbox-text a {
  color: #c9a734 !important;
}
.automatewoo-optin__checkbox-text {
  color: #c9a734 !important;
}

/* My Account: prevent content from being cut off under the fixed primary header */
body.woocommerce-account #et-main-area {
  padding-top: 120px !important;
}
@media screen and (max-width: 981px) {
  body.woocommerce-account #et-main-area {
    padding-top: 100px !important;
  }
}

/* ============================================================================
   CUSTOM TEMPLATE NAV/BODY FIXES (merged from home-new-fixes.css)
   ============================================================================ */

/* ============================================================================
   FIX 1: MOBILE HEADER CLICKABILITY + HEADER STACK
   Do NOT gate on :not(.customize-support) — WP adds .customize-support for
   logged-in admins and those rules then vanish (cream nav slides under navy).
   Exclude only the Customizer iframe (.wp-customizer).
   ============================================================================ */
body.wdi-custom-template:not(.wp-customizer) {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
/* Desktop: let header bars size naturally; only z-index and top offset for stacking */
body.wdi-custom-template:not(.wp-customizer) #top-header {
  z-index: 99998 !important;
  top: 0 !important;
  min-height: 48px;
  height: auto;
  margin: 0 !important;
  margin-bottom: 0 !important;
  border-bottom: none !important;
  box-sizing: border-box;
  /* Match secondary navy so no cream page bg peeks under the bar edge. */
  background-color: #0a2342 !important;
  /* Contain the seam extender ::after */
  position: fixed !important;
}
/*
 * Paint 3px of navy below #top-header so retina/subpixel seams never flash
 * page cream (#fcfbf9 / #fff) between secondary + primary bars.
 */
body.wdi-custom-template:not(.wp-customizer) #top-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background-color: #0a2342;
  pointer-events: none;
  z-index: 1;
}
/*
 * Admin bar: pin #top-header below #wpadminbar via top (not padding-top).
 * padding-top left the fixed bar at y=0 under the admin bar and made JS
 * offsetHeight measurements fight Divi's top:32/46 rules.
 */
body.admin-bar.wdi-custom-template:not(.wp-customizer) #top-header {
  top: 32px !important;
  padding-top: 0 !important;
  min-height: 48px;
  height: auto;
}
body.wdi-custom-template:not(.wp-customizer) #main-header {
  z-index: 99996 !important;
  /*
   * JS sets --wdi-top-header-bottom from measured #top-header bottom.
   * Overlap 1px so the cream bar sits under the navy seam extender.
   */
  top: calc(var(--wdi-top-header-bottom, 48px) - 1px) !important;
  margin: 0 !important;
  margin-top: 0 !important;
  border-top: none !important;
  outline: none !important;
  height: auto !important;
  background-color: #f2eadf !important;
  /*
   * Seal subpixel hairline between navy secondary + cream primary so
   * #et-main-area cream (#fcfbf9) never shows as a thin white stripe.
   */
  box-shadow:
    0 -3px 0 0 #0a2342,
    rgba(0, 0, 0, 0.1) 0 1px 0 0 !important;
}
/* Nav stays in normal flow inside #main-header — never share the fixed top offset. */
body.wdi-custom-template:not(.wp-customizer) #et-top-navigation {
  z-index: 99996 !important;
  position: relative !important;
  top: auto !important;
  margin: 0 !important;
  height: auto !important;
}
body.admin-bar.wdi-custom-template:not(.wp-customizer) #main-header {
  top: calc(var(--wdi-top-header-bottom, 80px) - 1px) !important;
}
body.admin-bar.wdi-custom-template:not(.wp-customizer) #et-top-navigation {
  top: auto !important;
}

@media screen and (max-width: 981px) {
  /* Size to content — do not force an empty navy band under the contact row */
  body.wdi-custom-template:not(.wp-customizer) #top-header {
    min-height: 48px !important;
    height: auto !important;
  }
  body.wdi-custom-template:not(.wp-customizer) #main-header {
    top: calc(var(--wdi-top-header-bottom, 48px) - 1px) !important;
    height: auto !important;
    min-height: unset !important;
  }
  body.wdi-custom-template:not(.wp-customizer) #et-top-navigation {
    top: auto !important;
    height: auto !important;
    min-height: unset !important;
  }
  body.admin-bar.wdi-custom-template:not(.wp-customizer) #top-header {
    min-height: 48px !important;
    height: auto !important;
  }
  body.admin-bar.wdi-custom-template:not(.wp-customizer) #main-header {
    top: calc(var(--wdi-top-header-bottom, 80px) - 1px) !important;
    height: auto !important;
  }
  body.admin-bar.wdi-custom-template:not(.wp-customizer) #et-top-navigation {
    top: auto !important;
    height: auto !important;
  }
  .mobile_menu_bar {
    padding: 15px !important;
    min-width: 44px;
    min-height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  .mobile_menu_bar:before {
    font-size: 32px !important;
    /* ETmodules must be loaded (see wdi_perf_print_etmodules_icon_font). */
    font-family: ETmodules !important;
    speak: none;
    font-style: normal;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
  }
}
body.wdi-custom-template:not(.wp-customizer) .et_mobile_nav_menu,
body.wdi-custom-template:not(.wp-customizer) .mobile_menu_bar,
body.wdi-custom-template:not(.wp-customizer) .mobile_nav,
body.wdi-custom-template:not(.wp-customizer) #et_mobile_nav_menu,
body.wdi-custom-template:not(.wp-customizer) .et_pb_menu__menu-button,
body.wdi-custom-template:not(.wp-customizer) .et-l--header {
  z-index: 99996 !important;
}
/* #mobile_menu sheet z-index lives in wdi-header-nav-flyouts.css (1000500). */
.hero-primary {
  z-index: auto !important;
  position: relative;
}

body.wdi-custom-template #et-main-area {
  position: relative !important;
  z-index: 10 !important;
}

section.hero-section {
  z-index: 1 !important;
  isolation: isolate;
}

body.wdi-custom-template #et-main-area,
body.wdi-custom-template section.hero-section,
body.wdi-custom-template #main-content {
  pointer-events: auto !important;
}
body.wdi-custom-template section.hero-section .container-home,
body.wdi-custom-template section.hero-section .hero-primary,
body.wdi-custom-template section.hero-section .faq-row {
  pointer-events: auto !important;
}
body.wdi-custom-template section.hero-section * {
  pointer-events: auto !important;
}

body.wdi-custom-template #page-container,
body.wdi-custom-template .et-l {
  padding-top: 0 !important;
}
body.wdi-custom-template #main-content,
body.wdi-custom-template #page-container .et_pb_section:first-of-type {
  padding-top: 0 !important;
}
/* Non-home: #et-main-area padding from measured header height (JS). */
body.wdi-custom-template #et-main-area {
  padding-top: var(--wdi-header-clearance, 140px);
}
/*
 * Home: clearance is on section.hero-section only. Leaving 140px here causes a
 * large CLS when Delay JS zeros #et-main-area (Lighthouse ~0.15 on desktop).
 */
body.page-template-home-new-php.wdi-custom-template #et-main-area,
body.page-template-home-canonical-php.wdi-custom-template #et-main-area,
body.page-id-258855.wdi-custom-template #et-main-area {
  padding-top: 0 !important;
}
/*
 * Navy-first heroes: no cream #et-main-area band under fixed nav (A1).
 * Clearance moves onto section.hero-section (JS also enforces measured height).
 */
body.wdi-custom-template:has(section.hero-section):not(.wdi-intake-page)
  #et-main-area,
body.wdi-pricing-page #et-main-area,
body.page-id-258535 #et-main-area,
body.page-template-get-started-page-template-php #et-main-area,
body.page-template-consultation-page-template-php #et-main-area,
body.wdi-consultation-page #et-main-area {
  padding-top: 0 !important;
}
body.wdi-custom-template:not(.page-id-258855):not(
    .page-template-home-new-php
  ):not(.page-template-home-canonical-php):not(.wdi-hub):not(.wdi-intake-page)
  section.hero-section {
  margin-top: 0 !important;
  padding-top: var(--wdi-header-clearance, 120px) !important;
}

/* Compact cream primary nav — reduce oversized vertical padding that re-opens a tall cream band */
body.wdi-custom-template #main-header {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: visible !important;
}
/* Cream chrome only — partner navy overrides live in wdi-partner-surface.css */
body.wdi-custom-template:not(.wdi-partner-surface) #main-header {
  background-color: #f2eadf !important;
}
body.wdi-custom-template:not(.wdi-partner-surface)
  #main-header.et-fixed-header {
  background-color: #f2eadf !important;
  background-image: none !important;
  opacity: 1 !important;
  /* Divi Theme Option minimized height is corrupt (946); do not let it clip the bar. */
  max-height: none !important;
  overflow: visible !important;
}
body.wdi-custom-template.wdi-partner-surface #main-header.et-fixed-header {
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
}
body.wdi-custom-template #main-header .container.et_menu_container {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  overflow: visible !important;
}
body.wdi-custom-template #main-header #logo,
body.wdi-custom-template #main-header .logo_container img {
  max-height: 43px !important;
  width: auto !important;
  height: auto !important;
}
@media screen and (min-width: 981px) {
  body.wdi-custom-template #et-top-navigation {
    padding-top: 18px !important;
    padding-bottom: 12px !important;
    /* Nav lives inside #main-header — do not treat as a second fixed layer. */
    position: relative !important;
    top: auto !important;
  }
  body.wdi-custom-template #top-menu {
    padding-bottom: 0 !important;
  }
  body.wdi-custom-template #top-menu li {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

@media only screen and (max-width: 480px) {
  .container-home {
    padding: 0 15px !important;
  }
  .home-benefits-explainer__card {
    padding: 22px 18px !important;
  }
  .home-benefits-explainer__card-title {
    font-size: 20px !important;
  }
  .home-benefits-explainer__lead {
    font-size: 15px !important;
  }
  /* FAQ accordion: keep full width, scale padding with viewport */
  .faq-row {
    padding: 15px !important;
  }
  .faq-row-st {
    padding: 20px 15px !important;
  }
  .addon-services-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  .addon-service-card {
    padding: 20px 15px !important;
  }
  .addon-service-image img {
    height: auto !important;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }
  .wdi-solutions-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  .wdi-solution-item {
    padding: 20px 15px !important;
  }
  .blocks-sec {
    padding: 20px 15px !important;
  }
  h2.section-title {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }
  a.cta-a-btn,
  .cta-button-large,
  .btn-add-cart {
    display: block !important;
    width: 100% !important;
    padding: 18px 20px !important;
    font-size: 14px !important;
    min-height: 44px;
    min-width: 44px;
    box-sizing: border-box;
  }
  .btn-add-cart {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}

@media only screen and (max-width: 375px) {
  .container-home {
    padding: 0 12px !important;
  }
  .home-benefits-explainer__eyebrow {
    letter-spacing: 0.12em;
    font-size: 12px;
  }
  /* FAQ accordion: tighter padding on extra-small so it stays within width */
  .faq-row {
    padding: 12px !important;
  }
  .faq-row-st {
    padding: 16px 12px !important;
  }
  h2.section-title {
    font-size: 24px !important;
  }
  .addon-service-card h3,
  .wdi-solution-item h4,
  .wdi-solution-item h3.wdi-solution-category-title {
    font-size: 18px !important;
  }
  .wdi-solution-item ul li {
    font-size: 13px !important;
    line-height: 28px !important;
  }
}

/* Prevent horizontal scroll on mobile only.
   NOT applied globally — desktop pages like checkout use wide flex rows (width:1296%)
   that would be clipped by overflow-x:hidden on a parent. */
@media only screen and (max-width: 980px) {
  body,
  #page-container,
  #main-content {
    overflow-x: hidden !important;
  }
}

.addon-service-image img,
.hero-logo-inline,
img.logo {
  max-width: 100% !important;
  height: auto !important;
}

body.wdi-custom-template:not(.wp-customizer) .et_mobile_menu {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

@supports (display: grid) {
  @media only screen and (max-width: 981px) {
    .addon-services-grid,
    .wdi-solutions-grid {
      display: grid !important;
    }
  }
}

@supports not (display: grid) {
  .addon-services-grid,
  .wdi-solutions-grid {
    display: flex !important;
    flex-wrap: wrap !important;
  }
  .addon-service-card,
  .wdi-solution-item {
    flex: 1 1 100% !important;
  }
}

/* ============================================================================
   PRICING / GROWTH PLANS TEMPLATE
   ============================================================================ */
body.wdi-pricing-page section.hero-section,
body.page-id-258535 section.hero-section,
body.page-template-pricing-page-template-php section.hero-section,
body[class*="pricing-page-template"] section.hero-section {
  /* Media-kit carousel paints photos; navy plate only for LCP/CLS. */
  background-color: #0b2342 !important;
  background-image: none !important;
  background-position: center 35%;
  background-size: cover;
  min-height: 0 !important;
  /* Compact hero; full-bleed width handled in wdi-pricing-layout.css */
  padding: 48px 0 72px !important;
}

body.wdi-pricing-page section.hero-section::before,
body.page-id-258535 section.hero-section::before,
body.page-template-pricing-page-template-php section.hero-section::before,
body[class*="pricing-page-template"] section.hero-section::before {
  /* Carousel veil replaces this wash when .wdi-hero-carousel is present. */
  content: none;
  display: none;
}

body.wdi-pricing-page section.hero-section .container-home,
body.page-id-258535 section.hero-section .container-home,
body.page-template-pricing-page-template-php
  section.hero-section
  .container-home,
body[class*="pricing-page-template"] section.hero-section .container-home {
  position: relative;
  z-index: 2;
}

/* Do NOT style section.hero-section * — that breaks absolute carousel slides. */

body.wdi-pricing-page .pric-hero,
body.page-id-258535 .pric-hero {
  width: min(720px, 92%);
  margin: 0 auto;
  text-align: center;
}

body.wdi-pricing-page h2.pric-main-head,
body.wdi-pricing-page h2.price-main-head,
body.page-id-258535 h2.pric-main-head,
body.page-id-258535 h2.price-main-head {
  font-size: clamp(32px, 4.2vw, 48px) !important;
  line-height: 1.15 !important;
  margin-bottom: 12px;
}

body.wdi-pricing-page p.pric-para,
body.page-id-258535 p.pric-para {
  font-size: 17px;
  line-height: 1.55;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Plan cards sit just under the compact hero (no overlapping ghost H2) */
body.wdi-pricing-page section.pricing-blocks.wdi-pricing-page-plans,
body.page-id-258535 section.pricing-blocks.wdi-pricing-page-plans {
  margin-top: 8px;
  padding-top: 8px;
  padding-bottom: 64px;
  background: transparent;
  position: relative;
  z-index: 5;
}

body.wdi-pricing-page
  section.pricing-blocks.wdi-pricing-page-plans
  .wdi-pricing-page-plans__header,
body.page-id-258535
  section.pricing-blocks.wdi-pricing-page-plans
  .wdi-pricing-page-plans__header {
  display: none;
}

body.wdi-pricing-page
  section.pricing-blocks.wdi-pricing-page-plans
  .wdi-pricing-page-plans__title.global-h2,
body.page-id-258535
  section.pricing-blocks.wdi-pricing-page-plans
  .wdi-pricing-page-plans__title.global-h2 {
  display: none;
}

body.wdi-pricing-page
  section.pricing-blocks.wdi-pricing-page-plans
  .wdi-pricing-plan-card,
body.page-id-258535
  section.pricing-blocks.wdi-pricing-page-plans
  .wdi-pricing-plan-card,
body.wdi-pricing-page section.pricing-blocks.wdi-pricing-page-plans .blocks-sec,
body.page-id-258535 section.pricing-blocks.wdi-pricing-page-plans .blocks-sec {
  background: #fff;
  box-shadow: 0 16px 40px rgba(11, 35, 66, 0.22);
}

@media screen and (max-width: 980px) {
  body.wdi-pricing-page section.hero-section,
  body.page-id-258535 section.hero-section,
  body.page-template-pricing-page-template-php section.hero-section,
  body[class*="pricing-page-template"] section.hero-section {
    padding: 40px 0 56px !important;
  }

  body.wdi-pricing-page section.pricing-blocks.wdi-pricing-page-plans,
  body.page-id-258535 section.pricing-blocks.wdi-pricing-page-plans {
    margin-top: 0;
  }
}

h1.pric-main-head,
h2.pric-main-head,
.pric-main-head {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.15;
  color: #c9a734;
  text-transform: capitalize;
  font-weight: bold;
  /* Beat Divi Customizer line-height:2.4em on long mobile titles */
  max-width: 100%;
  overflow-wrap: break-word;
}
.pric-hero {
  width: min(70%, 48rem);
  max-width: 100%;
  box-sizing: border-box;
}
p.pric-para {
  font-size: 20px;
  color: white;
  line-height: 1.5;
  max-width: 42rem;
}
.sub-pric-head {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  font-weight: 400;
}

section.cta-sec-pricing {
  background: #f5e4af38;
}
.cta-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 50px;
}
.cta-row-pricing {
  background: #c9a734;
  text-align: center;
  border-radius: 10px;
  padding: 50px;
}
h2.cta-ph {
  color: white !important;
  font-size: 36px !important;
  line-height: 40px !important;
}
a.cta-button-pricing {
  background: white !important;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 18px !important;
  color: #c9a734 !important;
  line-height: 18px !important;
}

section.package-explanation {
  padding: 80px 0;
  background: #fff;
}
.package-explanation-row {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 42px;
}
.package-explanation-row.reverse {
  flex-direction: row-reverse;
}
.package-explanation-content {
  flex: 1;
}
.package-explanation-image {
  flex: 1;
}
.package-explanation-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.package-explanation-content h2 {
  font-size: 42px;
  line-height: 52px;
  color: #c9a734;
  margin-bottom: 30px;
  font-weight: bold;
}
.package-explanation-content p {
  font-size: 18px;
  line-height: 32px;
  color: #333;
  margin-bottom: 20px;
}
.package-explanation-content p:last-child {
  margin-bottom: 0;
}

section.bottom-cta-pricing {
  background: #c9a734;
  padding: 80px 0;
  text-align: center;
}
.bottom-cta-pricing h2 {
  color: #fff;
  font-size: 48px;
  line-height: 58px;
  margin-bottom: 30px;
  font-weight: bold;
}
.bottom-cta-pricing .cta-button {
  display: inline-block;
  background: #fff;
  color: #c9a734;
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.bottom-cta-pricing .cta-button:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================================================
   SHOP TEMPLATE
   ============================================================================ */
body.page-template-shop-page-template-php,
body[class*="shop-page-template"] {
  background-color: #fcfbf9 !important;
}
body.page-template-shop-page-template-php #page-container,
body.page-template-shop-page-template-php #main-content,
body[class*="shop-page-template"] #page-container,
body[class*="shop-page-template"] #main-content {
  background-color: #fcfbf9 !important;
}
body.page-template-shop-page-template-php #main-content,
body[class*="shop-page-template"] #main-content {
  padding-top: 50px !important;
}

/* Shop hero: local WebP/JPEG (same Unsplash crop) + navy overlay; gold heading.
 * Hosted in-theme so LCP is same-origin and preloadable — not a late CSS CDN discover. */
section.hero-shop-sec {
  position: relative;
  background-color: #0a2342;
  background-image: url("assets/images/shop-hero-1920.jpg");
  background-image: -webkit-image-set(
    url("assets/images/shop-hero-1920.webp") type("image/webp"),
    url("assets/images/shop-hero-1920.jpg") type("image/jpeg")
  );
  background-image: image-set(
    url("assets/images/shop-hero-1920.webp") type("image/webp"),
    url("assets/images/shop-hero-1920.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
  min-height: clamp(220px, 32vh, 420px);
  padding-block: clamp(3rem, 8vw, 6.25rem);
  padding-inline: 0;
  margin-top: 0 !important;
}
section.hero-shop-sec::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 35, 66, 0.78);
  z-index: 1;
}
section.hero-shop-sec .container-shop,
section.hero-shop-sec * {
  position: relative;
  z-index: 2;
}
.container-shop {
  max-width: 100%;
  padding-inline: clamp(1rem, 4vw, 2.625rem);
  box-sizing: border-box;
}
h1.shop-hero-head-main,
h2.shop-hero-head-main {
  text-align: center;
  color: #c9a734;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  line-height: 1.2;
  margin: 0;
  padding-inline: 0.25rem;
  text-wrap: balance;
}

section.hero-shop-sec .wdi-marketplace-intro {
  max-width: 820px;
  margin: 24px auto 0;
  text-align: center;
}

section.hero-shop-sec .wdi-marketplace-intro p {
  color: #f9f6ee;
  font-size: clamp(0.95rem, 2.4vw, 1.0625rem);
  line-height: 1.65;
  margin: 0 0 14px;
}

section.hero-shop-sec .wdi-marketplace-intro p:last-child {
  margin-bottom: 0;
}

section.hero-shop-sec .wdi-marketplace-intro a {
  color: #f9f6ee;
  text-decoration: underline;
  text-underline-offset: 3px;
}

section.hero-shop-sec .wdi-marketplace-intro a:hover,
section.hero-shop-sec .wdi-marketplace-intro a:focus-visible {
  color: #c9a734;
}

section.hero-shop-sec .wdi-marketplace-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-block-start: 1.25rem;
}

section.hero-shop-sec .wdi-marketplace-intro__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 2.75rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid #c9a734;
  border-radius: 8px;
  background: transparent;
  color: #f9f6ee !important;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.25;
}

section.hero-shop-sec .wdi-marketplace-intro__actions a:hover,
section.hero-shop-sec .wdi-marketplace-intro__actions a:focus-visible {
  background: #c9a734;
  color: #0a2342 !important;
  outline: none;
}

.shop-layout {
  display: flex;
  gap: 40px;
}
.shop-main {
  width: 75%;
}
.shop-sidebar {
  width: 25%;
  border: 1px solid #c9a734;
  padding: 20px;
  border-radius: 10px;
  height: fit-content;
  background-color: #fff;
}
.shop-sidebar h3 {
  color: #0a2342;
  margin-bottom: 15px;
}
.shop-sidebar ul {
  list-style: none;
  padding: 0;
}
.shop-sidebar li {
  margin-bottom: 10px;
}
.shop-sidebar a {
  cursor: pointer;
  color: #0a2342;
  text-decoration: none;
}
.shop-sidebar a:hover {
  color: #c9a734;
}
.shop-sidebar input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 20px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #0a2342;
  color: white !important;
}

/* Single search box in main content */
.shop-main .shop-search-input,
.shop-main #main-search {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  margin-bottom: 20px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #0a2342;
  color: #fff !important;
  font-size: 1rem;
  box-sizing: border-box;
}
.shop-main .shop-search-input::placeholder,
.shop-main #main-search::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Shop filters row: in sidebar; searchable dropdowns only */
.shop-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}
/* Vertical filters only when sidebar is on the right (desktop ≥982px) */
@media screen and (min-width: 982px) {
  .shop-sidebar .shop-filters-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .shop-sidebar .shop-filter-dropdown {
    min-width: 0;
    max-width: none;
  }
}
.shop-filter-dropdown {
  position: relative;
  flex: 0 1 auto;
  min-width: 160px;
  max-width: 220px;
}
.shop-filter-trigger {
  width: 100%;
  padding: 10px 32px 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #0a2342;
  color: #fff;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.shop-filter-trigger:hover {
  background-color: #0d2d52;
}
.shop-filter-trigger .shop-filter-trigger-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-filter-panel {
  position: absolute;
  z-index: 100;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.shop-filter-panel[hidden] {
  display: none !important;
}
.shop-filter-search {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  box-sizing: border-box;
}
.shop-filter-options {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 240px;
  overflow-y: auto;
}
.shop-filter-options li {
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 4px;
}
.shop-filter-options li:hover {
  background: #0a2342;
  color: #fff;
}
/* Single result area: WC products or Well Do It Hosting (reseller) via filter */
#reseller-section {
  display: none;
}
.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.tab-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #0a2342;
  color: #fff;
}
.tab-btn.active {
  background: #c9a734;
}

/* Grid: as many columns as fit (min 280px), cards grow to fill row when they wrap to 2 */
.product-card {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}
.product-card-inner {
  min-width: 0;
  border: 1px solid #c9a734;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  background-color: #fff;
}
.product-image {
  display: block;
  background: #f7f5ef;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: #f7f5ef;
  border-radius: 10px;
  padding: 12px;
  box-sizing: border-box;
}
.product-image img.wdi-product-image--default,
.product-image img.woocommerce-placeholder {
  padding: 22% 12%;
  background: #0b2342;
  object-fit: contain;
}
section.shop-body-l {
  padding: 70px 0px;
}
.product-title {
  font-size: 20px;
  color: #c9a734;
  margin: 15px 0;
  line-height: 30px;
}
.product-card-inner .product-price {
  font-size: 18px;
  font-weight: 600;
  color: #0a2342;
  margin: 0 0 12px 0;
  line-height: 1.3;
}
.product-card-inner .product-price del {
  color: #666;
  font-weight: 400;
}
.product-card-inner .product-price ins {
  text-decoration: none;
}
.btn-add-cart {
  background: #0a2342;
  color: #fff;
  padding: 10px;
  text-align: center;
  border-radius: 6px;
  margin-top: auto;
  font-size: 20px;
  line-height: 20px;
}

/* ============================================================================
   SINGLE RESELLER
   ============================================================================ */
body.single-reseller .container-home,
body[class*="single-reseller"] .container-home {
  max-width: 1200px;
  margin: 60px auto;
  padding: 20px;
}
.reseller-single-product {
  display: flex;
  gap: 40px;
  background: #0a2342;
  padding: 35px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  border-radius: 14px;
}
.product-left {
  width: 45%;
}
.product-right {
  width: 55%;
}
.rstore-product-icons svg {
  width: 100%;
}
h1.product-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 0px;
  padding: 0px;
  line-height: 40px;
}
form.cart {
  display: flex;
  column-gap: 30px;
  margin-top: 40px;
  flex-direction: column;
}
.woocommerce-variation-add-to-cart.variations_button.woocommerce-variation-add-to-cart-enabled {
  display: flex;
  column-gap: 3px;
  align-items: center;
}
.woocommerce-variation-price {
  color: white;
}
table.variations {
  color: white;
}
.product-description {
  color: white;
}
.product-description ul li {
  list-style: disc;
  font-size: 18px;
  line-height: 26px;
  margin-left: 20px;
}
.product-description ul {
  margin-top: 20px;
}
button.rstore-add-to-cart.button.btn.btn-primary {
  background: #c9a734;
  padding: 10px 20px;
  font-size: 18px;
  color: white;
}
h3.hub-sp-head {
  text-align: center;
  font-size: 30px;
}

/* ============================================================================
   AI VIDEO SALES PAGE
   ============================================================================ */
body.page-template-ai-video-sales-page-template-php,
body.page-template-ai-video-sales-page-template-php #page-container,
body.page-template-ai-video-sales-page-template-php #main-content {
  overflow-x: visible !important;
  max-width: none !important;
}

/* Shop ≤768px: sidebar on top, filters horizontal. */
@media screen and (max-width: 768px) {
  body.wdi-shop-page .shop-layout,
  body.page-template-shop-page-template-php .shop-layout,
  body[class*="shop-page-template"] .shop-layout,
  section.shop-body-l .shop-layout {
    flex-direction: column !important;
  }
  body.wdi-shop-page .shop-sidebar .shop-filters-row,
  body.page-template-shop-page-template-php .shop-sidebar .shop-filters-row,
  body[class*="shop-page-template"] .shop-sidebar .shop-filters-row,
  section.shop-body-l .shop-sidebar .shop-filters-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }
  body.wdi-shop-page .shop-sidebar .shop-filter-dropdown,
  body.page-template-shop-page-template-php .shop-sidebar .shop-filter-dropdown,
  body[class*="shop-page-template"] .shop-sidebar .shop-filter-dropdown,
  section.shop-body-l .shop-sidebar .shop-filter-dropdown {
    flex: 1 1 150px !important;
    min-width: 0 !important;
  }
}

/* ============================================================================
   WCFM STORE HEADER – Inquiry/Follow inline with profile row
   ============================================================================ */
#wcfmmp-store .header_right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 0;
  padding: 0 8px 0 0;
  box-sizing: border-box;
  float: none;
  position: relative;
}
#wcfmmp-store .header_right .bd_icon_area.lft {
  position: static !important;
  top: auto !important;
  right: auto !important;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
#wcfmmp-store .bd_icon_box .follow,
#wcfmmp-store .bd_icon_box .wcfm_store_enquiry,
#wcfmmp-store .bd_icon_box .wcfm_store_chatnow {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  height: auto;
  line-height: 1.2;
  padding: 0.45rem 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  pointer-events: auto !important;
}
#wcfmmp-store .bd_icon_box .follow span,
#wcfmmp-store .bd_icon_box .wcfm_store_enquiry span,
#wcfmmp-store .bd_icon_box .wcfm_store_chatnow span {
  line-height: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Store page: left sidebar same cream as main background */
#wcfmmp-store .left_sidebar.widget-area.sidebar,
#wcfmmp-store .body_area .left_sidebar {
  background: #fcfbf9 !important;
  border-color: #fcfbf9 !important;
}

/* Tab chrome is owned by wdi-partner-surface.css on store pages */
#wcfmmp-store #tab_links_area {
  background: transparent !important;
}

/* ============================================================================
   SALES AGENT – "Agent Logged-In as" / "Switch back to Agent" bar
   ============================================================================
   Bar is output by Sales Agent for WooCommerce at wp_body_open (top of body).
   Plugin class: .wsa-agent-switch-notice, #wsa-agent-switch-notice.
   Body gets .wsa-agent-switched when an agent is viewing as customer.
   Optional: prevent page container from overlapping the bar (e.g. fixed header). */
body.wsa-agent-switched #page-container {
  position: relative;
}

/* ============================================================================
   CHECKOUT PAGE — Responsive Layout Fixes (all breakpoints)
   ============================================================================
   ROOT CAUSE: Divi sets .et_pb_row_0 to width:1296% with max-width:1630px.
   At screens narrower than 1630px the row overflows horizontally. At tablet
   the two flex columns stay side-by-side (nowrap) instead of stacking.
   At phone the row itself was 900px on a 390px screen.

   Strategy per breakpoint:
   • Desktop ≤1680px : constrain row to 100% so 2-col layout fits the viewport
   • Tablet 768–980px : stack the two flex columns vertically (flex-direction)
   • Phone ≤767px    : full-width single column (already working) */

/* Desktop / large tablet (981px – 1680px) — row overflows; constrain it.
   Also: the Divi builder sets margin-top:-118px on the billing module to
   position it within the original 1630px fake-column layout. Now that we
   constrain the row to 100% width the column starts at a different y-position,
   so -118px places billing behind the fixed header. Reset to 0. */
@media only screen and (min-width: 981px) and (max-width: 1680px) {
  body.woocommerce-checkout .et_pb_row_0 {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.woocommerce-checkout .et_pb_wc_checkout_billing {
    margin-top: 0 !important;
  }
}

/* Phone (≤ 767px) — reset the 1296% row trick, then stack everything */
@media only screen and (max-width: 767px) {
  /* ROOT FIX: collapse the 1296%-wide Divi flex row to full viewport width */
  body.woocommerce-checkout .et_pb_row_0,
  body.woocommerce-checkout .et_pb_row {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.woocommerce-checkout .et_pb_column {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* All checkout modules: reset any remaining pixel left/right margins */
  .et_pb_wc_checkout_billing,
  .et_pb_wc_checkout_additional_info,
  .et_pb_wc_checkout_order_details,
  .et_pb_wc_checkout_payment_info,
  .et_pb_wc_checkout_breadcrumb {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* WooCommerce payment block — prevent overflow */
  #payment,
  #payment ul.payment_methods,
  #payment .payment_box {
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  /* Stripe card / UPE element — full width */
  .wc-stripe-elements-field,
  .wc-stripe-iban-element-field,
  #wc-stripe-payment-element {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Express checkout flex items — remove min-width that causes overflow */
  #wc-stripe-express-checkout-element > div {
    min-width: unset !important;
    flex: 1 1 100% !important;
  }
}

/* Tablet (768px – 980px) — stack the two flex columns vertically */
@media only screen and (min-width: 768px) and (max-width: 980px) {
  /* ROOT FIX: collapse the 1296%-wide Divi flex row */
  body.woocommerce-checkout .et_pb_row_0,
  body.woocommerce-checkout .et_pb_row {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Switch flex row to vertical so columns stack instead of sitting side-by-side.
       'width: 100%' alone is ignored because the flex container is nowrap. */
  body.woocommerce-checkout .et_pb_row_0.et_flex_row {
    flex-direction: column !important;
  }

  body.woocommerce-checkout .et_pb_column.et_flex_column {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .et_pb_wc_checkout_billing,
  .et_pb_wc_checkout_additional_info,
  .et_pb_wc_checkout_order_details,
  .et_pb_wc_checkout_payment_info,
  .et_pb_wc_checkout_breadcrumb {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ============================================================================
   EXPRESS CHECKOUT — Loading Spinner Placeholder
   ============================================================================
   Stripe's express checkout (Apple Pay / Google Pay) starts display:none and
   pops in after the SDK initialises. A JS MutationObserver inserts a sibling
   div (#wdi-ece-placeholder) that shows a gold spinner while the user waits. */

#wdi-ece-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 1em;
  background: #f8f8f8;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
}

#wdi-ece-placeholder::before {
  content: "";
  width: 26px;
  height: 26px;
  border: 3px solid #e0e0e0;
  border-top-color: #c9a734;
  border-radius: 50%;
  animation: wdi-ece-spin 0.8s linear infinite;
}

@keyframes wdi-ece-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================================
   A11Y CONTRAST — brand gold buttons with dark text (not brown faces).
   #1a1a1a on #c9a734 ≈ 7.4:1; large CTA text also clears WCAG AA.
   ============================================================================ */
:root {
  --wdi-brand-gold: #c9a734;
  --wdi-brand-gold-hover: #b8962a;
  --wdi-on-gold: #1a1a1a;
  --wdi-a11y-ink: #1a1a1a;
  --wdi-a11y-muted: #333333;
}

/*
 * Cream primary headers (home/pricing/etc.): dark ink for WCAG contrast.
 * Do NOT apply on navy partner chrome — those rules live in
 * wdi-partner-surface.css (cream/gold on #0a2342).
 */
body:not(.wdi-partner-surface) #main-header #et-top-navigation a,
body:not(.wdi-partner-surface) #main-header .et-menu a,
body:not(.wdi-partner-surface) #main-header a[aria-current="page"] {
  color: var(--wdi-a11y-ink) !important;
}

body:not(.wdi-partner-surface) #main-header #et-top-navigation a:hover,
body:not(.wdi-partner-surface) #main-header #et-top-navigation a:focus-visible,
body:not(.wdi-partner-surface) #main-header .et-menu a:hover,
body:not(.wdi-partner-surface) #main-header .et-menu a:focus-visible {
  color: var(--wdi-brand-gold) !important;
}

button.search-form-button,
button.search-form-button.ux-button-primary,
.ux-button.search-form-button {
  background-color: var(--wdi-brand-gold) !important;
  color: var(--wdi-on-gold) !important;
  border-color: var(--wdi-brand-gold) !important;
  font-weight: 700 !important;
}

button.search-form-button .ux-button-text,
.ux-button.search-form-button .ux-button-text,
span.ux-button-text {
  color: var(--wdi-on-gold) !important;
  font-weight: 700 !important;
}

a.cta-a-btn,
a.btn-linnk,
a.wdi-home-starter-promo__cta,
a.wdi-foundational-stage__cta {
  background-color: var(--wdi-brand-gold) !important;
  color: var(--wdi-on-gold) !important;
  font-weight: 700 !important;
}

a.cta-a-btn:hover,
a.btn-linnk:hover,
a.wdi-home-starter-promo__cta:hover,
a.wdi-foundational-stage__cta:hover {
  background-color: var(--wdi-brand-gold-hover) !important;
  color: var(--wdi-on-gold) !important;
}

.wdi-home-starter-promo__eyebrow {
  color: var(--wdi-brand-gold) !important;
  font-weight: 700;
}

.wdi-home-starter-promo__card,
.wdi-home-starter-promo__card p {
  color: var(--wdi-a11y-ink) !important;
}

.wdi-pricing-value-highlights__title {
  color: #0a2342 !important;
  font-weight: 700;
}

.wdi-pricing-value-highlights__body,
.wdi-pricing-value-highlights__item {
  color: var(--wdi-a11y-muted) !important;
}

.addon-service-card h3,
a.service-link {
  color: #0a2342 !important;
  font-weight: 700;
}

a.service-link {
  border-bottom-color: var(--wdi-brand-gold) !important;
}

.addon-service-card p {
  color: var(--wdi-a11y-muted) !important;
}

/* -------------------------------------------------------------------------
   Providers directory (/providers/): equal media frames + membership chrome
   ------------------------------------------------------------------------- */
.wdi-providers-dir-section,
.wdi-providers-featured-section {
  padding-block: 48px;
  /* Partner-surface paints #et-main-area navy for ~1vh; keep content on cream. */
  background: #faf6ef;
  color: #0a2342;
}

.wdi-providers-dir-section__head,
.wdi-providers-featured-section__head {
  max-inline-size: 48rem;
  margin-block-end: 28px;
}

.wdi-providers-dir-section__title,
.wdi-providers-featured-section__title {
  color: #0a2342;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  margin: 0 0 10px;
}

.wdi-providers-dir-section__lead,
.wdi-providers-featured-section__lead {
  color: rgba(10, 35, 66, 0.82);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.wdi-providers-featured-section__lead a {
  color: #0a2342;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hero links on navy: gold (not muted blue) for contrast. */
body.wdi-partner-surface section.hero-shop-sec .wdi-marketplace-intro p {
  color: #f9f6ee !important;
}

body.wdi-partner-surface section.hero-shop-sec .wdi-marketplace-intro a {
  color: #c9a734 !important;
  text-decoration-color: #c9a734 !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: #f9f6ee !important;
  text-decoration-color: #f9f6ee !important;
}

body.wdi-partner-surface .wdi-providers-dir-section,
body.wdi-partner-surface .wdi-providers-featured-section {
  background: var(--wdi-ps-cream-soft, #faf6ef) !important;
  color: var(--wdi-ps-navy, #0a2342) !important;
}

body.wdi-partner-surface .wdi-providers-dir-section__title,
body.wdi-partner-surface .wdi-providers-featured-section__title {
  color: var(--wdi-ps-navy, #0a2342) !important;
}

body.wdi-partner-surface .wdi-providers-dir-section__lead,
body.wdi-partner-surface .wdi-providers-featured-section__lead {
  color: rgba(10, 35, 66, 0.82) !important;
}

body.wdi-partner-surface .wdi-providers-featured-section__lead a {
  color: var(--wdi-ps-navy, #0a2342) !important;
}

body.wdi-partner-surface .wdi-providers-dir-kind-tab {
  border-color: var(--wdi-ps-navy, #0a2342);
  background: #fff;
  color: var(--wdi-ps-navy, #0a2342);
}

body.wdi-partner-surface .wdi-providers-dir-kind-tab.is-active {
  background: var(--wdi-ps-navy, #0a2342);
  color: var(--wdi-ps-cream, #f2eadf);
  border-color: var(--wdi-ps-navy, #0a2342);
}

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

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

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

.wdi-providers-dir-kind-tab {
  border: 1px solid #0a2342;
  background: #fff;
  color: #0a2342;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  min-block-size: 2.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wdi-providers-dir-kind-tab:hover,
.wdi-providers-dir-kind-tab:focus-visible {
  border-color: #c9a734;
  outline: 2px solid #c9a734;
  outline-offset: 2px;
}

.wdi-providers-dir-kind-tab.is-active {
  background: #0a2342;
  color: #f9f6ee;
  border-color: #0a2342;
}

.wdi-providers-dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
  gap: 1.5rem;
  inline-size: 100%;
}

.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);
}

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

.wdi-provider-card__media {
  display: block;
  background: #f4f1ea;
}

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

.wdi-provider-card__media-frame img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
  object-position: center;
  padding: 12px;
  background: #f9f6ee;
}

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

.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: #0a2342;
}

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

.wdi-provider-card__badge--servicer {
  background: #dce9f8;
  color: #0a2342;
}

.wdi-provider-card__badge--department {
  background: #0a2342;
  color: #f9f6ee;
}

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

.wdi-provider-card__title a {
  color: #0a2342;
  text-decoration: none;
}

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

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

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

.wdi-provider-card__cta {
  align-self: stretch;
  margin-block-start: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 2.75rem;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  background: #c9a734;
  color: #0a2342 !important;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.wdi-provider-card__cta:hover,
.wdi-provider-card__cta:focus-visible {
  background: #b8941f;
  color: #0a2342 !important;
  outline: 2px solid #0a2342;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .wdi-providers-dir-section,
  .wdi-providers-featured-section {
    padding-block: 2rem;
  }

  .wdi-providers-dir-section__head,
  .wdi-providers-featured-section__head {
    margin-block-end: 1.25rem;
  }

  .wdi-providers-dir-kind-tab {
    flex: 1 1 calc(50% - 10px);
  }

  .wdi-providers-featured-section .shop-layout {
    flex-direction: column;
  }

  .wdi-providers-featured-section .shop-main,
  .wdi-providers-featured-section .shop-sidebar {
    width: 100%;
  }
}

/* ============================================================================
   CONTACT US (page-id-118) — Mobile / tablet layout fixes
   ============================================================================
   ROOT CAUSE (reproduced on live at 390px):
   Divi module CSS sets `.et_pb_heading_2` to
   `transform: scale(1.8) translate(32px, 32px)` with NO phone/tablet override.
   That scaled the gold "1-833-WDI-4YOU" past the viewport (clipped on the left).
   The contact form also uses fixed `padding: 42px 70px 42px 68px`, which left
   ~94px of input width on a 390px phone.

   Desktop keeps the decorative scale. Tablet/phone drop the transform and
   size the phone with fluid type; form padding shrinks so fields stay usable. */

/* Contact Us page ID — keep in sync with WP page slug /contact-us/ */
body.page-id-118 .et_pb_section_0,
body.page-id-118 .et_pb_row_0,
body.page-id-118 .et_pb_column_1 {
  overflow-x: clip;
  max-width: 100%;
}

@media only screen and (max-width: 980px) {
  body.page-id-118 .et_pb_heading_2 {
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    transform-origin: center center;
    text-align: center;
    margin-block: 1.25rem 0.75rem;
    box-sizing: border-box;
  }

  body.page-id-118 .et_pb_heading_2 .et_pb_heading_container,
  body.page-id-118 .et_pb_heading_2 .et_pb_module_header {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  /* Fluid phone string — fits narrow columns without mid-word wrap */
  body.page-id-118 .et_pb_heading_2 .et_pb_module_header {
    font-size: clamp(1.5rem, 5.5vw, 2.5rem) !important;
    line-height: 1.15 !important;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  body.page-id-118 .et_pb_contact_form_0 {
    padding: 32px 28px !important;
    box-sizing: border-box;
  }

  body.page-id-118 .et_pb_section_1.et_pb_section {
    padding-block: 64px !important;
  }
}

@media only screen and (max-width: 767px) {
  body.page-id-118 .et_pb_heading_2 .et_pb_module_header {
    font-size: clamp(1.35rem, 7.2vw, 1.85rem) !important;
  }

  /* Row had padding: 60px 40px — ate the form width on ~390px phones */
  body.page-id-118 .et_pb_row_1 {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    padding-block: 32px !important;
    padding-inline: 16px !important;
    box-sizing: border-box !important;
  }

  body.page-id-118 .et_pb_column_2 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
  }

  body.page-id-118 .et_pb_contact_form_0 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 24px 16px !important;
  }

  body.page-id-118 .et_pb_contact_form_0 .et_pb_contact,
  body.page-id-118 .et_pb_contact_form_0 .et_pb_contact_form {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.page-id-118 .et_pb_section_1.et_pb_section {
    padding-block: 48px !important;
  }

  /* Keep hero CTA from overflowing its column */
  body.page-id-118 .et_pb_button_0_wrapper .et_pb_button_0 {
    max-width: 100%;
    box-sizing: border-box;
  }
}
