/* Quality Auto V29 — targeted fixes only
   Scope: side search trigger, site-footer typography, offer artwork sizing, offer FAQ contrast.
   No pricing/content/layout sections are changed here. */

/* Small circular site-search control on the side of the viewport. */
html body.qa19-page .qa-search-btn {
  position: fixed !important;
  top: 50% !important;
  right: 18px !important;
  left: auto !important;
  transform: translateY(-50%) !important;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  gap: 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(15, 91, 84, .22) !important;
  background: #ffffff !important;
  color: #0f6b63 !important;
  box-shadow: 0 10px 28px rgba(12, 37, 34, .16) !important;
  z-index: 9996 !important;
  font-family: Arial, Helvetica, "Segoe UI", sans-serif !important;
}
html body.qa19-page .qa-search-btn:hover {
  background: #0f6b63 !important;
  color: #ffffff !important;
  border-color: #0f6b63 !important;
  transform: translateY(-50%) scale(1.04) !important;
}
html body.qa19-page .qa-search-btn .qa-search-label {
  display: none !important;
}
html body.qa19-page .qa-search-btn .qa-search-icon {
  width: 20px !important;
  height: 20px !important;
  color: currentColor !important;
}

/* Site footer: plain English system font, slightly larger and clearer. */
html body.qa19-page footer.qa19-footer,
html body.qa19-page footer.footer-rich,
html body.qa19-page footer.footer-note.footer-rich {
  font-family: Arial, Helvetica, "Segoe UI", sans-serif !important;
}
html body.qa19-page footer.qa19-footer *,
html body.qa19-page footer.footer-rich *,
html body.qa19-page footer.footer-note.footer-rich * {
  font-family: Arial, Helvetica, "Segoe UI", sans-serif !important;
  text-shadow: none !important;
}
html body.qa19-page footer.qa19-footer h2,
html body.qa19-page footer.footer-rich h2,
html body.qa19-page footer.footer-note.footer-rich h2 {
  font-size: 28px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
html body.qa19-page footer.qa19-footer h3,
html body.qa19-page footer.footer-rich h3,
html body.qa19-page footer.footer-note.footer-rich h3 {
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
}
html body.qa19-page footer.qa19-footer :is(p,a,span,strong),
html body.qa19-page footer.footer-rich :is(p,a,span,strong),
html body.qa19-page footer.footer-note.footer-rich :is(p,a,span,strong) {
  font-size: 14.5px !important;
  line-height: 1.58 !important;
  letter-spacing: 0 !important;
}
html body.qa19-page footer.qa19-footer .qa19-footer-bottom,
html body.qa19-page footer.footer-rich .footer-bottom,
html body.qa19-page footer.footer-note.footer-rich .footer-bottom {
  font-size: 12.5px !important;
  line-height: 1.55 !important;
}

/* Offer detail artwork: remove artificial black area below images. */
html body.offer-detail-page #qa23-offer-detail-hero {
  align-items: center !important;
}
html body.offer-detail-page #qa23-offer-detail-hero .offer-detail-media {
  min-height: 0 !important;
  height: auto !important;
  align-self: center !important;
  background: transparent !important;
  overflow: hidden !important;
}
html body.offer-detail-page #qa23-offer-detail-hero .offer-detail-img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* Offer FAQs: ensure questions are visible on the dark cards. */
html body.offer-detail-page .offer-faq-item {
  background: #182431 !important;
  border: 1px solid #2b3946 !important;
  border-radius: 14px !important;
  padding: 0 16px !important;
  overflow: hidden !important;
}
html body.offer-detail-page .offer-faq-item + .offer-faq-item {
  margin-top: 10px !important;
}
html body.offer-detail-page .offer-faq-item summary {
  color: #ffffff !important;
  font-family: Arial, Helvetica, "Segoe UI", sans-serif !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}
