/* The mini panel (the shop's mini-cart dropdown; the admin's notification bell, ADMIN-NOTIFICATIONS): moved from base.css
   unchanged in order and scope (.v2-site). Its rem literals are the tokens that equal them on the site (.v2-site defines them
   in rem), so the admin, whose tokens are px on a 10 px root, gets the same sizes; the three tokens the admin does not define
   have their site value as fallback. Markup: components/v2/mini-panel.blade.php; behaviour: static/js/v2/mini-panel.js. */
.v2-site .v2-mini-cart{position:relative}
.v2-site .v2-mini-panel{position:absolute;top:calc(100% + 16px);right:0;z-index:var(--ast-z-dropdown,60);width:390px;max-width:calc(100vw - 2 * var(--ast-gutter,16px));padding:var(--ast-space-5);border:1px solid var(--ast-border);border-radius:var(--ast-radius);background:var(--ast-surface);color:var(--ast-text);box-shadow:var(--ast-shadow,0 12px 34px rgb(17 21 34 / .07));text-align:left;font-size:var(--ast-text-sm)}
.v2-site .v2-mini-heading{display:flex;align-items:center;justify-content:space-between;gap:var(--ast-space-3);margin-bottom:var(--ast-space-2)}
.v2-site .v2-mini-heading h2{margin:0;font-size:var(--ast-text-lg);font-weight:700}
.v2-site .v2-mini-heading h2>span{color:var(--ast-muted);font-weight:400}
.v2-site .v2-mini-close:not(.ast-btn){display:grid;place-items:center;min-width:44px;min-height:44px;border:0;border-radius:var(--ast-radius-sm);background:var(--ast-bg);color:var(--ast-text);font-size:var(--ast-text-xl);cursor:pointer}
.v2-site .v2-mini-close:not(.ast-btn):hover{background:var(--ast-red-tint);color:var(--ast-red)}
.v2-site .v2-mini-lines{max-height:min(42dvh,350px);margin:0;padding:0;overflow:auto;overscroll-behavior:contain;list-style:none}
.v2-site .v2-mini-line{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:var(--ast-space-3);padding-block:var(--ast-space-4);border-bottom:1px solid var(--ast-border)}
.v2-site .v2-mini-line img,.v2-site .v2-mini-image{display:grid;place-items:center;width:64px;height:64px;border-radius:var(--ast-radius-sm);object-fit:cover;background:var(--ast-bg);color:var(--ast-muted)}
.v2-site .v2-mini-description{display:flex;flex-direction:column;gap:var(--ast-space-1);min-width:0;overflow-wrap:anywhere}
.v2-site .v2-mini-name{font-weight:600;line-height:1.35}
.v2-site a.v2-mini-name:hover{color:var(--ast-red);text-decoration:underline}
/* A pending line's label is a .v2-chip: the chip's colour wins, as it did when these rules sat before the chips in base.css. */
.v2-site .v2-mini-quantity,.v2-site .v2-mini-pending:not(.v2-chip){color:var(--ast-muted);font-size:var(--ast-text-xs)}
.v2-site .v2-mini-amount{white-space:nowrap;font-variant-numeric:tabular-nums}
.v2-site .v2-mini-summary{display:flex;align-items:center;justify-content:space-between;gap:var(--ast-space-3);margin-top:var(--ast-space-5)}
.v2-site .v2-mini-summary>strong{white-space:nowrap;font-size:var(--ast-text-lg);font-variant-numeric:tabular-nums}
.v2-site .v2-mini-note{margin-block:var(--ast-space-3) 0;color:var(--ast-muted);font-size:var(--ast-text-xs)}
.v2-site .v2-mini-empty{margin:var(--ast-space-5) 0}
.v2-site .v2-mini-actions{display:grid;gap:var(--ast-space-3);margin-top:var(--ast-space-5)}
@media(max-width:767px){
 .v2-site .v2-mini-panel{right:-60px;top:calc(100% + 12px);width:calc(100vw - 2 * var(--ast-gutter,16px));max-height:calc(100dvh - 170px);overflow-y:auto;padding:var(--ast-space-4)}
 .v2-site .v2-mini-line{grid-template-columns:48px minmax(0,1fr) auto;gap:var(--ast-space-2)}
 .v2-site .v2-mini-line img,.v2-site .v2-mini-image{width:48px;height:48px}
}
/* UI-V3 A-V3-3: two real cart groups; one scroll region keeps actions reachable. */
.v2-site .v2-mini-panel{width:480px}
.v2-site .v2-mini-heading h2{display:flex;align-items:center;flex-wrap:wrap;gap:var(--ast-space-3)}
.v2-site .v2-mini-heading h2>.v2-mini-count{background:var(--ast-red);color:var(--ast-white);font-size:var(--ast-text-xs);font-weight:700;border-radius:var(--ast-radius-sm);padding:calc(var(--ast-space-1) * 1.2) var(--ast-space-2)}
.v2-site .v2-mini-groups{max-height:min(50dvh,450px);overflow:auto;overscroll-behavior:contain}
.v2-site .v2-mini-group{border:1px solid var(--ast-border);border-radius:var(--ast-radius-sm);margin-top:var(--ast-space-3);overflow:hidden}
.v2-site .v2-mini-group-heading{display:flex;justify-content:space-between;align-items:center;gap:var(--ast-space-3);padding:var(--ast-space-3);background:var(--ast-red-tint);color:var(--ast-red-dark)}
.v2-site .v2-mini-group-heading h3{font-size:var(--ast-text-sm);margin:0;line-height:1.4}
.v2-site .v2-mini-group-heading>span{font-size:var(--ast-text-xs);white-space:nowrap;color:var(--ast-muted)}
.v2-site .v2-mini-group--loose .v2-mini-group-heading{background:var(--ast-info-bg);color:var(--ast-info-text)}
.v2-site .v2-mini-group .v2-mini-lines{max-height:none;overflow:visible;padding-inline:var(--ast-space-3)}
.v2-site .v2-mini-group .v2-mini-summary{margin:0;padding:var(--ast-space-4) var(--ast-space-3)}
.v2-site .v2-mini-group .v2-mini-summary--more{padding-top:0}
.v2-site .v2-mini-group [data-v2-mini-fee]>strong{font-size:inherit;font-weight:400}
.v2-site .v2-mini-group .v2-mini-note{margin:0;padding:var(--ast-space-3);background:var(--ast-bg)}
.v2-site .v2-mini-detail{font-size:var(--ast-text-xs);color:var(--ast-muted);line-height:1.5}
@media(max-width:767px){.v2-site .v2-mini-panel{width:calc(100vw - 2 * var(--ast-gutter,16px))}.v2-site .v2-mini-line[data-v2-loose]{grid-template-columns:48px minmax(0,1fr)}.v2-site .v2-mini-line[data-v2-loose]>.v2-mini-pending{grid-column:2;justify-self:start}}
.v2-site .v2-mini-group-heading h3{display:flex;align-items:center;gap:var(--ast-space-2)}
/* MINI-CART-REMOVE: each line's trash button in its own last column. On a phone every line is photo | text | trash, and the
   amount or the m³ line's chip goes under the text (four columns left the name ~55px at 320; repo-96 MC-P1). */
