/* Joey's Pizza — Compartir (Nov 22 2026).
   Additive only — every rule is scoped to the new shr-* elements,
   plus .shr-host (position:relative on a card that carries a
   share button). Colors follow the app's own tokens (--lime,
   --card, --ink, --line) with literal fallbacks, so the layer
   reads correctly in light and dark mode. The ♥ favorites ride
   top-right on cards; share rides top-left, never covering a
   price or the Ordenar button. */

/* ---------- circular share button (card overlays) ---------- */
.shr-host { position: relative; }
.shr-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 6;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 9px #00000047;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #4d6212;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.shr-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.shr-btn:active { transform: scale(0.9); }
.shr-btn:focus-visible { outline: 3px solid var(--lime-deep, #4d7c0f); outline-offset: 2px; }
/* Inline variant: a flex item inside rows / whole-tile buttons
   (Bebidas rows, Ofertas rows, fiesta tiles) instead of an
   overlay, so it never covers a price or the Ordenar button. */
.shr-btn-inline {
  position: static;
  flex: none;
  width: 38px;
  height: 38px;
  box-shadow: 0 1px 5px #0000002b;
  border: 1.5px solid var(--line, #e9e0cf);
}
.shr-btn-sm { width: 34px; height: 34px; top: 6px; left: 6px; }
.shr-btn-sm svg { width: 17px; height: 17px; }

/* ---------- wide share button (sheet footer, builder,
   sampler, salsa sheet) ---------- */
.shr-wide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 15px;
  border: 2px solid var(--lime-deep, #4d7c0f);
  background: var(--card, #fff);
  color: var(--ink, #241d12);
  font: inherit;
  font-size: 16.5px;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.shr-wide svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: var(--lime-deep, #4d7c0f);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.shr-wide:active { transform: scale(0.98); }
.shr-wide:focus-visible { outline: 3px solid var(--lime-deep, #4d7c0f); outline-offset: 2px; }
@media (prefers-color-scheme: dark) {
  .shr-wide { border-color: var(--lime-bright, #bef264); }
  .shr-wide svg { stroke: var(--lime-bright, #bef264); }
}

/* ---------- «Compartir la app» block (Home) ---------- */
.shr-app { margin: 14px 0 4px; }
.shr-app-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid var(--line, #e9e0cf);
  background: var(--card, #fff);
  box-shadow: 0 4px 14px #00000012;
  color: var(--ink, #241d12);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.shr-app-btn:active { transform: scale(0.99); }
.shr-app-btn:focus-visible { outline: 3px solid var(--lime-deep, #4d7c0f); outline-offset: 2px; }
.shr-app-ic {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lime, #84cc16);
  color: var(--lime-ink, #1c2b05);
  display: flex;
  align-items: center;
  justify-content: center;
}
.shr-app-ic svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.shr-app-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.shr-app-txt strong { font-size: 16.5px; font-weight: 900; line-height: 1.2; }
.shr-app-txt small { font-size: 13.5px; font-weight: 600; color: var(--ink-soft, #6b5f4c); line-height: 1.25; }
.shr-app-arrow { flex: none; font-size: 20px; font-weight: 900; color: var(--lime-deep, #4d7c0f); }
@media (prefers-color-scheme: dark) {
  .shr-app-arrow { color: var(--lime-bright, #bef264); }
}

/* ---------- fallback share panel (no native share sheet) -- */
.shr-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0000008f;
}
.shr-backdrop[hidden] { display: none; }
.shr-panel {
  position: fixed;
  z-index: 201;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(86px + env(safe-area-inset-bottom));
  width: min(430px, calc(100vw - 32px));
  background: var(--card, #fff);
  color: var(--ink, #241d12);
  border: 1.5px solid var(--line, #e9e0cf);
  border-radius: 20px;
  box-shadow: 0 18px 50px #00000059;
  padding: 18px 18px calc(16px + env(safe-area-inset-bottom));
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
}
.shr-panel[hidden] { display: none; }
.shr-panel-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft, #6b5f4c);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}
.shr-panel-title { font-size: 19px; margin: 0 44px 2px 0; }
.shr-panel-item {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-soft, #6b5f4c);
}
/* Destinations as small mosaic tiles (owner's word: «en
   mosaicos pequeños») — 4 per row, icon over a short label,
   each in its platform's brand colors. */
.shr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 12px;
}
.shr-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  aspect-ratio: 1 / 1.02;
  padding: 8px 4px;
  border-radius: 14px;
  border: 0;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.shr-tile:active { transform: scale(0.95); }
.shr-tile:focus-visible { outline: 3px solid var(--lime-deep, #4d7c0f); outline-offset: 2px; }
.shr-tile-ic { flex: none; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.shr-tile-ic svg { width: 24px; height: 24px; }
.shr-tile-label { font-size: 11px; font-weight: 800; line-height: 1.15; text-align: center; }
.shr-wa { background: #25d366; color: #0b3d1e; }
.shr-fb { background: #1877f2; color: #fff; }
.shr-fb-ic { font-family: Archivo, sans-serif; font-size: 26px; font-weight: 900; line-height: 1; }
.shr-ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); color: #fff; }
.shr-tt { background: #010101; color: #fff; }
.shr-x { background: #000; color: #fff; }
.shr-sms { background: #34c759; color: #fff; }
.shr-mail { background: #ea4335; color: #fff; }
.shr-copy { background: var(--card, #fff); color: var(--ink, #241d12); border: 2px solid var(--line, #e9e0cf); }
.shr-panel-note {
  margin: 12px 2px 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-soft, #6b5f4c);
}
