/* ============================================================================
   Open Now pill + modal — scoped to .hg-on-*
   Follows the surf/volcano/nearby visual vocabulary: colored pill in the
   hero action bar, modal with a status banner, weekly hours table, and
   disclaimer. Uses px font sizes per site convention.
   ============================================================================ */

/* ---- Pill ---- */
.hg-on-wrap { display:inline-block; vertical-align:middle; margin:0 6px; }
.hg-on-btn {
  display:inline-flex; align-items:center; gap:8px;
  border:none; cursor:pointer;
  padding:8px 14px; border-radius:999px;
  font-family:inherit;
  font-size:13px; font-weight:700;
  color:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,.15);
  line-height:1.2;
  text-transform:uppercase; letter-spacing:.3px;
  -webkit-appearance:none; appearance:none;
}
.hg-on-btn.is-green { background:#1D9771; }
.hg-on-btn.is-amber { background:#d4a017; color:#1a1a1a; }
.hg-on-btn.is-red   { background:#c3232f; }
.hg-on-btn:hover { opacity:.92; }
.hg-on-btn:focus { outline:2px solid #fff; outline-offset:-2px; }
.hg-on-btn-dot {
  display:inline-block; width:8px; height:8px; border-radius:50%;
  background:currentColor; opacity:.85;
  box-shadow:0 0 0 2px rgba(255,255,255,.4);
}
.hg-on-btn.is-green .hg-on-btn-dot { animation:hgOnPulse 2s ease-in-out infinite; }
@keyframes hgOnPulse {
  0%, 100% { box-shadow:0 0 0 2px rgba(255,255,255,.4); }
  50%      { box-shadow:0 0 0 4px rgba(255,255,255,.2); }
}

@media (max-width:600px) {
  .hg-on-wrap { display:inline-block; margin:4px 3px; }
  .hg-on-btn  { font-size:11px; padding:6px 10px; letter-spacing:.1px; gap:6px; }
  .hg-on-btn-dot { width:7px; height:7px; }
}
@media (max-width:380px) {
  .hg-on-btn { font-size:10px; padding:5px 8px; }
}

/* ---- Modal shell ---- */
.hg-on-modal {
  display:none; position:fixed; top:0; left:0; right:0; bottom:0;
  z-index:999999; align-items:center; justify-content:center; padding:15px;
}
.hg-on-modal.is-open { display:flex; }
.hg-on-modal-bg {
  position:absolute; inset:0;
  background:rgba(0,0,0,.6);
  backdrop-filter:blur(2px); -webkit-backdrop-filter:blur(2px);
}
.hg-on-modal-card {
  position:relative; background:#fff; border-radius:12px;
  width:100%; max-width:520px;
  max-height:88vh; overflow-y:auto;
  box-shadow:0 20px 60px rgba(0,0,0,.3);
  z-index:1;
  animation:hgOnIn .25s ease-out;
}
@keyframes hgOnIn {
  from { opacity:0; transform:scale(.96) translateY(8px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}
.hg-on-modal-head {
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px; border-bottom:1px solid #e8e8e8;
}
.hg-on-modal-head h3 { margin:0; font-size:19px; font-weight:700; color:#222; line-height:1.3; }
.hg-on-modal-close {
  background:none; border:none; font-size:26px; color:#999;
  cursor:pointer; padding:0 6px; line-height:1;
}
.hg-on-modal-close:hover { color:#333; }
.hg-on-modal-body { padding:16px 18px 4px; }
.hg-on-modal-foot { padding:8px 18px 14px; border-top:1px solid #f0f0f0; }
.hg-on-loading { color:#888; font-size:14px; margin:0; text-align:center; padding:14px 0; }

/* ---- Status banner inside modal ---- */
.hg-on-status {
  padding:12px 14px; border-radius:10px;
  margin:0 0 14px;
  font-size:14px; line-height:1.5; color:#222;
}
.hg-on-status.is-green { background:#e7f5ef; border-left:4px solid #1D9771; }
.hg-on-status.is-amber { background:#fdf6e0; border-left:4px solid #d4a017; }
.hg-on-status.is-red   { background:#fbeaea; border-left:4px solid #c3232f; }
.hg-on-status-label {
  display:inline-block; font-size:12px; font-weight:700;
  text-transform:uppercase; letter-spacing:.4px;
  padding:3px 9px; border-radius:999px; margin-right:8px;
  color:#fff;
}
.hg-on-status.is-green .hg-on-status-label { background:#1D9771; }
.hg-on-status.is-amber .hg-on-status-label { background:#d4a017; color:#1a1a1a; }
.hg-on-status.is-red   .hg-on-status-label { background:#c3232f; }
.hg-on-status p { margin:8px 0 0; color:#222; }

/* ---- Rating / type meta line ---- */
.hg-on-meta {
  font-size:13px; color:#555;
  margin:0 0 14px; line-height:1.5;
  display:flex; flex-wrap:wrap; gap:6px; align-items:center;
}
.hg-on-meta .sep { color:#ccc; padding:0 4px; }
.hg-on-rating { color:#d97706; font-weight:700; }
.hg-on-reviews { color:#666; }
.hg-on-type { color:#444; font-weight:500; }

/* ---- Weekly hours table ---- */
.hg-on-section-h {
  font-size:13px; font-weight:700; color:#666;
  text-transform:uppercase; letter-spacing:.4px;
  margin:0 0 8px;
}
.hg-on-hours {
  width:100%; border-collapse:collapse;
  font-size:14px; margin:0 0 14px;
}
.hg-on-hours td {
  padding:6px 0; border-bottom:1px solid #f0f0f0;
  color:#333;
}
.hg-on-hours tr:last-child td { border-bottom:none; }
.hg-on-hours .hg-on-day {
  width:80px; font-weight:600; color:#555;
}
.hg-on-hours tr.is-today td { color:#111; font-weight:600; background:#fffdf5; }
.hg-on-hours tr.is-today .hg-on-day { color:#b45309; }
.hg-on-closed-day { color:#aaa; font-style:italic; }

/* ---- Links + verified line ---- */
.hg-on-links { margin:4px 0 10px; }
.hg-on-links a {
  color:#1866B4; font-weight:600; text-decoration:none;
  font-size:13px;
}
.hg-on-links a:hover { text-decoration:underline; }
.hg-on-verified {
  margin:0 0 6px;
  font-size:11px; color:#999; font-family:monospace;
}

/* ---- Disclaimer (modal footer) ---- */
.hg-on-disclaimer {
  margin:0; padding:10px 12px; border-radius:8px;
  font-size:12px; color:#6b4f00; line-height:1.5;
  background:#fff8e1; border-left:3px solid #d4a017;
}

/* ---- Mobile polish ---- */
@media (max-width:600px) {
  .hg-on-modal { padding:0; }
  .hg-on-modal-card { max-width:none; max-height:100vh; border-radius:0; }
  .hg-on-modal-head h3 { font-size:17px; }
  .hg-on-hours { font-size:13px; }
}
