/* AAYAM reservation widget - scoped under #aayam-resv */
#aayam-resv, #aayam-resv * { box-sizing: border-box; }
#aayam-resv {
  /* palette pulled from aayam.lu theme */
  --bg:#161d0e; --card:#212a15; --line:#3a491d; --line-2:#4b5a2c;
  --text:#FCFFFC; --muted:#b7bfa4; --accent:#C96B2C; --accent-d:#a9551f;
  --gold:#C8963E; --ok:#8bbf5f; --danger:#e0876f;
  font-family:'Karla',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

/* Floating launcher (ZenChef-style, bottom-right) */
#aayam-resv .arv-fab{
  position:fixed; right:22px; bottom:22px; z-index:2147483000;
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 20px; border:0; border-radius:999px; cursor:pointer;
  background:linear-gradient(135deg,var(--accent),var(--accent-d)); color:#fff;
  font-size:15px; font-weight:600; letter-spacing:.3px;
  box-shadow:0 10px 30px rgba(0,0,0,.35),0 2px 6px rgba(0,0,0,.25);
  transition:transform .15s ease, box-shadow .15s ease;
}
#aayam-resv .arv-fab:hover{ transform:translateY(-2px); box-shadow:0 16px 40px rgba(0,0,0,.45); }
#aayam-resv .arv-fab svg{ width:19px;height:19px;fill:none;stroke:#fff;stroke-width:1.8; }
@media (max-width:560px){ #aayam-resv .arv-fab{ right:14px; bottom:14px; padding:13px 17px; font-size:14px; } }

/* Overlay + dialog */
#aayam-resv .arv-overlay{
  position:fixed; inset:0; z-index:2147483001; display:none;
  background:rgba(6,5,4,.62); backdrop-filter:blur(3px);
  align-items:center; justify-content:center; padding:24px;
}
#aayam-resv .arv-overlay.open{ display:flex; }
#aayam-resv .arv-dialog{
  width:100%; max-width:860px; max-height:90vh; overflow:hidden;
  background:var(--bg); color:var(--text);
  border:1px solid var(--line); border-radius:18px;
  box-shadow:0 30px 80px rgba(0,0,0,.6); display:flex; flex-direction:column;
  animation:arv-pop .18s ease;
}
@keyframes arv-pop{ from{opacity:0; transform:translateY(10px) scale(.98)} to{opacity:1;transform:none} }

/* Full-screen on phones (a real page feel, not a fiddly popup) */
@media (max-width:640px){
  #aayam-resv .arv-overlay{ padding:0; }
  #aayam-resv .arv-dialog{ max-width:100%; height:100%; max-height:100%; border-radius:0; border:0; }
}

#aayam-resv .arv-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 22px; border-bottom:1px solid var(--line);
}
#aayam-resv .arv-brand{ display:flex; align-items:center; gap:12px; }
#aayam-resv .arv-logo{ height:30px;width:auto;display:block; }
#aayam-resv .arv-brand b{ font-size:15px; letter-spacing:2px; }
#aayam-resv .arv-brand small{ display:block; color:var(--muted); font-size:10.5px; letter-spacing:1px; }
#aayam-resv .arv-close{ background:transparent;border:0;color:var(--muted);font-size:24px;cursor:pointer;line-height:1; }
#aayam-resv .arv-close:hover{ color:var(--text); }

#aayam-resv .arv-body{ padding:22px; overflow:auto; }

/* Steps header */
#aayam-resv .arv-steps{ display:flex; gap:8px; margin-bottom:18px; font-size:12px; color:var(--muted); }
#aayam-resv .arv-steps span{ opacity:.6; }
#aayam-resv .arv-steps span.on{ color:var(--accent); opacity:1; font-weight:600; }

/* Controls */
#aayam-resv .arv-row{ display:flex; gap:16px; flex-wrap:wrap; align-items:flex-end; margin-bottom:16px; }
#aayam-resv label.arv-lbl{ display:block; font-size:12px; color:var(--muted); margin-bottom:6px; letter-spacing:.4px; }
#aayam-resv select, #aayam-resv input{
  width:100%; background:var(--card); color:var(--text);
  border:1px solid var(--line); border-radius:10px; padding:12px 14px; font-size:15px; outline:none;
}
#aayam-resv select:focus, #aayam-resv input:focus{ border-color:var(--accent); }
#aayam-resv .arv-field{ flex:1 1 200px; }
#aayam-resv .arv-people-note{ margin-top:7px; font-size:12.5px; color:var(--muted); }
#aayam-resv .arv-people-note a{ color:var(--gold); text-decoration:none; }