html body.offer-detail-page .offer-faq-item p {
  color: #dbe3e9 !important;
  font-family: Arial, Helvetica, "Segoe UI", sans-serif !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  text-shadow: none !important;
}

@media (max-width: 640px) {
  html body.qa19-page .qa-search-btn {
    top: auto !important;
    right: 14px !important;
    bottom: 146px !important;
    transform: none !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
  }
  html body.qa19-page .qa-search-btn:hover {
    transform: scale(1.04) !important;
  }
  html body.qa19-page footer.qa19-footer h2,
  html body.qa19-page footer.footer-rich h2,
  html body.qa19-page footer.footer-note.footer-rich h2 {
    font-size: 24px !important;
  }
  html body.qa19-page footer.qa19-footer :is(p,a,span,strong),
  html body.qa19-page footer.footer-rich :is(p,a,span,strong),
  html body.qa19-page footer.footer-note.footer-rich :is(p,a,span,strong) {
    font-size: 14px !important;
  }
}

/* Search overlay cleanup used by the small side trigger. */
html body.qa19-page .header-search-panel[hidden] { display: none !important; }
html body.qa19-page .header-search-panel { position: fixed !important; inset: 0 !important; z-index: 10020 !important; }
html body.qa19-page .header-search-backdrop { position: absolute !important; inset: 0 !important; background: rgba(10, 22, 21, .58) !important; backdrop-filter: blur(4px) !important; }
html body.qa19-page .header-search-box {
  position: relative !important;
  width: min(680px, calc(100% - 32px)) !important;
  margin: 8vh auto 0 !important;
  padding: 30px !important;
  border: 1px solid rgba(15, 107, 99, .16) !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  color: #1a2927 !important;
  box-shadow: 0 26px 80px rgba(8, 31, 28, .28) !important;
  font-family: Arial, Helvetica, "Segoe UI", sans-serif !important;
}
html body.qa19-page .header-search-box :is(h2,p,strong,span,input,a,button) { font-family: Arial, Helvetica, "Segoe UI", sans-serif !important; }
html body.qa19-page .header-search-title > span { color: #0f6b63 !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: .06em !important; text-transform: uppercase !important; }
html body.qa19-page .header-search-title h2 { margin: 5px 0 6px !important; color: #142724 !important; font-size: 34px !important; line-height: 1.1 !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; }
html body.qa19-page .header-search-title p { color: #63716e !important; font-size: 14px !important; }
html body.qa19-page .header-search-close { position: absolute !important; top: 14px !important; right: 14px !important; width: 40px !important; height: 40px !important; border-radius: 50% !important; border: 1px solid #d9e1df !important; background: #f7faf9 !important; color: #203330 !important; }
html body.qa19-page .header-search-input-row { display: flex !important; align-items: center !important; gap: 10px !important; margin-top: 20px !important; padding: 0 14px !important; border: 1px solid #d5dfdd !important; border-radius: 12px !important; background: #ffffff !important; }
html body.qa19-page .header-search-input { width: 100% !important; min-height: 54px !important; border: 0 !important; outline: 0 !important; background: transparent !important; color: #172724 !important; font-size: 16px !important; }
html body.qa19-page .header-search-input::placeholder { color: #7c8986 !important; }
html body.qa19-page .header-search-results { display: grid !important; max-height: 46vh !important; margin-top: 10px !important; overflow: auto !important; }
html body.qa19-page .header-search-result { display: grid !important; gap: 3px !important; padding: 13px 4px !important; border-bottom: 1px solid #e5ebe9 !important; color: #172724 !important; }
html body.qa19-page .header-search-result strong { color: #172724 !important; font-size: 15px !important; }
html body.qa19-page .header-search-result span { color: #6d7976 !important; font-size: 12.5px !important; }
html body.qa19-page .header-search-result:hover { color: #0f6b63 !important; }
html body.qa19-page .header-search-empty { padding: 18px 4px !important; color: #6d7976 !important; }
