/* Store pages only. Conservative changes to retain parent theme click behavior. */
.tax-coupon_store .single-store-header .inner {padding: 22px 28px;}
.tax-coupon_store .single-store-header h1 {font-size:35px;line-height:1.16; margin-bottom:14px;}
.tax-coupon_store .couponerds-intro {font-size:15px;line-height:1.65;margin:0 0 10px;max-width:70ch;}
.tax-coupon_store .couponerds-offer-heading {font-size:25px;line-height:1.3;margin:14px 0 5px;}
.tax-coupon_store .couponerds-offer-summary {font-size:13px;color:#596970;margin:0 0 18px;}
.tax-coupon_store .couponerds-offer-description {font-size:13px;line-height:1.55;color:#4c5b60;margin:7px 12px 12px;clear:both;}
.tax-coupon_store .couponerds-store-information {margin:35px 0 25px;line-height:1.7;}
.tax-coupon_store .couponerds-store-information h2 {font-size:23px;margin-bottom:14px;}
.tax-coupon_store .coupon-item .coupon-title {line-height:1.4;}
.tax-coupon_store .coupon-item .coupon-button {min-height:42px;}
@media(max-width:767px){
 .tax-coupon_store .single-store-header .inner {padding:15px;}
 .tax-coupon_store .single-store-header h1 {font-size:27px;}
 .tax-coupon_store .couponerds-offer-heading {font-size:21px;}
 .tax-coupon_store .couponerds-store-information {margin-top:28px;}
}

/* Existing child theme components: restrained improvements */
.tax-coupon_store .cn-store-card .store-card-blurb {font-size:13px;line-height:1.6;}
.tax-coupon_store .couponerds-intro {max-width:65ch;}
.tax-coupon_store .couponerds-offer-description {overflow-wrap:anywhere;}
.tax-coupon_store .cn-header-signup {margin-top:12px;}
.tax-coupon_store .coupon-filter .offer-count {display:inline-block;min-width:1.3em;}
@media(max-width:767px){
 .tax-coupon_store .couponerds-intro {font-size:14px;}
}

/* ================================================================
   COUPONERDS - CLEAN COUPON CARDS
   Works with child-theme coupon markup v1.7 through v1.9.
   CSS only: preserve all existing coupon links and click handlers.
   ================================================================ */
.tax-coupon_store #coupon-listings-store .st-list-coupons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Allow cards to fill the primary column without inherited float/flex sizing. */
.tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item.store-listing-item {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 18px 20px !important;
  box-sizing: border-box;
  overflow: hidden;
}

/* Explicit grid overrides parent's flex row !important. */
.tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item.store-listing-item > .store-coupon {
  display: grid !important;
  grid-template-columns: minmax(0, 105px) minmax(0, 1fr) minmax(0, 150px) !important;
  align-items: center !important;
  justify-content: stretch !important;
  gap: 18px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* A coupon without a discount/image has just text and CTA. */
.tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item.no-thumb > .store-coupon {
  grid-template-columns: minmax(0, 1fr) minmax(0, 150px) !important;
}

.tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item .store-thumb-link {
  grid-column: 1;
  grid-row: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
.tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item .store-thumb-link .store-thumb {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  text-align: center;
}
.tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item .store-thumb.text-thumb .thumb-padding:not(.free_text):not(.shipping_text) {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 32px !important;
  font-weight: 750;
  line-height: 1.12 !important;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}
.tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item .store-thumb .offer_text {
  display: block;
  margin: 3px 0 0 !important;
  font-size: 13px !important;
  font-weight: 700;
  line-height: 1.2 !important;
  position: static !important;
}
.tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item .store-thumb img {
  max-width: 100%;
  max-height: 88px;
  width: auto;
  height: auto;
}

/* Middle column: remove parent width percentages and padding. */
.tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item .latest-coupon {
  grid-column: 2;
  grid-row: 1;
  display: block !important;
  float: none !important;
  flex: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  overflow: visible !important;
}
.tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item.no-thumb .latest-coupon {
  grid-column: 1;
}
.tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item .c-type,
.tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item .code_txt {
  font-size: 12px !important;
  line-height: 1.3 !important;
}
.tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item .coupon-title {
  margin: 5px 0 7px !important;
  padding: 0 !important;
  font-size: 17px !important;
  line-height: 1.35 !important;
  font-weight: 650;
  overflow-wrap: break-word;
}
.tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item .coupon-title a {
  overflow-wrap: break-word;
}
.tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item .couponerds-offer-description {
  clear: none !important;
  margin: 5px 0 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: #526168;
  overflow-wrap: break-word;
}

/* CTA column: fully reset the parent's 195px minimum width. */
.tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item .coupon-detail {
  grid-column: 3;
  grid-row: 1;
  display: block !important;
  float: none !important;
  flex: none !important;
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
}
.tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item.no-thumb .coupon-detail {
  grid-column: 2;
}
.tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item .coupon-button-type .coupon-button {
  position: relative !important;
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 12px 10px !important;
  box-sizing: border-box !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-transform: none !important;
  text-shadow: none !important;
  white-space: nowrap;
  border-radius: 7px !important;
  overflow: hidden;
}
/* The reveal overlay must be the same size as its button. */
.tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item .coupon-code .get-code {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 10px !important;
  box-sizing: border-box !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  text-shadow: none !important;
  white-space: nowrap;
  border-radius: 7px !important;
}
.tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item .coupon-code .get-code::after {
  display: none !important;
}
/* Clear-float helper is unnecessary inside CSS grid. */
.tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item > .store-coupon > .clear {
  display: none !important;
}

/* Tablet/small desktop: keep title readable, put CTA below it. */
@media (max-width: 1150px) {
  .tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item.store-listing-item > .store-coupon {
    grid-template-columns: 92px minmax(0, 1fr) !important;
    gap: 12px 15px !important;
  }
  .tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item.no-thumb > .store-coupon {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item .coupon-detail {
    grid-column: 2;
    grid-row: 2;
    width: min(185px, 100%) !important;
  }
  .tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item.no-thumb .coupon-detail {
    grid-column: 1;
  }
}
@media (max-width: 640px) {
  .tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item.store-listing-item {
    padding: 15px !important;
  }
  .tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item.store-listing-item > .store-coupon {
    grid-template-columns: 78px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: start !important;
  }
  .tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item.no-thumb > .store-coupon {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item .store-thumb.text-thumb .thumb-padding:not(.free_text):not(.shipping_text) {
    font-size: 26px !important;
  }
  .tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item .coupon-detail,
  .tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item.no-thumb .coupon-detail {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100% !important;
  }
  .tax-coupon_store #coupon-listings-store .st-list-coupons .coupon-item .coupon-title {
    font-size: 16px !important;
  }
}

.tax-coupon_store .couponerds-related-grid {display:flex; flex-wrap:wrap; gap:24px;}
.tax-coupon_store .couponerds-related-grid .couponerds-related-item {display:flex; flex-direction:column; align-items:center; gap:9px; text-align:center; text-decoration:none;}
.tax-coupon_store .couponerds-related-grid .couponerds-related-item span {font-size:13px; color:#355b61;}
@media (max-width:767px) {
 .tax-coupon_store .st-list-coupons .coupon-item .store-coupon {grid-template-columns:74px minmax(0,1fr);gap:12px;}
 .tax-coupon_store .st-list-coupons .coupon-item .store-thumb-link {grid-column:1; grid-row:1;}
 .tax-coupon_store .st-list-coupons .coupon-item .latest-coupon {grid-column:2;grid-row:1;}
 .tax-coupon_store .st-list-coupons .coupon-item .coupon-detail {grid-column:1 / -1; grid-row:2;}
}

/* v1.3: Accessible, readable store coupon filter tabs.
   Scoped to coupon_store archives to preserve other coupon filters. */
.tax-coupon_store #coupon-filter-bar {
  margin: 12px 0 22px;
  width: 100%;
}
.tax-coupon_store #coupon-filter-bar .filter-coupons-buttons {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}
.tax-coupon_store #coupon-filter-bar .coupons-types-wrap {
  float: none;
  width: 100%;
  margin: 0;
}
.tax-coupon_store #coupon-filter-bar .coupon-types-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.tax-coupon_store #coupon-filter-bar .coupon-types-list .store-filter-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  float: none;
  min-height: 40px;
  margin: 0;
  padding: 9px 14px !important;
  border: 1px solid #b4cdd0 !important;
  border-radius: 7px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #24535a !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  white-space: nowrap;
  /* The parent filter can show empty labels depending on its tab settings;
     use stable visual names while retaining the underlying links and counts. */
  font-size: 0 !important;
}
.tax-coupon_store #coupon-filter-bar .coupon-types-list .store-filter-button::before {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
  content: 'Offers';
}
.tax-coupon_store #coupon-filter-bar .coupon-types-list .store-filter-button[data-filter="all"]::before { content: 'All Offers'; }
.tax-coupon_store #coupon-filter-bar .coupon-types-list .store-filter-button[data-filter="code"]::before { content: 'Promo Codes'; }
.tax-coupon_store #coupon-filter-bar .coupon-types-list .store-filter-button[data-filter="sale"]::before { content: 'Deals'; }
.tax-coupon_store #coupon-filter-bar .coupon-types-list .store-filter-button[data-filter="print"]::before { content: 'Printable'; }
.tax-coupon_store #coupon-filter-bar .coupon-types-list .store-filter-button .offer-count {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  float: none !important;
  position: static;
  margin: 0 !important;
  padding: 2px 7px !important;
  min-width: 24px;
  min-height: 23px;
  border-radius: 5px !important;
  background: #e3eeee !important;
  color: #24535a !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
}
.tax-coupon_store #coupon-filter-bar .coupon-types-list .store-filter-button:hover,
.tax-coupon_store #coupon-filter-bar .coupon-types-list .store-filter-button:focus-visible {
  border-color: #377a80 !important;
  background: #f0f8f8 !important;
  color: #184c52 !important;
}
.tax-coupon_store #coupon-filter-bar .coupon-types-list .store-filter-button.current,
.tax-coupon_store #coupon-filter-bar .coupon-types-list .store-filter-button.active {
  border-color: #2e777d !important;
  background: #2e777d !important;
  color: #fff !important;
}
.tax-coupon_store #coupon-filter-bar .coupon-types-list .store-filter-button.current .offer-count,
.tax-coupon_store #coupon-filter-bar .coupon-types-list .store-filter-button.active .offer-count {
  background: #fff !important;
  color: #24535a !important;
}
.tax-coupon_store #coupon-filter-bar .coupon-types-list .store-filter-button:focus-visible {
  outline: 3px solid #85b5ba;
  outline-offset: 2px;
}
@media (max-width: 790px) {
  /* Use the same visible tabs on mobile instead of the tiny label dropdown. */
  .tax-coupon_store #coupon-filter-bar .coupon-types-list { display: flex !important; }
  .tax-coupon_store #coupon-filter-bar .couponlist-smallscreen-info { display: none !important; }
  .tax-coupon_store #coupon-filter-bar .coupon-types-list .store-filter-button {
    min-height: 42px;
    padding: 9px 12px !important;
  }
}

