/* ==========================================================================
   TIT Multivendor 3.5 — food & drinks outlets: directory, outlet page,
   sign-up and the outlet dashboard. Builds on frontend.css tokens and
   market.css components. Scoped: never touches the theme.
   ========================================================================== */

/* ----------------------------------------------------- listing-only note */
.titmv-scope .titmv-foodnotice{display:flex;gap:.6rem;align-items:flex-start;margin:0 0 1rem;padding:.75rem .95rem;border-radius:12px;background:var(--mk-info-bg);border:1px solid color-mix(in srgb,var(--titmv-accent-alt) 45%,transparent);font-size:.9rem;line-height:1.45}
.titmv-scope .titmv-foodnotice .titmv-ico{margin-top:.1rem;color:var(--titmv-text)}

/* ---------------------------------------------------------- kinds chips */
.titmv-scope .titmv-foodkinds{display:flex;gap:.45rem;overflow-x:auto;padding:.1rem .1rem .55rem;margin:0 0 .6rem;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.titmv-scope .titmv-foodkind{flex:none;display:inline-flex;align-items:center;padding:.42rem .85rem;border-radius:999px;border:1.5px solid var(--titmv-line);background:var(--titmv-surface);color:var(--titmv-text);font-size:.85rem;font-weight:600;text-decoration:none;white-space:nowrap;transition:border-color .15s,background .15s}
.titmv-scope .titmv-foodkind:hover,.titmv-scope .titmv-foodkind:focus-visible{border-color:var(--titmv-accent)}
.titmv-scope .titmv-foodkind.is-active{background:var(--titmv-accent);border-color:var(--titmv-accent);color:#fff}
.titmv-scope .titmv-fooddir__filter{grid-template-columns:2fr 1.3fr repeat(2,1fr) auto}

/* ----------------------------------------------------------------- cards */
.titmv-scope .titmv-foodgrid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.titmv-scope .titmv-foodcard{position:relative;display:flex;flex-direction:column;border-radius:16px;border:1px solid var(--titmv-line);background:var(--titmv-surface);overflow:hidden;transition:box-shadow .15s,border-color .15s}
.titmv-scope .titmv-foodcard:hover{box-shadow:0 12px 28px rgba(0,0,0,.08);border-color:color-mix(in srgb,var(--titmv-accent) 35%,var(--titmv-line))}
.titmv-scope .titmv-foodcard.is-featured{border-color:color-mix(in srgb,var(--titmv-accent-alt) 70%,var(--titmv-line))}
.titmv-scope .titmv-foodcard__media{position:relative;display:block;aspect-ratio:16/10;background:var(--titmv-surface-2);overflow:hidden}
.titmv-scope .titmv-foodcard__media img{width:100%;height:100%;object-fit:cover;display:block}
.titmv-scope .titmv-foodcard__ph{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:2.6rem;font-weight:800;color:var(--titmv-muted)}
.titmv-scope .titmv-foodcard__media .titmv-procard__flag{top:0}
.titmv-scope .titmv-foodcard__body{display:flex;flex-direction:column;gap:.35rem;padding:.9rem 1rem 0}
.titmv-scope .titmv-foodcard__name{margin:0;font-size:1.04rem;line-height:1.25}
.titmv-scope .titmv-foodcard__name a{color:inherit;text-decoration:none}
.titmv-scope .titmv-foodcard__name a:hover{text-decoration:underline}
.titmv-scope .titmv-foodcard__kinds{margin:0;font-size:.82rem;font-weight:600;color:var(--titmv-accent)}
.titmv-scope .titmv-foodcard__body p{margin:0}
.titmv-scope .titmv-foodcard__special{font-size:.84rem;padding:.4rem .55rem;border-radius:8px;background:color-mix(in srgb,var(--titmv-accent-alt) 16%,transparent)}
.titmv-scope .titmv-foodcard__foot{padding:.8rem 1rem 1rem}

/* open / closed */
.titmv-scope .titmv-foodopen{position:absolute;left:10px;bottom:10px;display:inline-flex;align-items:center;gap:.35rem;padding:.2rem .55rem;border-radius:999px;font-size:.72rem;font-weight:750;background:rgba(16,21,15,.78);color:#fff}
.titmv-scope .titmv-foodopen::before{content:"";width:8px;height:8px;border-radius:50%;background:#b9c0bb}
.titmv-scope .titmv-foodopen.is-open::before{background:#38d27b}
.titmv-scope .titmv-foodopen--inline{position:static;background:var(--titmv-surface-2);color:var(--titmv-text)}
.titmv-scope .titmv-foodopen--inline.is-open{background:var(--mk-ok-bg);color:var(--titmv-ok)}
.titmv-scope .titmv-foodopen--inline.is-open::before{background:var(--titmv-ok)}

/* ----------------------------------------------------------- outlet page */
.titmv-scope .titmv-foodhero .titmv-foodavatar{border-radius:22px}
.titmv-scope .titmv-foodhero__kinds{margin:.15rem 0 .3rem;font-weight:650;color:var(--titmv-accent)}
.titmv-scope .titmv-foodcontact{display:flex;gap:.4rem;flex-wrap:wrap}
.titmv-scope .titmv-foodcontact .titmv-btn{flex:1;justify-content:center}
.titmv-scope .titmv-foodspecial{display:flex;gap:.7rem;align-items:flex-start;padding:.9rem 1.1rem;margin:0 0 1rem;border-radius:16px;background:color-mix(in srgb,var(--titmv-accent-alt) 18%,var(--titmv-surface));border:1px solid color-mix(in srgb,var(--titmv-accent-alt) 55%,transparent)}
.titmv-scope .titmv-foodspecial .titmv-ico{color:#9a6b00;margin-top:.15rem}
.titmv-scope .titmv-foodspecial p{margin:.15rem 0 0}
.titmv-scope .titmv-foodpreview{margin-bottom:1rem}

.titmv-scope .titmv-foodmenu__section{margin:1.1rem 0 .35rem;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:var(--titmv-muted)}
.titmv-scope .titmv-foodmenu__section:first-of-type{margin-top:.2rem}
.titmv-scope .titmv-foodmenu__list{list-style:none;margin:0;padding:0}
.titmv-scope .titmv-foodmenu__list li{margin:0;padding:.55rem 0;border-bottom:1px dashed var(--titmv-line)}
.titmv-scope .titmv-foodmenu__list li:last-child{border-bottom:0}
.titmv-scope .titmv-foodmenu__line{display:flex;align-items:baseline;gap:.5rem}
.titmv-scope .titmv-foodmenu__name{font-weight:650}
.titmv-scope .titmv-foodmenu__dots{flex:1;border-bottom:1px dotted var(--titmv-line);transform:translateY(-.25em);min-width:1rem}
.titmv-scope .titmv-foodmenu__price{font-weight:750;font-variant-numeric:tabular-nums;white-space:nowrap}
.titmv-scope .titmv-foodmenu__desc{margin:.15rem 0 0;font-size:.85rem;color:var(--titmv-muted)}

.titmv-scope .titmv-foodmap{height:220px;border-radius:12px;border:1px solid var(--titmv-line);margin:.2rem 0 .7rem;z-index:0;background:var(--titmv-surface-2)}
.titmv-scope .titmv-foodwhere p{margin:.3rem 0}
.titmv-scope .titmv-foodhours{width:100%;border-collapse:collapse;font-size:.9rem}
.titmv-scope .titmv-foodhours th,.titmv-scope .titmv-foodhours td{padding:.32rem 0;text-align:left;border-bottom:1px solid var(--titmv-line);font-weight:500}
.titmv-scope .titmv-foodhours td{text-align:right;font-variant-numeric:tabular-nums}
.titmv-scope .titmv-foodhours tr.is-today th,.titmv-scope .titmv-foodhours tr.is-today td{font-weight:750;color:var(--titmv-accent)}
.titmv-scope .titmv-foodamen,.titmv-scope .titmv-foodcerts{list-style:none;margin:0;padding:0;display:grid;gap:.4rem}
.titmv-scope .titmv-foodamen li{display:flex;gap:.4rem;align-items:center;margin:0}
.titmv-scope .titmv-foodamen .titmv-ico{color:var(--titmv-ok)}
.titmv-scope .titmv-foodcerts li{margin:0;padding:.5rem .6rem;border-radius:10px;background:var(--mk-ok-bg)}

/* ---------------------------------------------------------------- sign-up */
.titmv-scope .titmv-foodreg__plans{margin-top:1rem;padding-top:.8rem;border-top:1px solid var(--titmv-line)}
.titmv-scope .titmv-foodreg__plans li{margin:.35rem 0}
.titmv-scope .titmv-foodack{background:color-mix(in srgb,var(--titmv-accent-alt) 8%,var(--titmv-surface))}
.titmv-scope .titmv-foodack .titmv-check{padding:.45rem .55rem;border-radius:10px;background:var(--titmv-surface);border:1px solid var(--titmv-line)}

/* ------------------------------------------------------------- dashboard */
.titmv-pro .titmv-switch{display:inline-flex;align-items:center;cursor:pointer;position:relative;margin:0;vertical-align:middle}
.titmv-pro .titmv-switch input{position:absolute;opacity:0;width:42px;height:24px;margin:0;cursor:pointer}
.titmv-pro .titmv-switch span{display:inline-block;flex:none;width:42px;height:24px;border-radius:99px;background:var(--titmv-line);position:relative;transition:background .15s}
.titmv-pro .titmv-switch span::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .15s}
.titmv-pro .titmv-switch input:checked + span{background:var(--titmv-ok)}
.titmv-pro .titmv-switch input:checked + span::after{transform:translateX(18px)}
.titmv-pro .titmv-switch input:focus-visible + span{outline:2px solid var(--titmv-accent-alt);outline-offset:2px}
.titmv-pro .titmv-hourstable td,.titmv-pro .titmv-hourstable th{vertical-align:middle}
.titmv-pro .titmv-hourstable input[type=time]{max-width:9.5rem}
.titmv-pro .titmv-hourstable tr.is-closed input[type=time]{opacity:.45}
.titmv-pro .titmv-card__head--pad{padding:1rem 1.1rem 0}
.titmv-pro .titmv-menutable input{width:100%;min-width:7rem}
.titmv-pro .titmv-menutable td{vertical-align:top}
.titmv-pro .titmv-menurow__price input{min-width:5.5rem;max-width:7rem;text-align:right}
.titmv-pro .titmv-menurow.is-over td{background:color-mix(in srgb,var(--titmv-warn) 9%,transparent)}
.titmv-pro .titmv-menurow .titmv-iconbtn{width:34px;height:34px;font-size:1.2rem;line-height:1}
.titmv-pro .titmv-specialcard{margin-bottom:1rem}
.titmv-pro .titmv-noplan{border-color:color-mix(in srgb,var(--titmv-warn) 45%,var(--titmv-line));background:color-mix(in srgb,var(--titmv-warn) 7%,var(--titmv-surface))}
.titmv-pro .titmv-noplan .titmv-h3{margin:.2rem 0 .3rem}
.titmv-pro .titmv-plancompare{margin:1rem 0}
/* Screen-reader words in the cells are absolutely placed: keep them inside the scroll box. */
.titmv-pro .titmv-plancompare .titmv-tablewrap{position:relative}
.titmv-pro .titmv-plancompare > summary{font-weight:650;padding:.2rem 0 .6rem}
.titmv-pro .titmv-plancompare td,.titmv-pro .titmv-plancompare th[scope=col]{text-align:center}
.titmv-pro .titmv-plancompare tbody th{font-weight:500;text-transform:none;letter-spacing:0;font-size:.88rem;color:var(--titmv-text);text-align:left;white-space:normal}
.titmv-pro .titmv-plancompare tbody tr:last-child th{border-bottom:0}
.titmv-pro .titmv-yes{color:var(--titmv-ok)}
.titmv-pro .titmv-no{color:var(--titmv-muted)}
.titmv-pro .titmv-foodduty{border-left:4px solid var(--titmv-accent-alt)}
.titmv-pro .titmv-foodduty ul{margin:.4rem 0 0;padding-left:1.1rem}

@media (max-width:900px){
  .titmv-scope .titmv-fooddir__filter{grid-template-columns:1fr 1fr}
}
@media (max-width:560px){
  /* The dashboard hides a table's second column on phones; these tables need it. */
  .titmv-pro .titmv-plancompare .titmv-dtable:not(.titmv-ptable) th:nth-child(2),
  .titmv-pro .titmv-plancompare .titmv-dtable:not(.titmv-ptable) td:nth-child(2){display:table-cell}
  .titmv-pro .titmv-dtable.titmv-menutable:not(.titmv-ptable) td:nth-child(2),
  .titmv-pro .titmv-dtable.titmv-hourstable:not(.titmv-ptable) td:nth-child(2){display:block}

  /* Opening hours: the day and its switch, then from and until side by side. */
  .titmv-pro .titmv-hourstable thead{display:none}
  .titmv-pro .titmv-hourstable,.titmv-pro .titmv-hourstable tbody{display:block;width:100%}
  .titmv-pro .titmv-hourstable tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.45rem .6rem;align-items:center;padding:.65rem .85rem;border-bottom:1px solid var(--titmv-line)}
  .titmv-pro .titmv-hourstable tr:last-child{border-bottom:0}
  .titmv-pro .titmv-hourstable th,.titmv-pro .titmv-hourstable td{display:block;padding:0;border:0;background:none}
  .titmv-pro .titmv-hourstable td:nth-child(2){justify-self:end}
  .titmv-pro .titmv-hourstable input[type=time]{width:100%;min-width:0;max-width:none}

  /* Plan comparison: compact, and it scrolls sideways rather than widen the page. */
  .titmv-pro .titmv-plancompare .titmv-tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch;width:0;min-width:100%}
  .titmv-pro .titmv-plancompare td,.titmv-pro .titmv-plancompare th{padding:.45rem .3rem;font-size:.78rem}
  .titmv-pro .titmv-plancompare thead th{font-size:.62rem;letter-spacing:0}
  .titmv-pro .titmv-plancompare tbody th{white-space:normal;width:38%;line-height:1.3}
  .titmv-pro .titmv-plancompare td{white-space:normal;line-height:1.3}
}
@media (max-width:640px){
  .titmv-scope .titmv-fooddir__filter{grid-template-columns:1fr}
  .titmv-scope .titmv-foodgrid{grid-template-columns:1fr}
  .titmv-pro .titmv-menutable thead{display:none}
  .titmv-pro .titmv-menutable,.titmv-pro .titmv-menutable tbody,.titmv-pro .titmv-menutable tr,.titmv-pro .titmv-menutable td{display:block;width:100%}
  .titmv-pro .titmv-menutable tr{display:grid;grid-template-columns:1fr auto;grid-auto-flow:dense;gap:.35rem;padding:.6rem .8rem;border-bottom:1px solid var(--titmv-line)}
  .titmv-pro .titmv-menutable td{padding:0;border:0}
  .titmv-pro .titmv-menutable td:nth-child(1),.titmv-pro .titmv-menutable td:nth-child(2),.titmv-pro .titmv-menutable td:nth-child(4){grid-column:1/-1}
  .titmv-pro .titmv-menurow__price input{max-width:none;text-align:left}
  .titmv-pro .titmv-hourstable input[type=time]{max-width:none}
}
