
.rdl-cart-overlay{
  position:fixed; inset:0; background:rgba(15,23,42,.45); z-index:100050;
  opacity:0; visibility:hidden; transition:opacity .2s, visibility .2s;
}
.rdl-cart-overlay.is-open{ opacity:1; visibility:visible; }

.rdl-cart-drawer{
  position:fixed; z-index:100060; background:var(--drawer-bg,#fff); color:var(--drawer-fg,#0f172a);
  display:flex; flex-direction:column;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
  transition: transform .28s ease;
  min-height:0;
}
.rdl-cart-drawer[data-side="right"]{
  top:0; right:0; bottom:0; width:min(400px, 92vw);
  height:100%; max-height:100vh; transform:translateX(105%);
}
.rdl-cart-drawer[data-side="left"]{
  top:0; left:0; bottom:0; width:min(400px, 92vw);
  height:100%; max-height:100vh; transform:translateX(-105%);
}
.rdl-cart-drawer[data-side="header"]{
  top:0; left:0; right:0; width:100%;
  height:min(70vh, 560px); max-height:min(70vh, 560px);
  border-radius:0 0 16px 16px; transform:translateY(-105%);
}
.rdl-cart-drawer[data-side="footer"]{
  bottom:0; left:0; right:0; width:100%;
  height:min(70vh, 560px); max-height:min(70vh, 560px);
  border-radius:16px 16px 0 0; transform:translateY(105%);
}
.rdl-cart-drawer.is-open{ transform:none !important; }

.rdl-cart-drawer-hd{
  flex:0 0 auto;
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:14px 16px; border-bottom:1px solid var(--border,#f1f5f9); font-weight:800;
}
.rdl-cart-drawer-hd button{
  border:0; background:#f1f5f9; width:36px; height:36px; border-radius:10px; cursor:pointer; font-size:18px;
}
.rdl-cart-drawer-bd{
  flex:1 1 auto; min-height:0; overflow:auto; padding:12px 16px;
  -webkit-overflow-scrolling:touch;
}
.rdl-cart-drawer-ft{
  flex:0 0 auto;
  border-top:1px solid #f1f5f9; padding:12px 16px;
  display:flex; flex-direction:column; gap:8px; background:#fff;
  padding-bottom:max(12px, env(safe-area-inset-bottom, 0px));
}
.rdl-cart-item{
  display:flex; gap:10px; padding:12px 0; border-bottom:1px solid var(--border,#f1f5f9); align-items:flex-start;
}
.rdl-cart-item .thumb{
  width:64px; height:64px; border-radius:12px; background:#f8fafc;
  border:1px solid #eef2f7; overflow:hidden; flex:0 0 64px;
  display:flex; align-items:center; justify-content:center;
}
.rdl-cart-item .thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.rdl-cart-item .thumb .emoji{ font-size:28px; line-height:1; }
.rdl-cart-item .meta{ flex:1; min-width:0; }
.rdl-cart-item .name{ font-size:13px; font-weight:700; line-height:1.45; margin-bottom:6px; }
.rdl-cart-item .price{ font-size:12px; color:#64748b; }
.rdl-cart-item .row-actions{
  display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:8px;
}
.rdl-cart-qty{
  display:inline-flex; align-items:center; gap:0;
  border:1px solid #e2e8f0; border-radius:10px; overflow:hidden; background:#fff;
}
.rdl-cart-qty button{
  width:32px; height:30px; border:0; background:#f8fafc; cursor:pointer; font-size:16px; font-weight:700; color:#0f172a;
}
.rdl-cart-qty button:hover{ background:#f1f5f9; }
.rdl-cart-qty span{
  min-width:28px; text-align:center; font-size:13px; font-weight:700; padding:0 4px;
}
.rdl-cart-remove{
  width:32px; height:32px; border:0; border-radius:10px;
  background:#fef2f2; color:#ef4444; font-size:16px; font-weight:800; cursor:pointer;
  line-height:1;
}
.rdl-cart-remove:hover{ background:#fee2e2; }
.rdl-cart-empty{ text-align:center; color:#64748b; padding:28px 10px; font-size:13px; }
.rdl-cart-btn{
  display:block; text-align:center; padding:12px; border-radius:12px; font-weight:800; text-decoration:none !important;
}
.rdl-cart-btn-primary{ background:#ef4050; color:#fff !important; }
.rdl-cart-btn-ghost{ background:#f8fafc; color:#0f172a !important; border:1px solid #e2e8f0; }
