/* Lily Yum — Cookie consent banner / panel / policy overlay.
   Theme-aware via the site CSS variables (cream / forest / royal, light + dark). */
.ly-cookie-banner{
  position:fixed;left:12px;right:12px;bottom:calc(124px + var(--tg-safe-bottom,0px) + env(safe-area-inset-bottom,0px));
  z-index:55;max-width:640px;margin:0 auto;
  background:var(--surface);border:1px solid var(--line);border-radius:18px;
  padding:14px;box-shadow:var(--shadow);color:var(--ink);
}
/* Never cover the fixed bottom tab bar (measured at 390px: 73px tall in EN
   and FA), the raised cart button above it (top 87px above the viewport
   bottom in both languages), or, when visible, the cart summary bar
   (128px + 65px tall). 2026-11-15 nav redesign: base 124px, 208px with
   the cart bar. */
body.has-cart-bar .ly-cookie-banner{bottom:calc(208px + var(--tg-safe-bottom,0px) + env(safe-area-inset-bottom,0px))}
.ly-cookie-text{margin:0 0 10px;font-size:13.5px;line-height:1.6;color:var(--ink-2)}
.ly-cookie-actions{display:flex;gap:8px;flex-wrap:wrap}
.ly-cookie-actions .btn{padding:9px 14px;font-size:13.5px}
.ly-cookie-policy-link{
  border:0;background:transparent;color:var(--brand);cursor:pointer;
  font-size:12.5px;font-weight:700;padding:8px 2px 0;text-decoration:underline;
}
.ly-cookie-overlay{
  position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.45);
  display:flex;align-items:flex-end;justify-content:center;padding:16px;
}
.ly-cookie-card{
  background:var(--surface);color:var(--ink);border:1px solid var(--line);
  border-radius:20px;padding:16px;width:100%;max-width:520px;max-height:82vh;overflow:auto;
  box-shadow:var(--shadow);
}
.ly-cookie-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:6px}
.ly-cookie-head b{font-size:16px}
.ly-cookie-x{
  border:0;background:var(--surface-2);color:var(--ink);cursor:pointer;
  font-size:20px;line-height:1;width:32px;height:32px;border-radius:10px;flex:none;
}
.ly-cookie-row{
  display:flex;justify-content:space-between;align-items:flex-start;gap:14px;
  padding:12px 2px;border-bottom:1px solid var(--line);cursor:pointer;
}
.ly-cookie-row:last-of-type{border-bottom:0}
.ly-cookie-row span b{display:block;font-size:14px}
.ly-cookie-row span small{display:block;color:var(--muted);font-size:12.5px;line-height:1.55;margin-top:2px}
.ly-cookie-row input[type="checkbox"]{width:20px;height:20px;flex:none;accent-color:var(--brand);margin-top:2px}
.ly-cookie-always{color:var(--brand);font-size:12.5px;font-weight:700;white-space:nowrap;margin-top:2px}
.ly-cookie-card .ly-cookie-actions{margin-top:14px}
.ly-cookie-policy-body{font-size:13.5px;line-height:1.7;color:var(--ink-2)}
.ly-cookie-policy-body p{margin:10px 0}
.ly-cookie-policy-body b{color:var(--ink)}
#ly-cookie-settings{cursor:pointer}

@media (max-width:420px){
  .ly-cookie-banner{left:8px;right:8px;padding:12px}
  .ly-cookie-actions .btn{padding:9px 11px;font-size:13px}
}

/* ---------- Inline SVG icons (2026-11-15) ---------- */
.ly-cookie-top{display:flex;gap:10px;align-items:flex-start}
.ly-cookie-text{flex:1}
.ly-cookie-ic{color:var(--brand);flex:none;margin-top:2px}
.ly-cookie-ic .ic{width:22px;height:22px}
.ly-cookie-x{display:flex;align-items:center;justify-content:center}
.ly-cookie-x .ic{width:16px;height:16px}
