.is-text-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #242424;
  background: #faf8f0;
  border: 1px solid #eee;
  font-family: 'Interstate',Arial,sans-serif;
  font-weight: 700;
  padding: 10px;
}
.is-text-mark>span {
  font-size: 20px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.home-merchant-logo.is-text-mark>span {
  font-size: 20px;
}
.home-article h3 {
  margin-bottom: 22px!important;
}
.source-guide-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 28px;
  margin: 25px 0 55px;
}
.source-guide-card {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #ddd;
  padding-bottom: 24px;
  gap: 18px;
}
.source-guide-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.7;
  object-fit: cover;
}
.source-guide-card h2 {
  font: 700 23px/1.2 var(--serif);
  margin: 0;
}
.source-guide-card>span {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  min-height: 44px;
}
.source-guide-card .icon {
  width: 18px;
}
.source-article-image {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  margin: 20px 0 30px;
}
.source-article section {
  margin: 32px 0;
}
.source-article li {
  margin-bottom: 18px;
}
.source-article section>a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: underline;
}
.source-article .icon {
  width: 18px;
}
@media(max-width:800px) {
  .source-guide-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media(max-width:560px) {
  .source-guide-grid {
    grid-template-columns: 1fr;
  }
  .is-text-mark>span,
  .home-merchant-logo.is-text-mark>span {
    font-size: 18px;
  }
}
.home-merchant-logo.is-text-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffdf7;
}
.home-merchant-logo.is-text-mark>span {
  width: 100%;
  padding: 8px;
}
.merchant-mark.is-text-mark {
  padding: 4px;
}
.merchant-mark.is-text-mark>span {
  font-size: 16px;
  overflow-wrap: normal;
  word-break: normal;
}
.lab-row .merchant-mark.is-text-mark>span {
  font-size: 14px;
}

/* Subtle image edges across merchant and coupon surfaces. */
img.merchant-image {
  outline: 1px solid #ededed;
  outline-offset: -1px;
}

/* Shared expiry component for coupon cards and the homepage hero. */
.offer-expiry.offer-expiry {
  display: flex; align-items: center; gap: 5px;
  margin: 0 0 8px!important; padding: 0; background: transparent;
  color: #70757d; font: 400 12px/1.5 var(--sans);
}
.offer-expiry .icon { width: 14px; height: 14px; flex: 0 0 14px; }
.offer-expiry time { font: inherit; color: inherit; }
.hero-ticket-stub .offer-expiry { margin-bottom: 0!important; }

