/*
Theme Name: CouponSite
Description: Lightweight, no-frills, mobile-optimized coupon theme.
Version: 1.0
Author: Custom Build
Text Domain: couponsite
*/

:root {
  --ext-bg:          #f6f5fb;
  --ext-ink:         #211a35;
  --ext-accent:      #6c4fd1;
  --ext-accent-dark: #5a3fb8;
  --ext-accent-soft: #d8cdf5;
  --ext-cta:         #ffcb3d;
  --ext-cta-dark:    #e6b730;
  --ext-cta-ink:     #211a35;
  --ext-muted:       #6e6680;
  --ext-border:      #e1ddf0;
  --ext-success:     #2f9e63;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--ext-bg);
    color: var(--ext-ink);
    display: flex;
    flex-direction: column;
    align-items: center;
}

main {
    width: 100%;
    max-width: 820px;
    padding: 1rem;
    box-sizing: border-box;
}

a {
    color: var(--ext-ink);
    text-decoration: none;
}

header {
    padding: 1rem;
    background: #fff;
    border-bottom: 1px solid var(--ext-border);
    width: 100%;
    max-width: 820px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--ext-accent);
}

.header-search {
    position: relative;
    top: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    padding-right: 0.75rem;
}

.store-search-wrap {
    position: relative;
    margin: 0;
    width: 240px;
}

.store-search-input {
    width: 100%;
    padding: 0.32rem 0.8rem;
    border: 1px solid var(--ext-border);
    border-radius: var(--btn-radius);
    font-size: 0.85rem;
    color: var(--ext-ink);
    background: var(--ext-bg);
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.store-search-input:focus {
    outline: none;
    border-color: var(--ext-accent);
    box-shadow: 0 0 0 3px var(--ext-accent-soft);
}

.store-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    margin: 0;
    padding: 0.4rem;
    list-style: none;
    background: #fff;
    border: 1px solid var(--ext-border);
    border-radius: var(--btn-radius);
    box-shadow: 0 8px 24px rgba(33, 26, 53, 0.12);
    z-index: 50;
}

.store-search-results li + li {
    margin-top: 2px;
}

.store-search-results a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.5rem;
    border-radius: var(--btn-radius);
    color: var(--ext-ink);
    font-size: 0.9rem;
}

.store-search-results a:hover,
.store-search-results a.is-highlighted {
    background: var(--ext-bg);
}

.store-search-results img {
    width: 28px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.store-search-empty {
    padding: 0.5rem;
    font-size: 0.85rem;
    color: var(--ext-muted);
}

.header-menu {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0.4rem;
    margin: 0;
    color: var(--ext-muted);
    cursor: pointer;
    line-height: 0;
}

.menu-toggle:hover {
    color: var(--ext-accent);
}

.header-menu.is-open .menu-toggle {
    color: var(--ext-accent);
}

.top-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--ext-border);
    border-radius: var(--btn-radius);
    box-shadow: 0 8px 24px rgba(33, 26, 53, 0.12);
    padding: 0.4rem;
    z-index: 60;
}

.header-menu.is-open .top-nav {
    display: block;
}

.top-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-menu a {
    display: block;
    padding: 0.5rem 0.6rem;
    border-radius: calc(var(--btn-radius) - 4px);
    color: var(--ext-muted);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
}

.top-menu a:hover {
    color: var(--ext-accent);
    background: var(--ext-bg);
}

@media (max-width: 640px) {
    .header-bar {
        padding: 0.75rem;
        row-gap: 0.6rem;
    }

    .logo {
        order: 1;
        font-size: 1.15rem;
    }

    .header-menu {
        order: 2;
    }

    .header-search {
        top: 0;
        order: 3;
        flex: 1 1 100%;
        margin-left: 0;
        padding-right: 0;
    }

    .store-search-wrap {
        width: 100%;
    }
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    background: transparent;
}

.store-grid a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px; /* Fixed width for the canvas */
    height: 60px; /* Fixed height for the canvas */
    border: 1px solid var(--ext-border);
    background: #fff;
    border-radius: 4px;
}

.store-grid img {
    max-width: 90%; /* Allow image to shrink within the canvas */
    max-height: 90%; /* Allow image to shrink within the canvas */
    object-fit: contain;
    padding: 0; /* Remove padding from image itself */
}

.coupons {
}

.store-hotness {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.75rem;
}
.store-hotness__label {
    font-size: 0.7em;
    font-weight: 200;
    color: var(--ext-ink);
}
.store-hotness__bar {
    display: inline-flex;
    gap: 3px;
}
.store-hotness__segment {
    width: 14px;
    height: 6px;
    border-radius: 3px;
    /* Default = yellow. Covers Cold (both segments) and the first segment
       of Warm; the rules below override the second segment for Warm and
       both segments for Hot -- a 3-step yellow->yellow/green->green
       progression, not an empty/filled meter. */
    background: var(--ext-cta);
}
.store-hotness--warm .store-hotness__segment:last-child {
    background: var(--ext-success);
}
.store-hotness--hot .store-hotness__segment {
    background: var(--ext-success);
}
/* Note: .info-icon:hover/:focus .info-tooltip (higher specificity) always
   forces display:block on this element, so layout below relies on block
   stacking + margins, not flex-column, even though the base state is a
   flex row (see .hotness-tooltip__row). */
.info-tooltip--hotness {
    max-width: 220px;
}
.hotness-tooltip__intro {
    display: block;
    margin-bottom: 0.5rem;
}
.hotness-tooltip__row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
}
.hotness-tooltip__row:last-child {
    margin-bottom: 0;
}
.hotness-tooltip__bar {
    display: inline-flex;
    gap: 3px;
    flex-shrink: 0;
}
.hotness-tooltip__segment {
    width: 14px;
    height: 6px;
    border-radius: 3px;
    background: var(--ext-cta);
}
.hotness-tooltip__bar--warm .hotness-tooltip__segment:last-child {
    background: var(--ext-success);
}
.hotness-tooltip__bar--hot .hotness-tooltip__segment {
    background: var(--ext-success);
}

.coupon {
    background: #fff;
    border: 1px solid var(--ext-border);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(33, 26, 53, 0.07);
}
.coupon.featured-coupon {
    border-top: 4px solid var(--ext-cta);
    border-right: 1px solid var(--ext-border);
    border-bottom: 1px solid var(--ext-border);
    border-left: 1px solid var(--ext-border);
}

.coupon-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.coupon-title a {
    color: var(--ext-ink);
    transition: color 0.15s ease;
}
.coupon-title a:hover {
    color: var(--ext-accent);
}

.top-label {
    display: inline-block;
    background: var(--ext-cta);
    color: var(--ext-cta-ink);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
}
.top-label--recent {
    background: #b62443;
    color: #fff;
}
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    height: 1.1em;
    margin-left: 0.3em;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    color: inherit;
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    position: relative;
    vertical-align: middle;
}
.info-icon .info-tooltip {
    display: none;
    position: absolute;
    bottom: 135%;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 220px;
    padding: 0.5rem 0.7rem;
    background: var(--ext-ink);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.35;
    border-radius: 6px;
    z-index: 10;
    text-align: left;
}
.info-icon:hover .info-tooltip,
.info-icon:focus .info-tooltip {
    display: block;
}

