/* r170: catalog cards */

#shops .b45-t4 .x-l b{white-space:nowrap}
/* price above, full-width button below: nothing overlaps in the narrow cards */
#shops .b45-t4 .b43-ft{flex-direction:column!important;align-items:stretch!important;flex-wrap:nowrap!important;gap:12px!important}


#shops .b45-t4 .b43-go{justify-content:center;width:100%;padding:11px 14px!important;font-size:14px!important}
/* two-line animation: a WhatsApp message goes live, the month's usage grows with the plan */
@property --r170n{syntax:'<integer>';inherits:false;initial-value:0}
.r170{display:grid;grid-template-rows:20px 16px;gap:8px;padding:10px 18px;border-bottom:1px solid #2a2826;background:linear-gradient(180deg,#1a1a1a,#171717);font:600 9.5px var(--f-mono,ui-monospace,monospace);color:#8d877e;overflow:hidden}
.r170 .q7ra,.r170 .q7rb{display:flex;align-items:center;gap:8px;min-width:0}
.r170 .q7w{flex:none;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#25D366;color:#0e2a18}
.r170 .q7w svg{width:11px;height:11px}
.r170 .q7msg{min-width:0;flex:0 1 auto;display:flex;align-items:center;height:20px;padding:0 8px;border-radius:8px 8px 8px 2px;background:#1e3a2c;color:#e3f5ea;overflow:hidden}
.r170 .q7msg em{font-style:normal;white-space:nowrap;overflow:hidden;max-width:0;animation:r170t var(--d,7s) steps(24,end) infinite}
@keyframes r170t{0%,4%{max-width:0}34%,94%{max-width:200px}100%{max-width:0}}
.r170 .q7ar{flex:1;min-width:10px;height:2px;border-radius:2px;background:rgba(255,255,255,.08);position:relative;overflow:hidden}
.r170 .q7ar::after{content:"";position:absolute;inset:0;background:#7fe0a6;transform:scaleX(0);transform-origin:left;animation:r170a var(--d,7s) cubic-bezier(.4,0,.2,1) infinite}
@keyframes r170a{0%,36%{transform:scaleX(0)}52%,94%{transform:none}100%{transform:scaleX(0)}}
.r170 .q7ok{flex:none;white-space:nowrap;padding:2px 7px;border-radius:6px;border:1px solid rgba(255,255,255,.1);color:#5f5a53;animation:r170o var(--d,7s) infinite}
@keyframes r170o{0%,52%{color:#5f5a53;border-color:rgba(255,255,255,.1);background:none}56%,94%{color:#7fe0a6;border-color:rgba(127,224,166,.45);background:rgba(127,224,166,.08)}100%{color:#5f5a53}}
.r170 .q7mt{flex:none;display:flex;align-items:baseline;gap:3px;min-width:48px}
.r170 .q7mt b{font:800 11.5px var(--f-body,system-ui);color:#EEEBE6;counter-reset:n var(--r170n);animation:r170n var(--d,7s) cubic-bezier(.2,.6,.3,1) infinite}
.r170 .q7mt b::after{content:counter(n)}
@keyframes r170n{0%,50%{--r170n:var(--from)}62%,94%{--r170n:var(--to)}100%{--r170n:var(--from)}}
.r170 .q7mt small{font-size:9px;color:#5f5a53}
.r170 .q7bar{flex:1;min-width:20px;height:5px;border-radius:3px;background:rgba(255,255,255,.07);overflow:hidden}
.r170 .q7bar i{display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,#E0A04A,#7fe0a6);width:calc(var(--a)*100%);animation:r170b var(--d,7s) cubic-bezier(.3,0,.2,1) infinite}
@keyframes r170b{0%,50%{width:calc(var(--a)*100% + 3%)}62%,94%{width:calc(var(--b)*100% + 3%)}100%{width:calc(var(--a)*100% + 3%)}}
.r170 .q7tg{flex:none;white-space:nowrap;padding:1px 6px;border-radius:5px;border:1px solid rgba(255,255,255,.1);color:#8d877e;font-size:8.5px}
.r170 .q7wk,.r170 .q7wd{flex:none;display:flex;align-items:center;gap:3px}
.r170 .q7wk small{font-size:8.5px;margin-right:2px}
.r170 .q7wk i{width:8px;height:8px;border-radius:2px;background:rgba(255,255,255,.08);animation:r170w var(--d,7s) infinite}
.r170 .q7wk i:nth-child(3){animation-delay:.25s}.r170 .q7wk i:nth-child(4){animation-delay:.5s}.r170 .q7wk i:nth-child(5){animation-delay:.75s}
.r170 .q7wd i{font-style:normal;width:13px;height:13px;border-radius:3px;display:grid;place-items:center;font-size:7.5px;background:rgba(255,255,255,.05);color:#5f5a53;animation:r170w var(--d,7s) infinite}
.r170 .q7wd i:nth-child(2){animation-delay:.18s}.r170 .q7wd i:nth-child(3){animation-delay:.36s}.r170 .q7wd i:nth-child(4){animation-delay:.54s}.r170 .q7wd i:nth-child(5){animation-delay:.72s}
@keyframes r170w{0%,8%{background:rgba(255,255,255,.06);color:#5f5a53}14%,90%{background:#E0A04A;color:#1a140c}100%{background:rgba(255,255,255,.06);color:#5f5a53}}
.r170-3{--d:5.5s}.r170-4{--d:4.5s}
@media (prefers-reduced-motion:reduce){.r170 *{animation:none!important}.r170 .q7msg em{max-width:200px}}

/* r172: strip a little taller so «Популярный» never touches the text */
#shops .b45-t4 .x-st{height:48px!important;align-items:flex-end!important;padding-bottom:12px!important}
#shops .b45-t4 .b43-c.hi .x-st{padding-right:20px}
/* r172: button back to the right of the price */
#shops .b45-t4 .b43-ft{flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}
#shops .b45-t4 .b43-pr{min-width:0;flex:1}
#shops .b45-t4 .b43-pr strong{font-size:23px!important;white-space:nowrap}
#shops .b45-t4 .b43-pr strong small{font-size:11.5px!important;margin-left:1px}
#shops .b45-t4 .b43-pr .c5{display:block;white-space:normal;line-height:1.35;max-width:120px}
#shops .b45-t4 .b43-go{width:auto!important;flex:none;padding:9px 12px!important;font-size:13px!important}
/* r172: month / year switch, top right of the catalog cards */
.q7per{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin:0 0 12px;font:500 12px var(--f-body,system-ui);color:#8d877e}
.q7seg{display:inline-flex;padding:3px;border-radius:99px;background:#1C1C1D;border:1px solid #33302C}
.q7seg button{font:600 12.5px var(--f-body,system-ui);color:#ADA79E;background:none;border:0;border-radius:99px;padding:6px 14px;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.q7seg button em{font-style:normal;font:700 9.5px var(--f-mono,ui-monospace,monospace);color:#7fe0a6}
.q7seg button[aria-pressed="true"]{background:#2a2a2e;color:#EEEBE6;box-shadow:inset 0 0 0 1px rgba(224,160,74,.45)}
#shops .b45-t4{margin-top:0!important}
/* r172: message bubble — typing dots first, then the text, then two ticks */
.q7msg{gap:5px}
.q7dots{display:inline-flex;gap:2px;overflow:hidden;max-width:20px;animation:q7dw var(--d,7s) infinite}
.q7dots i{width:3px;height:3px;border-radius:50%;background:#a6e3bf;animation:q7db .9s infinite}
.q7dots i:nth-child(2){animation-delay:.15s}.q7dots i:nth-child(3){animation-delay:.3s}
@keyframes q7db{0%,100%{opacity:.3}50%{opacity:1}}
@keyframes q7dw{0%,6%{max-width:20px;opacity:1}8%,100%{max-width:0;opacity:0}}
.q7tick{text-decoration:none;font-size:8.5px;letter-spacing:-.18em;color:rgba(227,245,234,.35);max-width:0;overflow:hidden;animation:q7tk var(--d,7s) infinite}
@keyframes q7tk{0%,34%{max-width:0;color:rgba(227,245,234,.35)}38%,46%{max-width:16px;color:rgba(227,245,234,.45)}50%,94%{max-width:16px;color:#53bdeb}100%{max-width:0}}
.r170 .q7msg em{animation-name:q7t2!important}
@keyframes q7t2{0%,8%{max-width:0}34%,94%{max-width:200px}100%{max-width:0}}


#shops .b45-t4 .x-st{align-items:center!important;padding-bottom:0!important;padding-top:4px!important}


/* r173: same type scale as the site and shop cards, two-line descriptions, footers of equal height */
#shops .b45-t4 .b43-c h3{font-size:21px!important}
#shops .b45-t4 .b43-c .ds{min-height:45px}
#shops .b45-t4 .b43-pr strong{font-size:26px!important}
#shops .b45-t4 .b43-pr strong small{font-size:12px!important}

#shops .b45-t4 .b43-go{font-size:14px!important}
.q7per>span{display:none}


/* r174: the original month/year switch, on the right, compact */
.q7per.period{background:none;border:0;padding:0;margin:0 0 12px;display:flex;justify-content:flex-end}
.q7per .q7seg button{font-size:12.5px!important;padding:5px 12px!important;min-height:28px!important;line-height:1.2!important}/* r237: tap target ≥28 px (QA all devices) */
.q7per .q7seg button .period__save{font-size:11px!important;font-style:normal}
/* r174: smaller «Популярный» in the narrow catalog cards */
#shops .b45-t4 .b43-c.hi .b5-bp1{height:22px!important;top:-11px!important;padding:0 10px!important;font-size:9.5px!important}
.q7per.period{display:flex!important;justify-content:flex-end!important;width:100%!important;max-width:none!important;margin:0 0 12px!important}.q7per.period .q7seg{margin:0 0 0 auto!important}
#shops .b45-t4 .b43-pr .c5{white-space:nowrap!important}
/* r175: price + button on one row, the two-line note under them across the full width */
#shops .b45-t4 .b43-ft{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"pr go" "sub sub";align-items:center!important;row-gap:6px!important;column-gap:10px!important}
#shops .b45-t4 .b43-pr{display:contents!important}
#shops .b45-t4 .b43-pr strong{grid-area:pr}
#shops .b45-t4 .b43-pr .c5{grid-area:sub;max-width:none!important;min-height:31px}
#shops .b45-t4 .b43-go{grid-area:go}

/* r176: month/year — sliding thumb */
.q7per .q7seg{position:relative;display:inline-grid!important;grid-template-columns:1fr 1fr}
.q7per .q7seg button{position:relative;z-index:1;background:none!important;box-shadow:none!important;justify-content:center}
.q7per .q7sl{position:absolute;top:3px;bottom:3px;left:3px;width:calc(50% - 3px);border-radius:99px;background:#2e2c29;box-shadow:inset 0 0 0 1px rgba(224,160,74,.45);transition:transform .3s cubic-bezier(.4,0,.2,1)}
.q7per:has(button[data-p="yr"][aria-pressed="true"]) .q7sl{transform:translateX(100%)}