/* Compact category directory with a cooler icon surround. */
.category-grid.all-categories { gap: 24px 20px; }
.all-categories .category-item { gap: 8px; font: 600 14px/1.35 var(--sans); }
.all-categories .category-item .category-art { width: 96px; height: 96px; background: #edf3f7; }
.all-categories .category-art > .category-pictogram { width: 78px; height: 78px; }
.all-categories .category-item:hover .category-art { background: #e0eaf2; }
@media(max-width:700px) {
  .category-grid.all-categories { gap: 20px 12px; }
  .all-categories .category-item .category-art { width: 76px; height: 76px; }
  .all-categories .category-art > .category-pictogram { width: 64px; height: 64px; }
}

/* Shared inner-page coupon treatment. */
.compact-page .merchant-mark {
  height: auto;
  aspect-ratio: 1;
  border-radius: 0;
}
.compact-page .merchant-mark img {
  aspect-ratio: 1;
  object-fit: contain;
}
.compact-page .coupon-card.lab-row,
.compact-page .claim-card {
  position: relative;
  border: 1px solid #dedee2;
  border-radius: 10px;
}
.compact-page .coupon-card.lab-row::before,
.compact-page .coupon-card.lab-row::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 1px solid #dedee2;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  transform: translateY(-50%);
}
.compact-page .coupon-card.lab-row::before {left: -9px;border-left-color: transparent;clip-path: inset(0 0 0 8px);}
.compact-page .coupon-card.lab-row::after {right: -9px;border-right-color: transparent;clip-path: inset(0 8px 0 0);}
.compact-page .row-action {
  border-left: 1px dashed #dedee2;
  padding-left: 20px;
}
.compact-page .claim-button {
  background: #e8203d;
  border-color: #e8203d;
  border-radius: 5px;
  color: #fff;
}
.compact-page .claim-button:hover {background: #c61933;border-color: #c61933;}
.compact-page .claim-button[data-copied=true] {background: #28724b;border-color: #28724b;}
@media(max-width:700px) {
  .compact-page .row-action {
    border-left: 0;
    border-top: 1px dashed #dedee2;
    padding-left: 0;
    grid-template-columns: 1fr;
  }
}

/* Related stores: a compact, distinct discovery section. */
.compact-page .recommended-shops {
  padding: 22px;
  background: #edf3f7;
  border-radius: 10px;
}
.compact-page .recommended-shops h2 {margin: 0 0 18px;}
.compact-page .recommended-shops .shop-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}
.compact-page .recommended-shops .shop-card {
  padding: 12px;
  gap: 10px;
  min-height: 90px;
  border: 1px solid #e1e7eb;
  border-radius: 6px;
}
.compact-page .recommended-shops .merchant-mark {width: 60px;}
.compact-page .recommended-shops .shop-card-info {gap: 5px;}
.compact-page .recommended-shops .shop-card-info strong {
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.compact-page .recommended-shops .shop-card-info>span {font-size: 12px;color: #6a7078;}
.compact-page .recommended-shops .shop-card-arrow {display: none;}
.compact-page .recommended-shops .shop-card:hover {border-color: #b5c9d6;box-shadow: none;}
@media(max-width:1100px) {
  .compact-page .recommended-shops .shop-grid {grid-template-columns: repeat(2,minmax(0,1fr));}
}
@media(max-width:700px) {
  .compact-page .recommended-shops {padding: 16px 12px;}
  .compact-page .recommended-shops .shop-card {flex-direction: column;text-align: center;padding: 12px 8px;gap: 8px;}
  .compact-page .recommended-shops .merchant-mark {width: 64px;}
  .compact-page .recommended-shops .shop-card-info {width: 100%;}
}

/* Compact mobile offer lists. */
@media(max-width:700px) {
  .compact-page .related-coupons>h2,
  .compact-page .recommended-shops>h2 {
    font-size: 21px;
    line-height: 1.2;
    margin-bottom: 14px;
  }
  .compact-page .coupon-card.lab-row {
    grid-template-columns: 56px minmax(0,1fr) auto;
    gap: 8px 12px;
    padding: 14px;
  }
  .compact-page .lab-row .row-storemark {grid-column: 1;grid-row: 1/3;}
  .compact-page .lab-row .merchant-mark {width: 56px;height: 56px;}
  .compact-page .lab-row .row-copy {display: contents;}
  .compact-page .lab-row .row-merchant {grid-column: 2/-1;font-size: 12px;margin: 0;}
  .compact-page .lab-row .row-kind {grid-column: 2/-1;margin: 0;align-self: end;font-size: 9px;}
  .compact-page .lab-row h3 {grid-column: 2/-1;margin: 0;font-size: 15px;line-height: 1.35;}
  .compact-page .lab-row .offer-expiry {grid-column: 1/3;grid-row: auto;margin: 2px 0 0!important;font-size: 11px;align-self: center;}
  .compact-page .lab-row .row-action {
    grid-column: 3; padding: 0;border: 0;display: flex;
  }
  .compact-page .lab-row .claim-button {min-height: 40px;font-size: 12px;padding: 8px 12px;gap: 5px;}
  .compact-page .lab-rows {gap: 10px;}
}

/* Lighter logo frame and a compact store-link affordance. */
.compact-page .recommended-shops .merchant-mark {border: 1px solid #f0f1f2;}
.compact-page .recommended-shops .merchant-image {outline: none;border: 0;}
.compact-page .recommended-shops .shop-card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: #f3f5f6;
  color: #727b84;
}
.compact-page .recommended-shops .shop-card-arrow svg {width: 14px;height: 14px;}
.compact-page .recommended-shops .shop-card:hover .shop-card-arrow {background: #e8edf0;color: #424b54;}
@media(max-width:700px) {
  .compact-page .recommended-shops .shop-card {position: relative;padding-bottom: 12px;}
  .compact-page .recommended-shops .shop-card-arrow {display: none;}
}

.sidebar-categories>a {min-width: 0;}
.sidebar-categories>a>span:last-child {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Quiet offer-type badges; omit secondary labels on small screens. */
.compact-page .row-kind {
  display: inline-block;
  width: fit-content;
  padding: 4px 7px;
  margin: 0 0 8px;
  border-radius: 4px;
  background: #f1f3f5;
  color: #626b75;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .4px;
}
@media(max-width:700px) {
  .compact-page .row-kind {display: none;}
  .compact-page .lab-row .row-storemark {grid-row: 1;}
  .compact-page .lab-row h3 {align-self: center;}
}

/* Tighter vertical rhythm in desktop offer rows. */
@media(min-width:701px) {
  .compact-page .coupon-card.lab-row {padding-top: 14px;padding-bottom: 14px;}
  .compact-page .lab-row .row-kind {margin-bottom: 5px;}
  .compact-page .lab-row h3 {margin-top: 0;margin-bottom: 8px;}
  .compact-page .lab-row .offer-expiry {margin-bottom: 0!important;}
}

.compact-page .coupon-sidebar>section {border-radius: 10px;}

/* Keep the claim focused on the offer and its actions. */
.compact-page .claim-layout {padding: 20px 24px;}
.compact-page .claim-copy h1 {margin: 4px 0 10px;}
.compact-page .claim-copy .expiry {margin-bottom: 0;}
.compact-page .claim-action {gap: 8px;}
.compact-page .claim-action .masked-code {height: 36px;}
.compact-page .claim-action .claim-status:empty {display: none;}
.compact-page .claim-action>a.external-deal:not(.claim-button) {
  align-self: center;font-size: 12px;line-height: 20px;text-decoration: underline;
}
@media(max-width:700px) {
  .compact-page .claim-layout {padding: 16px;gap: 12px;}
  .compact-page .claim-action {padding-top: 12px;}
}

.info-article .trust-section {margin: 28px 0;max-width: 760px;}
.info-article .trust-section h2 {font-size: 22px;line-height: 1.3;margin: 0 0 10px;}
.info-article .trust-section p {font-size: 16px;line-height: 1.8;margin: 0;color: #4d5158;}
@media(max-width:700px) {
  .info-article .trust-section {margin: 24px 0;}
  .info-article .trust-section h2 {font-size: 20px;}
  .info-article .trust-section p {font-size: 15px;line-height: 1.7;}
}

/* Mobile coupon balance: equal-weight header, quiet metadata and compact action. */
@media(max-width:700px) {
  .compact-page .coupon-card.lab-row {grid-template-columns: 64px minmax(0,1fr) auto;gap: 10px 12px;padding: 12px;align-items: center;}
  .compact-page .lab-row .row-storemark {grid-column: 1;grid-row: 1;align-self: center;}
  .compact-page .lab-row .merchant-mark {width: 64px;height: 64px;border: 1px solid #f0f1f2;}
  .compact-page .lab-row .merchant-image {outline: none;}
  .compact-page .lab-row .row-kind,
  .compact-page .lab-row .row-merchant {display: none;}
  .compact-page .lab-row h3 {grid-column: 2/-1;grid-row: 1;align-self: center;font-size: 14px;line-height: 1.4;font-weight: 650;}
  .compact-page .lab-row .offer-expiry {grid-column: 1/3;grid-row: 2;margin: 0!important;font-size: 11px;line-height: 1.4;gap: 5px;}
  .compact-page .lab-row .offer-expiry .icon {width: 12px;height: 12px;}
  .compact-page .lab-row .row-action {grid-column: 3;grid-row: 2;justify-self: end;align-self: center;}
  .compact-page .lab-row .claim-button {min-height: 34px;padding: 6px 10px;font-size: 12px;line-height: 1.3;gap: 5px;}
  .compact-page .lab-row .claim-button .icon {width: 13px;height: 13px;}
  .compact-page .related-coupons>h2 {font-size: 20px;line-height: 1.25;}
}

/* The secondary store directory needs a full text column on phones. */
@media(max-width:700px) {
  .compact-page .coupon-sidebar>section {padding: 14px;}
  .compact-page .coupon-sidebar h2 {font-size: 22px;line-height: 1.25;margin-bottom: 12px;}
}

@media(min-width:701px) {
  .compact-page .claim-copy h1 {font-size: 24px;line-height: 1.4;}
  .compact-page .recommended-shops .shop-card-info strong {font-size: 16px;line-height: 1.35;}
}

/* Keep the type tabs separate from the offer list after removing extra filters. */
.lab-listing .coupons-filter-bar {margin-bottom: 18px;}

/* Let detail and listing offer titles fill each line naturally. */
.compact-page .claim-copy h1,
.compact-page .lab-row h3 {text-wrap: wrap;}

.info-article .contact-email a {
  color: #c91e39;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

/* Consistent, compact spacing for the store directory. */
.stores-directory-page {padding-top: 28px;padding-bottom: 40px;}
.stores-directory-page .page-intro {padding: 0;margin: 0 0 22px;}
.stores-directory-page .page-intro h1 {margin: 0 0 8px;}
.stores-directory-page .page-intro p {margin: 0;}
.stores-directory-page .store-search {margin: 6px 0 20px;}
.stores-directory-page .store-directory {gap: 16px;}
.stores-directory-page > .pagination,
body[data-page="coupons"] .coupon-main > .pagination {margin-top: 20px;}
.stores-directory-page .directory-card {padding: 18px 14px;border-radius: 8px;gap: 0;}
.stores-directory-page .directory-card .merchant-mark {width: 72px;height: 72px;margin-bottom: 12px;border: 1px solid #eee;flex-shrink: 0;}
.stores-directory-page .directory-card .merchant-image {width: 100%;height: 100%;margin: 0;border: 0;border-radius: 0;outline: none;}
.stores-directory-page .directory-card h2 {font-size: 15px;line-height: 1.4;margin: 0 0 6px;text-wrap: wrap;}
.stores-directory-page .directory-card>span:last-child {font-size: 12px;line-height: 1.4;}
@media(max-width:700px) {
  .stores-directory-page {padding-top: 20px;padding-bottom: 28px;}
  .stores-directory-page .page-intro {margin-bottom: 18px;}
  .stores-directory-page .page-intro h1 {font-size: 28px;}
  .stores-directory-page .store-search {margin-bottom: 16px;}
  .stores-directory-page .store-directory {gap: 12px;}
  .stores-directory-page .directory-card {padding: 10px;}
  .stores-directory-page .directory-card .merchant-mark {width: 80px;height: 80px;margin-bottom: 10px;}
  .stores-directory-page .directory-card h2 {font-size: 14px;margin-bottom: 4px;}
}

/* Separate merchant content and sidebar from the compact header. */
body[data-page="store"] #main > .lab-shell {padding-top: 15px;}

/* Related and store offers: logo, full copy and a compact arrow action share one row. */
@media(max-width:700px) {
  .compact-page .coupon-card.lab-row:is(.related-row, .store-offer-row) {grid-template-columns: 72px minmax(0,1fr) 32px;gap: 8px;padding: 12px;}
  .compact-page :is(.related-row, .store-offer-row) .row-storemark {grid-column: 1;grid-row: 1;}
  .compact-page :is(.related-row, .store-offer-row) .merchant-mark {width: 72px;height: 72px;}
  .compact-page :is(.related-row, .store-offer-row) .row-copy {display: block;grid-column: 2;grid-row: 1;min-width: 0;}
  .compact-page :is(.related-row, .store-offer-row) h3 {margin: 0 0 6px;font-size: 16px;line-height: 1.4;}
  .compact-page :is(.related-row, .store-offer-row) h3 a {display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 2;overflow: hidden;}
  .compact-page :is(.related-row, .store-offer-row) .offer-expiry {font-size: 12px;gap: 4px;flex-wrap: wrap;}
  .compact-page :is(.related-row, .store-offer-row) .row-action {grid-column: 3;grid-row: 1;align-self: center;}
  .compact-page :is(.related-row, .store-offer-row) .claim-button {width: 32px;height: 32px;min-width: 32px;min-height: 32px;padding: 0;gap: 0;border-radius: 8px;}
  .compact-page :is(.related-row, .store-offer-row) .claim-button .icon {width: 16px;height: 16px;}
  .compact-page :is(.related-row, .store-offer-row) .claim-button-label {position: absolute;width: 1px;height: 1px;padding: 0;margin: -1px;overflow: hidden;clip: rect(0,0,0,0);white-space: nowrap;border: 0;}
}

/* Mobile sidebar stores: three columns with logos filling available space. */

/* Keep merchant logos to one frame, without an image outline doubling it. */
.compact-page .lab-row .merchant-mark {
  border: 1px solid #ededed;
  outline: none;
  box-shadow: none;
}
.compact-page .lab-row .merchant-image {
  border: 0;
  outline: none;
  box-shadow: none;
}

@media (max-width: 700px) {
  .compact-page .claim-copy h1 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
}

/* Give stacked mobile modules one consistent heading hierarchy. */
@media (max-width: 700px) {
  .compact-page .related-coupons > h2,
  .compact-page .recommended-shops > h2,
  .compact-page .coupon-sidebar > section > h2 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.5px;
    margin: 0 0 16px;
    text-wrap: wrap;
  }
}

@media (max-width: 700px) {
  .compact-page .coupon-card.lab-row.related-row {grid-template-columns: 80px minmax(0,1fr) 32px;}
  .compact-page .related-row .merchant-mark {width: 80px;height: 80px;}
}

.compact-page .claim-copy .expiry {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}
.compact-page .claim-copy .expiry .icon {
  display: block;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin: 0;
  align-self: center;
}
.compact-page .claim-copy .expiry > span {display: block;}

/* Keep every store and coupon logo consistently rounded across layouts. */
.merchant-mark,
.home-merchant-logo,
img.merchant-image {
  border-radius: 2px !important;
}
.merchant-mark,
.home-merchant-logo {
  overflow: hidden;
}

/* Detail actions have a stronger resting state without distracting motion. */
.compact-page .claim-action .claim-button {
  min-height: 46px;
  padding: 9px 16px;
  gap: 10px;
  border: 1px solid #d71936;
  border-radius: 8px;
  background: linear-gradient(180deg, #f52d4b 0%, #df1737 100%);
  box-shadow: 0 3px 0 #bb1230, 0 5px 12px rgb(223 23 55 / 18%), inset 0 1px 0 rgb(255 255 255 / 22%);
  font-size: 16px;
  font-weight: 600;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}
.compact-page .claim-action .claim-button .icon {
  width: 28px;
  height: 28px;
  padding: 5px;
  box-sizing: border-box;
  border-radius: 6px;
  background: rgb(255 255 255 / 16%);
}
.compact-page .claim-action .claim-button:hover {filter: brightness(.96);}
.compact-page .claim-action .claim-button:active {
  transform: translateY(2px) scale(.98);
  box-shadow: 0 1px 0 #bb1230, inset 0 1px 0 rgb(255 255 255 / 15%);
}
.compact-page .claim-action .claim-button[data-copied=true] {
  background: linear-gradient(180deg, #32865a, #246d46);
  border-color: #246d46;
  box-shadow: 0 3px 0 #195335, 0 5px 12px rgb(36 109 70 / 16%);
}
.compact-page .claim-action .claim-button:disabled {
  background: #777;
  border-color: #777;
  box-shadow: none;
  filter: none;
}
@media(prefers-reduced-motion:reduce) {
  .compact-page .claim-action .claim-button {transition: none;}
  .compact-page .claim-action .claim-button:active {transform: none;}
}

.guide-detail-layout {display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:40px;align-items:start;padding-top:32px;padding-bottom:48px;}
.guide-detail-layout .source-article {width:100%;max-width:none;margin:0;min-width:0;}
.guide-related {padding:20px;border:1px solid #e4e5e8;border-radius:10px;}
.guide-related>h2 {font:700 26px/1.2 var(--serif);margin:0 0 20px;}
.guide-related-grid {display:grid;gap:24px;}
.guide-related .source-guide-card {gap:12px;padding-bottom:20px;min-width:0;}
.guide-related .source-guide-card:last-child {padding-bottom:0;border-bottom:0;}
.guide-related .source-guide-card img {aspect-ratio:16/9;border-radius:6px;}
.guide-related .source-guide-card h2 {font:700 17px/1.4 var(--sans);}
.guide-related .source-guide-card>span {font-size:13px;min-height:28px;color:#d71936;}
@media(max-width:900px) {
  .guide-detail-layout {grid-template-columns:minmax(0,1fr);gap:32px;}
  .guide-related-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:540px) {
  .guide-detail-layout {padding-top:20px;}
  .guide-related {padding:16px;}
  .guide-related>h2 {font-size:22px;}
  .guide-related-grid {grid-template-columns:minmax(0,1fr);}
}

/* A brief, soft sheen followed by a quiet pause. */
.claim-button {position:relative;overflow:hidden;isolation:isolate;}
.claim-button::after {
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  background:linear-gradient(110deg,transparent 30%,rgb(255 255 255 / 8%) 40%,rgb(255 255 255 / 30%) 50%,rgb(255 255 255 / 8%) 60%,transparent 70%);
  transform:translateX(-130%);
  animation:claim-button-sheen 4.5s ease-in-out infinite;
}
@keyframes claim-button-sheen {
  0%,12% {transform:translateX(-130%);}
  38%,100% {transform:translateX(130%);}
}
.claim-button:disabled::after,
.claim-button[aria-disabled="true"]::after,
.claim-button[data-copied="true"]::after {display:none;}
@media(prefers-reduced-motion:reduce) {
  .claim-button::after {display:none;animation:none;}
}

/* Shared merchant identity label for offer cards and offer details. */
.merchant-label {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #4a5057;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.merchant-label-name {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: #656b73;
  text-transform: none;
  letter-spacing: normal;
}

/* Highlight shared coupon rows without moving their contents. */
.compact-page .coupon-card.lab-row {
  transition: border-color .18s ease, box-shadow .18s ease;
}
.compact-page .coupon-card.lab-row::before,
.compact-page .coupon-card.lab-row::after {
  transition: border-color .18s ease;
}
@media (hover: hover) and (pointer: fine) {
  .compact-page .coupon-card.lab-row:hover {
    border-color: #ed1b3a;
    box-shadow: 0 4px 14px rgb(201 30 53 / 9%);
  }
  .compact-page .coupon-card.lab-row:hover::before {
    border-color: #ed1b3a;
    border-left-color: transparent;
  }
  .compact-page .coupon-card.lab-row:hover::after {
    border-color: #ed1b3a;
    border-right-color: transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .compact-page .coupon-card.lab-row,
  .compact-page .coupon-card.lab-row::before,
  .compact-page .coupon-card.lab-row::after { transition: none; }
}

/* Sidebar store gallery: two-column, logo-only links. */
/* Store names overlay the logo; pointer hover reveals the full image. */

/* Popular coupon recommendations: one readable offer per row. */
.compact-page .coupon-sidebar > section.popular-coupons { padding: 16px 12px; }
.compact-page .popular-coupons-list { display: grid; gap: 10px; }
.compact-page .popular-coupon { display: grid; grid-template-columns: 64px minmax(0, 1fr) 10px; align-items: center; gap: 8px; padding: 10px 8px; border: 1px solid #ededf0; border-radius: 8px; background: #fff; color: #202124; text-decoration: none; transition: border-color .18s, background-color .18s; }
.compact-page .popular-coupon-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 5px; background: #fff; }
.compact-page .popular-coupon-copy { min-width: 0; display: grid; gap: 6px; }
.compact-page .popular-coupon-title { font-size: 14px; line-height: 1.45; font-weight: 600; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.compact-page .popular-coupon-arrow { align-self: center; color: #737982; display: flex; justify-content: center; }
.compact-page .popular-coupon-arrow svg { width: 12px; height: 12px; }
.compact-page .popular-coupon:hover .popular-coupon-arrow { color: #ac1d37; }
@media (max-width: 700px) {
  .compact-page .popular-coupon-title { font-size: 16px; -webkit-line-clamp: 2; }
}
.compact-page .popular-coupon:hover { border-color: #e42046; background: #fffafb; }
.compact-page .popular-coupon:focus-visible { outline: 2px solid #c91d3d; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .compact-page .popular-coupon { transition: none; } }

/* Shared hover tint for related deals and merchant offer cards. */
.compact-page .coupon-card.lab-row:is(.related-row, .store-offer-row) {
  transition: border-color .18s ease, background-color .18s ease;
}
@media (hover: hover) and (pointer: fine) {
  .compact-page .coupon-card.lab-row:is(.related-row, .store-offer-row):hover {
    background-color: #fffafb;
  }
}
@media (prefers-reduced-motion: reduce) {
  .compact-page .coupon-card.lab-row:is(.related-row, .store-offer-row) { transition: none; }
}

.compact-page .popular-coupons-heading { display: flex; align-items: center; gap: 8px; }
.compact-page .popular-coupons-heading-icon { width: 18px; height: 18px; flex: 0 0 18px; color: #d51e3c; transform: rotate(-10deg); }

.compact-page .sidebar-category-heading { display: flex; align-items: center; gap: 8px; }
.compact-page .sidebar-category-heading-icon { width: 18px; height: 18px; flex: 0 0 18px; color: #d51e3c; }

/* Numbered recommendations retain the source feed order. */
.compact-page .popular-coupon { position: relative; }
.compact-page .popular-coupon-rank { position: absolute; top: 5px; left: 4px; z-index: 1; display: grid; place-items: center; width: 20px; height: 25px; padding-bottom: 4px; border: 0; border-radius: 3px 3px 0 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); background: #e9edf2; color: #566171; font: 700 11px/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.compact-page .popular-coupon.is-top-ranked:nth-child(1) .popular-coupon-rank { background: #d51e3c; color: #fff; }
.compact-page .popular-coupon.is-top-ranked:nth-child(2) .popular-coupon-rank { background: #ffb29b; color: #74301d; }
.compact-page .popular-coupon.is-top-ranked:nth-child(3) .popular-coupon-rank { background: #f5d684; color: #654a12; }
.compact-page .popular-coupon.is-top-ranked { border-color: #f0dce1; }

.compact-page .popular-coupon.is-top-ranked:first-child { background-color: #fff8fa; }
.compact-page .popular-coupon.is-top-ranked:first-child:hover { background-color: #fff0f4; }

/* Keep the sidebar category grid complete on each layout. */
.compact-page .sidebar-categories > a[href="/categories/services"] { display: none; }
@media (min-width: 701px) {
  .compact-page .sidebar-categories > a[href="/categories/health"] { display: none; }
}
.is-card-clickable {
  cursor: pointer;
}
