/* The storefront card (site/shopcard.js): .mm-card.mm-shop in the desktop pop-up and the phone sheet.
   Tokens from style.css and cards.css (light and dark follow :root[data-theme="dark"]); type in rem so a larger
   default font grows the card; phone first. No keyframes here: motion lives in motion.*. */
.mm-shop { gap: 12px; }
.mm-pop .mm-shop, #sheet-body > .mm-shop { padding: 0; background: transparent; border-radius: 0; margin: 0 auto; }
.mm-shop .mm-i { width: 18px; height: 18px; }

/* ---- name and address ---- */
.mm-shop-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mm-pop .mm-shop-head { padding-right: 40px; }
#sheet-body > .mm-shop .mm-shop-head { padding-right: 42px; }
.mm-shop-art { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--foam, #E6F2DC); border: 2px solid var(--edge, #6E9A5E); display: grid; place-items: center; overflow: hidden; }
.mm-shop-art svg { width: 44px; height: 44px; }
/* "Matcha on the menu": the same lighter shop art as its map pin (tokens in style.css) */
.mm-shop-art.mm-shop-art-sv { background: transparent; border-color: var(--shmint-pale, #E8F6F0); border-style: dashed; }
.mm-shop-art-sv .m-o, .mm-shop-art-sv .m-l { stroke: var(--sv-o, #8A7566); stroke-width: 1.4; }
.mm-shop-art-sv .m-c { fill: var(--sv-c, #FFFEFA); }
.mm-shop-art-sv .m-f { fill: var(--sv-f, #EEF6E6); }
.mm-shop-art-sv .sh-win { fill: var(--sv-win, #E2F1F3); }
.mm-shop-id { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.mm-shop-name { font-size: 1.25rem; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; color: var(--ink, #3B2E27); }
.mm-shop-kind { font-size: .75rem; font-weight: 800; line-height: 1.4; padding: 1px 9px; border-radius: 999px; background: var(--mm-t1, #FDE4EB); color: var(--ink, #3B2E27); }
.mm-shop-kinds { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.mm-shop-sv { font-size: .8125rem; font-weight: 700; line-height: 1.3; color: var(--deep, #3E6B33); }
.mm-shop-note { font-size: .875rem; line-height: 1.4; color: var(--muted, #6B5A4F); font-style: italic; overflow-wrap: anywhere; margin-top: -6px; }
.mm-shop-addr { font-size: .9375rem; line-height: 1.4; color: var(--muted, #6B5A4F); overflow-wrap: anywhere; }

/* ---- hours today ---- */
.mm-shop-hours { align-self: flex-start; max-width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 12px; font-size: .9375rem; font-weight: 800; line-height: 1.3; }
.mm-shop-open { background: var(--foam, #E6F2DC); color: var(--deep, #3E6B33); }
.mm-shop-shut { background: var(--mm-t1, #FDE4EB); color: var(--ink, #3B2E27); }
.mm-shop-raw { align-items: flex-start; background: var(--mm-soft, rgba(75,52,38,.06)); color: var(--ink, #3B2E27); font-weight: 500; }
.mm-shop-raw .mm-i { margin-top: 2px; }
.mm-shop-hlabel { font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #6B5A4F); }
.mm-shop-htext { min-width: 0; overflow-wrap: anywhere; }

/* ---- menu ---- */
.mm-menu-sec { padding: 12px 12px 10px; border-radius: 16px; border: 1.5px solid var(--line, #DCE7D0); background: var(--panel, #FFFDF7); min-width: 0; }
.mm-menu-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mm-menu-sec .mm-h { font-size: .8125rem; }
.mm-menu-count { font-size: .75rem; font-weight: 700; color: var(--muted, #6B5A4F); }
.mm-menu-note { font-size: .8125rem; line-height: 1.35; padding: 6px 10px; border-radius: 10px; background: var(--mm-t1, #FDE4EB); color: var(--ink, #3B2E27); overflow-wrap: anywhere; }
.mm-menu-list { max-height: 15rem; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 4px; border-radius: 8px; }
.mm-menu-list:focus-visible { outline-offset: 0; }
.mm-menu-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 2px; padding: 7px 0; border-bottom: 1px dashed var(--line, #DCE7D0); }
.mm-menu-item:last-child { border-bottom: 0; }
.mm-menu-name { font-size: .9375rem; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; min-width: 0; }
.mm-menu-price { font-family: var(--mm-data, ui-monospace, monospace); font-size: .8125rem; line-height: 1.5; font-weight: 700; color: var(--deep, #3E6B33); text-align: right; max-width: 9.5em; overflow-wrap: anywhere; }
.mm-menu-desc { grid-column: 1 / -1; font-size: .8125rem; line-height: 1.35; color: var(--muted, #6B5A4F); overflow-wrap: anywhere; min-width: 0; }
.mm-menu-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding-top: 8px; border-top: 1.5px solid var(--line, #DCE7D0); }
.mm-menu-full { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; font-size: .875rem; font-weight: 800; text-decoration: none; color: var(--deep, #3E6B33); }
.mm-menu-full:hover span { text-decoration: underline; }
.mm-menu-full .mm-i { width: 15px; height: 15px; }
.mm-menu-credit { font-size: .75rem; line-height: 1.35; color: var(--muted, #6B5A4F); overflow-wrap: anywhere; min-width: 0; }

/* ---- picture (only when the shop's record has one) ---- */
.mm-shop-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--foam, #E6F2DC); }
.mm-shop-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mm-shop-credit { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); font-size: .6875rem; padding: 1px 7px; border-radius: 999px; background: rgba(0,0,0,.5); color: #fff; overflow-wrap: anywhere; }
.mm-shop-fig { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mm-shop-cap { font-size: .75rem; line-height: 1.35; color: var(--muted, #6B5A4F); overflow-wrap: anywhere; min-width: 0; }
.mm-shop-data { font-size: .75rem; color: var(--muted, #6B5A4F); }

/* ---- actions: Directions filled on its own line, the rest as pills sharing the next; under the hours so they are in
   the sheet's first view ---- */
.mm-shop-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-shop-go, .mm-shop-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 999px; text-decoration: none; font-weight: 800; line-height: 1.2; transition: transform .12s ease, background-color .15s ease; }
.mm-shop-go { flex: 1 1 100%; padding: 8px 16px; font-size: .9375rem; background: var(--accent, #8CBF7A); color: var(--accent-ink, #1F2E1B) !important; border: 2px solid var(--deep, #3E6B33); }
.mm-shop-pill { flex: 1 1 0; min-width: 0; padding: 8px 14px; font-size: .875rem; background: var(--foam, #E6F2DC); color: var(--deep, #3E6B33) !important; border: 1.5px solid var(--line, #DCE7D0); }
.mm-shop-go:hover { background: var(--edge, #6E9A5E); }
.mm-shop-pill:hover { border-color: var(--edge, #6E9A5E); }
.mm-shop-go:active, .mm-shop-pill:active { transform: scale(.96); }
/* the narrowest phones: one row, Website and Share round and icon only (named by aria-label), so the row is in the
   sheet's first view even at a 20 px default font */
@media (max-width: 359px) {
  .mm-shop-pill { width: 44px; padding: 0; flex: none; }
  .mm-shop-pill span { display: none; }
  .mm-shop-pill .mm-i { width: 20px; height: 20px; }
  .mm-shop-go { flex: 1 1 auto; }
}
@media (max-height: 700px) { .mm-menu-list { max-height: 10rem; } }
@media (prefers-reduced-motion: reduce) { .mm-shop-go, .mm-shop-pill { transition: none; } }
