/**
 * Tap targets for real controls. 28px+ everywhere, 40px+ on touch-sized layouts.
 * Inline text links inside sentences stay as they are.
 * !important: these beat older page CSS with fixed widths and heights.
 */

/* All stores */
body .store-row-primary { padding: 6px 0 !important; }
body .store-discount a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 28px !important;
  min-height: 32px !important;
  color: #15794a !important;
}
body a.allstoreltsr { width: auto !important; height: auto !important; min-width: 28px !important; min-height: 28px !important; }
body .cs-as-letter-rail__btn { min-width: 24px !important; min-height: 24px !important; }
body button.cs-as-cat-toggle { padding-top: 12px !important; padding-bottom: 12px !important; height: auto !important; }

/* Coupons */
body button.desp_readmore_popup { min-height: 32px !important; padding-top: 6px !important; padding-bottom: 6px !important; }
body button[popupcode] { min-width: 28px !important; min-height: 28px !important; }

/* FAQ */
body .nav.flex-column > .nav-link[id^="faq_tab_nav"] { padding-top: 11px !important; padding-bottom: 11px !important; }

/* Footer lists */
body footer li a { display: inline-flex; align-items: center; min-height: 32px; }

@media (max-width: 991px) {
  body footer li a { min-height: 40px; }
  body a.allstoreltsr { min-width: 40px !important; min-height: 40px !important; }
  body button.allstore-type-filter { min-height: 40px !important; }
  body .store_carousel .swiper-button-next,
  body .store_carousel .swiper-button-prev { width: 40px !important; height: 40px !important; }
  body a.btn.btn-clear { min-width: 40px !important; min-height: 40px !important; }
  body .store-row-primary { padding: 10px 0 !important; }
  body .store-discount a { min-width: 40px !important; min-height: 40px !important; }

  body button.desp_readmore_popup { min-height: 40px !important; }
  body button.cs-cpn-sidebar-pill { min-height: 40px !important; }
  body #cpn-sidebar-store-search { min-height: 40px !important; }
  body a.cs-cpn-sidebar__az-link { min-height: 40px !important; }

  body button.cs-ssgc-poll__option { min-height: 40px !important; font-size: 12px; }
  body span.toggle-password.pswd { width: 40px !important; height: 40px !important; }
  body a.cs-ssgc-link.balancechecker,
  body a.cs-sgc-stores__all { min-height: 40px !important; }
  body button.hp-popular__title { min-height: 44px !important; }
}

@media (max-width: 991px) {
  body .cs-dir-az-index__letters a { min-width: 40px !important; min-height: 40px !important; }
}

/* Search boxes: text sits in the vertical middle. A large line-height pushes it up in iOS Safari. */
body #heroStoreSearch,
body #hpStoreSearch,
body #searchresultHero,
body #customcouponsearch,
body #cpn-sidebar-store-search,
body input.select-selected,
body #otuBuyStoreSearchHero,
body #otuBuyStoreSearch,
body #cs-gcb-retailer-search,
body #c_storesearch {
  line-height: normal !important;
}
body #customcouponsearch { padding-left: 16px !important; }

/* All stores: the Results heading is not a letter tile */
body #as-letter-results h3 {
  width: auto !important;
  height: auto !important;
  background: none !important;
  color: inherit !important;
  padding: 0 !important;
}

/* All stores on phones: say what the icons are */
@media (max-width: 767px) {
  body .store-discount a[aria-label$=" gift cards"]::after,
  body .store-discount a[aria-label$=" coupons"]::after {
    margin-left: 4px;
    font: 600 11px/1 Montserrat, sans-serif;
  }
  body .store-discount a[aria-label$=" gift cards"]::after { content: "Gift cards"; }
  body .store-discount a[aria-label$=" coupons"]::after { content: "Coupons"; }
}

/* Store gift card page: selling is a tap away on phones and tablets */
.cs-bgc-sell-quick {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-weight: 600;
  color: #0f6be8;
  text-decoration: underline;
}
.sell_giftcard.cs-bgc-store-page .cs-bgc-sell-quick { order: 1 !important; }
body #allstore .allstore-content-block ul li.store-row .store-discount a:not(#x) { color: #15794a !important; }
