body.page-cart,
body.page-order{
  --cart-stroke: rgba(15, 23, 42, 0.10);
  --cart-soft: rgba(15, 23, 42, 0.06);
}

body.page-cart .cart-items,
body.page-order .cart-items{
  display:flex;
  flex-direction:column;
  gap:10px;
}

body.page-cart .cart-item,
body.page-order .cart-item{
  display:grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items:start;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--cart-stroke);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow2);
}

body.page-cart .cart-img,
body.page-order .cart-img{
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--cart-stroke);
  background: #f3f4f6;
  display:block;
}

body.page-cart .cart-title,
body.page-order .cart-title{
  font-weight: 950;
  font-size: 14px;
  line-height: 1.15;
  letter-spacing: -0.2px;
  color: var(--text);
}

body.page-cart .cart-meta,
body.page-order .cart-meta{
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.page-cart .cart-bottom,
body.page-order .cart-bottom{
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

body.page-cart .cart-price,
body.page-order .cart-price{
  font-weight: 950;
  font-size: 14px;
  letter-spacing: -0.15px;
  color: var(--text);
  white-space: nowrap;
}

body.page-cart .stepper,
body.page-order .stepper{
  display:grid;
  grid-template-columns: 34px 40px 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--cart-stroke);
  background: var(--cart-soft);
  overflow:hidden;
}

body.page-cart .stepper button,
body.page-order .stepper button{
  border: 0;
  background: transparent;
  color: rgba(15,23,42,.88);
  font-weight: 950;
  font-size: 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

body.page-cart .stepper button:active,
body.page-order .stepper button:active{background: rgba(15,23,42,.06);}

body.page-cart .stepper .qty,
body.page-order .stepper .qty{
  display:grid;
  place-items:center;
  font-weight: 950;
  font-size: 13px;
  color: rgba(15,23,42,.78);
}

body.page-cart .cart-remove,
body.page-order .cart-remove{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid var(--cart-stroke);
  background: rgba(255,255,255,.82);
  color: rgba(15,23,42,.62);
  display:grid;
  place-items:center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

body.page-cart .cart-remove:active,
body.page-order .cart-remove:active{transform: scale(.98); filter: brightness(.98);}

body.page-cart .field,
body.page-order .field{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap: 6px;
}

body.page-cart .field label,
body.page-order .field label{
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  letter-spacing: .1px;
}

body.page-cart .input,
body.page-order .input{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255,255,255,.92);
  color: rgba(15, 23, 42, 0.92);
  padding: 12px 14px;
  outline: none;
  box-shadow: 0 10px 22px rgba(10,18,35,.06);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

body.page-cart .input:focus,
body.page-order .input:focus{
  background: rgba(255,255,255,.98);
  border-color: rgba(91,108,255,.38);
  box-shadow: 0 16px 34px rgba(10,18,35,.10);
}

body.page-cart .paygrid,
body.page-order .paygrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

body.page-cart .radio,
body.page-order .radio{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.04);
  font-weight: 900;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.86);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

body.page-cart .radio input,
body.page-order .radio input{accent-color: #5b6cff;}

body.page-cart .radio:active,
body.page-order .radio:active{transform: scale(.99);}

body.page-cart .checkout-error,
body.page-order .checkout-error{
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(239,68,68,.25);
  background: rgba(239,68,68,.08);
  color: rgba(127,29,29,.92);
  font-weight: 800;
  font-size: 13px;
}

@media (max-width: 380px){
  body.page-cart .cart-item,
  body.page-order .cart-item{grid-template-columns: 64px 1fr auto;}
  body.page-cart .cart-img,
  body.page-order .cart-img{width:64px; height:64px;}
  body.page-cart .paygrid,
  body.page-order .paygrid{grid-template-columns: 1fr;}
}