.coupon-desc {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* ============================================================
   BUTTON DESIGN — v1 (original, separate teaser)
   To restore: uncomment this block, comment out v2 below
   ============================================================
:root { --btn-y: .8rem; --btn-x: 2.5rem; }
.btn { display:inline-flex; align-items:center; justify-content:center; background:#f4622a; color:#fff; padding:0 var(--btn-x); height:calc(2 * var(--btn-y) + 1em); line-height:1; border-radius:4px; font-weight:600; font-size:0.95rem; text-align:center; transition:background .2s ease,filter .2s ease; outline:none; border:none; }
.btn:hover { background:#d4551f; }
.btn:focus { outline:none; box-shadow:none; }
.coupon-inner { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.coupon-main { flex:1; min-width:0; }
.coupon-cta { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.btn-coupon { background:#1b9e5a; transition:background .2s ease; }
.btn-coupon:hover { background:#157a46; }
.code-teaser { display:inline-flex; align-items:center; justify-content:center; height:calc(2 * var(--btn-y) + 1em); padding:0 12px; box-sizing:border-box; border:1px dashed #f4622a; border-radius:8px; background:#fff; font-weight:700; font-size:0.95rem; color:#333; }
@media (max-width:640px) { .coupon-inner { flex-direction:column; align-items:flex-start; } .coupon-cta { width:100%; } }
============================================================ */

/* ============================================================
   BUTTON DESIGN — v2 (coupon ticket: button + teaser joined)
   To revert: comment out this block, uncomment v1 above
   ============================================================ */
:root {
  --btn-y: .8rem;
  --btn-x: 2.2rem;
  --clr-coupon: var(--ext-accent);
  --clr-coupon-dark: var(--ext-accent-dark);
  --clr-offer: var(--ext-cta);
  --clr-offer-dark: var(--ext-cta-dark);
  --btn-radius: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-offer);
  color: var(--ext-cta-ink);
  padding: 0 var(--btn-x);
  height: calc(2 * var(--btn-y) + 1em);
  line-height: 1;
  border-radius: var(--btn-radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  transition: background 0.2s ease, filter .2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { background: var(--clr-offer-dark); }
.btn:focus { outline: none; }
.btn:focus-visible { outline: 2px solid var(--clr-offer); outline-offset: 2px; }

.coupon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.coupon-main { flex: 1; min-width: 0; }

.coupon-cta {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-shrink: 0;
  min-width: 12rem;
}

/* Left half of the coupon ticket */
.btn-coupon {
  flex: 1;
  background: var(--clr-coupon);
  color: #fff;
  border-radius: var(--btn-radius) 0 0 var(--btn-radius);
  padding-right: 1.4rem;
  transition: background 0.2s ease;
}
.btn-coupon:hover { background: var(--clr-coupon-dark); }
.btn-coupon:focus-visible { outline-color: var(--clr-coupon); }

/* Standalone offer button (no teaser sibling) */
.btn-offer {
  width: 100%;
  border-radius: var(--btn-radius);
}

/* Right half of the coupon ticket */
.code-teaser {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-sizing: border-box;
  background: var(--ext-accent-soft);
  color: var(--ext-ink);
  font-family: ui-monospace, 'Courier New', monospace;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  border: none;
  border-radius: 0 var(--btn-radius) var(--btn-radius) 0;
  user-select: none;
}

@media (max-width: 640px) {
  .coupon-inner { flex-direction: column; align-items: flex-start; }
  .coupon-cta { width: 100%; }
  .btn-coupon { flex: 1; }
}

/* Visible-code coupons (commissioned by use, not by affiliate click) —
   same code+copy look as the last-chance-box, in place of the button+teaser */
.coupon-cta--visible-code {
  min-width: 0;
}
.coupon-cta--visible-code .coupon-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 16px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 8px 12px;
  border: 1px dashed var(--ext-accent);
  border-radius: 10px;
  background: #fff;
}
.coupon-cta--visible-code .copy-btn {
  padding: 6px 10px;
  border: 1px solid var(--ext-accent);
  border-radius: 8px;
  cursor: pointer;
  background: var(--ext-accent);
  color: #fff;
  font-weight: 600;
}
.coupon-cta--visible-code .coupon-code__label {
  font: 600 13px/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ext-muted);
  letter-spacing: normal;
}
.coupon-cta--visible-code .copy-btn:hover { background: var(--ext-accent-dark); border-color: var(--ext-accent-dark); }
.coupon-cta--visible-code .copy-btn.is-copied { border-color: #b7e2c1; background: #f2fff6; color: inherit; }
@media (max-width: 480px) {
  .coupon-cta--visible-code .coupon-code { font-size: 14px; }
}


.coupon-expiry {
  font-size: 0.72rem;
  color: var(--ext-muted);
}
.coupon-expiry:not(.coupon-expiry--urgent)::before {
  content: "⏳ ";
}
.coupon-expiry--urgent {
  color: var(--ext-accent);
}
.coupon-expiry--urgent::before {
  content: "▲ ";
  color: var(--ext-accent);
}

.coupon-signals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  padding-bottom: 4px;
}
@media (max-width: 640px) {
  .coupon-signals {
    margin-top: 18px;
  }
}
.coupon-signal {
  font-size: 0.72rem;
  color: var(--ext-muted);
}
.coupon-signal--trending {
  color: var(--ext-muted);
}
.coupon-signal--trending::before {
  content: "🔥 ";
}
.coupon-signal--last-used {
  color: var(--ext-muted);
}
.coupon-signal--last-used::before {
  content: "📌 ";
}
.coupon-signal--verified {
  color: var(--ext-muted);
}
.coupon-signal--verified::before {
  content: "✅ ";
}
.coupon-signal--found-via {
  color: var(--ext-muted);
}
.coupon-signal--found-via::before {
  content: "🔍 ";
}
.coupon-signal--new {
  color: var(--ext-muted);
}
.coupon-signal--new::before {
  content: "🆕 ";
}
@media (min-width: 641px) {
  .coupon-signals .coupon-signal--found-via {
    letter-spacing: -0.5px !important;
  }
}
.coupon-feedback {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--ext-border);
}
.coupon-feedback__label {
  font-size: 0.85rem;
  color: var(--ext-muted);
}
.thumb-btn {
  background: none;
  border: 1px solid var(--ext-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 2px 8px;
  line-height: 1.4;
  transition: border-color 0.15s;
}
.thumb-btn:hover {
  border-color: var(--ext-accent);
}
.coupon-feedback__thanks {
  font-size: 0.85rem;
  color: var(--ext-muted);
}
.coupon-feedback__thanks--up {
  color: #4caf50;
}

.last-chance-box {
  background: #fff;
  border: 1px dashed var(--ext-accent);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.last-chance-box__eyebrow {
  display: inline-block;
  background: var(--ext-accent-soft);
  color: var(--ext-accent-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.last-chance-box__intro p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ext-muted);
  line-height: 1.5;
}
.last-chance-box__card {
  background: var(--ext-bg);
  border: 1px solid var(--ext-border);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1rem;
}
.last-chance-box__title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.last-chance-box__title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ext-ink);
}
.last-chance-box__card .coupon-desc {
  margin-bottom: 0.5rem;
}
.last-chance-box__card .coupon-expiry {
  display: block;
  margin-bottom: 0.75rem;
}
.last-chance-box__code-row .coupon-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 16px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 8px 12px;
  border: 1px dashed var(--ext-accent);
  border-radius: 10px;
  background: #fff;
}
.last-chance-box__code-row .copy-btn {
  padding: 6px 10px;
  border: 1px solid var(--ext-accent-soft);
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  font-weight: 600;
}
.last-chance-box__code-row .copy-btn:hover { background: #f3f0fb; }
.last-chance-box__code-row .copy-btn.is-copied { border-color: #b7e2c1; background: #f2fff6; }
.last-chance-box .coupon-signals { margin-top: 12px; }
.last-chance-box .coupon-feedback { margin-top: 12px; padding-top: 10px; }
@media (max-width: 480px) {
  .last-chance-box { padding: 1rem; }
  .last-chance-box__code-row .coupon-code { font-size: 14px; }
}
.continue-offers-heading {
  margin: 0.5rem 0 1rem;
  font-size: 1.3rem;
}

.current-sale-box {
  background: #fff;
  border: 1px dashed var(--ext-accent);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.current-sale-box__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--ext-cta);
  color: var(--ext-cta-ink);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  width: fit-content;
}
.current-sale-box__live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e5484d;
  animation: current-sale-pulse 1.6s ease-out infinite;
}
@keyframes current-sale-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(229, 72, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .current-sale-box__live-dot { animation: none; }
}
.current-sale-box__card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #b62443;
  color: #fff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.current-sale-box__card--idle {
  background: var(--ext-bg);
  color: var(--ext-ink);
  border: 1px solid var(--ext-border);
}
.current-sale-box__card--idle .current-sale-box__icon {
  background: var(--ext-accent-soft);
  color: var(--ext-accent);
}
.current-sale-box__name--idle {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ext-muted);
}
.current-sale-box__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: #b62443;
}
.current-sale-box__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.current-sale-box__name {
  font-weight: 700;
  font-size: 1.05rem;
}
.current-sale-box__meta {
  font-size: 0.6rem;
  color: #fff;
}
.current-sale-box__jump {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ext-cta);
  color: var(--ext-cta-ink);
  margin-left: 0.5rem;
}
.current-sale-box__jump:hover { background: var(--ext-cta-dark); }
@media (max-width: 480px) {
  .current-sale-box__card { padding: 0.65rem 0.85rem; gap: 0.6rem; }
  .current-sale-box__icon { width: 34px; height: 34px; }
  .current-sale-box__icon svg { width: 18px; height: 18px; }
  .current-sale-box__jump { width: 24px; height: 24px; }
  .current-sale-box__eyebrow { font-size: 0.62rem; padding: 0.15rem 0.4rem; }
  .current-sale-box__name { font-size: 0.92rem; }
  .current-sale-box__meta { font-size: 0.55rem; }
}

.current-sale-history-toggle summary {
  cursor: pointer;
  color: var(--ext-ink);
  font-weight: 600;
  font-size: 0.85rem;
  list-style: none;
  margin-top: 0.75rem;
}
.current-sale-history-toggle summary::-webkit-details-marker { display: none; }
.current-sale-history-toggle summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 0.4rem;
  transition: transform 0.15s ease;
}
.current-sale-history-toggle[open] summary::before { transform: rotate(90deg); }

