/* Estimator CTA treatment (r23 preview) — supplied spec, Oct 12 2026.
   Buttons keep their existing colors and font styling; the old CSS ::after
   arrows are retired in favor of the inline .price-cta-arrow span. */

.price-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  text-align: center;
}

.price-cta-group .price-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 0;
  padding: 3px 10px 3px 24px;
  box-sizing: border-box;
  border-radius: 999px;
  white-space: nowrap;
}

.price-cta-button .price-cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  color: #62834c !important;
  font-size: 14px;
  line-height: 1;
}

.price-cta-group .price-cta-note {
  display: block;
  margin: 0;
  max-width: 100%;
  font-size: clamp(10px, 2.8vw, 13px);
  line-height: 1.3;
  font-weight: 600;
  white-space: nowrap;
}

/* Retire the old stylesheet arrows on converted buttons (the arrow is now
   the inline .price-cta-arrow span, per spec). */
.price-cta-button::after {
  content: none !important;
}

/* Component conflict removals (per spec: remove conflicting width/position
   rules in the affected component). The refactor pins hero buttons and the
   footer-giving button with absolute positioning, which detaches them from
   their note. Converted buttons return to flow; in the footer the GROUP
   takes the button's old straddle position so button + note move together,
   exactly like production's stack. */
.hero .price-cta-button {
  /* relative, not static (r48 fix, Oct 13): the button stays in flow
     exactly as with static (no offsets), but .cta-badge's ::before shine
     needs the button as its positioning anchor — with static it anchored
     to the CTA group and leaked onto the hero photo at 1200px and up,
     showing as a silver glare spot left of the button. */
  position: relative !important;
  /* The refactor's desktop hero rule also sets left/top on the badge;
     with relative those would offset the button from its flow spot, so
     clear them — the pin lives on the group, not the button. */
  inset: auto !important;
}

.hero .price-cta-group {
  display: inline-flex;
  width: auto;
  position: relative;
  z-index: 5;
}

@media (min-width: 700px) {
  /* Desktop donation banner CTA in normal flow (r32) — Sean, Oct 12 2026,
     applying his supplied spec to the banner's actual classes (his
     .footer-giving-cta is the .giving-cta row / .price-cta-group here):
     the group no longer straddles the banner's bottom edge; it sits
     below "Ready for a cleaner yard?" inside the copy column, the
     banner grows to contain button + note, and the old absolute rule
     for the group (the r23 straddle, removed above) is gone. The one
     absolute rule targeting the actual button lives in the banner
     stylesheet's 700-720px band; the high-specificity static rule
     below removes its effect. Mobile is unchanged. */
  .footer-giving.footer-giving.footer-giving.footer-giving .footer-giving-inner {
    height: auto !important;
    max-height: none !important;
    padding-bottom: 18px !important;
  }

  .footer-giving .footer-giving-copy {
    min-width: 0;
  }

  .footer-giving.footer-giving .giving-cta {
    flex-wrap: wrap;
    width: 100% !important;
    margin-left: 0 !important;
  }

  .footer-giving .price-cta-group {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    flex: 0 0 100%;
    margin: 12px 0 0 !important;
  }

  .footer-giving.footer-giving.footer-giving .footer-giving-inner .giving-cta .price-cta-button {
    position: static !important;
    inset: auto !important;
    margin: 0 !important;
  }

  /* The note now sits on the cream banner instead of hanging over the
     dark footer scene — back to the standard dark note color. */
  .footer-giving .price-cta-note {
    color: inherit;
  }
}

/* Hero notes sit on the dark hero photo; production's hero note is
   near-white (#f2f7f2). Keep that contrast in hero contexts. */
.hero .price-cta-group .price-cta-note {
  color: #f2f7f2;
}

/* Home/city heroes at 1200px and up pin the CTA at left:200px / top:377px
   over the photo (the 700-1199 band flows statically and needs nothing).
   The group takes that pinned spot so the note travels with the button,
   clear of the absolutely-positioned city list line at top:280px. */
@media (min-width: 1200px) {
  .hero-content .price-cta-group {
    position: absolute;
    left: 200px;
    top: 377px;
    width: auto;
    z-index: 5;
  }
}

/* Mobile donation banner (footer-giving), shared across all pages
   (Sean, Oct 12 2026): the refactor's absolute positioning drops the
   button onto the banner's bottom edge; the group returns to flow so the
   button sits raised inside the banner under "Ready for a cleaner yard?",
   its label is white, and the note shows below it inside the banner. */
@media (max-width: 699px) {
  .footer-giving .giving-cta {
    flex-wrap: wrap;
  }

  .footer-giving .price-cta-group {
    position: static;
    flex: 0 0 100%;
    width: 100%;
  }

  .footer-giving .giving-cta .price-cta-button {
    position: static !important;
    transform: none !important;
  }

  .footer-giving .price-cta-button > span:not(.price-cta-arrow) {
    color: #fff !important;
    font-size: inherit !important;
  }

  .footer-giving .price-cta-note {
    display: block;
    font-size: clamp(10px, 2.8vw, 13px) !important;
    font-weight: 600;
  }
}

