/* The pub's own page (pub-own.js, roadmap item 38): on pub.html for a pub
   on its private link, and in app.html's Settings for a claimed pub. The
   app's PubOwnPage in settings.tsx is the same page. */

/* Its own sizing, since it sits in two pages with different resets. */
.ppo-card, .ppo-card *, .ppo-banner { box-sizing: border-box; }
.ppo-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}
.ppo-card h2 {
  font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--muted); margin: 0;
}
.ppo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.ppo-card > h2 { margin-bottom: 12px; }
.ppo-confirmed { font-size: 18px; font-weight: 700; color: var(--text); margin: 0 0 12px; line-height: 1.3; }
.ppo-banner {
  background: rgba(var(--brand-rgb), 0.08); border: 1px solid rgba(var(--brand-rgb), 0.3);
  border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--text);
}
.ppo-primary {
  width: 100%; min-height: 48px; font: inherit; font-size: 16px; font-weight: 700;
  color: var(--on-accent, #fff); background: var(--green-dark, var(--green)); border: 0;
  border-radius: 12px; cursor: pointer;
}
.ppo-primary:disabled { opacity: .5; cursor: default; }
.ppo-primary[hidden] { display: none; }
.ppo-chip {
  min-height: 36px; padding: 0 14px; font: inherit; font-size: 14px; font-weight: 700;
  color: var(--green); background: rgba(var(--brand-rgb), 0.1); border: 1px solid rgba(var(--brand-rgb), 0.3);
  border-radius: 99px; cursor: pointer;
}
.ppo-link { background: none; border: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--green); cursor: pointer; min-height: 44px; padding: 0 10px; }
.ppo-group { font-size: 13px; font-weight: 600; color: var(--muted); margin: 18px 0 6px; }
.ppo-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 6px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2);
}
.ppo-drink { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ppo-drink strong { font-size: 15px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ppo-note { font-size: 13px; color: var(--muted); }
.ppo-note:empty { display: none; }
.ppo-town strong { color: var(--text); font-weight: 700; }
.ppo-box { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; }
.ppo-sym { font-size: 15px; font-weight: 700; color: var(--muted); }
.ppo-input {
  min-height: 42px; padding: 8px 10px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; outline: none;
}
.ppo-input:focus { border-color: var(--green); }
.ppo-price { width: 88px; text-align: right; font-variant-numeric: tabular-nums; }
.ppo-add { width: 100%; margin-top: 12px; }
textarea.ppo-input { width: 100%; resize: vertical; }
.ppo-x {
  flex: 0 0 36px; height: 40px; border: 0; background: none; color: var(--muted);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.ppo-x:hover { color: var(--text); }
.ppo-msg { min-height: 1.4em; margin: 10px 0; font-size: 14px; line-height: 1.5; color: var(--text); }
.ppo-empty { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 12px 0; }
.ppo-meta { font-size: 14px; color: var(--muted); margin: 2px 0; line-height: 1.5; }
.ppo-food { margin-top: 8px; }
.ppo-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
.ppo-days { display: grid; gap: 8px; }
.ppo-day { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ppo-dayname { width: 40px; font-weight: 700; color: var(--text); font-size: 15px; }
.ppo-open { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); min-width: 70px; cursor: pointer; }
.ppo-open input { width: 18px; height: 18px; accent-color: var(--green); }
.ppo-time { width: 76px; }
.ppo-day:has(input[type=checkbox]:not(:checked)) .ppo-time,
.ppo-day:has(input[type=checkbox]:not(:checked)) .ppo-meta { visibility: hidden; }
.ppo-actions { display: flex; align-items: center; gap: 10px; }
.ppo-actions .ppo-primary { flex: 1 1 auto; }
.ppo-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ppo-tile {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2);
}
.ppo-tile strong { font-size: 22px; color: var(--text); }
.ppo-tile span { font-size: 13px; color: var(--muted); line-height: 1.3; }
@media (max-width: 600px) { .ppo-card { padding: 16px; } .ppo-price { width: 80px; } }

/* Links drawn as the buttons beside them (roadmap item 43). */
a.ppo-primary, a.ppo-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
