/* Recent purchase popup: fixed above bottom navigation, independent of page flow. */
body > .recent-order-feed,
body .recent-order-feed{
  position:fixed!important;
  left:10px!important;
  right:auto!important;
  bottom:calc(86px + env(safe-area-inset-bottom, 0px))!important;
  z-index:76!important;
  width:min(220px,calc(100vw - 118px))!important;
  max-width:220px!important;
  min-width:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translate3d(0,18px,0) scale(.965);
  transform-origin:left bottom;
  transition:opacity .32s ease,transform .38s cubic-bezier(.22,.9,.3,1),visibility .32s ease;
  contain:layout paint;
}
body .recent-order-feed.show{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translate3d(0,0,0) scale(1);
}
body .recent-order-feed.leaving{
  opacity:0;
  visibility:visible;
  pointer-events:none;
  transform:translate3d(-10px,12px,0) scale(.975);
}
body .recent-order-card{
  position:relative!important;
  display:block!important;
  overflow:hidden!important;
  width:100%!important;
  min-height:60px!important;
  border-radius:14px!important;
  padding:7px 26px 7px 7px!important;
  color:#f8fafc!important;
  background:
    radial-gradient(circle at 8% 15%,rgba(34,197,94,.16),transparent 35%),
    linear-gradient(135deg,rgba(4,18,23,.985),rgba(7,16,29,.985))!important;
  border:1px solid rgba(52,211,153,.28)!important;
  box-shadow:
    0 22px 52px rgba(2,8,23,.58),
    0 0 0 1px rgba(34,197,94,.06) inset,
    0 0 34px rgba(16,185,129,.10)!important;
  backdrop-filter:blur(18px)!important;
  -webkit-backdrop-filter:blur(18px)!important;
  animation:recentCardGlow 3.1s ease-in-out infinite;
}
body .recent-order-card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  padding:1px;
  background:linear-gradient(120deg,rgba(52,211,153,.58),rgba(59,130,246,.13),rgba(250,204,21,.22));
  -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  pointer-events:none;
}
body .recent-order-card::after{
  content:"";
  position:absolute;
  width:130px;
  height:130px;
  right:-72px;
  bottom:-74px;
  border-radius:999px;
  background:radial-gradient(circle,rgba(34,197,94,.18),transparent 68%);
  pointer-events:none;
}
body .recent-order-content{
  position:relative;
  z-index:2;
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr)!important;
  align-items:center!important;
  gap:4px!important;
  min-width:0!important;
}
body .recent-order-media{
  display:block!important;
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  border-radius:10px!important;
  object-fit:cover!important;
  background:#0f172a!important;
  border:2px solid rgba(255,255,255,.13)!important;
  box-shadow:0 10px 24px rgba(0,0,0,.32)!important;
}
body .recent-order-copy{min-width:0!important;overflow:hidden!important}
body .recent-order-title{
  margin:0 0 1px!important;
  color:#d1fae5!important;
  font-size:8px!important;
  line-height:1.25!important;
  font-weight:700!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body .recent-order-product-line{
  display:flex!important;
  align-items:baseline!important;
  gap:2px!important;
  min-width:0!important;
  color:#fff!important;
  font-size:11.5px!important;
  line-height:1.18!important;
  font-weight:900!important;
  letter-spacing:0!important;
}
body .recent-order-product{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
body .recent-order-duration{
  flex:0 0 auto!important;
  color:#bef264!important;
  white-space:nowrap!important;
  font-size:8px!important;
}
body .recent-order-bottom{
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  margin-top:3px!important;
  min-width:0!important;
}
body .recent-order-time{
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  color:#93c5fd!important;
  font-size:8px!important;
  line-height:1!important;
  white-space:nowrap!important;
}
body .recent-order-dot{
  display:inline-block!important;
  width:5px!important;
  height:5px!important;
  border-radius:999px!important;
  background:#f59e0b!important;
  box-shadow:0 0 0 3px rgba(245,158,11,.10)!important;
  animation:recentDotPulse 1.65s ease-in-out infinite!important;
}
body .recent-order-source{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:#99f6e4!important;
  font-size:7.5px!important;
  line-height:1!important;
  font-weight:800!important;
  padding:2px 5px!important;
  border-radius:999px!important;
  background:rgba(20,184,166,.10)!important;
  border:1px solid rgba(45,212,191,.16)!important;
}
body .recent-order-source i{margin-right:3px!important}
body .recent-order-close{
  position:absolute!important;
  z-index:4!important;
  top:5px!important;
  right:5px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:18px!important;
  height:18px!important;
  padding:0!important;
  border-radius:999px!important;
  border:1px solid rgba(255,255,255,.12)!important;
  background:rgba(15,23,42,.72)!important;
  color:#e2e8f0!important;
  cursor:pointer!important;
  box-shadow:none!important;
}
body .recent-order-close:hover{background:rgba(239,68,68,.18)!important;color:#fecaca!important}
@keyframes recentDotPulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(.76);opacity:.65}}
@keyframes recentCardGlow{0%,100%{box-shadow:0 22px 52px rgba(2,8,23,.58),0 0 0 1px rgba(34,197,94,.06) inset,0 0 24px rgba(16,185,129,.08)}50%{box-shadow:0 24px 58px rgba(2,8,23,.62),0 0 0 1px rgba(34,197,94,.10) inset,0 0 38px rgba(16,185,129,.15)}}
@media (max-width:380px){
  body .recent-order-feed{left:7px!important;width:min(206px,calc(100vw - 100px))!important;max-width:206px!important;bottom:calc(80px + env(safe-area-inset-bottom,0px))!important}
  body .recent-order-card{padding:7px 24px 7px 7px!important;border-radius:14px!important;min-height:58px!important}
  body .recent-order-content{grid-template-columns:32px minmax(0,1fr)!important;gap:6px!important}
  body .recent-order-media{width:32px!important;height:32px!important;min-width:32px!important;border-radius:9px!important}
  body .recent-order-product-line{font-size:11px!important}
  body .recent-order-duration{font-size:8.5px!important}
  body .recent-order-source{display:none!important}
}
@media (min-width:900px){
  body .recent-order-feed{left:18px!important;bottom:92px!important;width:228px!important;max-width:228px!important}
}
@media (prefers-reduced-motion:reduce){body .recent-order-feed,body .recent-order-card,body .recent-order-dot{animation:none!important;transition:none!important}}