.current-sale-history__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.9rem 0 0;
  padding-left: calc(0.65rem + 1.4rem);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--ext-muted);
}
/* ~5 rows visible; longer histories (up to 10) scroll inside the box.
   Scroll lives on a wrapper, not the <ul>, so the timeline dots that sit
   on the ul's dashed border aren't clipped by the overflow. */
.current-sale-history__scroll {
  max-height: 10rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.current-sale-history {
  list-style: none;
  margin: 0.3rem 0 0.15rem;
  padding: 0.15rem 0 0 1.4rem;
  margin-left: 0.65rem;
  border-left: 2px dashed var(--ext-border);
}
.current-sale-history__item {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  font-size: 0.85rem;
}
.current-sale-history__dot {
  position: absolute;
  left: -1.53rem;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ext-accent);
}
.current-sale-history__name {
  color: var(--ext-ink);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.current-sale-history__date {
  flex-shrink: 0;
  color: var(--ext-muted);
  font-variant-numeric: tabular-nums;
}

.html-box {
    margin-top: 2rem;
    padding: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ext-muted);
    background: #fff;
    border: 1px solid var(--ext-border);
    border-radius: 12px;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--ext-border);
    background: #fff;
    flex-wrap: wrap;
}

.footer-bar {
    text-align: right;
    padding: 1rem;
    border-top: 1px solid var(--ext-border);
    width: 100%;
    max-width: 820px;
    box-sizing: border-box;
}

.footer-menu {
    display: flex;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end; /* Align menu items to the right */
}

.footer-menu a {
    color: var(--ext-muted);
    font-weight: normal;
    font-size: 0.95rem;
    text-decoration: none;
}

.footer-menu a:hover {
    color: var(--ext-accent);
}


.store-logo-canvas {
    width: 96px; /* 20% smaller */
    height: 64px; /* 20% smaller */
    object-fit: contain;
    border: 1px solid var(--ext-border);
    background: #fff;
    padding: 5px;
    border-radius: 10px;
}

h1 {
    font-size: 2rem; /* Adjust as needed for desired size */
    font-weight: bold;
    margin-top: 1.5rem;
    margin-bottom: 0.2rem;
}




.homepage-top-section {
    margin-bottom: 5rem; /* Spacing below the H1 and logos */
}

.store-grid {
    margin-top: 1.5rem; /* Spacing between H1 and logos */
}

.coupons h2 {
    margin-top: 2rem; /* Spacing between logos and H2 (Latest Coupons) */
}




.store-header {
    text-align: center;
    padding: 1rem;
}

.store-header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.store-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align H1 and H2 to the left within their container */
}

.store-header h2 {
    font-size: 1.1em; /* Specific H2 size for store page */
    margin-top: 0; /* Remove default H2 margin */
    font-weight: normal; /* Make H2 not bold */
}

.store-freshness-badge {
    display: inline-block;
    margin: 0.25rem 0 0;
    padding: 0.2rem 0.7rem;
    font-size: 0.8em;
    font-weight: 600;
    color: var(--ext-accent-dark);
    background: var(--ext-accent-soft);
    border-radius: 999px;
}




.footer-menu li::after {
    content: "|";
    margin-left: 0.75rem;
    color: var(--ext-border);
}

.footer-menu li:last-child::after {
    content: "";
}

.sister-sites-bar {
    text-align: center;
    margin: 1.5rem auto 2.5rem;
    padding: 0 1rem;
    font-size: 0.95rem;
    color: var(--ext-muted);
}

.sister-sites-bar a {
    margin: 0 0.35rem;
    text-decoration: none;
}

.sister-sites-bar a:hover {
    opacity: 0.7;
}

.sister-flag-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    border-radius: 3px;
}

.logo-flag-icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    border-radius: 2px;
}

/* Related coupons – mobile-first table */
.related-coupons { margin-top: 20px; }
.related-coupons h2 { font-size: 1.1rem; margin: 16px 0 10px; }

.rc-table-wrap { 
  width: 100%; 
  overflow-x: auto;
  margin: 0 -10px;
  padding: 0 10px;
}

.related-coupons-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  table-layout: auto;
}

/* Desktop baseline */
.related-coupons-table th,
.related-coupons-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Column width distribution */
.related-coupons-table th:nth-child(1),
.related-coupons-table td:nth-child(1) {
  width: 15%;
  min-width: 100px;
}

.related-coupons-table th:nth-child(2),
.related-coupons-table td:nth-child(2) {
  width: auto;
  min-width: 200px;
}

.related-coupons-table th:nth-child(3),
.related-coupons-table td:nth-child(3) {
  width: 20%;
  min-width: 100px;
}

.related-coupons-table th:nth-child(4),
.related-coupons-table td:nth-child(4) {
  width: 15%;
  min-width: 80px;
  text-align: center;
}

.related-coupons-table thead th {
  font-weight: 600;
  border-bottom: 1px solid var(--ext-border);
}
.related-coupons-table tbody tr:nth-child(odd) { background: var(--ext-bg); }
.related-coupons-table .rc-title { 
  display: inline-block; 
  max-width: 100%; 
  overflow: visible; 
  text-overflow: clip; 
  white-space: normal; 
  line-height: 1.3;
}
.related-coupons-table .btn-visit {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  background: var(--ext-accent);
  color: #fff;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}

.related-coupons-table .btn-visit:hover {
  background: var(--ext-accent-dark);
  color: #fff;
}

/* Mobile: convert rows to cards */
@media (max-width: 640px) {
  .rc-table-wrap {
    margin: 0;
    padding: 0;
  }
  
  .related-coupons-table {
    table-layout: auto;
  }
  
  .related-coupons-table thead { display: none; }
  .related-coupons-table,
  .related-coupons-table tbody,
  .related-coupons-table tr,
  .related-coupons-table td { display: block; width: 100%; }

  .related-coupons-table tbody tr {
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--ext-border);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(33, 26, 53, 0.07);
  }
  .related-coupons-table td {
    padding: 6px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: none;
    border-bottom: 1px solid var(--ext-border);
  }
  .related-coupons-table td:last-child {
    border-bottom: 0;
  }
  .related-coupons-table td::before {
    content: attr(data-label) ":";
    font-weight: 600;
    color: var(--ext-muted);
    font-size: 0.85rem;
    margin-bottom: 2px;
  }
  .related-coupons-table .btn-visit {
    align-self: flex-start;
    padding: 8px 16px;
    border-radius: 6px;
    margin-top: 4px;
    font-size: 0.9rem;
  }
  .related-coupons-table .rc-title { 
    max-width: 100%; 
    white-space: normal; 
    overflow: visible;
    text-overflow: clip;
  }
}

/* Related sections styled as html-box */
.html-box-title{margin:0 0 0.75rem 0;font-size:1.05rem;font-weight:700;color:var(--ext-ink);}
.related-stores p{margin:0;font-size:0.95rem;line-height:1.6} .related-stores a{color:var(--ext-accent);text-decoration:none} .related-stores a:hover{text-decoration:underline}