.v2-site .v2-mini-line{grid-template-columns:64px minmax(0,1fr) auto auto}
.v2-site .v2-mini-remove{margin:0}
/* MINICART-FOOTER (David 2026-11-18): the cart's actions are the checkout full width on top, then «Ver carrito» | «Vaciar carrito» in
   two equal halves. An empty cart has only «Ver carrito», which takes the row. The admin's bell (no .v2-mini-cart) is unchanged. */
.v2-site .v2-mini-cart .v2-mini-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
.v2-site .v2-mini-cart .v2-mini-actions>:first-child{grid-column:1/-1}
/* MCF-C3: a label too long for its half (gl «Baleirar carriño» at 320) wraps onto two lines and the row grows, as the checkout's
   submit row does (checkout.css .v2k-submit-row); a label that fits stays one line at 40px. */
.v2-site .v2-mini-cart .v2-mini-actions .ast-btn{height:auto;padding-block:var(--ast-space-2);line-height:1.2;white-space:normal}
.v2-site .v2-mini-empty-form{margin:0}
/* The lines' scroll box holds its own absolutely placed text (an m³ line's .v2-sr-only): without it that text sat at its place
   in the unscrolled list and stretched the panel's scroll (on a phone ~300px of blank panel after the actions; MC-P1). */
.v2-site .v2-mini-groups{position:relative}
@media(max-width:767px){.v2-site .v2-mini-line,.v2-site .v2-mini-line[data-v2-loose]{grid-template-columns:48px minmax(0,1fr) auto}.v2-site .v2-mini-line>.v2-mini-amount,.v2-site .v2-mini-line>.v2-mini-pending{grid-column:2;justify-self:start}.v2-site .v2-mini-line>.v2-mini-remove{grid-column:3;grid-row:1}}
/* CART-SHEETS-FULLSCREEN (David 2026-11-18: on a phone the mini-cart «que ocupe toda la pantalla», white as now): under 600 px the cart's
   panel is the whole screen, one scroll inside, its heading (title and ×) and its actions held at the top and the bottom, nothing of the
   page showing below; mini-panel.js keeps the page still, the Tab inside and the back button closing it. Tablets and desktops: as before.
   The admin's bell (the same component, no .v2-mini-cart) is unchanged. CSF-C8-1: a phone held sideways (touch, under 500 px tall) too. */
@media(max-width:599px),(max-height:500px) and (pointer:coarse){
 .v2-site .v2-mini-cart .v2-mini-panel{position:fixed;inset:0;z-index:var(--ast-z-modal,1050);width:auto;max-width:none;height:100dvh;max-height:none;margin:0;padding:0 var(--ast-space-4);border:0;border-radius:0;box-shadow:none;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:5rem 13rem}
 .v2-site .v2-mini-cart .v2-mini-panel:not([hidden]){display:flex;flex-direction:column}
 .v2-site .v2-mini-cart .v2-mini-panel>*{flex-shrink:0}
 .v2-site .v2-mini-cart .v2-mini-heading{position:sticky;top:0;z-index:1;margin:0 calc(var(--ast-space-4) * -1);padding:max(var(--ast-space-3),env(safe-area-inset-top)) var(--ast-space-4) var(--ast-space-3);border-bottom:1px solid var(--ast-border);background:var(--ast-surface)}
 .v2-site .v2-mini-cart :is(.v2-mini-groups,.v2-mini-lines){max-height:none;overflow:visible}
 .v2-site .v2-mini-cart .v2-mini-actions{position:sticky;bottom:0;margin:auto calc(var(--ast-space-4) * -1) 0;padding:var(--ast-space-3) var(--ast-space-4) max(var(--ast-space-3),env(safe-area-inset-bottom));border-top:1px solid var(--ast-border);background:var(--ast-surface)}
}
/* CSF-C8-1: a phone held sideways is short: the sheet's actions share one row so its lines keep the height (MINICART-FOOTER: in its
   order, Tramitar | Ver carrito | Vaciar carrito). */
@media(max-height:500px) and (pointer:coarse){
 .v2-site .v2-mini-cart .v2-mini-actions{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);align-items:center}
 .v2-site .v2-mini-cart .v2-mini-actions>:first-child{grid-column:auto}
}
