/* =========================================================
   MOWCOMPASS DEALS MANAGER — EDITORIAL PRODUCT CARD DEALS
   One commerce CTA at a time: an active exact-market deal
   replaces the normal external product CTA; fit CTAs remain.
   ========================================================= */

.mcd-inline-deal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 15px 16px;
  border: 1px solid rgba(22, 163, 74, 0.16);
  border-radius: 15px;
  background:
    radial-gradient(circle at 100% 0%, rgba(22, 163, 74, 0.08), transparent 38%),
    linear-gradient(180deg, #f7fbf8 0%, #ffffff 100%);
}

.mcd-inline-deal__copy {
  min-width: 0;
}

.mcd-inline-deal__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: #126536;
  font-size: 9.5px;
  line-height: 1;
  font-weight: 780;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mcd-inline-deal__headline {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px 9px;
  color: #111827;
}

.mcd-inline-deal__headline strong {
  color: #111827;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 740;
  letter-spacing: -0.025em;
}

.mcd-inline-deal__headline .mcd-inline-deal__price {
  font-size: 18px;
}

.mcd-inline-deal__headline s {
  color: #98a2b3;
  font-size: 11.5px;
  line-height: 1.2;
}

.mcd-inline-deal__meta {
  display: block;
  margin-top: 5px;
  color: #667085;
  font-size: 11px;
  line-height: 1.45;
}

.mcd-inline-deal__cta,
.mcd-inline-deal__cta:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 10px 13px;
  border: 1px solid #17211b;
  border-radius: 11px;
  background: #17211b;
  color: #ffffff !important;
  font-size: 12px;
  line-height: 1;
  font-weight: 730;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.10);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.mcd-inline-deal__cta:hover {
  transform: translateY(-1px);
  background: #111a15;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

.mc-compact-product-card .mcd-inline-deal {
  margin-top: 18px;
}

@media (max-width: 640px) {
  .mcd-inline-deal {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    border-radius: 14px;
  }

  .mcd-inline-deal__cta {
    width: 100%;
    min-height: 43px;
  }
}


/* Hard-hide legacy article commerce CTAs while canonical commerce is active.
   Astra's .mc-article-btn { display:inline-flex } can override the browser's
   native [hidden] styling, so this explicit rule is required. */
.mcd-legacy-commerce-hidden,
.mc-product-card .mcd-legacy-commerce-hidden,
.mc-compact-product-card .mcd-legacy-commerce-hidden {
  display: none !important;
}

/* =========================================================
   CANONICAL MOWER LIBRARY CTA
   The live exact-market retailer link is injected at runtime.
   Existing hard-coded commerce links stay hidden once the card
   is safely mapped to a canonical mower.
   ========================================================= */

.mcd-library-cta {
  order: -20;
}

.mcd-commerce-syncing [data-mcd-legacy-commerce="1"] {
  visibility: hidden !important;
}