/* ===== Coupon modal (tight, light, aligned with site) ===== */
#coupon-modal{ position:fixed; inset:0; display:none; z-index:9999; background:rgba(0,0,0,.45); -webkit-backdrop-filter:saturate(120%) blur(2px); backdrop-filter:saturate(120%) blur(2px); }
#coupon-modal.is-open{ display:block; }
#coupon-modal .modal-dialog{ position:relative; width:min(560px, calc(100% - 28px)); margin:10vh auto; background:#fff; border:1px solid var(--ext-border); border-radius:14px; box-shadow:0 18px 48px rgba(33,26,53,.18); padding:20px 20px 24px; color:var(--ext-ink); transform:translateY(8px) scale(.98); opacity:0; animation:csModalIn .18s ease-out forwards; }
@keyframes csModalIn{ to{ transform:translateY(0) scale(1); opacity:1; } }
@media (prefers-reduced-motion: reduce){ #coupon-modal .modal-dialog{ animation:none; transform:none; opacity:1; } }
#coupon-close{ position:absolute; top:10px; right:10px; border:0; background:transparent; font-size:22px; line-height:1; color:var(--ext-muted); cursor:pointer; padding:6px; border-radius:8px; }
#coupon-close:hover{ background:var(--ext-bg); color:var(--ext-ink); }
#coupon-body{ text-align:center; }
#coupon-body h2#coupon-title{ margin:0 0 8px; font-size:20px; font-weight:700; color:var(--ext-ink); }
#coupon-body .coupon-code{ display:inline-flex; align-items:center; gap:8px; font:600 18px/1.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; padding:10px 12px; border:1px dashed var(--ext-accent); border-radius:10px; background:var(--ext-bg); }
#coupon-body .copy-btn{ padding:6px 10px; border:1px solid var(--ext-accent-soft); border-radius:8px; cursor:pointer; background:#fff; font-weight:600; }
#coupon-body .copy-btn:hover{ background:#f3f0fb; }
#coupon-body .copy-btn.is-copied{ border-color:#b7e2c1; background:#f2fff6; }
#coupon-body .coupon-terms{ margin-top:10px; color:var(--ext-muted); font-size:14px; line-height:1.45; }
#coupon-body .coupon-actions{ margin-top:16px; }
#coupon-body .btn.btn-primary{ display:inline-block; padding:10px 16px; border-radius:10px; background:var(--ext-cta); color:var(--ext-cta-ink); text-decoration:none; font-weight:700; height: auto; }
#coupon-body .btn.btn-primary:hover{ filter:brightness(.95); }
html.modal-open{ overflow:hidden; }
@media (max-width:480px){ #coupon-modal .modal-dialog{ margin:8vh auto; padding:16px 16px 20px; border-radius:10px; } #coupon-body h2#coupon-title{ font-size:18px; } #coupon-body .coupon-code{ font-size:16px; } }




/* Mobile toggle for coupon descriptions */
.coupon-desc-toggle {
    display: none;
    color: var(--ext-muted);
    font-size: 0.8em;
    cursor: pointer;
    text-decoration: underline;
    margin-bottom: 0.5rem;
}

.coupon-desc-toggle:hover {
    color: var(--ext-ink);
}

@media (max-width: 768px) {
    .coupon-desc {
        display: none;
    }
    
    .coupon-desc.show {
        display: block;
    }
    
    .coupon-desc-toggle {
        display: inline;
    }
}
@media (max-width: 768px) {
    .store-header {
        text-align: left; /* Ensure the container aligns its content to the left */
    }

    .store-header h1 {
        font-size: 1.5rem; /* Reduce h1 font size */
    }
}

/* Store rating widget */

/* Affiliate disclosure line (bottom of store pages) */
.affiliate-disclosure {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 2rem 0 0.5rem;
    padding-top: 0.9rem;
    text-align: center;
    font-size: 0.7em;
    font-weight: 200;
    color: var(--ext-muted);
}
.affiliate-disclosure__network {
    display: inline-flex;
    align-items: center;
    line-height: normal;
    color: var(--ext-accent);
    font-weight: 400;
    text-decoration: underline;
}
.affiliate-disclosure__logo {
    height: 14px;
    width: auto;
    vertical-align: middle;
}
.affiliate-disclosure__tooltip-wrap {
    position: relative;
    display: inline-block;
}
.affiliate-disclosure__tooltip-trigger {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-weight: 200;
    color: var(--ext-accent);
    text-decoration: underline dotted;
    cursor: help;
}
.affiliate-disclosure__tooltip {
    display: none;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    max-width: 70vw;
    background: var(--ext-ink);
    color: #fff;
    font-weight: 400;
    font-size: 1.1em;
    line-height: 1.4;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    z-index: 20;
    text-align: left;
}
.affiliate-disclosure__tooltip-wrap:hover .affiliate-disclosure__tooltip,
.affiliate-disclosure__tooltip-wrap:focus-within .affiliate-disclosure__tooltip {
    display: block;
}




/* ===== couponsite-redesign ===== */
/*
Theme Name: CouponSite Redesign
Template: couponsite
Description: Trial of the violet "ticket" redesign on top of CouponSite. Visual only; all behavior comes from the parent. Switch back to CouponSite to turn off.
Version: 0.1
Text Domain: couponsite
*/

/* ============ FONTS (self-hosted, latin subset; variable fonts = one file per family) ============
   Paths are relative to the stylesheet that ends up serving this CSS; see functions.php. */
@font-face{font-family:'Outfit';font-style:normal;font-weight:500 800;font-display:swap;src:url(https://www.guidapromo.it/wp-content/themes/couponsite-redesign/fonts/outfit-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url(https://www.guidapromo.it/wp-content/themes/couponsite-redesign/fonts/dmsans-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ============ TOKENS ============ */
:root{
  --ico-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
  --violeta:#5B3FD0;
  --violeta-oscuro:#3F2A9E;
  --lila:#EEEAFD;
  --fondo:#F6F4FF;
  --borde:#E4DFF7;
  --amarillo:#FFC940;
  --texto:#1E1B3A;
  --texto-suave:#4A4666;
  --verde-fondo:#E3F7EA;
  --verde-texto:#146C38;
  --radio:16px;
  --display:'Outfit',system-ui,sans-serif;
  --body:'DM Sans',system-ui,sans-serif;

  /* re-point the parent's tokens so untouched parent components match */
  --ext-bg:var(--fondo);
  --ext-ink:var(--texto);
  --ext-accent:var(--violeta);
  --ext-accent-dark:var(--violeta-oscuro);
  --ext-accent-soft:var(--lila);
  --ext-cta:var(--amarillo);
  --ext-border:var(--borde);
  --ext-muted:var(--texto-suave);
  --btn-radius:14px;
}

body.csr{font-family:var(--body);background:var(--fondo);color:var(--texto);-webkit-font-smoothing:antialiased}
.csr :focus-visible{outline:3px solid var(--amarillo);outline-offset:2px}
.csr h1,.csr h2,.csr h3{font-family:var(--display)}
.csr main{max-width:1120px;padding:0 20px 64px}

/* ============ HEADER ============ */
.csr-header{width:100%;background:var(--violeta)}
.csr header.header-bar{max-width:1120px;margin:0 auto;padding:0 20px;min-height:76px;background:transparent;border:none;gap:16px}
.csr .logo{background:transparent}
.csr .site-logo{font-family:var(--display);font-size:24px;font-weight:700;color:#fff;display:flex;align-items:center;gap:10px}
.csr .site-logo:hover{color:#fff}
.csr .site-logo img{max-height:44px;display:block}
.csr .header-search{top:0;padding-right:0}
.csr .store-search-wrap{width:360px}
.csr .store-search-input{height:46px;padding:0 18px 0 44px;border:none;border-radius:999px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236B6785' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 18px center;font:inherit;font-size:15px;color:var(--texto)}
.csr .store-search-input:focus{box-shadow:0 0 0 3px var(--amarillo)}
.csr .store-search-results{border-radius:16px}
.csr .menu-toggle{width:46px;height:46px;border-radius:12px;border:1px solid rgba(255,255,255,.35);color:#fff}
.csr .menu-toggle:hover,.csr .header-menu.is-open .menu-toggle{background:rgba(255,255,255,.1);color:#fff}
.csr .top-nav{border-radius:16px}
.csr-search-toggle{display:none}

/* ============ HOMEPAGE ============ */
.csr .homepage-top-section{margin-bottom:0;padding-top:56px}
.csr .homepage-top-section h1{text-align:center;margin:0 0 28px;font-size:42px;font-weight:700;line-height:1.15;letter-spacing:-.5px}
.csr .coupons h2,.csr .continue-offers-heading{margin:48px 0 20px;font-size:28px;font-weight:700}

.csr .store-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;margin-top:0}
.csr .store-grid a.tienda{box-sizing:border-box;width:auto;height:76px;background:#fff;border:1px solid var(--borde);border-radius:var(--radio);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:10px;text-align:center;transition:border-color .15s,box-shadow .15s,transform .15s}
.csr .store-grid a.tienda:hover{border-color:var(--violeta);box-shadow:0 10px 24px rgba(91,63,208,.18);transform:translateY(-2px)}
.csr .store-grid .tienda img{max-width:100%;max-height:56px;width:auto;height:auto;object-fit:contain}

.csr .homepage-banner{margin-top:48px}
.csr .homepage-banner img{border-radius:var(--radio)}

/* ============ TICKET CARD ============ */
.csr .coupon.cupon{
  position:relative;display:grid;
  grid-template-columns:168px minmax(0,1fr) 280px;
  grid-template-rows:1fr auto auto;
  grid-template-areas:"badge main cta" "badge main more" "badge signals signals";
  padding:0;margin-bottom:20px;min-height:168px;
  background:#fff;border:1px solid var(--borde);border-radius:20px;
  box-shadow:0 8px 24px rgba(91,63,208,.08);
}
.csr .coupon.cupon.featured-coupon{border:2px solid var(--violeta);box-shadow:0 10px 28px rgba(91,63,208,.18)}
.csr .coupon-inner{display:contents}

/* yellow stub */
.csr .cupon-badge{grid-area:badge;background:var(--amarillo);border-radius:19px 0 0 19px;border-right:2px dashed var(--borde);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:12px;color:var(--texto);text-align:center}
.csr .cupon-porcentaje{font-family:var(--display);font-size:48px;font-weight:800;line-height:1}
.csr .cupon-badge--lg .cupon-porcentaje{font-size:38px}
.csr .cupon-badge--xl .cupon-porcentaje{font-size:28px}
.csr .cupon-off{font-family:var(--display);font-size:18px;font-weight:700;letter-spacing:2px}
.csr .cupon-palabra{font-family:var(--display);font-size:19px;font-weight:800;letter-spacing:1.5px}
.csr .cupon-palabra--sub{font-size:16px}
.csr .cupon-verificado{display:none}
.csr .cupon-tienda{margin-top:8px;font-size:13px;font-weight:700;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* ticket cut-outs */
.csr .coupon.cupon::before,.csr .coupon.cupon::after{content:"";position:absolute;left:156px;width:24px;height:24px;border-radius:50%;background:var(--fondo);border:1px solid var(--borde);z-index:1}
.csr .coupon.cupon::before{top:-13px;clip-path:inset(50% 0 0 0)}
.csr .coupon.cupon::after{bottom:-13px;clip-path:inset(0 0 50% 0)}

.csr .coupon-main{grid-area:main;padding:24px 32px 0;align-self:start}
/* the signals row normally supplies the bottom spacing; cards without any signals need their own */
.csr .coupon.cupon:not(:has(.coupon-signals)) .coupon-main{padding-bottom:24px}
.csr .coupon-title{margin-bottom:10px;font-family:var(--display);font-size:22px;font-weight:700;line-height:1.25}
.csr .coupon-title a{color:var(--texto)}
.csr .coupon-title a:hover{color:var(--violeta)}
.csr .coupon-desc{font-size:16px;line-height:1.45;color:var(--texto-suave);margin-bottom:0}
.csr .coupon-desc p{margin:0}
.csr .coupon-desc-toggle{color:var(--violeta);font-weight:600;font-size:14px}
.csr .top-label{border-radius:999px;padding:4px 10px;font-size:11px;margin-bottom:10px}

/* signals as pills */
.csr .coupon.cupon .coupon-signals{grid-area:signals;display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;padding:14px 32px 22px;align-self:end}
.csr .coupon.cupon .coupon-signal,.csr .coupon.cupon .coupon-expiry{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 9px;border-radius:999px;font-size:12px;font-weight:600;letter-spacing:0!important;background:#F1F0F5;color:var(--texto-suave)}
.csr .coupon.cupon .coupon-signal::before,.csr .coupon.cupon .coupon-expiry::before{content:none}
.csr .coupon.cupon .coupon-expiry{background:var(--lila);color:var(--violeta-oscuro)}
.csr .coupon.cupon .coupon-expiry::before,.csr .coupon.cupon .coupon-signal::before{content:"";flex-shrink:0;width:13px;height:13px;background:currentColor;-webkit-mask:var(--ico) no-repeat center/contain;mask:var(--ico) no-repeat center/contain}
.csr .coupon.cupon .coupon-expiry{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E")}
.csr .coupon.cupon .coupon-expiry--urgent{background:#FDE7EC;color:#B62443}
/* parent colours the urgent ::before with the accent (violet); the icon must follow the pill text instead */
.csr .coupon.cupon .coupon-expiry::before{color:inherit}
.csr .coupon.cupon .coupon-signal--last-used{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 9l11 4.5-4.8 1.7L13.5 20z'/%3E%3Cpath d='M5 3.5l1.2 2.2M3 8h2.4M8.5 2v2.5'/%3E%3C/svg%3E")}
.csr .coupon.cupon .coupon-signal--new{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9z'/%3E%3Cpath d='M19 16v4M17 18h4'/%3E%3C/svg%3E")}
.csr .coupon.cupon .coupon-signal--found-via{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4.2-4.2'/%3E%3C/svg%3E")}
.csr .coupon.cupon .coupon-signal--trending{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21c-3.9 0-6.5-2.6-6.5-6.1 0-3.4 2.4-5.3 3.6-8.4.4 2 1.5 3.2 2.6 3.7.2-2.6 1.4-5 3.4-7.2.3 3 3.4 5.4 3.4 10.1 0 4.1-2.6 7.9-6.5 7.9z'/%3E%3C/svg%3E")}
.csr .coupon.cupon .coupon-signal--verified{background:var(--verde-fondo);color:var(--verde-texto);--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E")}
/* expiry + verified shown first; all signals are pills, compact enough that 5 fit one desktop row */
.csr .coupon.cupon .coupon-expiry{order:-2}
.csr .coupon.cupon .coupon-signal--verified{order:-1}
.csr .coupon.cupon .coupon-signal--trending,.csr .coupon.cupon .coupon-signal--new{background:#FFF4D6;color:#7A5600}

/* CTA: violet button + code stub, same elements/behavior as parent */
.csr .coupon.cupon .coupon-cta{grid-area:cta;align-self:end;margin:24px 32px 0 0;padding:0;min-width:0;gap:0}
.csr.tax-coupon-store .coupon.cupon .coupon-cta{align-self:center}
/* code button = one shape (as in the mockup): a single dashed outline, violet fill + lilac code part flush inside */
.csr .coupon.cupon .coupon-cta:has(.code-teaser){height:52px;box-sizing:border-box;border:2px dashed var(--violeta);border-radius:14px;overflow:hidden;background:var(--lila)}
.csr .coupon.cupon .coupon-cta .btn{box-sizing:border-box;height:52px;font-family:var(--body);font-size:16px;font-weight:700;border-radius:14px;padding:0 16px}
.csr .coupon.cupon .coupon-cta .btn-coupon{flex:1;height:100%;background:var(--violeta);color:#fff;border:none;border-radius:0;transition:background .15s}
.csr .coupon.cupon .coupon-cta .btn-coupon:hover{background:var(--violeta-oscuro)}
.csr .coupon.cupon .code-teaser{width:72px;height:100%;flex-shrink:0;box-sizing:border-box;padding:0;background:transparent;color:var(--violeta-oscuro);font-family:var(--display);font-size:18px;letter-spacing:2px;border:none;border-radius:0}
.csr .coupon.cupon .btn-offer{flex:1;width:100%;background:#fff;color:var(--violeta);border:2px solid var(--violeta)}
.csr .coupon.cupon .btn-offer:hover{background:var(--lila);color:var(--violeta-oscuro)}
.csr .coupon.cupon .btn-offer.btn-pseudo{background:var(--violeta);color:#fff;border-color:var(--violeta)}
.csr .coupon.cupon .btn-offer.btn-pseudo:hover{background:var(--violeta-oscuro);border-color:var(--violeta-oscuro);color:#fff}
.csr .coupon.cupon .coupon-cta--visible-code .coupon-code{width:100%;height:52px;box-sizing:border-box;border:2px dashed var(--violeta);border-radius:14px;background:var(--lila)}

.csr .coupon.cupon .coupon-store-link{grid-area:more;align-self:start;padding:12px 32px 0 0;text-align:center!important}
/* desktop cards with no signal pills: the signals row (which normally gives the bottom spacing and holds the CTA stack up) collapses to 0,
   so the CTA + "more offers" link sank to the card's bottom edge and the link got clipped. Give the link its own bottom space and centre the CTA like the store pages do. */
@media (min-width:641px){
  .csr .coupon.cupon:not(:has(.coupon-signals)) .coupon-store-link{padding-bottom:18px}
  .csr .coupon.cupon:not(:has(.coupon-signals)) .coupon-cta{align-self:center}
}
.csr .coupon.cupon .coupon-store-link a{color:var(--violeta)!important;font-size:14px!important;font-weight:600}

/* ============ STORE PAGE ============ */
.csr.tax-coupon-store main{max-width:1020px}
.csr .store-header{padding-top:32px}
.csr .store-header h1{font-size:34px;font-weight:800;letter-spacing:-.3px;margin-top:0}
.csr .store-header-content{gap:24px}
.csr .store-logo-canvas{width:140px;height:96px;padding:12px;box-sizing:border-box;flex-shrink:0;background:#fff;border-color:var(--borde);border-radius:var(--radio)}

/* ============ RELATED COUPONS TABLE (CSS only, parent markup) ============ */
.csr .rc-table-wrap{margin:0;padding:0}
.csr .related-coupons-table{font-size:15px}
.csr .related-coupons-table thead th{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.8px;color:var(--texto-suave);border-bottom:1px solid var(--borde);padding:0 12px 10px}
.csr .related-coupons-table tbody tr:nth-child(odd){background:transparent}
.csr .related-coupons-table tbody tr+tr td{border-top:1px solid var(--borde)}
.csr .related-coupons-table td{padding:14px 12px}
.csr .related-coupons-table td:nth-child(1) a{color:var(--texto-suave);font-weight:600;font-size:14px}
.csr .related-coupons-table .rc-title{color:var(--texto);font-weight:600}
.csr .related-coupons-table .rc-title:hover{color:var(--violeta)}
.csr .related-coupons-table td:nth-child(3){font-family:var(--display);font-weight:700;letter-spacing:1px;color:var(--violeta-oscuro);word-break:break-all}
.csr .related-coupons-table td:nth-child(3)::after{content:none}
.csr .related-coupons-table .btn-visit{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 18px;border-radius:12px;background:var(--violeta);font-weight:700}
.csr .related-coupons-table .btn-visit::after{content:"→"}
.csr .related-coupons-table .btn-visit:hover{background:var(--violeta-oscuro)}

@media (max-width:640px){
  .csr .related-coupons{padding:20px 16px}
  .csr .related-coupons-table tbody tr{
    display:grid;grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"store store" "offer offer" "code link";
    gap:6px 12px;align-items:center;
    margin:0;padding:14px 0;background:transparent;border:none;border-radius:0;box-shadow:none;
  }
  .csr .related-coupons-table tbody tr+tr{border-top:1px solid var(--borde)}
  .csr .related-coupons-table tbody tr:first-child{padding-top:4px}
  .csr .related-coupons-table tbody tr:last-child{padding-bottom:0}
  .csr .related-coupons-table td,.csr .related-coupons-table tbody tr+tr td{display:block;width:auto;min-width:0;padding:0;border:none}
  .csr .related-coupons-table td::before{content:none}
  .csr .related-coupons-table td:nth-child(1){grid-area:store}
  .csr .related-coupons-table td:nth-child(1) a{font-size:12px;text-transform:uppercase;letter-spacing:.8px;color:var(--violeta)}
  .csr .related-coupons-table td:nth-child(2){grid-area:offer;font-size:15px;line-height:1.35}
  .csr .related-coupons-table td:nth-child(3){grid-area:code;justify-self:start;max-width:100%;box-sizing:border-box;padding:7px 12px;border:2px dashed var(--violeta);border-radius:10px;background:var(--lila);font-size:15px;line-height:1.2}
  .csr .related-coupons-table td:nth-child(4){grid-area:link;text-align:right}
  .csr .related-coupons-table .btn-visit{margin:0;height:40px;padding:0 16px;font-size:15px;border-radius:12px}
}

/* ============ STORE SCREENSHOTS ============ */
/* Both previews were sized for the old 820px column (~720px wide). Keep that
   size in the wider layout and centre them instead of stretching/left-aligning. */
.csr .store-newsletter-screenshot .store-newsletter-screenshot__scroll{max-width:720px;margin:0 auto;border-radius:14px}
.csr .store-homepage-screenshot .store-homepage-screenshot__content img{margin:0 auto;border-radius:14px}

/* ============ RADAR DE REBAJAS (parent markup, restyled) ============ */
.csr .current-sale-box{background:#fff;border:1px solid var(--borde);border-radius:20px;padding:20px;margin-bottom:28px;box-shadow:0 8px 24px rgba(91,63,208,.08)}
.csr .current-sale-box__card{gap:18px;padding:20px 24px;border-radius:16px}
.csr .current-sale-box__card--idle{background:var(--fondo);border-color:var(--borde)}
.csr .current-sale-box__icon{width:56px;height:56px}
.csr .current-sale-box__icon svg{width:28px;height:28px}
.csr .current-sale-box__body{gap:6px}
.csr .current-sale-box__eyebrow{font-family:var(--body);font-size:11.5px;letter-spacing:.8px;padding:4px 10px;border-radius:999px}
.csr .current-sale-box__live-dot{width:8px;height:8px}
.csr .current-sale-box__name{font-family:var(--display);font-size:22px;font-weight:700;line-height:1.25}
.csr .current-sale-box__name--idle{font-family:var(--body);font-size:16px;font-weight:600;color:var(--texto-suave)}
.csr .current-sale-box__meta{font-size:13px;line-height:1.4;opacity:.9}
.csr .current-sale-box__jump{width:44px;height:44px;margin-left:8px;color:var(--texto)}
.csr .current-sale-box__jump svg{width:18px;height:18px}
.csr .current-sale-history-toggle summary{margin:16px 4px 0;font-size:15px;color:var(--texto)}
.csr .current-sale-history-toggle summary:hover{color:var(--violeta)}
.csr .current-sale-history__head{margin:14px 4px 0;font-size:12px;letter-spacing:.8px;color:var(--texto-suave)}
.csr .current-sale-history__scroll{max-height:13rem}
.csr .current-sale-history{margin:6px 4px 0 calc(.65rem + 4px);border-left-color:var(--borde)}
.csr .current-sale-history__item{padding:8px 0;font-size:15px}
.csr .current-sale-history__dot{top:.8rem;width:10px;height:10px;left:-1.6rem;border-color:var(--violeta)}
.csr .current-sale-history__name{color:var(--texto)}
.csr .current-sale-history__date{color:var(--texto-suave);font-size:14px}

/* ============ LEAFLET ("Resumen de ofertas") — CSS only over the stored ul > li > a + small ============ */
.csr .store-leaflet .store-leaflet__content ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.csr .store-leaflet .store-leaflet__content li{margin:0;padding:16px 18px;background:var(--fondo);border:1px solid var(--borde);border-radius:14px;}
.csr .store-leaflet .store-leaflet__content .store-leaflet__title{display:block;font-family:var(--display);font-size:16px;font-weight:700;line-height:1.3;color:var(--texto)}
.csr .store-leaflet .store-leaflet__content li small{margin-top:6px;font-size:14px;line-height:1.45;color:var(--texto-suave)}

/* ============ COUPON POPUP (markup from parent popup.js, restyled only) ============ */
.csr #coupon-modal{background:rgba(30,27,58,.55)}
.csr #coupon-modal .modal-dialog{box-sizing:border-box;width:min(520px,calc(100% - 24px));margin:12vh auto;padding:36px 32px 24px;border:none;border-radius:24px;box-shadow:0 24px 64px rgba(30,27,58,.28);overflow:hidden}
.csr #coupon-modal .modal-dialog::before{content:"";position:absolute;left:0;right:0;top:0;height:8px;background:var(--amarillo)}
.csr #coupon-close{top:18px;right:16px;width:36px;height:36px;padding:0;border-radius:50%;background:var(--fondo);color:var(--texto-suave);font-size:22px;display:grid;place-items:center}
.csr #coupon-close:hover{background:var(--lila);color:var(--violeta-oscuro)}
.csr #coupon-body h2#coupon-title{margin:0 28px 20px;font-family:var(--display);font-size:22px;font-weight:700;line-height:1.25;color:var(--texto)}
/* code: dashed ticket strip with the copy button inside */
.csr #coupon-body .coupon-code{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;box-sizing:border-box;min-height:64px;padding:8px 8px 8px 20px;border:2px dashed var(--violeta);border-radius:16px;background:var(--lila)}
.csr #coupon-body .coupon-code strong{font-family:var(--display);font-size:26px;font-weight:700;letter-spacing:3px;color:var(--violeta-oscuro);word-break:break-all;text-align:left}
.csr #coupon-body .copy-btn{flex-shrink:0;height:46px;padding:0 20px;border:none;border-radius:12px;background:var(--violeta);color:#fff;font-family:var(--body);font-size:15px;font-weight:700}
.csr #coupon-body .copy-btn:hover{background:var(--violeta-oscuro)}
.csr #coupon-body .copy-btn.is-copied{background:var(--verde-fondo);color:var(--verde-texto)}
.csr #coupon-body .coupon-terms{margin-top:16px;font-size:15px;line-height:1.5;color:var(--texto-suave)}
.csr #coupon-body .coupon-actions{margin-top:20px}
.csr #coupon-body .btn.btn-primary{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;box-sizing:border-box;height:52px;padding:0 20px;border-radius:14px;background:var(--amarillo);color:var(--texto);font-family:var(--body);font-size:16px;font-weight:700}
.csr #coupon-body .btn.btn-primary::after{content:"→"}
.csr #coupon-body .btn.btn-primary:hover{filter:none;background:#F5B92A}
.csr #coupon-body .coupon-feedback{justify-content:center;gap:10px;margin-top:22px;padding-top:18px;border-top:2px dashed var(--borde)}
.csr #coupon-body .coupon-feedback__label{font-size:14px;font-weight:600;color:var(--texto-suave)}
.csr #coupon-body .thumb-btn{width:44px;height:40px;padding:0;border:1px solid var(--borde);border-radius:12px;background:#fff;font-size:18px;line-height:1}
.csr #coupon-body .thumb-btn:hover{border-color:var(--violeta);background:var(--lila)}
.csr #coupon-body .coupon-feedback__thanks{font-size:14px;font-weight:600;color:var(--verde-texto)}

/* ============ SHARED BOXES / FOOTER ============ */
.csr .html-box{border-color:var(--borde);border-radius:20px;color:var(--texto-suave)}
.csr .html-box h2{font-size:22px;color:var(--texto)}
.csr .footer-bar{max-width:1120px;padding:24px 20px}
.csr .sister-sites-bar{color:var(--texto-suave)}

/* ============ TABLET ============ */
@media (max-width:980px){
  .csr .store-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .csr .store-search-wrap{width:280px}
  .csr .coupon.cupon{grid-template-columns:150px minmax(0,1fr) 240px}
  .csr .coupon.cupon::before,.csr .coupon.cupon::after{left:138px}
  .csr .coupon-main{padding:22px 24px 0}
  .csr .coupon.cupon .coupon-signals{padding:12px 24px 22px}
  .csr .coupon.cupon .coupon-cta{margin-right:24px}
  .csr .coupon.cupon .coupon-store-link{padding-right:24px}
}

/* ============ MOBILE ============ */
@media (max-width:640px){
  /* compact header: logo · magnifier · menu; search row only when opened */
  .csr header.header-bar{min-height:64px;padding:10px 16px;row-gap:0;column-gap:8px;flex-wrap:wrap}
  /* logo shrinks (scales with width, then "…") so the two buttons never wrap to a 2nd row on long names (CuponesDominicana.com.do etc.) */
  .csr .logo{order:1;flex:1 1 0;min-width:0}
  .csr .site-logo{display:block;font-size:clamp(14px,4.3vw,19px);line-height:44px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .csr .site-logo .logo-flag-icon{display:inline-block;vertical-align:-.15em;margin-right:6px}
  .csr .site-logo img:not(.logo-flag-icon){max-width:100%;object-fit:contain;object-position:left center}
  .csr .csr-search-toggle{order:2;display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:12px;border:1px solid rgba(255,255,255,.35);background:transparent;color:#fff;cursor:pointer}
  .csr .csr-search-toggle:hover{background:rgba(255,255,255,.1)}
  .csr .csr-search-toggle__close{display:none}
  .csr .header-bar.is-search-open .csr-search-toggle{background:#fff;color:var(--violeta);border-color:#fff}
  .csr .header-bar.is-search-open .csr-search-toggle__open{display:none}
  .csr .header-bar.is-search-open .csr-search-toggle__close{display:block}
  .csr .header-menu{order:3}
  .csr .header-search{order:4;display:none;flex:1 1 100%;margin:10px 0 4px}
  .csr .header-bar.is-search-open .header-search{display:flex}
  .csr .store-search-wrap{width:100%}
  .csr .store-search-input{height:46px;font-size:16px}
  .csr .menu-toggle{width:44px;height:44px}
  .csr main{padding:0 16px 48px}

  .csr .homepage-top-section{padding-top:28px}
  .csr .homepage-top-section h1{font-size:30px;letter-spacing:-.3px;margin-bottom:20px}
  .csr .coupons h2,.csr .continue-offers-heading{margin:36px 0 14px;font-size:22px}
  .csr .store-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .csr .store-grid a.tienda{height:64px;border-radius:14px;padding:6px}
  .csr .store-grid .tienda img{max-height:52px}

  .csr #coupon-modal .modal-dialog{margin:10vh auto;padding:30px 18px 18px;border-radius:20px}
  .csr #coupon-close{top:14px;right:10px;width:32px;height:32px}
  .csr #coupon-body h2#coupon-title{margin:0 26px 16px;font-size:18px}
  .csr #coupon-body .coupon-code{min-height:56px;padding:6px 6px 6px 14px}
  .csr #coupon-body .coupon-code strong{font-size:20px;letter-spacing:2px}
  .csr #coupon-body .copy-btn{height:42px;padding:0 14px;font-size:14px}
  .csr #coupon-body .coupon-terms{font-size:14px}
  .csr #coupon-body .btn.btn-primary{height:48px;font-size:15px}
  .csr #coupon-body .coupon-feedback{flex-wrap:wrap}
  .csr .store-leaflet .store-leaflet__content ul{grid-template-columns:minmax(0,1fr);gap:10px}
  .csr .store-leaflet .store-leaflet__content li{padding:14px 16px}
  .csr .store-leaflet .store-leaflet__content .store-leaflet__title{font-size:15px}
  .csr .store-leaflet .store-leaflet__content li small{font-size:13.5px}
  /* Radar sized to the mobile coupon cards (16px titles, 11.5px details, 16px radius) */
  .csr .current-sale-box{padding:10px;border-radius:16px;margin-bottom:18px}
  .csr .current-sale-box__card{gap:10px;padding:12px 12px 12px 14px;border-radius:12px}
  .csr .current-sale-box__icon{width:36px;height:36px}
  .csr .current-sale-box__icon svg{width:18px;height:18px}
  .csr .current-sale-box__body{gap:3px}
  .csr .current-sale-box__eyebrow{font-size:9.5px;letter-spacing:.4px;padding:3px 7px;border-radius:6px;line-height:1.3;gap:5px}
  .csr .current-sale-box__live-dot{width:6px;height:6px}
  .csr .current-sale-box__eyebrow .info-icon{width:12px;height:12px;font-size:9px}
  .csr .current-sale-box__name{font-size:16px;line-height:1.3}
  .csr .current-sale-box__name--idle{font-size:14px}
  .csr .current-sale-box__meta{font-size:11.5px}
  .csr .current-sale-box__jump{width:32px;height:32px;margin-left:0}
  .csr .current-sale-box__jump svg{width:14px;height:14px}
  .csr .current-sale-history-toggle summary{margin:10px 6px 2px;font-size:13px}
  .csr .current-sale-history__head{margin:10px 6px 0;font-size:9.5px}
  .csr .current-sale-history{margin:4px 6px 4px calc(.65rem + 6px)}
  .csr .current-sale-history__item{padding:5px 0;font-size:13px}
  .csr .current-sale-history__dot{top:.55rem;width:8px;height:8px;left:-1.56rem}
  .csr .current-sale-history__date{font-size:11.5px}
  .csr .store-header{padding-top:20px}
  .csr .store-header h1{font-size:25px;line-height:1.15;letter-spacing:-.2px}
  .csr .store-header h2{font-size:15px}
  .csr .store-header-content{gap:14px}
  .csr .store-logo-canvas{width:104px;height:72px;padding:8px;border-radius:14px}

  /* side stub (acties.nl-style): narrow value column on the left, spanning the card */
  .csr .coupon.cupon{grid-template-columns:84px minmax(0,1fr);grid-template-rows:auto auto auto auto;grid-template-areas:"badge main" "badge signals" "badge cta" "badge more";min-height:0;border-radius:16px}
  .csr .cupon-badge{border-radius:15px 0 0 15px;padding:10px 4px;gap:0;justify-content:center}
  .csr .cupon-porcentaje,.csr .cupon-badge--lg .cupon-porcentaje{font-size:26px}
  .csr .cupon-badge--xl .cupon-porcentaje{font-size:18px}
  .csr .cupon-off{font-size:12px;letter-spacing:1.5px;margin-top:2px}
  .csr .cupon-palabra{font-size:11px;letter-spacing:.5px}
  .csr .cupon-palabra--sub{font-size:10px}
  .csr .cupon-tienda{display:none}
  .csr .cupon-verificado{display:flex;align-items:center;gap:3px;margin-top:10px;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.3px;color:var(--verde-texto)}
  .csr .cupon-verificado::before{content:"";width:11px;height:11px;background:currentColor;-webkit-mask:var(--ico-check) no-repeat center/contain;mask:var(--ico-check) no-repeat center/contain}
  .csr .coupon.cupon::before,.csr .coupon.cupon::after{left:72px}
  .csr .coupon-main{padding:14px 16px 0}
  .csr .coupon.cupon:not(:has(.coupon-signals)) .coupon-main{padding-bottom:0}
  .csr .top-label{margin-bottom:6px;font-size:10px;padding:3px 8px}
  .csr .coupon-title{font-size:16px;line-height:1.3;margin-bottom:4px}
  .csr .coupon-desc{font-size:14px}
  .csr .coupon-desc-toggle{font-size:13px}
  /* details as one or two lines of small text; verified lives in the stub */
  .csr .coupon.cupon .coupon-signals{padding:8px 16px 0;margin:0;gap:3px 10px}
  .csr .coupon.cupon .coupon-signal,.csr .coupon.cupon .coupon-expiry{height:auto;padding:0;background:none!important;border-radius:0;font-size:11.5px;font-weight:500;gap:4px}
  .csr .coupon.cupon .coupon-expiry:not(.coupon-expiry--urgent){color:var(--texto-suave)}
  .csr .coupon.cupon .coupon-signal--trending,.csr .coupon.cupon .coupon-signal--new{color:var(--texto-suave)}
  .csr .coupon.cupon .coupon-signal--verified{display:none}
  .csr .coupon.cupon .coupon-expiry::before,.csr .coupon.cupon .coupon-signal::before{width:11px;height:11px}
  /* compact button, same element */
  .csr .coupon.cupon .coupon-cta{width:auto;margin:12px 16px 14px;padding:0}
  .csr .coupon.cupon .coupon-cta:has(.code-teaser){height:40px;border-radius:11px}
  .csr .coupon.cupon .coupon-cta .btn{height:40px;font-size:14px;border-radius:11px}
  .csr .coupon.cupon .coupon-cta .btn-coupon{height:100%;border-radius:0}
  .csr .coupon.cupon .code-teaser{height:100%;width:56px;font-size:14px}
  .csr .coupon.cupon .coupon-cta--visible-code .coupon-code{height:40px;font-size:14px;border-radius:11px}
  .csr .coupon.cupon .coupon-store-link{padding:0 16px 14px;margin-top:-4px}
  .csr .coupon.cupon .coupon-store-link a{font-size:12.5px!important}
}

@media (prefers-reduced-motion:reduce){.csr *{transition:none!important}}

/* homepage hero: "updated" pill + stats row under the logo grid */
.csr .csr-updated{display:table;margin:0 auto 12px;padding:0 0 0 18px;font-size:13px;font-weight:600;color:var(--texto);position:relative}
.csr .csr-updated::before{content:"";position:absolute;left:0;top:50%;width:12px;height:12px;margin-top:-6px;background:var(--verde-texto);-webkit-mask:var(--ico-check) no-repeat center/contain;mask:var(--ico-check) no-repeat center/contain}
.csr .csr-stats{display:flex;justify-content:center;width:fit-content;max-width:100%;box-sizing:border-box;margin:20px auto 28px;padding:16px 8px;background:#fff;border:1px solid var(--borde);border-radius:18px;box-shadow:0 4px 14px rgba(91,63,208,.08);text-align:center}
.csr .csr-stat{padding:0 36px}
.csr .csr-stat + .csr-stat{border-left:1px solid var(--borde)}
.csr .csr-stat strong{display:block;font-family:var(--display);font-size:28px;font-weight:800;line-height:1.1;color:var(--violeta-oscuro)}
.csr .csr-stat span{font-size:13px;color:var(--violeta)}
@media (max-width:640px){
  .csr .csr-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));row-gap:14px;width:100%;margin:14px 0 20px;padding:14px 4px;border-radius:14px}
  .csr .csr-stat{padding:0 8px}
  .csr .csr-stat:nth-child(odd){border-left:none}
  .csr .csr-stat strong{font-size:21px}
  .csr .csr-stat span{font-size:11px}
}

/* homepage logo grid heading + "Ver todas" link */
.csr .csr-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:0 0 20px}
.csr .csr-section-head h2{margin:0;font-size:28px;font-weight:700}
.csr .csr-section-head a{flex-shrink:0;font-size:14px;font-weight:600;color:var(--violeta);text-decoration:none}
.csr .csr-section-head a:hover{color:var(--violeta-oscuro);text-decoration:underline}
@media (max-width:640px){
  .csr .csr-section-head{margin-bottom:14px}
  .csr .csr-section-head h2{font-size:22px}
  .csr .csr-section-head a{font-size:13px}
}

/* ============ STORE ENTRY-TYPE NAV (chip row above entries, no JS) ============ */
.csr-toc{margin:0 0 18px}
.csr-toc__t{display:none}
.csr-toc ul{list-style:none;margin:0;padding:2px 2px 6px;display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}
.csr-toc ul::-webkit-scrollbar{display:none}
.csr-toc a{display:inline-flex;align-items:center;gap:8px;padding:5px 14px 5px 5px;background:#fff;border:1px solid var(--borde);border-radius:999px;font-size:13px;line-height:1.2;color:var(--texto-suave);text-decoration:none;white-space:nowrap}
.csr-toc a:hover{color:var(--violeta);border-color:var(--violeta)}
.csr-toc__i{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#fdf0c8}
.csr-toc svg{width:18px;height:18px}
.csr .coupon.cupon{scroll-margin-top:90px}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
@media (min-width:700px){
.csr-toc ul{flex-wrap:wrap;overflow:visible}
.csr-toc a{font-size:14px;padding-right:14px}
}

/* ============ HOMEPAGE RADAR DE REBAJAS (reuses the Radar history timeline look) ============ */
.csr .csr-radar{margin:36px 0 8px}
.csr .csr-radar__count{font-size:14px;color:var(--texto-suave)}
.csr .csr-radar__box{margin-bottom:0;padding:12px 20px 14px}
.csr .csr-radar__box .current-sale-history__head{margin-top:2px;display:flex;justify-content:space-between}
.csr .csr-radar__box .current-sale-history__scroll{max-height:224px} /* 6 rows x 36px + list padding */
.csr .csr-radar__box .current-sale-history__item{height:36px;box-sizing:border-box;align-items:center;padding:0}
.csr .csr-radar__box .current-sale-history__dot{top:13px}
@media (max-width:640px){.csr .csr-radar__box .current-sale-history__scroll{max-height:188px}.csr .csr-radar__box .current-sale-history__item{height:30px}.csr .csr-radar__box .current-sale-history__dot{top:10px}}
.csr .csr-radar__box .current-sale-history__name{text-decoration:none;font-weight:500}
.csr .csr-radar__box .current-sale-history__name strong{font-weight:700}
.csr .csr-radar__box .current-sale-history__name:hover{color:var(--violeta)}
.csr .csr-radar__more .current-sale-history__name{color:var(--texto-suave);font-weight:400;font-style:italic;padding-left:18px}
.csr .csr-radar__more .current-sale-history__name:hover{color:var(--texto-suave)}
.csr .csr-radar__dot{background:var(--violeta)}