/* v1.4: Sidebar merchant homepage CTA and full-length store blurb. */
.tax-coupon_store .cn-store-card .cn-visit-website {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px 14px;
  margin: 4px 0 16px;
  box-sizing: border-box;
  border-radius: 6px;
  background: #2e777d;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}
.tax-coupon_store .cn-store-card .cn-visit-website:hover,
.tax-coupon_store .cn-store-card .cn-visit-website:focus-visible {
  background: #245e63;
  color: #fff;
}
.tax-coupon_store .cn-store-card .cn-visit-website:focus-visible {
  outline: 2px solid #245e63;
  outline-offset: 3px;
}
.tax-coupon_store .cn-store-card .store-card-blurb {
  overflow-wrap: anywhere;
  overflow: visible;
  max-height: none;
  line-height: 1.65;
}
.tax-coupon_store .cn-store-card .store-card-blurb p:last-child { margin-bottom: 0; }

/* v1.5: Sidebar email form, full-width even with parent header CSS. */
.tax-coupon_store #secondary #cnStoreSignup.cn-header-signup {
  display:block !important;
  position:static !important;
  float:none !important;
  clear:both;
  width:100% !important;
  max-width:100% !important;
  min-width:0;
  margin:24px 0 !important;
  padding:20px !important;
  background:#fff;
  border:1px solid rgba(105,144,145,.25);
  border-radius:12px;
  box-shadow:0 4px 12px rgba(17,65,66,.06);
  box-sizing:border-box;
  overflow-wrap:anywhere;
}
.tax-coupon_store #secondary #cnStoreSignup .cn-signup-heading {
  font-size:18px; line-height:1.3; margin:0 0 12px;
}
.tax-coupon_store #secondary #cnStoreSignup .cn-store-signup {
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  gap:12px;
  width:100% !important;
  max-width:100% !important;
  min-width:0;
  margin:0 !important;
  box-sizing:border-box;
}
.tax-coupon_store #secondary #cnStoreSignup .cn-store-signup input[type=email],
.tax-coupon_store #secondary #cnStoreSignup .cn-store-signup button,
.tax-coupon_store #secondary #cnStoreSignup .cn-store-signup input[type=submit] {
  display:block !important;
  float:none !important;
  flex:none !important;
  width:100% !important;
  min-width:0;
  max-width:100% !important;
  margin:0 !important;
  box-sizing:border-box;
}
.tax-coupon_store #secondary #cnStoreSignup .cn-store-signup input[type=email] {
  min-height:44px; padding:10px 12px;
  border:1px solid #ccdada; border-radius:6px;
}
.tax-coupon_store #secondary #cnStoreSignup .cn-store-signup button,
.tax-coupon_store #secondary #cnStoreSignup .cn-store-signup input[type=submit] {
  min-height:44px; padding:11px 12px;
  background:#2e777d; color:#fff; border:0; border-radius:6px;
  white-space:normal; font-size:14px; font-weight:600; cursor:pointer;
}
.tax-coupon_store #secondary #cnStoreSignup .cn-store-signup button:hover { background:#245e63; }
.tax-coupon_store #secondary #cnStoreSignup .cn-disclaimer {
  display:block; font-size:12px; line-height:1.5; color:#687b80;
}
@media(max-width:767px) {
  .tax-coupon_store #secondary #cnStoreSignup.cn-header-signup {
    display:block !important; margin-top:20px !important; padding:18px 15px !important;
  }
}

