/* Demo library (#demos) and universe templates (#templates): same type, buttons and greys as the
   builder (builder.css), light only like the rest of the sales pages. */

body.is-lib #app { height: auto; }
.lib { min-height: 100vh; min-height: 100dvh; background: #fff; }
:where(.lib) :where(button, input, select, textarea) { font: inherit; letter-spacing: inherit; color: inherit; }
:where(.lib) :focus-visible { outline: 2px solid var(--bd-ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lib-top { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 80px; padding: 0 32px; border-bottom: 1px solid var(--bd-line); background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); }
.lib-top h1 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.025em; }
.lib-top-end { display: flex; gap: 8px; justify-self: end; }
.mode-beta--dark { background: var(--bd-fill); color: #55555f; }

.lib-main { max-width: 1320px; margin: 0 auto; padding: 40px 32px 80px; }
.lib-intro h2 { margin: 0; font-size: clamp(28px, 2.6vw, 40px); font-weight: 500; letter-spacing: -0.03em; }
.lib-intro p { margin: 10px 0 0; max-width: 70ch; color: var(--bd-muted); font-size: 16px; line-height: 1.5; }

.lib-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 32px 0 12px; }
.lib-scope { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bd-fill); }
.lib-scope button { min-height: 34px; padding: 6px 16px; border: 0; border-radius: 999px; background: none; color: var(--bd-muted); font-weight: 500; cursor: pointer; }
.lib-scope button[aria-checked="true"] { background: #fff; color: #000; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.lib-search { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 240px; min-height: 40px; padding: 0 14px; border: 1px solid var(--bd-line); border-radius: 999px; color: var(--bd-muted); }
.lib-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #000; }
.lib-bar select { min-height: 40px; padding: 0 34px 0 14px; border: 1px solid var(--bd-line); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2370707b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center no-repeat; appearance: none; cursor: pointer; }
.lib-count { min-height: 20px; margin: 0 0 16px; color: var(--bd-muted); font-size: 14px; }

.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.lib-card { display: flex; flex-direction: column; border: 1px solid var(--bd-line); border-radius: 20px; overflow: hidden; background: #fff; transition: box-shadow 160ms, transform 160ms; }
@media (hover: hover) { .lib-card:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08); transform: translateY(-2px); } }
.lib-card-art { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 168px; background: var(--c-bg); color: var(--c-ink); text-decoration: none; border-bottom: 1px solid var(--bd-line); }
.lib-card-logo { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--c-ink) 10%, var(--c-bg)); }
.lib-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.lib-card-logo b { font-size: 26px; font-weight: 600; }
.lib-card-name { max-width: 85%; overflow: hidden; font-size: 17px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.lib-card-btn { width: 96px; height: 10px; border-radius: 999px; background: var(--c-btn); opacity: 0.9; }
.lib-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.lib-card-body h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.lib-card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; color: var(--bd-muted); font-size: 13px; }
.lib-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.lib-card-products { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.lib-card-by { margin: auto 0 0; padding-top: 4px; color: var(--bd-muted); font-size: 13px; }
.lib-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.btn-sm { min-height: 34px; padding: 6px 14px; font-size: 14px; }
.lib-del { color: #b4232c; }
.cust-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.cust-btn--ghost { background: rgba(255, 255, 255, 0.75); color: #111; }

.lib-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 64px 16px; border: 1px dashed var(--bd-line); border-radius: 20px; color: var(--bd-muted); text-align: center; }
.lib-empty b { color: #000; font-size: 18px; font-weight: 500; }
.lib-empty p { margin: 0 0 8px; max-width: 48ch; line-height: 1.5; }

/* New demo: from a universe or from scratch. */
.lib-new { width: min(880px, calc(100% - 32px)); max-height: calc(100% - 48px); padding: 0; border: 0; border-radius: 24px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25); }
.lib-new::backdrop { background: rgba(0, 0, 0, 0.4); }
.lib-new-body { padding: 24px 28px 28px; }
.lib-new header { display: flex; align-items: center; justify-content: space-between; }
.lib-new h2 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -0.025em; }
.lib-new-lead { margin: 6px 0 20px; color: var(--bd-muted); line-height: 1.5; }
.lib-new-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.lib-start { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 0 14px; border: 1px solid var(--bd-line); border-radius: 16px; overflow: hidden; background: #fff; text-align: left; cursor: pointer; transition: border-color 140ms, transform 140ms; }
.lib-start:hover { border-color: #000; }
.lib-start:active { transform: scale(0.98); }
.lib-start-art { display: flex; align-items: center; justify-content: center; width: 100%; height: 92px; margin-bottom: 8px; background: var(--u-bg, var(--bd-paper)); color: var(--u-ink, #000); }
.lib-start-art img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.lib-start b, .lib-start small { padding: 0 14px; }
.lib-start b { font-weight: 600; }
.lib-start small { color: var(--bd-muted); font-size: 13px; line-height: 1.35; }
.lib-start--blank .lib-start-art { background: repeating-linear-gradient(45deg, #fafafc 0 10px, #f2f2f6 10px 20px); }

/* Builder, demo mode: the name in the top bar and the save state. */
.bd-name input { width: min(360px, 40vw); padding: 8px 12px; border: 1px solid transparent; border-radius: 10px; background: none; font-size: 20px; font-weight: 500; letter-spacing: -0.025em; text-align: center; }
.bd-name input:hover { border-color: var(--bd-line); }
.bd-name input:focus { border-color: #000; outline: 0; }
.bd-status { color: var(--bd-muted); font-size: 14px; }
.bd-actions .btn-dark:disabled { background: var(--bd-fill); color: var(--bd-muted); cursor: default; }

@media (max-width: 760px) {
  .lib-top { grid-template-columns: auto 1fr; height: auto; min-height: 64px; padding: 10px 16px; }
  .lib-top h1 { display: none; }
  .lib-top .bd-back span { display: none; }
  .lib-main { padding: 24px 16px 64px; }
  .lib-bar select { flex: 1 1 45%; }
  .lib-new-body { padding: 20px 16px; }
  .bd-status { display: none; }
}
.lib-intro + .lib-grid { margin-top: 32px; }

/* Live mini phones on the cards. */
.lib-card-art { height: 260px; overflow: hidden; }
.lib-thumb { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 14px 0 0; box-sizing: border-box; }
.lib-thumb:has(.mini-phone) { align-items: flex-start; }
/* Taller than the card: the phone is drawn larger and its bottom is cropped, so the screen reads. */
.mini-phone { display: flex; align-items: center; justify-content: center; flex: none; width: 100%; height: 340px; pointer-events: none; }
.lib-start .mini-phone { height: 300px; }
.mini-phone .emb-phone { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22); }
.lib-start-art { height: 210px; overflow: hidden; }
.lib-start .lib-thumb { padding-top: 12px; }
.lib-start-logo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }

/* New demo: "from scratch" is the main way in, the universes come second. */
.lib-scratch { display: flex; align-items: stretch; justify-content: space-between; gap: 16px; width: 100%; margin: 4px 0 28px; padding: 0; border: 1.5px solid #000; border-radius: 20px; overflow: hidden; background: #fff; text-align: left; cursor: pointer; transition: transform 140ms, box-shadow 140ms; }
.lib-scratch:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12); }
.lib-scratch:active { transform: scale(0.99); }
.lib-scratch-copy { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 28px; }
.lib-scratch-copy b { font-size: 26px; font-weight: 500; letter-spacing: -0.025em; }
.lib-scratch-copy > span:not(.lib-scratch-cta) { max-width: 44ch; color: var(--bd-muted); line-height: 1.45; }
.lib-scratch-cta { align-self: flex-start; display: inline-flex; gap: 8px; margin-top: 8px; padding: 10px 20px; border-radius: 999px; background: #000; color: #fff; font-weight: 500; }
.lib-scratch-art { flex: none; width: 220px; height: 220px; overflow: hidden; background: repeating-linear-gradient(45deg, #fafafc 0 10px, #f2f2f6 10px 20px); }
.lib-scratch-art .lib-thumb { padding-top: 14px; }
.lib-new-sub { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.lib-new .lib-new-lead { margin: 4px 0 14px; }
.lib-new-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lib-start-art { height: 170px; }
.lib-start .mini-phone { height: 260px; }
@media (max-width: 640px) { .lib-scratch { flex-direction: column; } .lib-scratch-art { width: 100%; } }

/* Save dialog. */
.bd-save { width: min(520px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 24px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25); }
.bd-save::backdrop { background: rgba(0, 0, 0, 0.4); }
.bd-save-body { display: flex; flex-direction: column; gap: 18px; padding: 24px 28px 24px; }
.bd-save h2 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -0.025em; }
.bd-save-lead { margin: -8px 0 4px; color: var(--bd-muted); line-height: 1.5; }
.bd-save-actions { display: flex; justify-content: flex-end; gap: 8px; }
.bd-save :where(button, input) { font: inherit; letter-spacing: inherit; }
.bd-save .btn-dark { color: #fff; }

/* Landing top bar: the way into the demo builder. */
.b-create { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--b-ink, #111); color: var(--b-bg, #fff); font: 600 13px/1 var(--b-font, inherit); text-decoration: none; white-space: nowrap; transition: transform 120ms; }
.b-create:hover { transform: translateY(-1px); }
.b-create:active { transform: scale(0.97); }
@media (max-width: 560px) { .b-create span { display: none; } .b-create { padding: 9px; } }
.b-link { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--b-glass); color: var(--b-ink); font: 500 13px/1 var(--b-font, inherit); text-decoration: none; white-space: nowrap; }
.b-link:hover { filter: brightness(0.96); }
@media (max-width: 760px) { .b-link { display: none; } }
.lib-bar--universes > :not(.lib-scope) { display: none; }
.b-link { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--b-glass); color: var(--b-ink); font: 500 13px/1 var(--b-font, inherit); text-decoration: none; white-space: nowrap; }
.b-link:hover { filter: brightness(0.96); }
@media (max-width: 760px) { .b-link { display: none; } }
.lib-bar--universes > :not(.lib-scope) { display: none; }

/* WIP: the two spaces, Ready-made and Custom demos (landing top bar and library). */
.b-space { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(128, 128, 128, 0.16); }
.b-space a { padding: 7px 14px; border-radius: 999px; color: inherit; font: 500 13px/1 inherit; font-family: inherit; text-decoration: none; opacity: 0.7; white-space: nowrap; }
.b-space a:hover { opacity: 1; }
.b-space a[aria-current="page"] { background: #fff; color: #111; opacity: 1; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); }
.b-bar-inner:has(.b-space) { position: relative; }
/* Same place on both pages: centred in the window, never moving when switching. */
.b-bar .b-space, .lib-top .b-space { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.lib-top { position: sticky; }
.lib-logo { justify-self: start; display: inline-flex; }

/* WIP landing: one type of restaurant for every tile. */
.b-types { margin: 0 0 20px; }
.b-types-title { margin: 0 0 10px; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; opacity: 0.6; }
.b-types-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.b-type { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 6px 14px 6px 6px; border: 1px solid rgba(128, 128, 128, 0.28); border-radius: 999px; background: transparent; color: inherit; font: 500 14px/1 inherit; font-family: inherit; cursor: pointer; transition: border-color 140ms, background 140ms; }
.b-type:hover { border-color: currentColor; }
.b-type[aria-checked="true"] { border-color: currentColor; background: rgba(128, 128, 128, 0.16); box-shadow: inset 0 0 0 1px currentColor; }
.b-type-logo { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; }
.b-type-logo img { width: 100%; height: 100%; object-fit: cover; }
.b-types-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 8px 0 0; font-size: 14px; }
.b-types-links > span { opacity: 0.65; }
.b-types-links a { color: inherit; font-weight: 600; text-underline-offset: 3px; }
.b-types-links .b-types-edit { font-weight: 500; opacity: 0.75; }
@media (max-width: 560px) { .b-bar-end .b-news { display: none; } .b-space a { padding: 7px 10px; } }
@media (max-width: 560px) { .b-bar-inner:has(.b-space) { flex-wrap: wrap; row-gap: 8px; } .b-bar .b-space { order: 3; width: 100%; margin-left: 0; } .b-bar .b-space a { flex: 1; text-align: center; } }

/* Library top bar: the same height as the landing's, so the two tabs stay exactly in place. */
.lib-top { height: 55px; padding: 0 max(24px, calc((100vw - 1440px) / 2 + 32px)); border-bottom: 1px solid var(--bd-line); }
.lib-top .btn-dark { min-height: 36px; padding: 6px 16px; font-size: 13px; }

/* Ready-made: the type of restaurant follows the scroll, under the top bar. */
.b-types { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 56px); z-index: 4; margin: 0 calc(-1 * var(--b-gutter, 24px)) 20px; padding: 12px var(--b-gutter, 24px) 10px; background: var(--b-bar-bg, var(--b-bg)); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }

/* Tiles: the demo itself, live, in the chosen type of restaurant. */
.tile-visual--live { overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); }
.tile-live { position: absolute; inset: 16px 0 0; display: flex; align-items: flex-start; justify-content: center; }
.tile-live .mini-phone { height: 150%; }
.tile:not(.tile--soon):hover .tile-visual--live { transform: none; }
.tile-visual--live .emb-phone { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25); }

/* What's new: a small round button, bottom right. */
.b-help { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 20; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--b-line, rgba(0,0,0,.12)); border-radius: 50%; background: var(--b-bar-bg, #fff); color: var(--b-ink, #111); font: 600 18px/1 var(--b-font, inherit); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); cursor: pointer; transition: transform 140ms; }
.b-help:hover { transform: translateY(-2px); }
.b-help .b-news-dot { position: absolute; top: 2px; right: 2px; }
@media (max-width: 560px) {
  .b-bar .b-space { position: static; transform: none; }
  .b-types { top: calc(env(safe-area-inset-top, 0px) + 100px); }
  .lib-top { height: auto; padding: 10px 16px; display: flex; flex-wrap: wrap; justify-content: space-between; row-gap: 8px; }
  .lib-top .b-space { position: static; transform: none; order: 3; width: 100%; }
  .lib-top .b-space a { flex: 1; text-align: center; }
  .b-help { width: 40px; height: 40px; }
}
.b-space { letter-spacing: normal; font-family: var(--b-font, 'Helvetica Neue', Helvetica, Inter, Arial, sans-serif); }
@media (max-width: 560px) { .b-types-title, .b-types-links > span { display: none; } .b-types { padding-top: 8px; padding-bottom: 8px; } .b-types-links { margin-top: 4px; gap: 4px 14px; } }

/* Top bars, whatever the width (later rules win over the ones above). */
.lib-top-end { grid-column: 3; }
/* Not enough room to centre the tabs over the window: they sit between the logo and the button. */
@media (max-width: 1023px) {
  .b-bar .b-space, .lib-top .b-space { position: static; transform: none; }
  .lib-top { grid-template-columns: auto 1fr auto; }
  .lib-top .b-space { grid-column: 2; justify-self: center; }
}
/* Narrow (phone, side panel): the tabs take their own full-width row. */
@media (max-width: 760px) {
  .b-bar-inner:has(.b-space) { flex-wrap: wrap; row-gap: 8px; }
  .b-bar .b-space { order: 3; width: 100%; margin-left: 0; }
  .b-bar .b-space a { flex: 1; text-align: center; }
  .b-types { top: calc(env(safe-area-inset-top, 0px) + 100px); }
  .lib-top { height: auto; padding: 10px 16px; display: flex; flex-wrap: wrap; justify-content: space-between; row-gap: 8px; }
  .lib-top .b-space { order: 3; width: 100%; }
  .lib-top .b-space a { flex: 1; text-align: center; }
  .b-create span { display: none; }
  .b-create { padding: 9px; }
  .lib-top .btn-dark span { display: none; }
  .lib-top .btn-dark { padding: 6px 10px; }
}
/* Same side margins as the landing's top bar, so the logo and "Create a demo" don't jump either. */
@media (min-width: 761px) { .lib-top { padding-inline: clamp(16px, 4vw, 72px); } }
/* Custom demos uses the landing's own top bar (same markup, same theme), kept on top while scrolling. */
.lib-bar-theme { position: sticky; top: 0; z-index: 5; font-family: var(--b-font); color: var(--b-ink); letter-spacing: normal; line-height: normal; font-size: 14px; }
.lib-bar-theme::before { display: none; }
.b-home { display: inline-flex; align-items: center; text-decoration: none; }
.b-space a { font-size: 14px; font-weight: 500; line-height: 1; }
/* What's new: the release pill, floating bottom right (WIP view). */
.b-float { background: color-mix(in srgb, #ff17e9 12%, var(--b-bg)); position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 20; margin: 0; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); animation: none; }
.b-float .b-news-dot { position: absolute; top: -2px; right: -2px; }

/* Catering tile: the site in a small browser window. */
.tile-visual--desk { display: flex; align-items: center; justify-content: center; padding: 8px 20px 20px; }
.tile-desk { display: block; width: 100%; }
.desk-frame { width: 100%; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22); border: 1px solid rgba(0, 0, 0, 0.08); }
.desk-chrome { display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; background: #ececef; }
.desk-chrome i { width: 8px; height: 8px; border-radius: 50%; background: #c9c9cf; }
.desk-chrome span { flex: 1; height: 10px; margin-left: 10px; border-radius: 5px; background: #fff; max-width: 50%; }
.desk-screen { position: relative; overflow: hidden; }
.desk-site { position: absolute; top: 0; left: 0; transform-origin: 0 0; pointer-events: none; overflow: hidden; }
/* The Guest App comes later: set apart from the demos that follow the type of restaurant. */
.bento--wip > .tile--guest { margin-top: 56px; }
.desk-site .ct-modal, .desk-site .ct-scrim { display: none !important; }
/* Drawers sit at the bottom of the screen: those tiles show the whole phone. */
.tile[data-product="hybrid"] .tile-live { inset: 0 0 16px; align-items: flex-end; }
.tile[data-product="hybrid"] .tile-visual--live { -webkit-mask-image: linear-gradient(to top, #000 80%, transparent 100%); mask-image: linear-gradient(to top, #000 80%, transparent 100%); }

/* Sticky rows under the top bar follow the bar's measured height (set in wireTopBar), overlapping its border by 1px so no gap shows. */
.b-types { top: calc(env(safe-area-inset-top, 0px) + var(--b-bar-h, 56px) - 1px); }
@media (max-width: 760px) { .b-types { top: calc(env(safe-area-inset-top, 0px) + var(--b-bar-h, 100px) - 1px); } }

/* Catering with a type of restaurant it has no menu for yet: the tile is greyed and says what to pick. */
.tile-lock { display: none; }
.tile.is-locked .tile-visual { filter: grayscale(1); opacity: 0.35; pointer-events: none; }
.tile.is-locked .tile-controls > :not(.tile-lock) { display: none; }
.tile.is-locked .tile-lock { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 8px; }
.tile.is-locked .tile-lock p { margin: 0; font-size: 14px; line-height: 1.45; text-wrap: pretty; }
.tile.is-locked:hover .tile-visual { transform: none; }

/* Type of restaurant: the title and the chips on one line, centred; the note under it sits above the cards, outside the sticky bar. */
.b-types-line { display: flex; align-items: center; justify-content: center; gap: 16px; min-width: 0; }
.b-types-line .b-types-title { flex: none; margin: 0; white-space: nowrap; }
.b-types-line .b-types-row { min-width: 0; padding-bottom: 2px; }
.b-types-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; margin: calc(8px - clamp(56px, 4.5vw, 88px)) 0 calc(14px - clamp(56px, 4.5vw, 88px)); font-size: 14px; text-align: center; }
.b-types-note > span { opacity: 0.65; }
.b-types-note a { color: inherit; font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 900px) { .b-types-line { flex-direction: column; align-items: stretch; gap: 8px; } .b-types-line .b-types-title { margin-bottom: 2px; } }
@media (max-width: 560px) { .b-types-line .b-types-title, .b-types-note > span { display: none; } }

/* Owners: "Customise default demo", left of "Create a demo". */
.b-edit-tpl { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: var(--b-glass, rgba(128, 128, 128, 0.16)); color: inherit; font: 500 13px/1 var(--b-font, inherit); text-decoration: none; white-space: nowrap; transition: transform 120ms; }
.b-edit-tpl:hover { transform: translateY(-1px); }
.b-edit-tpl:active { transform: scale(0.97); }
@media (max-width: 1100px) { .b-edit-tpl span { display: none; } .b-edit-tpl { padding: 9px; } }

/* A demo's product tags copy that demo's own link (the card's "Copy link" is the page with all of them). */
.lib-ptag { display: inline-flex; align-items: center; gap: 5px; border: 0; cursor: pointer; font: inherit; transition: background 140ms, color 140ms; }
.lib-ptag svg { flex: none; opacity: .55; transition: opacity 140ms; }
.lib-ptag:hover, .lib-ptag:focus-visible { background: #000; color: #fff; }
.lib-ptag:hover svg, .lib-ptag:focus-visible svg { opacity: 1; }
.lib-ptag:disabled { opacity: .5; cursor: progress; }
