/* Tiendamap поверх UI Kit (kit.css, гамма "sp" — красный #D62828 с персиковым акцентом): маска контактов в образце,
   значки соцсетей, сетки ссылок, блок «¿Cuántas …?», типы и рубрики, провинции по автономным сообществам. */

/* ---------- contact mask: the shape is visible, digits and addresses come from the server as dots ---------- */
.mask { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.5px; color: var(--ink-2, #33415C); white-space: nowrap; }
.mask .blur { filter: blur(2.6px); opacity: .75; user-select: none; letter-spacing: .02em; }
.cmore { font-size: 11px; color: var(--muted, #7A8699); margin-left: 4px; }
.contacts-cell { display: flex; flex-direction: column; gap: 3px; }
.contacts-cell .mask svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; opacity: .55; }

/* ---------- social network badges in a row ---------- */
.nets { display: flex; flex-wrap: wrap; gap: 3px; }
.net { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 18px; padding: 0 4px;
  border-radius: 4px; font: 700 9.5px/1 'JetBrains Mono', monospace; letter-spacing: .02em; color: #fff; background: #64748B; }
.net--telegram { background: #229ED9; } .net--whatsapp { background: #25A244; } .net--youtube { background: #E62117; }
.net--instagram { background: #C13584; } .net--facebook { background: #1877F2; }
.net--tiktok { background: #111; } .net--x { background: #111; } .net--threads { background: #111; } .net--linkedin { background: #0A66C2; }
.net--wechat { background: #07C160; } .net--xiaohongshu { background: #FF2442; } .net--pinterest { background: #BD081C; } .net--line { background: #06C755; }
.net--openrice { background: #F2A33A; } .net--other { background: #94A3B8; }

.who small.addr { max-width: 340px; white-space: normal; }
.cell-sub { display: block; font-size: 12px; color: var(--muted, #7A8699); }
.badge-chain { display: inline-flex; align-items: center; gap: 4px; }
td .tag + .tag { margin-left: 3px; }
.row-closed b { color: var(--muted, #7A8699); text-decoration: line-through; text-decoration-thickness: 1px; }

/* ---------- chain logo ---------- */
.clogo { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid var(--line, #E3E8EF); flex: none; }
.clogo--lg { width: 64px; height: 64px; border-radius: 14px; }
.clogo--sm { width: 22px; height: 22px; border-radius: 5px; }

/* ---------- блок «¿Cuántas … hay?» ---------- */
.answer { border-left: 3px solid var(--brand); padding: 4px 0 4px 18px; }
.answer h2 { font-size: 22px; margin: 0 0 8px; }
.answer p { margin: 0 0 8px; }
.answer .big { font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--brand); }

/* ---------- сетки ссылок: провинции, муниципии, рубрики ---------- */
.linkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 24px; }
.linkgrid > a, .linkgrid > span { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line, #E3E8EF);
  font-size: 14px; color: var(--ink, #0B1B2B); text-decoration: none; }
.linkgrid a:hover { color: var(--brand); }
.linkgrid .n { font: 500 12px 'JetBrains Mono', monospace; color: var(--muted, #7A8699); white-space: nowrap; }
.linkgrid > span { color: var(--muted, #7A8699); }

.auth-card { max-width: 440px; margin: 48px auto; }
.prose-lf h2 { margin-top: 28px; }
.prose-lf p, .prose-lf li { line-height: 1.65; }
.muted { color: var(--muted, #7A8699); }
.pager__list .is-disabled { opacity: .4; pointer-events: none; }
.hero-search { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 8px; max-width: 760px; }
@media (max-width: 760px) { .hero-search { grid-template-columns: 1fr; } }

/* ---------- business table: fixed columns, wrapping inside cells ---------- */
.table--co { table-layout: fixed; min-width: 1040px; }
.table--co td { vertical-align: top; padding-top: 12px; padding-bottom: 12px; }
.table--co .who { align-items: flex-start; }
.table--co .who b, .table--co .who small { white-space: normal; overflow-wrap: anywhere; }
.table--co .who small.addr { max-width: none; }
.table--co .tag { white-space: normal; text-align: left; line-height: 1.25; padding-top: 3px; padding-bottom: 3px; }
.table--co col.c-co { width: 29%; } .table--co col.c-cat { width: 15%; } .table--co col.c-city { width: 13%; }
.table--co col.c-ph { width: 14%; } .table--co col.c-web { width: 16%; } .table--co col.c-soc { width: 13%; } .table--co col.c-date { width: 96px; }
.table--co .mask { white-space: normal; overflow-wrap: anywhere; }
.table--co td.ph .mask { white-space: nowrap; }
.contacts-cell .mask svg { display: inline-block; }
.who img.clogo, .who .avatar { margin-top: 1px; }

.kpis--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 900px) { .kpis--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.mt-8 { margin-top: 56px; } .mb-8 { margin-bottom: 56px; }
.contacts-cell .mask { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.table--co .mask { white-space: nowrap; }

.who .tag { margin-left: 0; }
.price-tag { font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.buy-cell { white-space: nowrap; text-align: right; }
.table--co { min-width: 900px; }
.table--co col.c-co { width: 30%; } .table--co col.c-city { width: 16%; } .table--co col.c-ph { width: 16%; }
.table--co col.c-web { width: 20%; } .table--co col.c-soc { width: 12%; }
.hero-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hero-price b { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.cartline .tile-ic svg { width: 18px; height: 18px; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: minmax(0, 1fr); } }
.order-ok { max-width: 640px; margin: 48px auto; text-align: center; }
.order-ok .tile-ic { margin: 0 auto 16px; }
@media (min-width: 961px) { .pdp__side--sticky { position: sticky; top: 92px; } }
#priceTable td:first-child .check { margin: 0; }
.table .rbar .progress { width: 72px; min-width: 72px; flex: none; }
.table .rbar .num { min-width: 44px; }
.table .rbar { min-width: 0; }
.checkout .form__row { align-items: start; }
@media (max-width: 480px) { .hdr__name { display: none; } .hdr__actions { gap: 8px; } }
@media (max-width: 900px) { .kpis--5 .kpi:last-child:nth-child(odd) { grid-column: span 2; } }

/* ---------- провинции по автономным сообществам (главная, /provincias) ---------- */
.fds { column-count: 3; column-gap: 20px; }
@media (max-width: 1100px) { .fds { column-count: 2; } }
@media (max-width: 700px) { .fds { column-count: 1; } }
.fd { display: inline-block; width: 100%; break-inside: avoid; margin: 0 0 20px; background: #fff; border: 1px solid var(--line); padding: 16px 18px 6px; }
.fd__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; margin-bottom: 2px; border-bottom: 1px solid var(--line); }
.fd__t { font-size: 15.5px; font-weight: 750; letter-spacing: -0.015em; line-height: 1.3; margin: 0; }
.fd__m { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.fd__list { list-style: none; margin: 0; padding: 0; }
.fd__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto 70px; gap: 12px; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.fd__list li:last-child { border-bottom: 0; }
.fd__list a { color: var(--ink); text-decoration: none; }
.fd__list a:hover { color: var(--brand); }
.fd__n { font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; }
.fd__p { font-weight: 700; font-size: 13.5px; text-align: right; white-space: nowrap; }

.topbar__links .dot { margin-right: 8px; }
.over__sum { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 16px 0 4px; padding: 14px 16px; background: var(--paper); font-size: 14px; }
.over__sum b { text-align: right; white-space: nowrap; }
.over__sum .over__old { text-decoration: line-through; color: var(--muted); font-weight: 600; }
.over__sum .over__new { color: var(--brand); font-size: 16px; }

/* ---------- списки с ценами: название и число магазинов слева, цена справа ---------- */
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; }
.plist__i { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.plist__nm { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.plist__nm small { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.plist__p { flex: none; font-size: 14.5px; font-weight: 750; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plist__i:hover .plist__nm { color: var(--brand); }
/* checkout: notes under the lines — spacing from the order lines and from the total */
.checkout [data-co-notes]:not(:empty) { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 20px; }
.checkout [data-co-notes] .pricer-hint { margin: 0; }

/* ---------- "all / chains / independents" switch in the configurator ---------- */
.segpick { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 14px; }
.segpick__l { font-size: 12px; color: var(--muted); }
.segpick__seg { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
.segpick__seg .seg__btn { justify-content: center; padding: 0 6px; font-size: 12px; white-space: nowrap; }
.picklist__row input:disabled ~ .picklist__nm, .picklist__row input:disabled ~ .picklist__v, .picklist__row input:disabled ~ .picklist__p { opacity: .4; }
tr.is-off td { opacity: .4; }

/* Two columns "table + list": one column on a narrow screen */
.cols--split { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.cols--split-14 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 1180px) { .cols--split, .cols--split-14 { grid-template-columns: minmax(0, 1fr); } }
/* Table scrolling inside (app.js scrollBoxes): as tall as the neighbouring column, the scrollbar is
   always visible, a fade and a "More …" button at the bottom while there is more to scroll */
.scrollbox { position: relative; }
.scrollbox .tablescroll { scrollbar-width: thin; scrollbar-color: rgba(13, 33, 64, 0.28) transparent; }
.scrollbox .tablescroll::-webkit-scrollbar { width: 8px; height: 8px; }
.scrollbox .tablescroll::-webkit-scrollbar-thumb { background: rgba(13, 33, 64, 0.24); }
.scrollbox .tablescroll::-webkit-scrollbar-thumb:hover { background: rgba(13, 33, 64, 0.4); }
.scrollbox .tablescroll::-webkit-scrollbar-track { background: rgba(13, 33, 64, 0.04); }
.scrollbox::after { content: ''; position: absolute; left: 0; right: 10px; bottom: 0; height: 72px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 78%); opacity: 0; transition: opacity .2s; }
.scrollbox.is-more::after { opacity: 1; }
.scrollbox__more { position: absolute; left: 50%; bottom: 12px; z-index: 3; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border: 1px solid var(--line); background: #fff;
  color: var(--ink-soft); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px rgba(13, 33, 64, 0.1); }
.scrollbox__more:hover { color: var(--ink); border-color: rgba(13, 33, 64, 0.3); }
.scrollbox__more svg { width: 14px; height: 14px; }
.scrollbox__more[hidden] { display: none; }

/* Header: eight sections (sectors as a dropdown) — denser links, a shorter buy button on laptops */
.hdr__link { padding: 9px 10px; }
@container (max-width: 1300px) {
  .hdr__link { padding: 9px 6px; font-size: 14px; }
  .hdr__in { gap: 14px; }
  .hdr__nav { margin-left: 2px; }
  .hdr .hide-narrow { display: none !important; }
}
@container (max-width: 1199px) {
  .hdr__nav { display: none; }
  .hdr__burger { display: inline-flex; }
}

/* District rankings: on a phone — rank, name, businesses per 100,000 and residents per business */
@media (max-width: 700px) { .dens .col-opt { display: none; } .dens .rbar .progress { display: none; } .dens th { white-space: normal; } }

/* "Other countries and custom data": a banner above the footer of every page and the request page */
.custband { margin: 8px 0 56px; }
.custband .cta__t { max-width: 780px; }
.custband__kicker { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px; font: 700 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.custband__kicker svg { width: 15px; height: 15px; }
.custband__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.custband__chips a { padding: 6px 11px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.25; }
.custband__chips a:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); }
.custband__chips a.custband__more { background: none; border-color: transparent; color: var(--accent); padding-left: 4px; }
.topbar__links a.topbar__hl { color: var(--accent); font-weight: 650; }
.topbar__links a.topbar__hl:hover { color: #fff; }

.nichegrid > a { cursor: pointer; }
.nichegrid__nm { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.nichegrid__more { display: none; margin-top: 14px; }
.nichegrid__nm svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--brand); opacity: .45; transition: opacity .12s, transform .12s; }
.nichegrid > a:hover .nichegrid__nm svg { opacity: 1; }
.nichegrid > a.is-picked { color: var(--brand); font-weight: 650; }
.nichegrid > a.is-picked .nichegrid__nm svg { opacity: 1; transform: rotate(45deg); }
.nichegrid__empty { margin-top: 12px; padding: 14px 16px; background: var(--paper); font-size: 14px; }
.capgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.capcard { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--line); }
.capcard b { display: block; font-size: 15.5px; letter-spacing: -0.01em; }
.capcard p { margin-top: 6px; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.checkgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin-top: 8px; }
.freqgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.freqgrid .radio--card { padding-top: 12px; padding-bottom: 12px; }
@media (max-width: 980px) { .capgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .capgrid, .checkgrid, .freqgrid { grid-template-columns: 1fr; } .custband { margin-bottom: 36px; }
  .nichegrid.is-collapsed > a:nth-child(n+21) { display: none; }      /* on a phone — the first 20 countries and an "all" button */
  .nichegrid.is-collapsed ~ .nichegrid__more { display: inline-flex; }
}

/* ---------- sectors ---------- */
/* sector choice in the configurator: pills, several at once */
.typepick { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; }
.typepick__hint { color: var(--muted); opacity: .8; }
.typepick__list { display: flex; flex-wrap: wrap; gap: 5px; }
.typepick .pill { height: 28px; padding: 0 10px; font-size: 12.5px; gap: 5px; }
.buybox__sum--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
/* sector tiles: name, count, share, bar, price */
/* 16 sectors: four to six tiles a row on a desktop, two on a phone */
.ttiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ttile { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
a.ttile:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(184, 32, 47, 0.12); }
.ttile__nm { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
a.ttile:hover .ttile__nm { color: var(--brand-ink); }
.ttile__n { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 7px; margin-top: auto; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ttile__n small { font: 500 12px var(--mono); color: var(--muted); letter-spacing: 0; }
.ttile__bar { display: block; height: 4px; background: var(--brand-tint); }
.ttile__bar i { display: block; height: 100%; background: var(--brand); }
.ttile__f { font-size: 12.5px; color: var(--muted); }
.ttile__p { font-size: 14px; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
/* "Sectors" menu in the header */
.typemenu { min-width: 0; width: 740px; max-width: calc(100vw - 48px); }
/* sectors in two columns — the menu is half as tall and fits a laptop screen; on a very low screen it scrolls inside */
.typemenu__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 4px; }
.typemenu .menu__item small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.typemenu .menu__item span { min-width: 0; }
.hdr__item > .typemenu { max-height: calc(100vh - 120px); overflow-y: auto; }
.typemenu .menu__item { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.typemenu .menu__item span { min-width: 0; font-weight: 600; }
.typemenu .menu__item kbd { flex: none; }
.drawer-nav__sub { display: block; padding: 14px 12px 4px; font: 700 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.drawer-nav__types { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 6px; }
.drawer-nav__body .drawer-nav__types a { padding: 9px 12px; font-size: 14.5px; font-weight: 550; }
/* sector and category in a sample row */
.who small.kind { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; }
.tag--type { background: var(--brand-tint); color: var(--brand-ink); font-weight: 650; }
.kind__more { color: var(--muted); font-size: 12px; }
/* sector filter on the openings and rankings pages */
.typefilter { padding: 2px 0 10px; }
.typefilter .pill { height: 32px; padding: 0 12px; font-size: 13px; }
@media (max-width: 760px) {
  .typefilter { gap: 6px; }
  .typefilter .pill { height: 30px; padding: 0 10px; font-size: 12.5px; gap: 5px; }
  .typefilter .pill .n, .typefilter-note { display: none; }
}
/* KPIs in the main column (the configurator is next to it): numbers up to 7 digits are smaller so they are not cut on a laptop */
.pdp__main .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pdp__main .kpi { padding: clamp(16px, 1.6vw, 22px); }
/* big numbers next to the configurator: a smaller KPI font, and two tile columns up to 1280px */
.pdp__main .kpi__n { font-size: clamp(22px, 1.9vw, 28px); }
@media (max-width: 1279px) { .pdp__main .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* phone: buy buttons stacked — without flex: 1, otherwise they get squashed in a column */
@media (max-width: 480px) { .buybox__actions .btn { flex: none; } }

/* ---------- sector icons (resources/views/partials/type-icons.blade.php, #t-<slug>) ----------
   Red palette "mm": icons and links on white use the brand colour --brand, on the red background — white --brand-on. */
.hdr .typemenu .menu__item svg { width: 20px; height: 20px; color: var(--brand); }
.typemenu .menu__item span { flex: 1; }
.typemenu .menu__item kbd { min-width: 56px; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.drawer-nav__body .drawer-nav__types a { display: flex; align-items: center; gap: 9px; }
.drawer-nav__types svg { width: 18px; height: 18px; flex: none; color: var(--brand); }
.ttile__nm { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 60px; }
.ttiles .ttile__nm svg { width: 22px; height: 22px; flex: none; color: var(--brand); }
.ttile__f { line-height: 1.35; }
.typepick .pill svg, .typefilter .pill svg { width: 15px; height: 15px; flex: none; color: var(--brand); }
.typepick .pill.is-active svg, .typefilter .pill.is-active svg { color: currentColor; }
.tag--type { gap: 4px; }
.tag--type svg { width: 13px; height: 13px; flex: none; }
.tname { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.tname svg { width: 20px; height: 20px; flex: none; color: var(--brand); }
.linkgrid .ln { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.linkgrid .ln svg { width: 17px; height: 17px; flex: none; color: var(--brand); }
.typehead { display: flex; align-items: center; gap: 18px; }
.typehead h1 { margin: 0; min-width: 0; overflow-wrap: break-word; }
/* narrow phone: long sector names in the title — a slightly smaller heading */
@media (max-width: 360px) { .typehead h1 { font-size: 26px; } }
.ticon-box { display: inline-grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 14px; background: var(--brand-tint); color: var(--brand); }
.ticon-box svg { width: 36px; height: 36px; }
@media (max-width: 600px) { .typehead { gap: 12px; } .ticon-box { width: 48px; height: 48px; border-radius: 11px; } .ticon-box svg { width: 28px; height: 28px; } }

/* ---------- responsiveness: no horizontal scroll of the page, nor of tables on a desktop ---------- */
/* labels in tables (sector and chain size, address) wrap instead of stretching the table */
.table .who b, .table .who small { white-space: normal; }
/* secondary table columns — only on a wide screen (the configurator stands next to the table) */
@media (max-width: 1199px) { .col-wide { display: none; } }
/* "new / closed" tabs on a narrow phone */
@media (max-width: 420px) { .tabs { overflow-x: auto; scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; } .tabs__tab { padding: 10px 10px; font-size: 13.5px; } }
/* fill rows on a chain page: on a phone the label goes above the bar */
@media (max-width: 480px) { .progress-row { flex-wrap: wrap; row-gap: 4px; } .progress-row > .text-sm { min-width: 100% !important; } .progress-row .num { min-width: 0 !important; } }
/* next to the configurator on a laptop: the "Market share" column shows the number only, without the bar */
@media (max-width: 1199px) { .pdp__main .table .rbar .progress { display: none; } }
/* итог конфигуратора: длинный список провинций и типов переносится */
.buybox__sum--4 b { white-space: normal; overflow-wrap: anywhere; }
/* узкий телефон: плотнее список провинций, чтобы названия не обрезались */
@media (max-width: 400px) {
  .buybox .picklist__head, .buybox .picklist__row { gap: 6px; padding-left: 4px; padding-right: 4px; }
  .buybox .picklist__p { min-width: 0; }
}
/* buttons at the bottom of modals: stacked full width on a phone */
@media (max-width: 480px) {
  .modal__foot { flex-direction: column-reverse; align-items: stretch; }
  .modal__foot .btn { width: 100%; justify-content: center; white-space: normal; }
}

/* top stats bar: no scrolling — numbers that do not fit go to a second (hidden) row as a whole */
.topbar__stats { flex-wrap: wrap; height: 36px; overflow: hidden; align-content: flex-start; }
.topbar__stat, .topbar__stats > .topbar__stat:last-child { height: 36px; border-right: 0; margin-right: 0; padding-right: 0; }
.topbar__stat + .topbar__stat { border-left: 1px solid rgba(255,255,255,0.14); padding-left: 16px; margin-left: 16px; }
/* badges in the page header: a long badge wraps instead of overflowing */
.pagehead .row .badge { max-width: 100%; white-space: normal; }
@media (max-width: 400px) { .segpick__seg .seg__btn { min-width: 0; height: auto; min-height: 28px; padding: 4px; font-size: 11.5px; line-height: 1.15; white-space: normal; text-align: center; } }
@media (max-width: 420px) { .tabs__more { display: none; } }
/* меню «Tipos de tienda»: вся Испания сверху, типы ниже */
.typemenu .menu__label { padding-top: 6px; }
.typemenu .typemenu__all span { font-weight: 700; }
/* tiers on the pricing page: columns no wider than the screen, a long button label wraps */
.tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .tiers { grid-template-columns: minmax(0, 1fr); } }
.tier .btn { white-space: normal; text-align: center; justify-content: center; }
.tier__tag { max-width: calc(100% - 48px); white-space: normal; }
/* таблица провинций: длинные названия типов в шапке — в две строки, без прокрутки */
.table--thwrap th, .table--thwrap th.num { white-space: normal; vertical-align: bottom; line-height: 1.25; }
@media (max-width: 1365px) { .col-xl { display: none; } }

/* Длинные подписи: кнопка над рейтингом сетей на телефоне короче. */
.tb-short { display: none; }
@media (max-width: 480px) { .toolbar .tb-long { display: none; } .toolbar .tb-short { display: inline; } }
/* Tables next to the configurator (from 961px): column labels wrap; in an area's chain ranking "90 days" is hidden up to 1100px */
@media (min-width: 961px) { .pdp__main .table thead th { white-space: normal; vertical-align: bottom; line-height: 1.25; } }
@media (min-width: 961px) and (max-width: 1099px) { .col-mid { display: none; } }
/* breadcrumbs: a long current page name on a narrow screen — one line with an ellipsis */
.crumbs .is-current { min-width: 0; max-width: 100%; }
.crumbs .is-current span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- рубрики типа (partials/cat-table): top 15, "Show all N categories" without a reload, search over all rows ----------
   No horizontal scroll on a phone: the "Chains" column is hidden, names wrap. */
.cattable { overflow: visible; }
.cattable .toolbar { flex-wrap: wrap; gap: 8px 14px; }
.cattable .search { flex: 1 1 220px; max-width: 360px; }
.cattable__t { table-layout: auto; width: 100%; min-width: 0; }
.cattable__t td:first-child { white-space: normal; overflow-wrap: anywhere; }
.cattable__t td:first-child b { font-weight: 600; }
.cattable__t td.num, .cattable__t th.num { white-space: nowrap; }
.cattable__t .btn { white-space: nowrap; }
.cattable.is-collapsed:not(.is-searching) tr.is-extra { display: none; }
.cattable__more { margin: 14px 0 0; }
.cattable__more svg { width: 14px; height: 14px; transition: transform .15s; }
.cattable:not(.is-collapsed) .cattable__more svg { transform: rotate(180deg); }
.cattable.is-searching .cattable__more { display: none; }
.cattable__empty { margin: 12px 0 0; padding: 12px 14px; background: var(--paper); font-size: 14px; color: var(--muted); }
.cattable__empty[hidden] { display: none; }
@media (max-width: 600px) {
  .cattable__ch { display: none; }
  .cattable__t th, .cattable__t td { padding-left: 8px; padding-right: 8px; }
  .cattable__t .btn--xs { padding: 0 8px; }
  .cattable .search { max-width: none; }
}
@media (max-width: 360px) { .cattable__t .btn--xs svg { display: none; } }

/* плитки типов: число сразу под названием, the categories fill the rest — prices line up at the bottom of a row */
.ttile .ttile__n { margin-top: 0; }
.ttile .ttile__f { flex: 1 1 auto; }
.cattable__in { font-size: 12px; color: var(--muted); white-space: nowrap; cursor: help; }

/* ---------- верхняя полоса: «Обновлено» первым слева; разделители короткие (14 px), а не на всю высоту полосы ---------- */
/* промежуток — через column-gap: у первого числа в строке нет отступа, и перенесённые в скрытый ряд числа не шире полосы */
.topbar__stats { column-gap: 32px; }
.topbar__stat + .topbar__stat, .topbar--light .topbar__stat + .topbar__stat { position: relative; border-left: 0; padding-left: 0; margin-left: 0; }
.topbar__stat + .topbar__stat::before { content: ""; position: absolute; left: -16px; top: 50%; width: 1px; height: 14px; margin-top: -7px; background: rgba(255, 255, 255, 0.2); }
.topbar--light .topbar__stat + .topbar__stat::before { background: var(--line); }
.topbar__stats .topbar__upd { color: rgba(255, 255, 255, 0.72); }
.topbar--light .topbar__stats .topbar__upd { color: var(--ink-soft); }
.topbar__upd .dot { margin-right: 8px; }
.topbar__acc { position: relative; border-left: 0 !important; padding-left: 16px !important; }
.topbar__acc::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 14px; margin-top: -7px; background: rgba(255, 255, 255, 0.2); }
@media (max-width: 900px) {
  .topbar__stats .topbar__upd { display: none; }
  .topbar__stats .topbar__upd + .topbar__stat::before { display: none; }
}

/* ---------- полоса действий: ссылки разделов — сразу за названием, «В корзину» (и «Выбрано: …») — у правого края ---------- */
.actionbar__in > .stuck-only { order: 2; }
.actionbar__in > .actionbar__title + .stuck-only { margin-left: auto; }
.actionbar:not(.is-stuck) .actionbar__sep { display: none; }

/* ---------- шапка: гостю — «Войти» и «Регистрация» вместо значка аккаунта и ссылок в верхней полосе;
   когда в корзине что-то есть — «Корзина · сумма» (класс has-cart ставит скрипт в partials/header) ---------- */
html:not(.has-cart) [data-hdr-cart], html:not(.has-cart) .drawer-nav__foot--cart { display: none !important; }
.topbar__acc:empty { display: none !important; }
.hdr__cart { gap: 7px; }
.hdr__cart.is-bump { animation: hdr-cart-bump .4s ease; }
@keyframes hdr-cart-bump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.06); } }
/* с корзиной главная кнопка — корзина, «Регистрация» становится контурной */
html.has-cart .hdr__reg { background: transparent; color: var(--brand-ink, var(--brand)); border-color: var(--brand); }
html.has-cart .hdr__reg:hover { background: var(--brand-tint); }
/* ноутбук с меню в шапке: с корзиной «Регистрация» уходит в «Войти» (там есть ссылка на регистрацию), у корзины — только сумма */
@container (min-width: 1200px) and (max-width: 1440px) { html.has-cart .hdr__reg { display: none; } }
@container (min-width: 1200px) and (max-width: 1300px) { .hdr__cart .hdr__cart-l { display: none; } }

/* ---------- меню «Provincias» в шапке: 52 провинции колонками по автономным сообществам ---------- */
/* меню привязано к ширине всей навигации (а не к пункту): не выходит за неё ни на какой ширине экрана */
.hdr__nav { position: relative; }
.hdr__item--prov { position: static; }
.hdr__item--prov > .provmenu { left: 0; right: 0; width: auto; min-width: 0; max-width: none; max-height: calc(100vh - 120px); overflow-y: auto; }
.provmenu__all span { font-weight: 700; }
.provmenu .menu__item { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.provmenu .menu__item span { flex: 1; min-width: 0; }
.provmenu .menu__item kbd { flex: none; min-width: 56px; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.hdr .provmenu .menu__item svg { width: 20px; height: 20px; color: var(--brand); }
.provmenu__grid { column-count: 3; column-gap: 18px; padding: 4px 8px 6px; }
@media (min-width: 1360px) { .provmenu__grid { column-count: 4; column-gap: 14px; } }
.provmenu__z { break-inside: avoid; margin: 0 0 10px; }
.provmenu__zl { display: block; padding: 6px 6px 3px; font: 600 10.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.provmenu__p { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 4px 6px; font-size: 13.5px; line-height: 1.3; color: var(--ink); text-decoration: none; border-radius: 6px; }
.provmenu__p:hover, .provmenu__p.is-active { background: var(--brand-tint); color: var(--brand-ink, var(--brand)); }
.provmenu__p span { flex: none; font: 500 11.5px var(--mono); color: var(--muted); }

/* ---------- конфигуратор: заголовок автономного сообщества в списке провинций (клик — отметить все его провинции) ---------- */
.picklist__grp { display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 10px; margin: 6px 0 0; padding: 7px 10px 5px;
  border: 0; border-top: 1px solid var(--line-2, var(--line)); background: transparent; text-align: left; cursor: pointer;
  font: 600 10.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.picklist__grp:first-child { margin-top: 0; border-top: 0; }
.picklist__grp small { flex: none; font: 500 11px var(--mono); letter-spacing: 0; text-transform: none; color: var(--muted); }
button.picklist__grp:hover { color: var(--brand); }
button.picklist__grp.is-active { color: var(--brand-ink, var(--brand)); }
button.picklist__grp.is-active::after { content: "✓"; margin-left: auto; padding-left: 6px; }
.picklist__grp--one { cursor: default; }
.picklist.is-searching .picklist__grp { display: none; }

/* ---------- /precios: быстрые кнопки автономных сообществ над таблицей провинций ---------- */
.zchips { display: flex; flex-wrap: wrap; gap: 6px; }
.zchip { gap: 6px; }
.zchip small { font: 500 11px var(--mono); opacity: .7; }
.zchip.is-active { background: var(--brand); border-color: var(--brand); color: var(--brand-on, #fff); }
@media (max-width: 480px) { .zchip { font-size: 12.5px; } }

/* ---------- страница заказа: «Pedido ES-… recibido» ---------- */
.cabnew b { display: inline; }

/* ---------- panel de compra (partials/buy.blade.php, public/js/app.js → panel) ----------
   Territorio — cadena «España › provincia › municipio» (cada eslabón cambia la selección), debajo — tipos o categoría, segmento
   y lista: provincias por comunidad (flecha — municipios de la provincia) o municipios de una provincia con búsqueda. */
.geo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.geo__path { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 14.5px; line-height: 1.4; }
.geo__lnk { color: var(--brand-ink, var(--brand)); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(214,40,40,.35); text-underline-offset: 3px; padding: 0; }
.geo__lnk:hover { text-decoration-color: currentColor; }
.geo__sep { color: var(--muted); }
.geo__cur { font-weight: 750; color: var(--ink); overflow-wrap: anywhere; }
.geo__drill { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font-size: 13px; font-weight: 600; color: var(--brand-ink, var(--brand)); background: var(--brand-tint); }
.geo__drill:hover { background: var(--brand-soft, var(--brand-tint)); }
.geo__drill svg { width: 13px; height: 13px; }
.geo__drill[hidden] { display: none; }
.rubchip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 8px 10px; background: var(--brand-tint); font-size: 14px; }
.rubchip svg { width: 16px; height: 16px; color: var(--brand); flex-shrink: 0; }
.rubchip b { font-weight: 700; }
.rubchip a { margin-left: auto; font-size: 12.5px; color: var(--brand-ink, var(--brand)); text-decoration: underline; text-underline-offset: 2px; }
.panel__list { margin-top: 4px; }
.panel__list[hidden] { display: none; }
.panel__list .picklist__head { grid-template-columns: 20px minmax(0, 1fr) auto auto 28px; padding-right: 18px; }
.panel__list[data-view-regions] .picklist__row--all { width: calc(100% - 46px); }
.picklist__line { display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; }
.picklist.is-searching .picklist__line:not(:has(.is-match)):not(:has(input:checked)) { display: none; }
.picklist__drill { width: 28px; height: 32px; display: grid; place-items: center; color: var(--brand-ink, var(--brand)); }
.picklist__drill:hover { background: var(--brand-tint); }
.picklist__drill svg { width: 15px; height: 15px; }
.picklist__line.is-partial .picklist__row { background: var(--brand-tint); }
.picklist__line.is-partial .picklist__chk { background: #fff; border-color: var(--brand); }
.picklist__line.is-partial .picklist__chk::after { content: ''; width: 8px; height: 2px; background: var(--brand); }
.picklist__line.is-partial .picklist__chk svg { display: none; }
.panel__bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.panel__bar b { font-size: 14px; font-weight: 750; text-align: right; }
.panel__bar svg { width: 14px; height: 14px; }
.panel__parts .picklist__body { max-height: 320px; }
.panel__parts .picklist__body[aria-busy="true"] { opacity: .5; }
.panel__parts .picklist__row[hidden] { display: none; }
.panel__parts .picklist__row:has(input:checked)[hidden] { display: grid; }
.panel__empty { display: block; padding: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.panel__empty[hidden] { display: none; }
.pricer-hint--warn { background: #FFF4E5; }
@media (max-width: 400px) {
  .panel__list .picklist__head { gap: 6px; padding-left: 4px; }
  .picklist__line { grid-template-columns: minmax(0, 1fr) 24px; }
  .picklist__drill { width: 24px; }
  .panel__list[data-view-regions] .picklist__row--all { width: calc(100% - 42px); }
}
/* KPI «E-mails únicos» */
.kpi--email .kpi__n { color: var(--brand-ink, var(--brand)); }
/* jerarquía bajo el título de un municipio: «Alcalá de Henares — Madrid, Comunidad de Madrid» */
.h1__geo { display: block; margin-top: 8px; font-size: 16px; line-height: 1.4; font-weight: 600; letter-spacing: 0; color: var(--ink-soft); }
.buybox__sum--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; border-bottom: 0; padding-bottom: 10px; }
.buybox__sum--2 b { white-space: normal; overflow-wrap: anywhere; }
/* carrito y pedido: bajo el territorio del artículo — tiendas, e-mails y teléfonos únicos */
.cartline__nums { font-size: 12px; line-height: 1.35; color: var(--ink-soft); margin-top: 2px; font-variant-numeric: tabular-nums; }
/* tres números de la selección (partials/buy-nums): tiendas, e-mails y teléfonos únicos — una franja de tres celdas */
.buynums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--paper); border: 1px solid var(--line-2); margin-bottom: 4px; }
.buynums > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 10px 12px; }
.buynums > div + div { border-left: 1px solid var(--line-2); }
.buynums b { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; transition: opacity .15s ease; }
.buynums span { font-size: 12px; line-height: 1.25; color: var(--muted); }
.buynums .nw { white-space: nowrap; font-size: inherit; color: inherit; }
.buynums.is-wait [data-pricer-emails], .buynums.is-wait [data-pricer-phones] { opacity: .35; }
@media (max-width: 420px) { .buynums > div { padding: 9px 8px; } .buynums b { font-size: 16px; } .buynums span { font-size: 11.5px; } }
/* panel en un teléfono: nombres cortos de provincias («S. C. de Tenerife»), para que no se corten */
.nm-s { display: none; }
@media (max-width: 480px) { .panel .nm-f { display: none; } .panel .nm-s { display: inline; } }
@media (max-width: 360px) { .panel .picklist__v { font-size: 12px; } .panel .picklist__row { gap: 6px; } }
/* carrito, pedido y Mi cuenta: logotipo de la cadena (o sus iniciales) en el artículo «direcciones de una cadena» */
.cartline__logo { flex: none; width: 32px; height: 32px; }
.cabitem__head .clogo, .cabitem__head .avatar { flex: none; }
/* CTA «Añadir al carrito · 490 €»: en pantallas estrechas — botones a todo el ancho, el texto puede partirse */
@media (max-width: 420px) { .cta__a { width: 100%; } .cta__a .btn { flex: 1 1 100%; white-space: normal; height: auto; min-height: 48px; padding-top: 10px; padding-bottom: 10px; line-height: 1.25; text-align: center; } }
