/*
 * Discount Follow — store-page readability improvements.
 * Scoped to single store detail pages; other layouts are unaffected.
 * Added 2026-10-31. Loaded after site.css, typography.css and store-coupons.css.
 */
body.coupon-theme.single-cc_store {
  -webkit-font-smoothing: auto;
  text-rendering: auto;
}
body.coupon-theme.single-cc_store .store-content,
body.coupon-theme.single-cc_store .store-heading {
  color: #27333a;
}
body.coupon-theme.single-cc_store .store-about h2 {
  color: #15252c;
  font-size: clamp(26px, 2.5vw, 30px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
body.coupon-theme.single-cc_store .store-description,
body.coupon-theme.single-cc_store .store-description p,
body.coupon-theme.single-cc_store .store-description li,
body.coupon-theme.single-cc_store .store-about > p {
  color: #283740;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.83;
  letter-spacing: 0;
}
body.coupon-theme.single-cc_store .store-description p {
  margin-bottom: 19px !important;
}
body.coupon-theme.single-cc_store .store-description p:last-child {
  margin-bottom: 0 !important;
}
body.coupon-theme.single-cc_store .store-about .section-kicker,
body.coupon-theme.single-cc_store .store-offer-header .section-kicker {
  color: #08784c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
body.coupon-theme.single-cc_store .faq-item h3 {
  color: #1d3038;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}
body.coupon-theme.single-cc_store .faq-item p,
body.coupon-theme.single-cc_store .faq-item li {
  color: #304049;
  font-size: 16px;
  line-height: 1.78;
  font-weight: 400;
}
body.coupon-theme.single-cc_store .store-profile-text h1 {
  color: #14252b;
  font-weight: 700;
  line-height: 1.3;
}
body.coupon-theme.single-cc_store .store-profile-text > p {
  color: #304049;
  font-size: 17px;
  line-height: 1.72;
}
body.coupon-theme.single-cc_store .store-profile-badges,
body.coupon-theme.single-cc_store .result-count {
  color: #40564c;
  font-size: 14px;
}
body.coupon-theme.single-cc_store .store-offer-header h2 {
  color: #1b2c32;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.36;
}
body.coupon-theme.single-cc_store .store-coupon-title {
  color: #17282e;
  font-size: 18px;
  line-height: 1.5;
}
body.coupon-theme.single-cc_store .store-coupon-summary {
  color: #354840;
  font-size: 14px;
  line-height: 1.68;
  -webkit-line-clamp: 3;
}
body.coupon-theme.single-cc_store .store-coupon-meta,
body.coupon-theme.single-cc_store .store-coupon-details summary,
body.coupon-theme.single-cc_store .store-coupon-expires,
body.coupon-theme.single-cc_store .store-coupon-info {
  color: #38574b;
  font-size: 13px;
  line-height: 1.6;
}
body.coupon-theme.single-cc_store .store-coupon-details-body {
  color: #2e4037;
  font-size: 14px;
  line-height: 1.75;
}
body.coupon-theme.single-cc_store .store-coupon-action-caption {
  color: #496257;
  font-size: 12px;
}
body.coupon-theme.single-cc_store .sidebar-fact,
body.coupon-theme.single-cc_store .aside-tip p,
body.coupon-theme.single-cc_store .mini-store-link {
  color: #304139;
  font-size: 14px;
  line-height: 1.72;
}
body.coupon-theme.single-cc_store .sidebar-panel > h3 {
  color: #1b2e26;
  font-size: 19px;
}
@media (max-width: 740px) {
  body.coupon-theme.single-cc_store .store-about h2 {
    font-size: 25px;
    line-height: 1.32;
  }
  body.coupon-theme.single-cc_store .store-description,
  body.coupon-theme.single-cc_store .store-description p,
  body.coupon-theme.single-cc_store .store-description li,
  body.coupon-theme.single-cc_store .store-about > p {
    font-size: 16px;
    line-height: 1.8;
  }
  body.coupon-theme.single-cc_store .faq-item h3 {
    font-size: 18px;
  }
  body.coupon-theme.single-cc_store .faq-item p,
  body.coupon-theme.single-cc_store .faq-item li {
    font-size: 16px;
  }
  body.coupon-theme.single-cc_store .store-profile-text h1 {
    font-size: clamp(25px, 6.5vw, 31px);
  }
  body.coupon-theme.single-cc_store .store-profile-text > p {
    font-size: 16px;
  }
  body.coupon-theme.single-cc_store .store-offer-header h2 {
    font-size: 24px;
  }
  body.coupon-theme.single-cc_store .store-coupon-title {
    font-size: 16px;
  }
  body.coupon-theme.single-cc_store .store-coupon-summary {
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 4;
  }
  body.coupon-theme.single-cc_store .store-coupon-card {
    gap: 14px;
  }
}
@media (max-width: 390px) {
  body.coupon-theme.single-cc_store .store-coupon-title {
    font-size: 16px;
  }
  body.coupon-theme.single-cc_store .store-coupon-badge {
    font-size: 11px;
  }
}

/* Store coupon cards — compact offer-first design (2026-10-31).
   Editorial text rules above stay unchanged. */
body.coupon-theme.single-cc_store .store-coupon-list {
  gap: 15px;
}
body.coupon-theme.single-cc_store .store-coupon-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 148px;
  gap: 20px;
  align-items: center;
  min-height: 154px;
  padding: 18px 19px;
  border: 1px solid #dfe8e2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(26, 53, 39, 0.045);
}
body.coupon-theme.single-cc_store .store-coupon-card:hover {
  border-color: #a9dac2;
  box-shadow: 0 8px 23px rgba(22, 67, 44, 0.075);
  transform: none;
}
body.coupon-theme.single-cc_store .store-coupon-left {
  width: 112px;
  height: 111px;
  border-radius: 12px;
  background: #edf9f1;
  border: 1px solid #d0eadb;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
}
body.coupon-theme.single-cc_store .store-coupon-value {
  flex: 1;
  min-height: 0;
  padding: 10px 9px;
  color: #127049;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: break-word;
  text-wrap: balance;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.coupon-theme.single-cc_store .store-coupon-type {
  height: 25px;
  min-height: 25px;
  border-top: 1px solid #d4e9dd;
  background: #def3e8;
  color: #106743;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.065em;
}
body.coupon-theme.single-cc_store .store-coupon-card[data-offer-type="code"] .store-coupon-left {
  background: #fffaf0;
  border-color: #f0e1c6;
}
body.coupon-theme.single-cc_store .store-coupon-card[data-offer-type="code"] .store-coupon-value {
  color: #845b1b;
}
body.coupon-theme.single-cc_store .store-coupon-card[data-offer-type="code"] .store-coupon-type {
  color: #745216;
  background: #f9eccc;
  border-top-color: #eedcb3;
}
body.coupon-theme.single-cc_store .store-coupon-main {
  min-width: 0;
  align-self: center;
}
body.coupon-theme.single-cc_store .store-coupon-title {
  color: #142d25;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.42;
  margin: 0 0 7px;
  letter-spacing: -0.012em;
}
body.coupon-theme.single-cc_store .store-coupon-summary {
  color: #3d4e45;
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 8px !important;
  -webkit-line-clamp: 3;
}
body.coupon-theme.single-cc_store .store-coupon-meta {
  margin-top: 6px;
  gap: 8px 16px;
  color: #4a6255;
  font-size: 12px;
}
body.coupon-theme.single-cc_store .store-coupon-details summary {
  color: #0b744b;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 0;
}
body.coupon-theme.single-cc_store .store-coupon-expires,
body.coupon-theme.single-cc_store .store-coupon-info {
  color: #4d6558;
  font-size: 12px;
}
body.coupon-theme.single-cc_store .store-coupon-badges {
  margin: 7px 0 0;
  gap: 5px;
  align-items: center;
}
body.coupon-theme.single-cc_store .store-coupon-badge {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #657369;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
}
body.coupon-theme.single-cc_store .store-coupon-badge.badge-source::before {
  content: "";
  display: inline-block;
  vertical-align: 2px;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: #8fa99a;
}
body.coupon-theme.single-cc_store .store-coupon-badge.badge-verified {
  color: #116b45;
  font-weight: 700;
}
body.coupon-theme.single-cc_store .store-coupon-badge.badge-demo {
  color: #89601d;
}
body.coupon-theme.single-cc_store .store-coupon-details-body {
  padding: 12px 14px;
  border-color: #dcefe4;
  background: #f9fcfa;
  color: #2e4037;
  font-size: 13px;
  line-height: 1.75;
}
body.coupon-theme.single-cc_store .store-coupon-action {
  gap: 8px;
  align-self: center;
  min-width: 0;
}
body.coupon-theme.single-cc_store .store-coupon-reveal,
body.coupon-theme.single-cc_store .store-coupon-deal {
  height: 46px;
  min-height: 46px;
  border-radius: 9px;
  background: #17b978;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
}
body.coupon-theme.single-cc_store .store-coupon-reveal:hover,
body.coupon-theme.single-cc_store .store-coupon-deal:hover {
  background: #0d9660;
  color: #fff !important;
}
body.coupon-theme.single-cc_store .store-coupon-reveal b {
  height: 46px;
}
body.coupon-theme.single-cc_store .store-coupon-action-caption {
  color: #657469;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}
@media (max-width: 1100px) {
  body.coupon-theme.single-cc_store .store-coupon-card {
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 14px;
    padding: 15px;
  }
  body.coupon-theme.single-cc_store .store-coupon-left {
    width: 98px;
    height: 105px;
  }
  body.coupon-theme.single-cc_store .store-coupon-value {
    font-size: 15px;
  }
  body.coupon-theme.single-cc_store .store-coupon-action {
    grid-column: 2;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    border-top: none;
    padding-top: 0;
    margin-top: 3px;
  }
  body.coupon-theme.single-cc_store .store-coupon-reveal,
  body.coupon-theme.single-cc_store .store-coupon-deal {
    width: min(170px, 100%);
    flex: 0 0 auto;
  }
  body.coupon-theme.single-cc_store .store-coupon-action-caption {
    text-align: left;
  }
}
@media (max-width: 740px) {
  body.coupon-theme.single-cc_store .store-coupon-card {
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    padding: 14px;
  }
  body.coupon-theme.single-cc_store .store-coupon-left {
    width: 88px;
    height: 100px;
  }
  body.coupon-theme.single-cc_store .store-coupon-value {
    font-size: 14px;
    padding: 8px 5px;
  }
  body.coupon-theme.single-cc_store .store-coupon-type {
    font-size: 9px;
  }
  body.coupon-theme.single-cc_store .store-coupon-title {
    font-size: 16px;
    line-height: 1.45;
  }
  body.coupon-theme.single-cc_store .store-coupon-summary {
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
  }
  body.coupon-theme.single-cc_store .store-coupon-action {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #e9efe9;
    margin-top: 3px;
    padding-top: 12px;
  }
  body.coupon-theme.single-cc_store .store-coupon-reveal,
  body.coupon-theme.single-cc_store .store-coupon-deal {
    min-width: 145px;
    width: min(58%, 220px);
    flex: 0 1 auto;
    font-size: 13px;
  }
  body.coupon-theme.single-cc_store .store-coupon-action-caption {
    flex: 1;
    font-size: 11px;
    text-align: right;
  }
}
@media (max-width: 390px) {
  body.coupon-theme.single-cc_store .store-coupon-card {
    grid-template-columns: 75px minmax(0, 1fr);
    gap: 9px;
    padding: 11px;
  }
  body.coupon-theme.single-cc_store .store-coupon-left {
    width: 75px;
    height: 94px;
  }
  body.coupon-theme.single-cc_store .store-coupon-value {
    font-size: 12px;
    padding: 6px 3px;
  }
  body.coupon-theme.single-cc_store .store-coupon-title {
    font-size: 15px;
  }
  body.coupon-theme.single-cc_store .store-coupon-reveal,
  body.coupon-theme.single-cc_store .store-coupon-deal {
    min-width: 128px;
    width: 55%;
  }
}

/*
 * Mobile coupon card redesign — reference-inspired compact rows.
 * Desktop rules remain untouched. The existing Reveal Code and Get Deal
 * controls become accessible arrow tap targets on small screens.
 */
body.coupon-theme.single-cc_store .store-coupon-source-mobile {
  display: none;
}

@media (max-width: 740px) {
  body.coupon-theme.single-cc_store .store-main,
  body.coupon-theme.single-cc_store .store-offers,
  body.coupon-theme.single-cc_store .store-coupon-list {
    min-width: 0;
  }
  body.coupon-theme.single-cc_store .store-coupon-list {
    gap: 12px;
  }
  body.coupon-theme.single-cc_store .store-coupon-card {
    display: grid;
    grid-template-columns: 65px minmax(0, 1fr) 42px;
    grid-template-rows: auto;
    align-items: center;
    gap: 12px;
    min-height: 122px;
    padding: 14px 12px;
    background: #fff;
    border: 1px solid #e6eae6;
    border-radius: 13px;
    box-shadow: 0 3px 12px rgba(25, 42, 32, 0.075);
    overflow: visible;
  }
  body.coupon-theme.single-cc_store .store-coupon-left {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    width: 65px;
    height: 86px;
    border: 1px solid #e1e9e3;
    border-radius: 7px;
    background: #eef9f1;
  }
  body.coupon-theme.single-cc_store .store-coupon-value {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    padding: 7px 5px;
    text-align: center;
    overflow-wrap: anywhere;
    text-wrap: balance;
    color: #126d47;
  }
  body.coupon-theme.single-cc_store .store-coupon-type {
    height: 23px;
    min-height: 23px;
    width: 100%;
    padding: 0 2px;
    background: #cfeadd;
    color: #106744;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .025em;
    line-height: 1;
    text-align: center;
  }
  body.coupon-theme.single-cc_store .store-coupon-card[data-offer-type="code"] .store-coupon-left {
    border-color: #efe6c8;
    background: #fff9ea;
  }
  body.coupon-theme.single-cc_store .store-coupon-card[data-offer-type="code"] .store-coupon-type {
    background: #ffec8a;
    color: #6b4b00;
    border-color: #f3e2ad;
  }
  body.coupon-theme.single-cc_store .store-coupon-main {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-width: 0;
    width: 100%;
  }
  body.coupon-theme.single-cc_store .store-coupon-title {
    order: 0;
    color: #172421;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.42;
    letter-spacing: -0.01em;
    margin: 0;
    overflow-wrap: break-word;
    word-break: normal;
  }
  body.coupon-theme.single-cc_store .store-coupon-summary {
    display: none;
  }
  body.coupon-theme.single-cc_store .store-coupon-badges {
    order: -1;
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
    margin: 0;
    gap: 3px;
    align-items: center;
  }
  body.coupon-theme.single-cc_store .store-coupon-badge {
    display: inline-flex;
    border: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    color: #67766d;
    font-size: 10.5px;
    line-height: 1.35;
    font-weight: 500;
    letter-spacing: 0;
  }
  body.coupon-theme.single-cc_store .store-coupon-badge.badge-source::before {
    display: none;
  }
  body.coupon-theme.single-cc_store .store-coupon-source-long {
    display: none;
  }
  body.coupon-theme.single-cc_store .store-coupon-source-mobile {
    display: inline;
  }
  body.coupon-theme.single-cc_store .store-coupon-badge.badge-verified {
    padding: 3px 8px;
    background: #e6f5e9;
    color: #146344;
    border-radius: 4px;
    font-size: 10.5px;
  }
  body.coupon-theme.single-cc_store .store-coupon-meta {
    order: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 10px;
    padding: 0;
    margin: 1px 0 0;
    font-size: 11px;
    line-height: 1.35;
  }
  body.coupon-theme.single-cc_store .store-coupon-details {
    max-width: 100%;
  }
  body.coupon-theme.single-cc_store .store-coupon-details summary {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    border-radius: 5px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #37443f;
    background: #f0f2f1;
    white-space: nowrap;
  }
  body.coupon-theme.single-cc_store .store-coupon-details summary span {
    color: #159966;
    font-size: 13px;
  }
  body.coupon-theme.single-cc_store .store-coupon-details-body {
    width: 100%;
    border-radius: 7px;
    padding: 9px;
    font-size: 12px;
    line-height: 1.6;
  }
  body.coupon-theme.single-cc_store .store-coupon-expires {
    font-size: 10px;
    line-height: 1.4;
    color: #68766e;
  }
  body.coupon-theme.single-cc_store .store-coupon-action {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    min-width: 42px;
    height: auto;
    gap: 0;
    padding: 0;
    margin: 0;
    border: 0;
  }
  body.coupon-theme.single-cc_store .store-coupon-reveal,
  body.coupon-theme.single-cc_store .store-coupon-deal {
    position: relative;
    box-sizing: border-box;
    display: flex;
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    min-height: 46px;
    height: 100%;
    padding: 0;
    margin: 0;
    flex: 1 0 auto;
    justify-content: center;
    align-items: center;
    background: transparent !important;
    border: 0;
    border-radius: 6px;
    color: #12ae6f !important;
    font-size: 0;
    line-height: 0;
    box-shadow: none;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(18, 174, 111, .12);
  }
  body.coupon-theme.single-cc_store .store-coupon-reveal:hover,
  body.coupon-theme.single-cc_store .store-coupon-deal:hover,
  body.coupon-theme.single-cc_store .store-coupon-reveal:focus-visible,
  body.coupon-theme.single-cc_store .store-coupon-deal:focus-visible {
    background: #e8f7ef !important;
    color: #08784c !important;
    outline-offset: 2px;
  }
  body.coupon-theme.single-cc_store .store-coupon-reveal::after,
  body.coupon-theme.single-cc_store .store-coupon-deal::after {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-top: 3px solid currentColor;
    border-right: 3px solid currentColor;
    border-radius: 1px;
    transform: rotate(45deg);
    margin-right: 4px;
  }
  body.coupon-theme.single-cc_store .store-coupon-reveal > span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  body.coupon-theme.single-cc_store .store-coupon-reveal b,
  body.coupon-theme.single-cc_store .store-coupon-deal > span[aria-hidden] {
    display: none;
  }
  body.coupon-theme.single-cc_store .store-coupon-action-caption {
    display: none;
  }
  /* Filters stay on one line instead of wrapping unevenly to two rows. */
  body.coupon-theme.single-cc_store .store-main .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 5px;
    padding-bottom: 9px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  body.coupon-theme.single-cc_store .store-main .filter-bar button {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    border-radius: 7px;
    padding: 8px 10px;
  }
}
@media (max-width: 390px) {
  body.coupon-theme.single-cc_store .store-coupon-card {
    grid-template-columns: 57px minmax(0, 1fr) 38px;
    min-height: 111px;
    gap: 9px;
    padding: 12px 9px;
  }
  body.coupon-theme.single-cc_store .store-coupon-left {
    width: 57px;
    height: 78px;
  }
  body.coupon-theme.single-cc_store .store-coupon-value {
    font-size: 10.5px;
    padding: 5px 3px;
  }
  body.coupon-theme.single-cc_store .store-coupon-type {
    height: 21px;
    min-height: 21px;
    font-size: 8px;
  }
  body.coupon-theme.single-cc_store .store-coupon-title {
    font-size: 13.5px;
    line-height: 1.42;
  }
  body.coupon-theme.single-cc_store .store-coupon-action,
  body.coupon-theme.single-cc_store .store-coupon-reveal,
  body.coupon-theme.single-cc_store .store-coupon-deal {
    width: 38px;
    min-width: 38px;
    max-width: 38px;
  }
}

/* Compact phone labels without shortening the offer shown on desktop. */
body.coupon-theme.single-cc_store .store-coupon-value-short { display: none; }
@media (max-width: 740px) {
  body.coupon-theme.single-cc_store .store-coupon-value-full { display: none; }
  body.coupon-theme.single-cc_store .store-coupon-value-short {
    display: block;
    max-width: 100%;
    overflow-wrap: break-word;
  }
}

/* Astra scroll-to-top control can overlap coupon arrows on narrow phones. */
@media (max-width: 740px) {
  body.coupon-theme.single-cc_store #ast-scroll-top {
    display: none !important;
  }
}
