/* CashTap: center text/CTAs/cards/sections on mobile only. Desktop unchanged. */
@media (max-width: 767px) {
  /* —— Hero —— */
  [data-hero-animated-carousel-target="content"],
  [data-hero-animated-carousel-target="copy"] {
    align-items: center !important;
    text-align: center !important;
  }
  [data-hero-animated-carousel-target="copy"].text-left,
  [data-hero-animated-carousel-target="copy"] {
    text-align: center !important;
  }
  [data-hero-animated-carousel-target="content"] h1,
  [data-hero-animated-carousel-target="content"] p,
  [data-hero-animated-carousel-target="content"] .body-regular,
  [data-hero-animated-carousel-target="content"] .body-slim,
  [data-hero-animated-carousel-target="copy"] h1,
  [data-hero-animated-carousel-target="copy"] p,
  [data-hero-animated-carousel-target="copy"] .body-regular,
  [data-hero-animated-carousel-target="copy"] .body-slim {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
  }
  [data-hero-animated-carousel-target="content"] .btn,
  [data-hero-animated-carousel-target="content"] a.btn-primary,
  [data-hero-animated-carousel-target="content"] .flex,
  [data-hero-animated-carousel-target="copy"] .btn,
  [data-hero-animated-carousel-target="copy"] a.btn-primary,
  [data-hero-animated-carousel-target="copy"] .flex {
    justify-content: center !important;
  }
  [data-hero-animated-carousel-target="content"] .justify-start,
  [data-hero-animated-carousel-target="copy"] .justify-start {
    justify-content: center !important;
  }
  [data-hero-animated-carousel-target="content"] a.btn,
  [data-hero-animated-carousel-target="content"] a.btn-primary,
  [data-hero-animated-carousel-target="copy"] a.btn,
  [data-hero-animated-carousel-target="copy"] a.btn-primary {
    display: inline-flex;
    margin-left: auto;
    margin-right: auto;
  }

  /* —— Index / marketing sections —— */
  #landing-page-sections > section {
    text-align: center;
  }
  #landing-page-sections h1,
  #landing-page-sections h2,
  #landing-page-sections h3,
  #landing-page-sections h4,
  #landing-page-sections p,
  #landing-page-sections .body-regular,
  #landing-page-sections .body-slim,
  #landing-page-sections .body-bold,
  #landing-page-sections .caption,
  #landing-page-sections .h3-small,
  #landing-page-sections .h2-small {
    text-align: center !important;
  }
  #landing-page-sections .text-left,
  #landing-page-sections .text-start {
    text-align: center !important;
  }
  #landing-page-sections .items-start,
  #landing-page-sections .md\:items-start {
    align-items: center !important;
  }
  #landing-page-sections .justify-start,
  #landing-page-sections .justify-between,
  #landing-page-sections .lg\:justify-start,
  #landing-page-sections .lg\:justify-end {
    justify-content: center !important;
  }

  /* Button / CTA groups */
  #landing-page-sections a.btn,
  #landing-page-sections .btn,
  #landing-page-sections a.btn-primary,
  #landing-page-sections a.btn-secondary,
  #landing-page-sections .btn-primary,
  #landing-page-sections .btn-secondary,
  #landing-page-sections .btn-tertiary,
  #landing-page-sections a.btn-tertiary {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  #landing-page-sections .btn-tertiary,
  #landing-page-sections a.btn-tertiary {
    display: inline-flex !important;
    justify-content: center !important;
  }
  #landing-page-sections .flex.gap-8,
  #landing-page-sections .flex.gap-12,
  #landing-page-sections .flex.gap-16,
  #landing-page-sections .flex.gap-24,
  #landing-page-sections .flex.flex-wrap,
  #landing-page-sections .flex.flex-wrap.gap-16,
  #landing-page-sections .wr-cards-cta-wrapper .flex,
  #landing-page-sections .flex.lg\:mb-8 {
    justify-content: center !important;
  }

  /* Trust strip icons / cards */
  #landing-page-sections .cashtap-trust-strip,
  #landing-page-sections .cashtap-trust-inner,
  #landing-page-sections .cashtap-trust-card,
  #landing-page-sections .cashtap-trust-title {
    text-align: center !important;
  }
  #landing-page-sections .cashtap-trust-cols {
    justify-content: center !important;
    align-items: center !important;
  }
  #landing-page-sections .cashtap-trust-cols > div {
    align-items: center !important;
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
  }
  #landing-page-sections .cashtap-trust-strip .btn-tertiary,
  #landing-page-sections .cashtap-trust-strip a.btn-tertiary {
    justify-content: center !important;
  }

  /* Feedback / store badges on index */
  #landing-page-sections .cf-store-btns,
  .cashtap-feedback-section .cf-store-btns {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  /* Keep store badges in a tight centered group (no per-btn auto margins) */
  #landing-page-sections .cf-store-btn,
  .cashtap-feedback-section .cf-store-btn {
    margin-left: 0;
    margin-right: 0;
  }
  #landing-page-sections .cashtap-feedback-section .flex.lg\:mb-8,
  #landing-page-sections .cashtap-feedback-section .flex.shrink-0 {
    justify-content: center !important;
    width: 100%;
  }

  /* How-it-flows already centered; reinforce */
  .cashtap-how-it-flows .hif-steps,
  .cashtap-how-it-flows .hif-step,
  .cashtap-how-it-flows .hif-card-head {
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* —— Shared CashTap footer —— */
  .cashtap-footer {
    text-align: center;
  }
  .cashtap-footer .cf-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .cashtap-footer .cf-brand p {
    margin-left: auto;
    margin-right: auto;
  }
  .cashtap-footer .cf-social {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
  }
  .cashtap-footer .cf-social-btn {
    margin: 0;
  }
  .cashtap-footer .cf-col {
    text-align: center;
  }
  .cashtap-footer .cf-col a {
    display: inline-block;
  }
  .cashtap-footer .cf-support,
  .cashtap-footer .cf-bottom {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .cashtap-footer .cf-grid {
    justify-items: center;
  }

  /* —— Simple subpages (get-started, faq, legal, etc.) —— */
  .hero,
  .hero .wrap,
  section.hero,
  main.content,
  main.content .wrap,
  .content,
  .wrap {
    text-align: center;
  }
  .hero h1,
  .hero p,
  .hero .eyebrow,
  .content h1,
  .content h2,
  .content h3,
  .content p,
  .content li {
    text-align: center;
  }
  .grid {
    justify-items: stretch;
  }
  .card {
    text-align: center;
    align-items: center;
  }
  .card .store-badge,
  .store-badge {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    object-position: center center !important;
  }
  .store-badge.play {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .card .cta {
    text-align: center;
  }
  .gs-actions {
    align-items: center;
  }
  .gs-actions .btn {
    margin-left: auto;
    margin-right: auto;
  }

  /* Keep sticky top nav usable (logo left / action right) */
  .top .nav,
  .nav {
    text-align: left;
  }

  /* FAQ category chips / answers */
  .faq-cats,
  .cats,
  .cat-row {
    justify-content: center;
  }
  .faq-a,
  .faq details,
  .faq summary {
    text-align: center;
  }
  .search-wrap {
    margin-left: auto;
    margin-right: auto;
  }
}


/* Mobile: letter-only backdrop on photo-overlay card copy (Visa / crypto lending, etc.) */
@media (max-width: 767px) {
  .wr-bento-cards-section [data-photo-copy].ct-photo-copy,
  [data-photo-copy].ct-photo-copy {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    gap: 12px !important;
  }
  .wr-bento-cards-section [data-photo-copy] .ct-letter-bg,
  [data-photo-copy] .ct-letter-bg,
  span.ct-letter-bg {
    display: inline !important;
    box-decoration-break: clone !important;
    -webkit-box-decoration-break: clone !important;
    background: rgba(0, 0, 0, 0.58) !important;
    background-color: rgba(0, 0, 0, 0.58) !important;
    color: #fff !important;
    padding: 0.16em 0.45em !important;
    border-radius: 0.35em !important;
    line-height: 1.55 !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18) !important;
    -webkit-box-decoration-break: clone;
  }
  .wr-bento-cards-section [data-photo-copy] h3,
  [data-photo-copy] h3 {
    margin: 0;
  }
  .wr-bento-cards-section [data-photo-copy] p,
  [data-photo-copy] p {
    margin-bottom: 0 !important;
  }
}
@media (min-width: 768px) {
  /* Desktop: no letter chips — keep existing panel/scrim look */
  .wr-bento-cards-section [data-photo-copy] .ct-letter-bg,
  [data-photo-copy] .ct-letter-bg,
  span.ct-letter-bg {
    background: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: inherit !important;
  }
}
