/* Cart fab, drawer, and Poynt Collect checkout modal */
.cart-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: transform .15s ease, background .2s ease;
}
.cart-fab:hover { transform: translateY(-2px); background: var(--accent-bright); }
.cart-fab__count {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px;
  background: #fff; color: #000; border-radius: 999px; font-size: .75rem; font-weight: 800;
  display: none; place-items: center;
}

/* overlay shared by drawer + modal */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .25s ease; }

/* drawer */
.cart-drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.cart-drawer.is-open { pointer-events: auto; }
.cart-drawer.is-open .cart-overlay { opacity: 1; }
.cart-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 92vw);
  background: var(--bg-elev); border-left: 1px solid var(--line); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s ease;
}
.cart-drawer.is-open .cart-panel { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .05em; }
.cart-x { background: none; border: 0; color: var(--text-dim); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.cart-x:hover { color: #fff; }
.cart-body { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cart-empty { color: var(--muted); text-align: center; padding: 40px 0; }
.cart-row { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.cart-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: #000; }
.cart-name { font-weight: 600; font-size: .92rem; line-height: 1.25; }
.cart-opt { font-size: .78rem; color: var(--muted); }
.cart-price { font-size: .85rem; color: var(--accent-bright); margin-top: 2px; }
.cart-qty { display: flex; align-items: center; gap: 8px; }
.cart-qty button { width: 26px; height: 26px; border: 1px solid var(--line); background: transparent; color: #fff; border-radius: 6px; cursor: pointer; font-size: 1rem; line-height: 1; }
.cart-qty button:hover { border-color: var(--accent); }
.cart-rm { background: none; border: 0; color: var(--muted); font-size: 1.3rem; cursor: pointer; }
.cart-rm:hover { color: #fff; }
.cart-foot { padding: 20px; border-top: 1px solid var(--line); }
.cart-sub { display: flex; justify-content: space-between; font-size: 1.05rem; margin-bottom: 14px; }
.cart-sub strong { color: var(--accent-bright); }
.cart-checkout { width: 100%; justify-content: center; }
.cart-note { text-align: center; font-size: .76rem; color: var(--muted); margin-top: 10px; }

/* checkout modal */
.pay-modal { position: fixed; inset: 0; z-index: 110; pointer-events: none; }
.pay-modal.is-open { pointer-events: auto; }
.pay-modal.is-open .cart-overlay { opacity: 1; }
.pay-box {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -46%);
  width: min(480px, 94vw); max-height: 92vh; overflow-y: auto;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  opacity: 0; transition: opacity .2s ease, transform .2s ease; box-shadow: var(--shadow);
}
.pay-modal.is-open .pay-box { opacity: 1; transform: translate(-50%, -50%); }
.pay-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.pay-label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 6px; }
.pay-input { padding: 12px 14px; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--line); color: #fff; font-size: 1rem; }
.pay-input:focus { outline: none; border-color: var(--accent-bright); }
.pay-card { min-height: 60px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 8px; }
.pay-status { font-size: .88rem; min-height: 1.2em; }
.pay-status.is-err { color: #ff6b6b; }
.pay-status.is-ok { color: #51cf66; }
.pay-submit { width: 100%; justify-content: center; margin-top: 6px; }
.pay-submit:disabled { opacity: .6; cursor: default; }