/* Calendar + slots */
#aayam-resv .arv-planner{ display:grid; grid-template-columns:1.2fr 1fr; gap:18px; }
@media (max-width:640px){ #aayam-resv .arv-planner{ grid-template-columns:1fr; } }
#aayam-resv .arv-cal{ background:var(--card); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
#aayam-resv .arv-cal-head{ display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-bottom:1px solid var(--line); }
#aayam-resv .arv-cal-head b{ font-size:14px; }
#aayam-resv .arv-nav{ background:transparent;border:1px solid var(--line);color:var(--text);border-radius:8px;width:30px;height:30px;cursor:pointer; }
#aayam-resv .arv-nav:disabled{ opacity:.3; cursor:not-allowed; }
#aayam-resv table.arv-grid{ width:100%; border-collapse:collapse; }
#aayam-resv table.arv-grid th{ padding:8px 0; font-size:11px; color:var(--muted); font-weight:500; }
#aayam-resv table.arv-grid td{ text-align:center; padding:3px; }
#aayam-resv .arv-day{ width:38px;height:38px;line-height:38px; margin:0 auto; border-radius:9px; font-size:14px; color:var(--muted); }
#aayam-resv .arv-day.avail{ color:var(--text); border:1px solid var(--line); cursor:pointer; }
#aayam-resv .arv-day.avail:hover{ border-color:var(--accent); color:#fff; }
#aayam-resv .arv-day.sel{ background:var(--accent); color:#fff; border-color:var(--accent); font-weight:600; }
#aayam-resv .arv-day.off{ opacity:.28; }

#aayam-resv .arv-slots h4{ margin:0 0 10px; font-size:13px; color:var(--muted); font-weight:500; letter-spacing:.4px; }
#aayam-resv .arv-slotgrid{ display:grid; grid-template-columns:1fr 1fr; gap:8px; max-height:320px; overflow:auto; }
#aayam-resv .arv-slot{ padding:11px 8px; text-align:center; background:var(--card); border:1px solid var(--line);
  border-radius:10px; color:var(--text); cursor:pointer; font-size:14px; font-weight:600; }
#aayam-resv .arv-slot:hover{ border-color:var(--accent); color:#fff; }
#aayam-resv .arv-hint{ color:var(--muted); font-size:13px; padding:20px 4px; }

/* Details form */
#aayam-resv .arv-summary{ background:var(--card); border:1px solid var(--line); border-radius:12px; padding:14px 16px; margin-bottom:16px; font-size:14px; }
#aayam-resv .arv-summary b{ color:var(--accent); }
#aayam-resv .arv-hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* Buttons */
#aayam-resv .arv-actions{ display:flex; justify-content:space-between; gap:12px; margin-top:18px; }
#aayam-resv .arv-btn{ padding:12px 22px; border-radius:10px; border:0; cursor:pointer; font-size:15px; font-weight:600; }
#aayam-resv .arv-btn.primary{ background:linear-gradient(135deg,var(--accent),var(--accent-d)); color:#fff; }
#aayam-resv .arv-btn.primary:disabled{ opacity:.5; cursor:not-allowed; }
#aayam-resv .arv-btn.ghost{ background:transparent; color:var(--muted); border:1px solid var(--line); }

/* Confirmation */
#aayam-resv .arv-done{ text-align:center; padding:20px 10px; }
#aayam-resv .arv-check{ width:64px;height:64px;border-radius:50%; background:rgba(90,158,111,.15);
  display:grid; place-items:center; margin:0 auto 16px; }
#aayam-resv .arv-check svg{ width:32px;height:32px;stroke:var(--ok);fill:none;stroke-width:2.4; }
#aayam-resv .arv-done h3{ margin:0 0 6px; font-size:22px; }
#aayam-resv .arv-done p{ color:var(--muted); margin:4px 0; }
#aayam-resv .arv-recap{ display:inline-block; text-align:left; margin:16px auto 0; background:var(--card);
  border:1px solid var(--line); border-radius:12px; padding:16px 20px; font-size:15px; }
#aayam-resv .arv-recap div{ margin:4px 0; } #aayam-resv .arv-recap b{ color:var(--text); }

#aayam-resv .arv-err{ color:var(--danger); font-size:14px; margin-top:10px; min-height:18px; }
#aayam-resv .arv-spin{ display:inline-block;width:18px;height:18px;border:2px solid rgba(255,255,255,.35);
  border-top-color:#fff;border-radius:50%; animation:arv-spin .7s linear infinite; vertical-align:-3px; margin-right:8px; }
@keyframes arv-spin{ to{ transform:rotate(360deg) } }