/* v1.6: Compact store heading; no redundant shadow-box hero. */
.tax-coupon_store .couponerds-compact-store-header {
  margin: 0 0 16px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}
.tax-coupon_store .couponerds-compact-store-header h1 {
  margin: 0 0 8px;
  font-size: clamp(23px, 2.5vw, 32px);
  line-height: 1.25;
}
.tax-coupon_store .couponerds-compact-store-header .couponerds-intro {
  max-width: 72ch;
  margin: 0 0 12px;
  line-height: 1.55;
}
.tax-coupon_store .couponerds-offer-heading { margin-top: 8px; }

/* v1.7: Dynamic badges immediately below the short store introduction. */
.tax-coupon_store .couponerds-compact-store-header .couponerds-inline-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 4px 0 16px;
  width: 100%;
  float: none;
  clear: both;
}
.tax-coupon_store .couponerds-compact-store-header .couponerds-inline-badges .cn-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 6px;
  white-space: normal;
  background: #eaf3f3;
  color: #285c62;
  border: 1px solid #d4e5e6;
}
@media (max-width: 767px) {
  .tax-coupon_store .couponerds-compact-store-header .couponerds-inline-badges {gap: 6px;}
  .tax-coupon_store .couponerds-compact-store-header .couponerds-inline-badges .cn-badge {font-size: 11px;}
}

/* Couponerds - Affiliate Disclosure Box */
.tax-coupon_store #cnAffDisclosure {
    display: block !important;
    background: #ffffff !important;
    border: 1px solid rgba(105, 144, 145, 0.25) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(17, 65, 66, 0.05) !important;

    padding: 12px 14px !important;
    margin: 12px 0 20px !important;

    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    font-size: 13px;
    line-height: 1.6;
    color: #2a2f30;
}
/* Spacing between masthead and store page content */
.tax-coupon_store .page-full-bg > #content-wrap {
    padding-top: 40px;
}

@media (max-width: 767px) {
    .tax-coupon_store .page-full-bg > #content-wrap {
        padding-top: 24px;
    }
}
/* Store-specific banner directly after sidebar email signup. */
.tax-coupon_store #secondary .couponerds-sidebar-banner {
    width: 100%;
    max-width: 100%;
    margin: 20px 0 28px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
}
.tax-coupon_store #secondary .couponerds-sidebar-banner a,
.tax-coupon_store #secondary .couponerds-sidebar-banner img {
    display: block;
    width: 100%;
    max-width: 100%;
}
.tax-coupon_store #secondary .couponerds-sidebar-banner img {
    height: auto;
    border-radius: 12px;
    object-fit: contain;
}