/* Mobile donation banner bottom tightening (r27) — Sean, Oct 12 2026:
   mobile only. The banner's inner bottom padding drops to 12px and its
   outer bottom spacing to 8px; no fixed/minimum height reserves extra
   space, and the button + note stay in normal flow (per the r26 block
   above), so the banner shrinks naturally and the footer follows
   directly below. Desktop is untouched. */
@media (max-width: 699px) {
  .footer-giving.footer-giving.footer-giving.footer-giving {
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 8px !important;
    margin-bottom: 0 !important;
  }

  .footer-giving.footer-giving.footer-giving.footer-giving .footer-giving-inner {
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 12px !important;
    margin-bottom: 0 !important;
  }
}

/* Header slogan phrase integrity (r29) — Sean, Oct 12 2026: each slogan
   phrase stays together ("Happier dogs." never breaks mid-phrase).
   Three complete lines at 390px and below; the first two phrases share
   a line at 391px and above. Markup: .slogan-first/.slogan-phrase spans
   inside the existing .tg (Home + cities) / .tagline (other pages).
   Desktop preservation (Muse): the old markup's <br> forced the break
   before "Stronger communities." — the two unscoped rules below
   reproduce that exact two-line desktop layout and keep every phrase
   whole at desktop widths too; the supplied mobile blocks then refine
   699px and below. Without them the desktop slogan collapses to one
   line (measured: element height 44px -> 22px at 1280). */
.tg .slogan-phrase,
.tagline .slogan-phrase {
  display: inline-block;
  white-space: nowrap;
}

.tg .slogan-last,
.tagline .slogan-last {
  display: block;
}

@media (max-width: 699px) {
  .tg .slogan-phrase,
  .tagline .slogan-phrase {
    display: inline-block;
    white-space: nowrap;
  }

  .tg .slogan-last,
  .tagline .slogan-last {
    display: block;
  }
}

@media (max-width: 390px) {
  .tg .slogan-first > .slogan-phrase,
  .tagline .slogan-first > .slogan-phrase {
    display: block;
  }
}

/* Unified reference design (r24) — Sean approved the homepage hero button
   (mobile) as THE reference on Oct 12 2026: its exact styling is reused for
   every SEE MY PRICE CTA on all pages (heroes, offers, donation banners,
   body CTAs) on MOBILE. Desktop keeps the same styling/details but at a
   different size, to be set separately — until then desktop is unchanged.
   Values measured from that button: 13.5px / 900 weight / 0.5px
   letter-spacing, green gradient, white text, standard shadow, full pill
   radius, compact 3px vertical padding. */
@media (max-width: 699px) {
.price-cta-group .price-cta-button {
  font-size: 13.5px !important;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.5;
  padding: 3px 10px 3px 24px !important;
  min-height: 0 !important;
  height: auto;
  background-color: #5aa244;
  background-image: linear-gradient(135deg, #79c25f 0%, #5aa244 60%, #4c8f3a 100%);
  color: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(90, 162, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-decoration: none;
}
}

/* Desktop CTA design (r31) — Sean picked Option B, Oct 12 2026: the
   approved mobile reference design at desktop scale, 700px and up.
   18px text, 25px arrow circle, 15px note; the button renders 41px
   tall. Applies to every grouped SEE MY PRICE button plus the Pricing
   plan-modal CTA (the one converted button without a group/note).
   Mobile is unchanged. */
@media (min-width: 700px) {
  .price-cta-group .price-cta-button,
  .modal-actions .price-cta-button {
    font-size: 18px !important;
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1.5;
    padding: 7px 14px 7px 32px !important;
    min-height: 0 !important;
    height: auto;
    background-color: #5aa244;
    background-image: linear-gradient(135deg, #79c25f 0%, #5aa244 60%, #4c8f3a 100%);
    color: #fff;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(90, 162, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    text-decoration: none;
  }

  .price-cta-group .price-cta-arrow,
  .modal-actions .price-cta-arrow {
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    font-size: 18px;
  }

  .price-cta-group .price-cta-note {
    font-size: 15px !important;
  }
}

/* Donation banner button at desktop (r31 fix): the banner stylesheet's
   550-720px band forces every span inside .giving-cta to 13px and the
   badge padding-left to 10px, which shrank this one button's label,
   note, and height at 700-720px. Out-specify those rules so the banner
   button matches Option B like every other button. */
@media (min-width: 700px) {
  .footer-giving.footer-giving .price-cta-group .price-cta-button {
    padding: 7px 14px 7px 32px !important;
    font-size: 18px !important;
  }

  .footer-giving.footer-giving .price-cta-group .price-cta-button > span:not(.price-cta-arrow) {
    font-size: inherit !important;
    color: #fff !important;
  }

  .footer-giving.footer-giving .price-cta-group .price-cta-arrow {
    font-size: 18px !important;
  }

  .footer-giving.footer-giving .price-cta-group .price-cta-note {
    font-size: 15px !important;
  }
}
